/* ==========================================
   ESTILOS BASE - MOI BURGER
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #282828;
}

.header {
    background: url('la-villa-sb-background-2.webp') center/cover;
    color: white;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

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

.restaurant-logo {
    width: 96px;
    height: 96px;
    background: url('syrup-logotipo.webp') center/contain no-repeat;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #282828;
    font-size: 24px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px solid white;
    background-color: #ffffff;
}

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

.restaurant-tag {
    background: #ff0000;
    color: white;
    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: #ff0000;
    color: #ffffff;
    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;
}

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

.category-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 2.5rem 0 1.25rem 0;
    padding: 0 1.5rem;
    color: #282828;
    letter-spacing: -0.01em;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #282828;
    z-index: 100;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    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: #ffffff;
    text-align: center;
}

.single-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
    margin-bottom: 3vh;
}

.product-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.product-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

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

.desktop-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    transition: transform 0.4s ease;
}

.product-card:hover .desktop-image {
    transform: scale(1.03);
}

.desktop-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.desktop-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.desktop-description {
    color: #aaaaaa;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

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

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

.desktop-price-original {
    font-size: 1rem;
    color: #bbbbbb;
    text-decoration: line-through;
}

.desktop-button {
    background: #282828;
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}

.desktop-button:hover {
    background: #ff0000;
    transform: translateY(-1px);
}

.desktop-button.added {
    background: #ff0000 !important;
    transform: scale(1.02);
}

.category-note {
    margin: -0.5rem 1.5rem 1.25rem 1.5rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    color: #282828;
    border-left: 4px solid #ff0000;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Carrusel visible solo en mobile */
.carousel-mobile-only {
    display: none;
}

/* ==========================================
   ESTILOS CARRUSEL
========================================== */
.carousel-section {
    padding: 2rem 0 1rem 0;
    background: #ffffff;
    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: #282828;
}

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

.carousel-btn {
    width: 40px;
    height: 40px;
    background: rgba(187,187,187,0.25);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #282828;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(170,170,170,0.4);
}

.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: white;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.carousel-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.carousel-product-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.carousel-product-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: #ff0000;
    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: #282828;
    line-height: 1.3;
}

.carousel-product-subtitle {
    font-size: 0.85rem;
    color: #aaaaaa;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

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

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

.carousel-product-price-original {
    font-size: 0.9rem;
    color: #bbbbbb;
    text-decoration: line-through;
}

/* BOTÓN DESKTOP CARRUSEL */
.carousel-add-btn {
    background: #282828;
    color: white;
    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: #ff0000;
}

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

/* ELEMENTOS MOBILE DEL CARRUSEL */
.carousel-mobile-container {
    display: none;
    position: absolute;
    bottom: 0.8rem;
    right: 0.8rem;
}

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

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

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

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

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

.carousel-quantity-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #282828;
    color: white;
    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: #282828;
    min-width: 22px;
    text-align: center;
}

.carousel-badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #282828;
    color: white;
    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;
}

/* ==========================================
   TOAST SALIR (doble toque atrás)
========================================== */
.exit-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.8rem 1.4rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.exit-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

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

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

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

.cart-items-count {
    background: #ff0000;
    color: white;
    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: #282828;
}

.view-cart-btn {
    background: #ff0000;
    color: white;
    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: #cc0000;
}

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

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

.cart-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #bbbbbb;
    background: #ffffff;
}

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

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

.delivery-option {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #bbbbbb;
    border-radius: 8px;
    background: rgba(187,187,187,0.2);
    color: #282828;
    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: #282828;
    background: #282828;
    color: #ffffff;
}

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

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

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

.address-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #bbbbbb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

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

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaaaaa;
    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: #bbbbbb;
}

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

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(187,187,187,0.3);
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

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

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

.cart-item-price {
    color: #282828;
    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 #bbbbbb;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background 0.2s;
}

.cart-item-qty-btn:hover {
    background: rgba(187,187,187,0.25);
}

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

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

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.final-total {
    border-top: 1px solid #bbbbbb;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.delivery-info-text {
    background: #ffffff;
    color: #282828;
    border-left: 3px solid #ff0000;
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.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;
}

/* ==========================================
   RESPONSIVE - MOBILE
========================================== */
@media (max-width: 768px) {
    .category-note {
        margin: 0 1rem 0.75rem 1rem;
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .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-image,
    .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;
    }

    .carousel-product-image {
        height: 180px;
    }

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

    .carousel-mobile-container {
        display: block;
    }

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

    /* CARRUSEL SOLO MOBILE (PERROS) */
    .carousel-mobile-only {
        display: block;
    }

    /* EN MOBILE: OCULTAR LISTA Y TÍTULO DE CATEGORÍAS SOLO-CARRUSEL */
    .category-section.list-mobile-hidden .single-product-grid,
    .category-section.list-mobile-hidden .category-title {
        display: none;
    }

    .category-title {
        font-size: 1.1rem;
        margin: 1rem 0 0.5rem 0;
        padding: 0.8rem 1rem;
        background: rgba(187,187,187,0.2);
        color: #282828;
        border-left: none;
        border-radius: 3px;
    }

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

    .product-card {
        background: white;
        border-bottom: 1px solid rgba(187,187,187,0.3);
        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: rgba(187, 187, 187, 0.12);
        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: #282828;
        margin: 0;
    }

    .mobile-description {
        color: #aaaaaa;
        font-size: 0.9rem;
        line-height: 1.3;
        margin: 0;
    }

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

    .mobile-image-container {
        display: block;
        position: relative;
        flex-shrink: 0;
    }

    .mobile-image {
        width: 100px;
        height: 100px;
        border-radius: 4px;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 2rem;
    }

    .mobile-add {
        position: absolute;
        bottom: -8px;
        right: -8px;
        width: 32px;
        height: 32px;
        background: white;
        border: 2px solid #282828;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        color: #282828;
        cursor: pointer;
        font-size: 1.2rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: all 0.2s;
    }

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

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

    .quantity-controls {
        position: absolute;
        bottom: -8px;
        right: -8px;
        background: white;
        border: 2px solid #282828;
        border-radius: 20px;
        display: none;
        align-items: center;
        padding: 4px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

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

    .quantity-btn {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: none;
        background: #282828;
        color: white;
        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: #282828;
        min-width: 20px;
        text-align: center;
    }

    .product-badge-count {
        position: absolute;
        top: -8px;
        right: -8px;
        width: 24px;
        height: 24px;
        background: #ff0000;
        color: white;
        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.1);
    }

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

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

/* ==========================================
   MENÚ DE CATEGORÍAS (HAMBURGUESA MOBILE)
   Botón abajo-centro + modal al alcance del
   pulgar con scroll (barra azul eléctrico)
========================================== */
.category-menu-btn {
    display: none;
}

/* Botón de categorías (solo desktop) */
.category-menu-desktop-btn {
    display: none;
}

@media (min-width: 769px) {
    .category-menu-desktop-btn {
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1100;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        background: #ff0000;
        color: #ffffff;
        border: none;
        padding: 0.95rem 2rem;
        border-radius: 50px;
        font-size: 1.05rem;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
        transition: background 0.2s, transform 0.2s;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }

    .category-menu-desktop-btn:hover {
        background: #cc0000;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    }

    .category-menu-desktop-btn:active {
        transform: translateX(-50%) scale(0.97);
    }

    /* Cuando el carrito está activo, sube el botón */
    .cart-summary-bar.active ~ .category-menu-desktop-btn {
        bottom: 100px;
    }

    /* Modal centrado en desktop */
    .category-menu-modal {
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: min(92vw, 520px);
        max-height: 70vh;
    }
}

.category-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1499;
    background: rgba(0, 0, 0, 0.55);
    display: none;
}

.category-menu-backdrop.open {
    display: block;
}

.category-menu-modal {
    position: fixed;
    bottom: 92px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 400px);
    max-height: 53vh;
    z-index: 1500;
    background: #282828;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.category-menu-modal.open {
    display: flex;
}

.category-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-menu-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.category-menu-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.category-menu-nav-wrap {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.category-menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1.25rem 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: #ff0000 rgba(255, 255, 255, 0.08);
    -webkit-overflow-scrolling: touch;
}

.category-menu-nav::-webkit-scrollbar {
    width: 6px;
}

.category-menu-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.category-menu-nav::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 3px;
}

.category-menu-nav::-webkit-scrollbar-thumb:hover {
    background: #ff3333;
}

.category-menu-link {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.category-menu-link:active {
    opacity: 0.7;
}

.category-menu-number {
    color: #ff0000;
    font-size: 0.78rem;
    font-weight: 700;
    min-width: 26px;
}

/* Degradado inferior: insinúa que hay más opciones al bajar */
.category-menu-nav-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to bottom, rgba(40, 40, 40, 0), rgba(40, 40, 40, 0.9));
    pointer-events: none;
}

@media (max-width: 768px) {
    .category-menu-btn {
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1100;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #282828;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }

    .category-menu-btn span {
        width: 22px;
        height: 2.5px;
        background: #ffffff;
        border-radius: 2px;
        display: block;
    }

    /* Cuando el carrito está activo, sube el botón y el modal */
    .cart-summary-bar.active ~ .category-menu-btn {
        bottom: 100px;
    }

    .cart-summary-bar.active ~ .category-menu-modal {
        bottom: 168px;
    }
}