:root {
    --primary: #2D6848;
    --primary-light: #A4D857;
    --primary-dark: #133234;
    --primary-gradient: linear-gradient(135deg, #2D6848, #A4D857);
    --bg-light: #F4F7F4;
    --text-dark: #1a2e1a;
    --text-muted: #6b7f6b;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    padding-top: var(--safe-area-top);
    padding-bottom: calc(100px + var(--safe-area-bottom));
}

/* HEADER URBAN EATS STYLE */
.restaurant-header {
    background: var(--primary-dark);
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(19,50,52,0.3);
    margin-bottom: 0;
    overflow: hidden;
}

.header-banner {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    filter: brightness(0.45) saturate(0.8);
}

/* Gradiente verde sobre el banner */
.restaurant-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(19,50,52,0.6) 0%,
        rgba(19,50,52,0.85) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.share-btn-top {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(164,216,87,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(164,216,87,0.3);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

/* Logo centrado sobre el banner */
.header-logo-container {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    margin-top: 0;
}

.header-logo-container::before {
    display: none;
}

.restaurant-logo {
    width: auto;
    height: 110px;
    max-width: 260px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6)) brightness(1.1);
    border: none;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.restaurant-logo:hover {
    transform: scale(1.04);
}

/* Info strip below banner */
.header-body {
    text-align: center;
    padding: 14px 20px 16px;
    background: var(--primary-dark);
    position: relative;
    z-index: 3;
    border-bottom: 1px solid rgba(164,216,87,0.15);
}

.restaurant-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.restaurant-address {
    font-size: 0.8rem;
    color: rgba(229,220,204,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 0;
}

.restaurant-address i { color: #A4D857; }

.whatsapp-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.header-info-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px 0;
    background: var(--primary-dark);
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
    color: rgba(229,220,204,0.8);
}

.header-info-left {
    display: flex;
    gap: 18px;
    color: rgba(229,220,204,0.75);
}

.header-info-left span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-info-left strong {
    color: #fff;
}

.info-modal-btn {
    background: rgba(164,216,87,0.12);
    border: 1px solid rgba(164,216,87,0.3);
    padding: 7px 14px;
    border-radius: var(--radius-md);
    color: #A4D857;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.info-modal-btn:hover {
    background: rgba(164,216,87,0.2);
    color: #fff;
}

/* Service Info Modal Styles */
.service-type-box {
    border: 1px solid #edf2f7;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    background: var(--bg-light);
    overflow: hidden;
}

.service-type-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--white);
    border-bottom: 1px solid #edf2f7;
    align-items: center;
}

.service-type-details {
    padding: 12px 15px;
    font-size: 0.85rem;
}

.service-type-details p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-type-details p:last-child {
    margin-bottom: 0;
}

.text-danger {
    color: #E53E3E !important;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.schedule-item.schedule-closed {
    background: #EBF8FF;
    color: #3182CE;
}

.schedule-item.schedule-closed span:last-child {
    color: #3182CE;
    font-weight: 600;
}

/* Main Content Area */
.main-content {
    margin: 40px auto;
    padding: 0 20px;
    max-width: 1200px;
}

/* SEARCH BAR */
.search-bar-container {
    margin: 0 auto 30px;
    max-width: 600px;
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(236, 122, 15, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.1rem;
}

/* CATEGORIES */
.categories-wrapper {
    margin: 0 auto 30px;
    position: sticky;
    top: 0;
    padding: 15px 40px 15px 40px;
    max-width: 1000px;
    z-index: 100;
    background: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.categories-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Safari smooth scroll */
}

.categories-list::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.category-pill {
    padding: 10px 22px;
    background: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-dark);
}

.category-pill:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.category-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(45,104,72,0.35);
}

.category-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
    color: var(--text-dark);
    transition: all 0.2s;
}

.category-nav-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.category-nav-left {
    left: 0;
}

.category-nav-right {
    right: 0;
}

/* =====================================================
   MENU LAYOUT: products + sidebar cart
   ===================================================== */
.menu-layout-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-main-col {
    flex: 1;
    min-width: 0;
}

.menu-sidebar-col {
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .menu-sidebar-col {
        display: none;
    }

    .menu-layout-container {
        padding: 0 15px;
    }
}

/* =====================================================
   SIDEBAR CART
   ===================================================== */
.sidebar-cart-container {
    position: sticky;
    top: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.sidebar-cart-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #1a202c;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-cart-content {
    max-height: 400px;
    overflow-y: auto;
}

.empty-cart-msg {
    padding: 40px 0;
    text-align: center;
    color: #a0aec0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f7fafc;
}

.btn-remove-sm {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 5px;
}

.sidebar-cart-footer {
    padding-top: 15px;
    border-top: 1px solid #edf2f7;
    margin-top: 10px;
}

/* =====================================================
   PRODUCT GRID — 2 columns on desktop
   ===================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   PRODUCT CARD — clean & professional
   ===================================================== */
.product-card,
.product-card.vertical-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 0;
    gap: 0;
}

@media (max-width: 600px) {

    .product-grid {
        grid-template-columns: 1fr;
        gap: 0;
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }

    .product-card.vertical-card {
        flex-direction: row;
        height: auto;
        align-items: flex-start;
        padding: 16px 14px;
        gap: 14px;
        position: relative;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        box-shadow: none;
        margin-bottom: 0;
        background: #fff;
    }

    .product-card.vertical-card:last-child {
        border-bottom: none;
    }

    .product-card.vertical-card:hover {
        transform: none;
        box-shadow: none;
    }

    .product-img-container {
        width: 85px !important;
        height: 85px !important;
        min-height: 85px !important;
        flex-shrink: 0;
        border-radius: 10px;
        box-shadow: none;
        background: #1a1a1a;
        align-self: flex-start;
    }

    .product-info-vertical {
        padding: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 3px;
        min-width: 0;
    }

    .section-title {
        margin: 20px 0 12px 2px;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--text-dark);
    }

    .categories-wrapper {
        padding: 10px 15px;
        margin-bottom: 15px;
        border-radius: 0 0 16px 16px;
        top: -1px;
    }

    .product-title {
        font-size: 0.95rem;
        font-weight: 700;
        margin-bottom: 0;
        line-height: 1.3;
        color: #1a1a1a;
    }

    .product-desc {
        display: block;
        font-size: 0.82rem;
        color: #6b7280;
        line-height: 1.45;
        margin-top: 1px;
        margin-bottom: 4px;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        overflow: visible;
    }

    .product-desc i {
        display: none;
    }

    .product-price {
        font-size: 0.95rem;
        margin-bottom: 0;
        color: #1a1a1a;
        font-weight: 700;
        margin-top: auto;
    }

    /* Hide the + button, whole card is tappable */
    .btn-agregar {
        display: none !important;
    }

    .menu-layout-container {
        padding: 0 12px;
    }
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.product-img-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #0f172a; /* Fondo oscuro para que la foto resalte */
}

.product-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
    pointer-events: none;
}

.product-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-top {
    transform: scale(1.05);
}

.product-info-vertical {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 3px 0;
}

.product-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin: 0 0 6px 0;
}

.product-desc {
    font-size: 0.8rem;
    color: #718096;
    line-height: 1.4;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-agregar {
    background: linear-gradient(135deg, #2D6848, #A4D857);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: filter 0.2s;
}

.btn-agregar:hover {
    filter: brightness(1.1);
}



/* ========================================== */
/* STICKY MOBILE CART FORCED                  */
/* ========================================== */
@media (max-width: 991px) {
    body {
        padding-bottom: 110px !important;
    }

    #floatingCart {
        position: fixed !important;
        bottom: calc(20px + var(--safe-area-bottom)) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        width: 90% !important;
        max-width: 400px !important;
        height: 65px !important;
        background: #111111 !important;
        color: #FFFFFF !important;
        border-radius: 35px !important;
        z-index: 99999 !important;
        display: none;
        align-items: center !important;
        padding: 0 25px !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
        justify-content: space-between !important;
        border: 2px solid var(--primary) !important;
    }

    body.modal-open #floatingCart {
        display: none !important;
    }

    body.modal-open {
        overflow: hidden !important;
    }

    #floatingCart.visible {
        display: flex !important;
        animation: slideUpForced 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
    }

    .cart-qty {
        background: var(--primary) !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        border: 2px solid #111111 !important;
    }

    .cart-text {
        font-weight: 700 !important;
        font-size: 1.05rem !important;
        text-transform: uppercase !important;
        margin-left: 10px !important;
    }

    .cart-total {
        font-weight: 800 !important;
        font-size: 1.25rem !important;
        color: var(--primary) !important;
    }
}

@keyframes slideUpForced {
    from {
        transform: translateY(150px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* POPULAR BADGE PREMIUM */
.popular-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #2D6848, #A4D857);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(45,104,72,0.45);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.5s ease-out;
}

.popular-badge i {
    color: #FFD700;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .popular-badge {
        top: 4px;
        left: 4px;
        width: 24px;
        height: 24px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        font-size: 0;
        /* Hide "POPULAR" text */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

    .popular-badge i {
        font-size: 0.8rem;
        margin: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sidebar Cart Fix */
@media (min-width: 992px) {
    .menu-layout-container {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 30px;
        padding: 0 40px;
    }

    .menu-sidebar-col {
        position: sticky;
        top: 100px;
        height: calc(100vh - 120px);
    }

    .floating-cart {
        display: none !important;
    }
}

/* Section Titles */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 25px 0 15px 0;
    color: var(--text-dark);
}

/* ==========================================
   MODALS AND OVERLAYS
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 25px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    z-index: 10;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.modal-img,
.modal-img-placeholder {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.modal-img-placeholder {
    background: #f0f0f0;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

/* Radio & Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.radio-label:has(input:checked),
.checkbox-label:has(input:checked) {
    border-color: var(--primary);
    background: rgba(236, 122, 15, 0.05);
}

.radio-label input,
.checkbox-label input {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.checkbox-label span {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.req-badge {
    background: #FFF3E0;
    color: #E65100;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Quantity Control */
.qty-control {
    display: inline-flex;
    align-items: center;
    background: #F1F5F9;
    border-radius: var(--radius-full);
    padding: 5px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.qty-show {
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Modal Footer Add Button */
.modal-footer {
    padding: 15px 20px;
    background: var(--white);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #EDF2F7;
}

.btn-primary {
    width: 100%;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Loading State */
.modal-content.loading {
    min-height: 300px;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: var(--primary);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* CART MODAL SPECIFICS */
.cart-header {
    padding: 20px;
    border-bottom: 1px solid #EDF2F7;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.cart-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px dashed #E2E8F0;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    margin: 0 0 4px 0;
    font-size: 1rem;
}

.cart-item-desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cart-item-price {
    font-weight: 600;
    margin-top: 5px;
}

.icon-btn-danger {
    background: #FFF5F5;
    color: #E53E3E;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-summary {
    background: #F7FAFC;
    padding: 15px;
    border-radius: var(--radius-md);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.summary-line:last-child {
    margin-bottom: 0;
}

.font-bold {
    font-weight: 700;
    font-size: 1.1rem;
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--text-muted);
}



.search-bar-container {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #A0AEC0;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border-radius: var(--radius-full);
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(236, 122, 15, 0.2);
}



/* ==========================================
   PRO MODAL DESIGN
   ========================================== */
.pro-modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    max-height: 90vh;
    overflow: hidden;
}

/* ══ MOBILE: bottom sheet full-width ══ */
@media (max-width: 600px) {
    .pro-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 22px 22px 0 0 !important;
        max-height: 88vh !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
    }
    /* Overlay alinea al fondo en móvil */
    .modal-overlay {
        align-items: flex-end !important;
    }
}

/* Drag handle — solo visible en móvil */
.pro-modal-drag-handle {
    display: none;
}
@media (max-width: 600px) {
    .pro-modal-drag-handle {
        display: block;
        width: 40px;
        height: 4px;
        background: #e2e8f0;
        border-radius: 4px;
        margin: 10px auto 4px;
        flex-shrink: 0;
    }
    .pro-modal-header {
        padding: 10px 16px 8px !important;
    }
    .pro-modal-top-title {
        font-size: 0.95rem !important;
    }
    .pro-modal-body {
        padding: 6px 16px 12px !important;
        gap: 10px !important;
    }
    .pro-modal-section {
        margin-bottom: 14px !important;
    }
    .pro-modal-main-price {
        font-size: 1.5rem !important;
        margin-bottom: 0 !important;
    }
    .pro-modal-footer {
        padding: 10px 16px !important;
        padding-bottom: max(20px, env(safe-area-inset-bottom, 20px)) !important;
    }
    .btn-pro-submit {
        padding: 14px !important;
        font-size: 1rem !important;
    }
    .pro-qty-btn {
        width: 36px !important;
        height: 36px !important;
    }
}

.pro-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 15px;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    border-bottom: 1px solid #f1f5f9;
}

.pro-modal-top-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #133234;
    margin: 0;
    letter-spacing: -0.5px;
}

.pro-modal-close-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4a5568;
    transition: background 0.2s;
}

.pro-modal-close-btn:hover {
    background: #e2e8f0;
}

.pro-modal-body {
    padding: 10px 20px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Allow body to scroll, footer stays fixed */
    flex: 1;
    min-height: 0;
}

.pro-modal-img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 16px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.03);
}

@media (max-width: 600px) {
    .pro-modal-img {
        height: auto;
        max-height: 240px;
        object-fit: contain;
    }
    .pro-modal-img-placeholder {
        height: 120px !important;
        font-size: 2rem !important;
    }
}

.pro-modal-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #133234 0%, #2D6848 60%, #A4D857 100%);
    border-radius: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.85;
}

.pro-modal-img-placeholder::after {
    content: '🍽️';
}

.pro-modal-desc {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 15px;
    line-height: 1.5;
}

.pro-modal-main-price {
    font-size: 1.85rem;
    font-weight: 900;
    color: #2D6848;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pro-modal-main-price::before {
    content: 'Total:';
    font-size: 0.85rem;
    font-weight: 600;
    color: #a0aec0;
    text-transform: uppercase;
}

.pro-modal-section {
    margin-bottom: 25px;
}

.pro-modal-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    color: #a0aec0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pro-options-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pro-option-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.pro-option-box:hover {
    background: #edf2f7;
}

.pro-option-box:has(input:checked) {
    border-color: #2D6848;
    background: #f0f7f0;
    box-shadow: 0 0 0 2px rgba(45,104,72,0.12);
}

.pro-option-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: #2D3748;
}

.pro-option-price {
    color: #2D6848;
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: auto;
    margin-right: 10px;
}

.pro-option-box input[type="radio"],
.pro-option-box input[type="checkbox"] {
    accent-color: #2D6848;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.qty-section-pro {
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
}

.pro-qty-control {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pro-qty-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
}

.pro-qty-show {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2d3748;
}

.pro-modal-footer {
    padding: 12px 20px;
    /* Safe area: no queda tapado por la barra de navegación del teléfono */
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
    border-top: 1px solid #edf2f7;
    background: #fff;
    flex-shrink: 0;
    /* Siempre visible — no scrollea con el body */
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.btn-pro-submit {
    width: 100%;
    background: linear-gradient(135deg, #2D6848 0%, #A4D857 100%);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(45,104,72,0.35);
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}

.btn-pro-submit:hover {
    filter: brightness(1.08);
    box-shadow: 0 10px 28px rgba(45,104,72,0.5);
    transform: translateY(-1px);
}

/* =====================================================
   COLLAPSIBLE SECTIONS & OBLIGATORIO BADGE
   ===================================================== */
.pro-collapsible {
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.pro-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.pro-collapse-icon {
    color: #a0aec0;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.pro-collapsible.collapsed .pro-collapse-icon {
    transform: rotate(180deg);
}

.pro-section-body {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.pro-collapsible.collapsed .pro-section-body {
    max-height: 0;
}

.pro-obligatorio-badge {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid #a0aec0;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a5568;
    background: #fff;
}

/* Horizontal option cards for obligatorio */
.pro-options-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

.pro-option-card {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 90px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.pro-option-card input[type="radio"] {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
}

@media (max-width: 600px) {
    .pro-modal-content {
        max-height: 95vh;
        border-radius: 25px 25px 0 0;
        transform: translateY(10px);
    }

    .pro-modal-img {
        height: auto;
        max-height: 240px;
        object-fit: contain;
        border-radius: 20px;
    }

    .pro-option-card {
        min-height: 70px;
        padding: 12px 8px;
    }

    .pro-option-card-name {
        font-size: 0.8rem;
    }

    .pro-option-card-price {
        font-size: 0.8rem;
    }

    .pro-modal-body {
        padding: 10px 15px 40px;
        gap: 20px;
    }

    .pro-modal-section {
        margin-bottom: 15px;
    }

    /* Retina display optimization */
    img {
        image-rendering: -webkit-optimize-contrast;
        -ms-interpolation-mode: bicubic;
    }

    .pro-options-horizontal {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .pro-obligatorio-badge {
        padding: 3px 10px;
        font-size: 0.7rem;
        border-color: #f59e0b;
        color: #b45309;
        background: #fffbeb;
    }

    .pro-modal-subtitle {
        font-size: 0.75rem;
        max-width: 180px;
        line-height: 1.3;
    }

    .pro-addon-simple-row {
        padding: 8px 0;
    }

    .pro-addon-name {
        font-size: 0.9rem;
    }
}

.pro-option-card:hover {
    border-color: #2D6848;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pro-option-card:has(input:checked) {
    border-color: #2D6848;
    background: #fffdf5;
    box-shadow: 0 0 0 4px rgba(45, 104, 72, 0.1);
}

.pro-option-card input[type="checkbox"],
.pro-option-card input[type="radio"] {
    accent-color: #2D6848;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-bottom: 5px;
}

.pro-option-card:hover {
    border-color: #2D6848;
    background: #fffdf5;
}

.pro-option-card:has(input:checked) {
    border-color: #2D6848;
    background: #fffdf5;
    box-shadow: 0 0 0 3px rgba(45, 104, 72, 0.15);
}

.pro-option-card input[type="checkbox"],
.pro-option-card input[type="radio"] {
    accent-color: #2D6848;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.pro-option-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2d3748;
}

.pro-option-card-price {
    color: #2D6848;
    font-weight: 700;
    font-size: 0.9rem;
}

/* New compact Addon Styles */
.pro-addon-simple-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.pro-addon-simple-row:last-child {
    border-bottom: none;
}

.pro-addon-info {
    display: flex;
    flex-direction: column;
}

.pro-addon-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2d3748;
}

.pro-addon-price {
    font-size: 0.85rem;
    color: #2D6848;
    font-weight: 600;
}

.pro-addon-plus-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s;
}

.addon-cb:checked+.pro-addon-plus-btn {
    background: #2D6848;
    color: #fff;
    transform: scale(1.1);
}

.addon-cb:checked+.pro-addon-plus-btn i::before {
    content: "\f00c";
    /* FontAwesome Check icon */
}

/* Ensure floating cart is truly top-level */
#floatingCart {
    z-index: 10000 !important;
}

/* Modal tweaks for mobile scrolling */
.pro-modal-body {
    -webkit-overflow-scrolling: touch;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ZOOM BOTÓN SOBRE IMAGEN */
.product-img-zoom-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    z-index: 4;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.25s ease-in-out;
}

.product-img-container:hover .product-img-zoom-btn {
    opacity: 1;
    transform: scale(1);
}

/* IMAGE LIGHTBOX MODAL */
.image-lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.image-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lightboxZoom 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes lightboxZoom {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.image-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.image-lightbox-close:hover {
    background: #A4D857;
    color: #000;
}

.image-lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

#imageLightboxTitle {
    color: #fff;
    margin-top: 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}