/* ==========================================
   ESTILOS BASE - MOI BURGER
   PALETA 2: #180382  #FDC82A  #FF1715  fondo #E6E9EE
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(24, 3, 130, 0.25);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(24, 3, 130, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #E6E9EE;
    color: #180382;
    scrollbar-color: rgba(24, 3, 130, 0.25) #E6E9EE;
}

.header {
    background:
        linear-gradient(180deg, rgba(24, 3, 130, 0.55) 0%, rgba(24, 3, 130, 0.15) 100%),
        url('https://images.unsplash.com/photo-1571091718767-18b5b1457add?w=1200&h=400&fit=crop&crop=center') center/cover;
    color: #FFFFFF;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #FDC82A;
}

.restaurant-info {
    position: relative;
    z-index: 1;
}

.restaurant-logo {
    width: 80px;
    height: 80px;
    background: #FFFFFF url('menu-salvaje-logo.webp') center/contain no-repeat;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333333;
    font-size: 24px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 2px solid #FDC82A;
}

.restaurant-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: #180382;
    color: #FDC82A;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.restaurant-tag {
    background: #FDC82A;
    color: #180382;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

.delivery-info {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discount-banner {
    background: #FDC82A;
    color: #180382;
    padding: 1rem;
    margin: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-bottom: 120px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    padding: 0 1rem;
    color: #180382;
}

.category-section {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    padding: 1rem;
    background: #180382;
    border-left: 4px solid #FF1715;
    border-radius: 8px;
    color: #FDC82A;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #180382;
    z-index: 100;
    padding: 0.8rem 1rem;
    border-bottom: 3px solid #FDC82A;
    box-shadow: 0 2px 8px rgba(24, 3, 130, 0.35);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: none;
}

.sticky-header.active {
    transform: translateY(0);
}

.sticky-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #FDC82A;
    text-align: center;
}

.single-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
    max-width: 400px;
    margin: 0 auto;
    margin-bottom: 3vh;
}

.product-card {
    background: #FFFFFF;
    border: 1px solid rgba(24, 3, 130, 0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(24, 3, 130, 0.08);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: #180382;
    box-shadow: 0 4px 16px rgba(24, 3, 130, 0.15);
}

.desktop-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #FF1715;
    color: #FFFFFF;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 2;
}

.desktop-info {
    padding: 1.5rem;
}

.desktop-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #180382;
}

.desktop-description {
    color: rgba(24, 3, 130, 0.65);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.desktop-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.desktop-price-current {
    font-size: 1.3rem;
    font-weight: bold;
    color: #180382;
}

.desktop-price-original {
    font-size: 1rem;
    color: rgba(24, 3, 130, 0.4);
    text-decoration: line-through;
}

.desktop-button {
    background: #180382;
    color: #FDC82A;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, transform 0.2s;
}

.desktop-button:hover {
    background: #FF1715;
}

.desktop-button.added {
    background: #FF1715 !important;
    color: #FFFFFF;
    transform: scale(1.05);
}

/* ==========================================
   ESTILOS CARRUSEL
========================================== */
.carousel-section {
    padding: 2rem 0 1rem 0;
    background: #E6E9EE;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem 1rem;
}

.carousel-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #180382;
}

.carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border: 1px solid rgba(24, 3, 130, 0.15);
    border-radius: 50%;
    font-size: 1.5rem;
    color: #180382;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #180382;
    border-color: #180382;
    color: #FDC82A;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

/* CARD DEL CARRUSEL - DESKTOP */
.carousel-product-card {
    min-width: 280px;
    max-width: 280px;
    background: #FFFFFF;
    border: 1px solid rgba(24, 3, 130, 0.12);
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(24, 3, 130, 0.08);
    position: relative;
}

.carousel-product-card:hover {
    transform: translateY(-5px);
    border-color: #180382;
    box-shadow: 0 4px 16px rgba(24, 3, 130, 0.15);
}

.carousel-product-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: #FF1715;
    color: #FFFFFF;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
    z-index: 2;
}

.carousel-product-info {
    padding: 1rem;
}

.carousel-product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #180382;
    line-height: 1.3;
}

.carousel-product-subtitle {
    font-size: 0.85rem;
    color: rgba(24, 3, 130, 0.65);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.carousel-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #180382;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carousel-product-price.sale {
    color: #FF1715;
}

.carousel-product-price-original {
    font-size: 0.9rem;
    color: rgba(24, 3, 130, 0.4);
    text-decoration: line-through;
}

/* BOTÓN DESKTOP CARRUSEL */
.carousel-add-btn {
    background: #180382;
    color: #FDC82A;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, transform 0.2s;
    font-size: 0.9rem;
}

.carousel-add-btn:hover {
    background: #FF1715;
}

.carousel-add-btn.added {
    background: #FF1715 !important;
    color: #FFFFFF;
    transform: scale(1.05);
}

/* ELEMENTOS MOBILE DEL CARRUSEL */
.carousel-mobile-container {
    display: none;
    position: relative;
    margin-top: 0.8rem;
    justify-content: flex-end;
}

.carousel-mobile-add {
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    border: 2px solid #180382;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #180382;
    cursor: pointer;
    font-size: 1.3rem;
    box-shadow: 0 2px 6px rgba(24, 3, 130, 0.15);
    transition: all 0.2s;
}

.carousel-mobile-add:active {
    background: #180382;
    color: #FDC82A;
    transform: scale(1.1);
}

.carousel-mobile-add.added {
    background: #FF1715 !important;
    color: #FFFFFF;
    border-color: #FF1715;
}

.carousel-quantity-controls {
    background: #FFFFFF;
    border: 2px solid #180382;
    border-radius: 20px;
    display: none;
    align-items: center;
    padding: 4px;
    box-shadow: 0 2px 6px rgba(24, 3, 130, 0.15);
}

.carousel-quantity-controls.active {
    display: flex;
}

.carousel-quantity-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #180382;
    color: #FDC82A;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-quantity-display {
    margin: 0 10px;
    font-weight: bold;
    color: #180382;
    min-width: 22px;
    text-align: center;
}

.carousel-badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #FF1715;
    color: #FFFFFF;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 3;
}

.carousel-badge-count.active {
    display: flex;
}

/* ==========================================
   BARRA FIJA INFERIOR
========================================== */
.cart-summary-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 2px solid #FDC82A;
    padding: 1.2rem 1rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(24, 3, 130, 0.15);
    z-index: 1000;
}

.cart-summary-bar.active {
    display: flex;
}

.cart-summary-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-items-count {
    background: #FF1715;
    color: #FFFFFF;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.cart-total {
    font-weight: bold;
    color: #180382;
}

.view-cart-btn {
    background: #FF1715;
    color: #FFFFFF;
    border: none;
    padding: 0.8rem 3rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 180px;
}

.view-cart-btn:hover {
    background: #FDC82A;
    color: #180382;
}

/* ==========================================
   SIDEBAR CARRITO
========================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #FFFFFF;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
    box-shadow: -4px 0 15px rgba(24, 3, 130, 0.2);
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-sidebar-header {
    padding: 1rem;
    border-bottom: 2px solid #FDC82A;
    background: #180382;
}

.cart-sidebar-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #FDC82A;
}

.delivery-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.delivery-option {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid rgba(24, 3, 130, 0.2);
    border-radius: 8px;
    background: #FFFFFF;
    color: rgba(24, 3, 130, 0.7);
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.delivery-option.active {
    border-color: #180382;
    background: #180382;
    color: #FDC82A;
}

.delivery-option:hover {
    border-color: #180382;
}

.address-field {
    margin-top: 0.5rem;
    display: none;
}

.address-field.show {
    display: block;
}

.address-input {
    width: 100%;
    padding: 0.8rem;
    background: #FFFFFF;
    border: 2px solid rgba(24, 3, 130, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #180382;
    transition: border-color 0.2s;
}

.address-input::placeholder {
    color: rgba(24, 3, 130, 0.5);
}

.address-input:focus {
    outline: none;
    border-color: #180382;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cart-items-list {
    padding: 1rem;
}

.cart-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(24, 3, 130, 0.12);
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    color: #180382;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.cart-item-price {
    color: #180382;
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(24, 3, 130, 0.25);
    background: #FFFFFF;
    color: #180382;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background 0.2s;
}

.cart-item-qty-btn:hover {
    background: #E6E9EE;
}

.cart-item-quantity {
    font-weight: bold;
    color: #180382;
    min-width: 30px;
    text-align: center;
}

.cart-sidebar-footer {
    padding: 1rem;
    border-top: 2px solid #FDC82A;
    position: sticky;
    bottom: 0;
    background: #FFFFFF;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: rgba(24, 3, 130, 0.6);
}

.cart-total-row > span:last-child {
    color: #180382;
    font-weight: 600;
}

.final-total {
    border-top: 1px solid rgba(24, 3, 130, 0.12);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #180382;
}

.send-whatsapp-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-whatsapp-btn:hover {
    background: #1ea952;
}

/* OCULTAR ELEMENTOS MOBILE EN DESKTOP */
.mobile-content,
.mobile-image-container {
    display: none;
}

/* ==========================================
   ADICIONALES EN CARRITO
========================================== */
.cart-item-extras {
    width: 100%;
}

.add-extra-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: 1.5px solid #180382;
    color: #180382;
    border-radius: 20px;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.add-extra-btn:hover {
    background: #180382;
    color: #FDC82A;
}

.extras-panel {
    display: none;
    margin-top: 0.6rem;
    background: #E6E9EE;
    border: 1px solid rgba(24, 3, 130, 0.15);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
}

.extras-panel.active {
    display: block;
}

.extras-panel-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(24, 3, 130, 0.55);
    margin-bottom: 0.3rem;
}

.extra-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 1px dashed rgba(24, 3, 130, 0.2);
}

.extra-row:last-child {
    border-bottom: none;
}

.extra-name {
    flex: 1;
    font-size: 0.85rem;
    color: #180382;
}

.extra-add-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid #180382;
    background: #FFFFFF;
    color: #180382;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.extra-add-btn:hover {
    background: #180382;
    color: #FDC82A;
}

.extra-qty-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}


/* ==========================================
   SUBTÍTULOS DE SUBGRUPOS EN LISTAS
========================================== */
.subcategory-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.2rem 0 0.4rem 0;
    padding: 0.6rem 1rem;
    background: #FDC82A;
    color: #180382;
    border-radius: 8px;
    grid-column: 1 / -1;
}

/* ==========================================
   LISTA EN 4 COLUMNAS (DESKTOP)
========================================== */
.single-product-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    width: 100%;
    gap: 1.5rem;
    margin: 0 auto 3vh auto;
}

@media (min-width: 801px) and (max-width: 1100px) {
    .single-product-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE (< 800px)
========================================== */
@media (max-width: 800px) {
    .header {
        border-radius: 0 0 73px 0;
        height: 60vw;
        max-height: 400px;
    }

    .restaurant-name {
        font-size: 1.5rem;
    }
    
    .delivery-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* OCULTAR ELEMENTOS DESKTOP */
    .section-title,
    .desktop-badge,
    .desktop-info,
    .desktop-name,
    .desktop-description,
    .desktop-price,
    .desktop-price-current,
    .desktop-price-original,
    .desktop-button {
        display: none !important;
    }

    /* OCULTAR CONTROLES DE CARRUSEL EN MOBILE */
    .carousel-btn {
        display: none;
    }

    /* AJUSTAR CARRUSEL EN MOBILE */
    .carousel-section {
        padding: 1.5rem 0 1rem 0;
    }

    .section-header {
        padding: 0 1rem 0.8rem;
    }

    .carousel {
        padding: 0 1rem;
    }

    .carousel-product-card {
        min-width: 260px;
        max-width: 260px;
    }

    /* OCULTAR BOTÓN DESKTOP Y MOSTRAR CONTROLES MOBILE EN CARRUSEL */
    .carousel-add-btn {
        display: none !important;
    }

    .carousel-mobile-container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: fit-content;
        margin-left: auto;
        margin-top: 0.6rem;
    }

    /* MOSTRAR ELEMENTOS MOBILE */
    .sticky-header {
        display: block;
    }

    .category-title {
        font-size: 1.1rem;
        margin: 1rem 0 0.5rem 0;
        padding: 0.8rem 1rem;
        background: #180382;
        color: #FDC82A;
        border-left: 3px solid #FF1715;
        border-radius: 8px;
    }

    .single-product-grid,
    .single-product-grid.cols-4 {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-width: none;
        margin: 0;
    }

    .product-card {
        background: #E6E9EE;
        border: none;
        border-bottom: 1px solid rgba(24, 3, 130, 0.15);
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        position: relative;
        border-radius: 0;
        box-shadow: none;
        transition: background-color 0.2s;
    }

    .product-card:hover {
        background-color: #FFFFFF;
        border-color: rgba(24, 3, 130, 0.15);
        transform: none;
        box-shadow: none;
    }

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

    .mobile-content {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-name {
        font-size: 1.1rem;
        font-weight: bold;
        color: #180382;
        margin: 0;
    }

    .mobile-description {
        color: rgba(24, 3, 130, 0.65);
        font-size: 0.9rem;
        line-height: 1.3;
        margin: 0;
    }

    .mobile-price {
        font-size: 1.2rem;
        font-weight: bold;
        color: #180382;
        margin: 0.3rem 0 0 0;
    }

    .mobile-image-container {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        flex-shrink: 0;
    }

    .mobile-add {
        position: static;
        width: 32px;
        height: 32px;
        background: #FFFFFF;
        border: 2px solid #180382;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        color: #180382;
        cursor: pointer;
        font-size: 1.2rem;
        box-shadow: 0 2px 4px rgba(24, 3, 130, 0.15);
        transition: all 0.2s;
    }

    .mobile-add:hover {
        background: #180382;
        color: #FDC82A;
        transform: scale(1.1);
    }

    .mobile-add.added {
        background: #FF1715 !important;
        color: #FFFFFF;
        border-color: #FF1715;
        transform: scale(1.2);
    }

    .quantity-controls {
        position: static;
        background: #FFFFFF;
        border: 2px solid #180382;
        border-radius: 20px;
        display: none;
        align-items: center;
        padding: 4px;
        box-shadow: 0 2px 4px rgba(24, 3, 130, 0.15);
    }

    .quantity-controls.active {
        display: flex;
    }

    .quantity-btn {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: none;
        background: #180382;
        color: #FDC82A;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .quantity-display {
        margin: 0 8px;
        font-weight: bold;
        color: #180382;
        min-width: 20px;
        text-align: center;
    }

    .product-badge-count {
        position: absolute;
        top: -8px;
        right: -8px;
        width: 24px;
        height: 24px;
        background: #FF1715;
        color: #FFFFFF;
        border-radius: 50%;
        display: none;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    .product-badge-count.active {
        display: flex;
    }

    .cart-sidebar {
        width: 100%;
        max-width: none;
    }

    .subcategory-title {
        background: #FDC82A;
        margin: 1rem 0 0 0;
        border-radius: 0;
        grid-column: auto;
    }
}

/* FILA 1 DEL ITEM DEL CARRITO: PRODUCTO + CANTIDAD */
.cart-item-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}
/* ==========================================
   TOAST DE SALIDA (ESTILO META)
========================================== */
.exit-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #180382;
    color: #FDC82A;
    border: 1px solid #FDC82A;
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 3000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    white-space: nowrap;
}

.exit-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
/* BOTÓN CERRAR DEL PANEL DE ADICIONALES */
.extras-close-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    background: none;
    border: none;
    border-top: 1px dashed rgba(24, 3, 130, 0.2);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(24, 3, 130, 0.55);
    cursor: pointer;
}

.extras-close-btn:hover {
    color: #180382;
}