/* ==========================================================================
   MAKANAK COFFEE SHOP - DIGITAL MENU WEBAPP
   Palette: Deep Emerald (#0D4A38), Gold Accent (#D4AF37), Clean White (#FFFFFF)
   Style: Minimalist Premium App - Light Mode Only
   ========================================================================== */

:root {
    --brand-primary: #0D4A38;
    --brand-primary-dark: #072C21;
    --brand-primary-light: #16654F;
    --brand-primary-soft: #E8F4F0;
    --brand-primary-ghost: #F2F8F5;
    --brand-gold: #C59B27;
    --brand-gold-soft: #FBF4DE;
    --text-primary: #121820;
    --text-secondary: #5A6571;
    --text-muted: #8E98A0;
    --bg-main: #F8FAF9;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --border-subtle: #E8ECEB;
    --border-card: #ECEFEB;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-pill: 9999px;
    --shadow-subtle: 0 2px 8px rgba(13, 74, 56, 0.04);
    --shadow-card: 0 4px 16px rgba(13, 74, 56, 0.06);
    --shadow-elevated: 0 10px 30px rgba(13, 74, 56, 0.12);
    --shadow-bottom-nav: 0 8px 32px rgba(13, 74, 56, 0.16);
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --safe-bottom: env(safe-area-inset-bottom, 16px);
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-primary);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

/* ==========================================================================
   DESKTOP SCREEN GATEWAY (NO SIMULATOR - ONLY QR TO REDIRECT TO MOBILE)
   ========================================================================== */
#desktop-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #F8FAF9 0%, #EDF3F0 100%);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

@media (min-width: 769px) {
    #desktop-overlay {
        display: flex;
    }
    #mobile-app-root {
        display: none !important;
    }
}

.desktop-card {
    background: #FFFFFF;
    max-width: 540px;
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(13, 74, 56, 0.12);
    border: 1px solid var(--border-subtle);
    padding: 48px 40px;
    text-align: center;
    animation: fadeUp 0.5s ease-out;
}

.desktop-logo-wrap {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(13, 74, 56, 0.15);
    border: 3px solid #FFFFFF;
}

.desktop-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.desktop-brand-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--brand-primary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.desktop-brand-sub {
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--brand-gold);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 24px;
}

.desktop-badge-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
}

.desktop-qr-box {
    background: #FFFFFF;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    border: 2px dashed var(--brand-primary-light);
    display: inline-block;
    margin-bottom: 24px;
}

.desktop-qr-box canvas, .desktop-qr-box img {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.desktop-instruct-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.desktop-instruct-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.desktop-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.desktop-step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 150px;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.step-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.desktop-location-bar {
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-muted);
}

.desktop-location-bar strong {
    color: var(--brand-primary);
}

/* ==========================================================================
   MOBILE APP SHELL (< 768px)
   ========================================================================== */
#mobile-app-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    background: #FFFFFF;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.04);
    padding-bottom: 110px; /* Space for bottom floating bar */
}

/* App Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.header-brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(13, 74, 56, 0.15);
    flex-shrink: 0;
}

.header-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
}

.header-brand-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--brand-primary);
    text-transform: uppercase;
    line-height: 1.1;
}

.header-brand-sub {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--brand-gold);
    font-weight: 700;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-primary-ghost);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid var(--border-subtle);
}

.header-btn:active {
    transform: scale(0.92);
    background: var(--brand-primary-soft);
}

/* Modality Selector (En la Mesa / A Domicilio) */
.modality-bar {
    padding: 10px 18px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-subtle);
}

.modality-toggle-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-main);
    padding: 4px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
}

.modality-pill {
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modality-pill.active {
    background: var(--brand-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(13, 74, 56, 0.2);
}

.modality-pill svg {
    width: 16px;
    height: 16px;
}

/* Search Bar (Collapsible / Expandable) */
.search-container {
    padding: 10px 18px 0;
    display: none;
    animation: fadeIn 0.2s ease;
}

.search-container.open {
    display: block;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-left {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 42px;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: var(--brand-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(13, 74, 56, 0.1);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    padding: 4px;
    display: none;
}

.search-clear-btn.visible {
    display: block;
}

/* ==========================================================================
   HERO BANNER CAROUSEL (DISHES HIGHLIGHT)
   ========================================================================== */
.hero-carousel-wrap {
    padding: 16px 18px 6px;
    overflow: hidden;
    position: relative;
}

.hero-slider-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.hero-slider-track::-webkit-scrollbar {
    display: none;
}

.hero-card {
    flex: 0 0 88%;
    scroll-snap-align: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5FAF7 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 16px;
    min-height: 175px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hero-card:active {
    transform: scale(0.98);
}

.hero-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 8px;
}

.hero-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.2;
    margin-bottom: 6px;
    max-width: 60%;
}

.hero-sub {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 60%;
    margin-bottom: 12px;
}

.hero-action-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.hero-card-img-wrap {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-card-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(13, 74, 56, 0.15));
}

.hero-dots-wrap {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-subtle);
    transition: all 0.2s ease;
}

.hero-dot.active {
    width: 20px;
    border-radius: var(--radius-pill);
    background: var(--brand-primary);
}

/* ==========================================================================
   CATEGORY BAR (ICONS ONLY + HORIZONTAL SCROLL)
   ========================================================================== */
.categories-nav-sticky {
    position: sticky;
    top: 69px;
    z-index: 90;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
}

.categories-scroll-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.categories-scroll-track::-webkit-scrollbar {
    display: none;
}

.category-icon-pill {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-main);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 68px;
}

.category-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: var(--brand-primary);
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.category-icon-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Category Pill Active */
.category-icon-pill.active {
    background: var(--brand-primary);
    color: #FFFFFF;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 14px rgba(13, 74, 56, 0.2);
    transform: translateY(-1px);
}

.category-icon-pill.active .category-icon-box {
    background: #FFFFFF;
    color: var(--brand-primary);
}

/* ==========================================================================
   CATEGORY BANNERS (BETWEEN CATEGORIES)
   ========================================================================== */
.category-divider-banner {
    margin: 32px 18px 16px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border-radius: var(--radius-lg);
    color: #FFFFFF;
    padding: 22px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(13, 74, 56, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-divider-banner::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -40px;
    right: -30px;
    pointer-events: none;
}

.category-divider-content {
    position: relative;
    z-index: 2;
    max-width: 65%;
}

.category-divider-tag {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-gold);
    display: inline-block;
    margin-bottom: 4px;
}

.category-divider-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.category-divider-desc {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.4;
    color: #EDF3F0;
}

.category-divider-img-wrap {
    width: 95px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}

.category-divider-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
}

/* ==========================================================================
   MENU SECTION & ITEM CARDS
   ========================================================================== */
.menu-section {
    padding: 10px 18px 20px;
}

.section-header-compact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-left: 2px;
}

.section-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.section-counter {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.items-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Dish Item Card - Clean White Background */
.dish-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-subtle);
    padding: 16px;
    display: flex;
    gap: 14px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.dish-card:active {
    transform: scale(0.985);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dish-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dish-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.dish-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.dish-card-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.dish-card-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: -0.3px;
}

.dish-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    margin-left: 6px;
}

.dish-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.fav-btn.active {
    background: #FFE4E8;
    border-color: #FDA4AF;
    color: #E11D48;
}

.fav-btn:active {
    transform: scale(0.85);
}

.add-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(13, 74, 56, 0.2);
    transition: all 0.2s ease;
}

.add-btn:active {
    transform: scale(0.9);
}

/* Image on clean white background */
.dish-card-image-wrap {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
    align-self: center;
}

.dish-card-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Card when NO IMAGE EXISTS (clean minimalist style) */
.dish-card.no-image {
    padding: 16px 18px;
    border-left: 3px solid var(--brand-primary);
}

.dish-card.no-image .dish-card-desc {
    -webkit-line-clamp: 3;
}

/* ==========================================================================
   BOTTOM APP NAVIGATION BAR
   "la barra de menu inferior debe tener bordes redondeados, a medida que
    voy seleccionando un item del menu debe encerrarse en un circulo del color
    de la marca"
   ========================================================================== */
.bottom-app-bar-wrap {
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    z-index: 500;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
}

.bottom-app-bar {
    pointer-events: auto;
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-bottom-nav);
    border: 1px solid rgba(13, 74, 56, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 12px;
}

.nav-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    flex: 1;
}

/* The icon circle container */
.nav-tab-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: transparent;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.nav-tab-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

/* Active State: "debe encerrarse en un circulo del color de la marca" */
.nav-tab-item.active .nav-tab-icon-circle {
    background: var(--brand-primary);
    color: #FFFFFF;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 16px rgba(13, 74, 56, 0.35);
}

.nav-tab-item.active .nav-tab-label {
    color: var(--brand-primary);
    font-weight: 800;
}

/* Badge for Cart Item Count */
.nav-cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--brand-gold);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: none;
}

.nav-cart-badge.visible {
    display: flex;
}

/* ==========================================================================
   MODAL / BOTTOM SHEET (PRODUCT DETAIL & OPTIONS)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 74, 56, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
    animation: fadeIn 0.25s ease-out;
}

.bottom-sheet {
    background: #FFFFFF;
    width: 100%;
    max-width: 480px;
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    max-height: 88vh;
    overflow-y: auto;
    padding: 16px 20px calc(24px + var(--safe-bottom));
    position: relative;
    box-shadow: var(--shadow-elevated);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-drag-handle {
    width: 40px;
    height: 4px;
    border-radius: var(--radius-pill);
    background: var(--border-subtle);
    margin: 0 auto 16px;
}

.sheet-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-main);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sheet-image-box {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.sheet-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sheet-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 6px;
}

.sheet-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.sheet-option-group {
    margin-bottom: 20px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
}

.sheet-option-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.sheet-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-chip {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-chip.selected {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #FFFFFF;
}

.sheet-quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-main);
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qty-val {
    font-size: 15px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.btn-add-sheet {
    width: 100%;
    padding: 14px 20px;
    background: var(--brand-primary);
    color: #FFFFFF;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 20px rgba(13, 74, 56, 0.25);
    transition: all 0.2s ease;
}

.btn-add-sheet:active {
    transform: scale(0.98);
}

/* ==========================================================================
   VIEWS: FAVORITOS, PEDIDO (CART), UBICACIÓN
   ========================================================================== */
.app-view {
    display: none;
    padding: 16px 18px 24px;
    animation: fadeIn 0.25s ease;
}

.app-view.active {
    display: block;
}

.view-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.view-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: 0.5px;
}

.view-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.empty-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto 20px;
}

.btn-primary-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-primary);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(13, 74, 56, 0.2);
}

/* Cart Items & Checkout */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.cart-item-row {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-item-variant {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-item-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--brand-primary);
    margin-top: 2px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-del-btn {
    color: #EF4444;
    padding: 6px;
}

/* Order Form */
.checkout-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-card);
    padding: 18px;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--brand-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(13, 74, 56, 0.1);
}

/* Order Summary Box */
.order-summary-box {
    background: var(--brand-primary-ghost);
    border: 1px solid var(--brand-primary-soft);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.summary-row.total-row {
    border-top: 1px dashed var(--brand-primary-light);
    padding-top: 10px;
    margin-top: 10px;
    font-size: 17px;
    font-weight: 800;
    color: var(--brand-primary);
}

.btn-whatsapp-confirm {
    width: 100%;
    padding: 16px 24px;
    background: #25D366;
    color: #FFFFFF;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.2s ease;
}

.btn-whatsapp-confirm:active {
    transform: scale(0.98);
}

/* Ubicación & Info Card */
.info-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-card);
    padding: 20px;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item:first-child {
    padding-top: 0;
}

.info-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-gold);
    letter-spacing: 1px;
}

.info-desc {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.info-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.info-action-btn {
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.info-action-btn:active {
    background: var(--brand-primary-soft);
}

/* Toast Notification */
.toast-notice {
    position: fixed;
    top: 75px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--brand-primary-dark);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
