html {
  scroll-behavior: smooth;
}

/* CONTENIDO */
.carrito-page{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0 70px;
}

.carrito-hero{
    text-align:center;
    margin-bottom:50px;
}

.carrito-subtitle{
    font-size:14px;
    letter-spacing:4px;
    text-transform:uppercase;
    color:#c08f98;
    margin-bottom:12px;
}

.carrito-title{
    font-family:'Cormorant Garamond', serif;
    font-size:60px;
    font-weight:600;
    color:#4b3b3f;
    margin:0 0 16px;
}

.carrito-text{
    max-width:800px;
    margin:0 auto;
    line-height:1.8;
    color:#6b555a;
    font-size:16px;
}

.carrito-layout{
    display:grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
    align-items:start;
}

.section-title{
    font-family:'Cormorant Garamond', serif;
    font-size:38px;
    color:#4b3b3f;
    margin-bottom:24px;
}

.carrito-items,
.cart-summary{
    background:#fffdfc;
    border-radius:28px;
    padding:30px;
    box-shadow:0 12px 30px rgba(191, 154, 162, 0.10);
}

/* CARD PRODUCTO */
.item-card{
    display:flex;
    gap:24px;
    align-items:center;
    padding:24px 0;
    border-bottom:1px solid #eee1e3;
}

.item-card:last-child{
    border-bottom:none;
}

.item-image{
    width:140px;
    height:140px;
    background:#f9f3f4;
    border-radius:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    flex-shrink:0;
}

.item-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.item-details h3{
    font-family:'Cormorant Garamond', serif;
    font-size:34px;
    margin:0 0 10px;
    color:#4b3b3f;
}

.item-price,
.item-total{
    margin:8px 0;
    color:#6b555a;
    font-size:15px;
}

.quantity-controls{
    display:flex;
    align-items:center;
    gap:14px;
    margin:14px 0;
}

.quantity-controls button{
    width:38px;
    height:38px;
    border:none;
    border-radius:50%;
    background:#e4c6cb;
    color:#4b3b3f;
    font-size:20px;
    cursor:pointer;
    transition:0.3s ease;
}

.quantity-controls button:hover{
    background:#c8959d;
    color:#fff;
}

.quantity{
    font-size:18px;
    font-weight:600;
    min-width:20px;
    text-align:center;
}

.remove-btn{
    border:none;
    background:#f0b8c1;
    color:#fff;
    padding:12px 18px;
    border-radius:14px;
    cursor:pointer;
    font-size:14px;
    transition:0.3s ease;
}

.remove-btn:hover{
    background:#d98b98;
}

/* RESUMEN */
.summary-box{
    background:#f9f3f4;
    border-radius:22px;
    padding:24px;
}

.summary-box p{
    font-size:18px;
    color:#4b3b3f;
    margin-bottom:24px;
}

#cart-total{
    font-weight:700;
    color:#b76e79;
}

.checkout-link{
    text-decoration:none;
}

.checkout-button{
    width:100%;
    border:none;
    background:#b88a93;
    color:#fff;
    padding:16px 20px;
    border-radius:999px;
    font-size:15px;
    font-family:'Poppins', sans-serif;
    cursor:pointer;
    transition:0.3s ease;
}

.checkout-button:hover{
    background:#9f717b;
}










/* RESPONSIVE */
@media (max-width: 992px){
    .carrito-layout{
        grid-template-columns:1fr;
    }

    .carrito-title{
        font-size:48px;
    }

    .menu{
        gap:24px;
    }
}



    .icons{
        position: relative;
        width: auto;
        justify-content: flex-end;
        left: auto;
        top: auto;
        transform: none;
    }

    .item-card{
        flex-direction:column;
        text-align:center;
    }

    .item-details h3{
        font-size:28px;
    }

    .carrito-title{
        font-size:40px;
    }
}







/* =========================
   SCROLL GLOBAL THE QUEENS
========================= */

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #b76e79 #f6f1f0;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f6f1f0;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e4c6cb, #b76e79);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b76e79;
}

/* ===== ANIMACIÓN DE ENTRADA ===== */

@keyframes aparecer {
    from{
        opacity: 0;
        transform: translateY(40px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* aplicar a toda la sección */
.about-container{
    animation: aparecer 1s ease;
}


/* PANEL USUARIO */
.user-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(60, 40, 46, 0.28);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1200;
}

.user-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.user-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 100vh;
    background: rgba(255, 250, 251, 0.96);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: 0.35s ease;
    z-index: 1300;
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.user-panel.active {
    transform: translateX(0);
}

.user-panel-close {
    align-self: flex-end;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #8c6771;
}

.user-panel-header {
    text-align: center;
    margin-bottom: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin: auto;
    border-radius: 50%;
    background: #f3e8eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar img {
    width: 35px;
}

/* TITULOS */
.user-panel-header h3 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    color: #4b3b3f;
}

.user-panel-header p {
    margin: 6px 0 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    letter-spacing: 2px;
    color: #8c6771;
}

/* INFO */
.user-panel-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-info-box {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
}

.user-info-box span {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b8898d;
}

.user-info-box strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #4b3b3f;
}

/* BOTONES */
.user-panel-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-panel-btn {
    padding: 14px;
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;

    /* 🔥 CENTRADO PERFECTO */
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-panel-btn.primary {
    background: #b76e79;
    color: white;
    border: none;
}

.user-panel-btn.secondary {
    border: 1px solid #b76e79;
    color: #b76e79;
    background: transparent;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .user-panel {
        width: 100%;
    }
}