/* Customer-facing Digital Menu Styles (Mobile First, High-Performance) */

.menu-app {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--bg-page);
    position: relative;
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 12px));
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.35);
    transition: max-width var(--duration-normal, 250ms) ease;
}

/* 0. Floating / Header Language Switcher & Top Utility Buttons */
.lang-switch-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.top-util-btn,
.lang-toggle-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    color: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    user-select: none;
    text-decoration: none;
    overflow: hidden;
}

.top-util-btn:hover,
.lang-toggle-btn:hover {
    transform: scale(1.08);
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.top-util-btn:active,
.lang-toggle-btn:active {
    transform: scale(0.92);
}

.lang-flag-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.lang-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 180ms ease;
    user-select: none;
}

.lang-btn .flag-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.lang-btn:hover {
    color: #FFFFFF;
}

.lang-btn.active {
    background: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   1. CABECERA DE PERFIL MINIMALISTA E INTEGRADA (Cover, Avatar y Acciones)
   ========================================================================== */

.fb-profile-header {
    width: 100%;
    position: relative;
    background: var(--bg-surface, #0f172a);
    border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    display: flex;
    flex-direction: column;
}

/* 1.1 Cover Banner Canvas */
.fb-cover-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Scrim sutil integrado con degradado suave hacia la superficie */
.fb-cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0) 50%,
        var(--bg-surface, #0f172a) 100%
    );
    pointer-events: none;
}

/* Barra superior flotante de utilidades */
.fb-cover-top-bar {
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* Indicador de estado minimalista (legacy support) */
.fb-live-badge {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.60);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-full, 9999px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    user-select: none;
}

.fb-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
    animation: fbPulse 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes fbPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.55;
        transform: scale(0.85);
    }
}

.fb-live-text {
    font-family: var(--font-body, 'Outfit', 'Inter', sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary, #F7F4EE);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

/* Acciones flotantes superiores (Compartir e Idioma) */
.fb-cover-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.fb-round-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border: 1px solid color-mix(in srgb, var(--text-primary, #F7F4EE) 16%, transparent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: var(--text-primary, #F7F4EE);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
                background 160ms ease,
                border-color 160ms ease,
                box-shadow 160ms ease,
                color 160ms ease;
    user-select: none;
    text-decoration: none;
    overflow: hidden;
}

.fb-round-icon-btn [data-lucide],
.fb-round-icon-btn svg {
    color: currentColor;
    transition: color 160ms ease, transform 160ms ease;
}

.fb-round-icon-btn:hover {
    transform: scale(1.08) translateY(-1px);
    background: color-mix(in srgb, var(--color-accent) 22%, rgba(15, 23, 42, 0.90));
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--color-accent) 35%, rgba(0, 0, 0, 0.45));
}

.fb-round-icon-btn:hover [data-lucide],
.fb-round-icon-btn:hover svg {
    color: var(--color-accent);
    transform: scale(1.1);
}

.fb-round-icon-btn:active {
    transform: scale(0.93);
}

.lang-switch-container {
    display: inline-flex;
    align-items: center;
}

.lang-flag-img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    pointer-events: none;
}

/* 1.2 Cuerpo Integrado de Perfil (Avatar + Metadatos) */
.fb-profile-body {
    position: relative;
    padding: 0 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fb-identity-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: -52px;
    z-index: 5;
}

.fb-avatar-container {
    width: 104px;
    height: 104px;
    min-width: 104px;
    min-height: 104px;
    border-radius: 50%;
    background: var(--bg-surface, #0f172a);
    border: 3px solid var(--bg-surface, #0f172a);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-subtle, rgba(255, 255, 255, 0.08));
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-avatar-container .restaurant-logo,
.fb-avatar-container .fb-avatar-img,
.fb-avatar-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.fb-meta-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fb-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fb-name {
    font-family: var(--font-heading, 'Playfair Display', 'Plus Jakarta Sans', serif) !important;
    font-size: 1.45rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.22;
    margin: 0;
    color: var(--text-primary, #F7F4EE) !important;
    text-shadow: none !important;
    -webkit-text-fill-color: initial !important;
    background: none !important;
}

.fb-meta-subline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.fb-rating-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: var(--rating-pill-bg, rgba(245, 158, 11, 0.10));
    border: 1px solid var(--rating-pill-border, rgba(245, 158, 11, 0.22));
    border-radius: var(--radius-full, 9999px);
    text-decoration: none;
    font-family: var(--font-body, 'Outfit', 'Inter', sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rating-pill-text, #FBBF24);
    line-height: 1.3;
    transition: background 160ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 160ms ease,
                transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fb-rating-link:hover {
    border-color: var(--rating-star-color, #F59E0B);
    transform: translateY(-1px);
    text-decoration: none;
}

.fb-stars {
    font-weight: 700;
    color: var(--rating-star-color, #F59E0B);
}

.fb-reviews-count {
    color: var(--text-secondary, #C4B8AF);
    opacity: 0.85;
    font-weight: 500;
    font-size: 0.72rem;
}

.fb-tagline {
    font-family: var(--font-body, 'Outfit', 'Inter', sans-serif) !important;
    font-size: 0.84rem;
    font-weight: 400;
    color: var(--text-secondary, #C4B8AF) !important;
    line-height: 1.45;
    letter-spacing: 0.005em;
    margin: 0;
    text-shadow: none !important;
}

/* 1.3 Botones de Acción Minimalistas e Integrados */
.fb-actions-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.fb-action-buttons-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.fb-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-full, 9999px);
    font-family: var(--font-body, 'Outfit', 'Inter', sans-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    background: var(--pill-btn-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--pill-btn-border, rgba(255, 255, 255, 0.10));
    color: var(--text-primary, #F7F4EE);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
                background 160ms ease,
                border-color 160ms ease,
                color 160ms ease,
                box-shadow 160ms ease;
}

.fb-action-btn [data-lucide],
.fb-action-btn svg {
    color: var(--text-secondary, #C4B8AF);
    transition: color 160ms ease;
}

.fb-action-btn:hover {
    background: color-mix(in srgb, var(--color-accent) 14%, var(--bg-surface));
    border-color: var(--color-accent);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--color-accent) 24%, transparent);
}

.fb-action-btn:hover [data-lucide],
.fb-action-btn:hover svg {
    color: var(--color-accent);
    transform: scale(1.08);
}

.fb-action-btn:active {
    transform: scale(0.96);
}

.fb-action-btn.fb-action-btn-icon {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

/* WhatsApp Accent Pill: Armonizada con el resto de la interfaz */
.fb-btn-whatsapp {
    background: var(--whatsapp-pill-bg, rgba(16, 185, 129, 0.10));
    border-color: var(--whatsapp-pill-border, rgba(16, 185, 129, 0.25));
    color: var(--whatsapp-pill-text, #34D399);
}

.fb-btn-whatsapp [data-lucide],
.fb-btn-whatsapp svg {
    color: var(--whatsapp-pill-text, #34D399);
    fill: currentColor;
}

.fb-btn-whatsapp:hover {
    background: var(--whatsapp-pill-hover-bg, #059669);
    border-color: var(--whatsapp-pill-hover-bg, #059669);
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
}

.fb-btn-whatsapp:hover [data-lucide],
.fb-btn-whatsapp:hover svg {
    color: #FFFFFF !important;
    fill: currentColor;
    transform: scale(1.08);
}

/* 1.4 Micro-tira de Redes Sociales Integrada */
.fb-social-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.fb-social-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pill-btn-bg, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--pill-btn-border, rgba(255, 255, 255, 0.09));
    color: var(--text-secondary, #C4B8AF);
    text-decoration: none;
    transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
                background 160ms ease,
                border-color 160ms ease,
                color 160ms ease,
                box-shadow 160ms ease;
}

.fb-social-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: fill 160ms ease, transform 160ms ease;
}

.fb-social-icon:hover {
    transform: translateY(-2px) scale(1.05);
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 18%, var(--bg-surface));
    box-shadow: 0 4px 14px color-mix(in srgb, var(--color-accent) 30%, transparent);
}

.fb-social-icon:hover svg {
    fill: var(--color-accent);
    transform: scale(1.1);
}

.promo-share-btn:hover {
    transform: scale(1.08) translateY(-1px);
    background: color-mix(in srgb, var(--color-accent) 22%, rgba(15, 23, 42, 0.90)) !important;
    border-color: var(--color-accent) !important;
    color: var(--color-accent) !important;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--color-accent) 35%, rgba(0, 0, 0, 0.45));
}

.promo-share-btn:hover [data-lucide],
.promo-share-btn:hover svg {
    color: var(--color-accent) !important;
    transform: scale(1.1);
}

/* Legacy Header Classes (Fallback compatibility) */
.restaurant-hero {
    position: relative;
    width: 100%;
    min-height: 230px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 24px 20px;
    overflow: hidden;
}

.restaurant-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0.25) 0%, 
        rgba(0, 0, 0, 0.55) 45%, 
        rgba(0, 0, 0, 0.85) 80%, 
        var(--bg-page) 100%
    );
    pointer-events: none;
}

.restaurant-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.restaurant-meta {
    flex: 1;
    min-width: 0;
    padding-right: 44px;
}

.restaurant-quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-pill-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    min-height: 38px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: #FFFFFF !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: background 150ms ease, transform 150ms var(--ease-spring), border-color 150ms ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-pill-sm:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.btn-pill-icon {
    padding: 8px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    justify-content: center;
    border-radius: 50%;
}

.btn-pill-icon svg {
    display: block;
    flex-shrink: 0;
    transition: transform 150ms ease;
}

.btn-pill-icon:hover svg {
    transform: scale(1.15);
}

.btn-pill-google {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.45);
}

.btn-pill-google:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(245, 158, 11, 0.75);
    transform: translateY(-1px);
}

/* 2. Search & Filter Bar */
.search-container {
    padding: 12px 20px;
    position: relative;
    z-index: 10;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.search-box:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.search-input {
    border: none;
    background: transparent;
    width: 100%;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* 3. Promotional Carousel */
.promo-carousel-wrap {
    padding: 8px 0 16px;
    position: relative;
    overflow: hidden;
}

.promo-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 20px;
    gap: 14px;
}

.promo-track::-webkit-scrollbar {
    display: none;
}

.promo-slide {
    flex: 0 0 88%;
    scroll-snap-align: center;
    position: relative;
    border-radius: var(--radius-lg, 1.25rem);
    overflow: hidden;
    height: 180px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.promo-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms var(--ease-out);
}

.promo-slide:hover .promo-slide-img {
    transform: scale(1.04);
}

.promo-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.65) 45%, rgba(0, 0, 0, 0.25) 80%, rgba(0, 0, 0, 0.15) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px 16px;
}

.promo-badge {
    align-self: flex-start;
    padding: 4px 10px;
    background: var(--color-accent);
    color: #ffffff !important;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.promo-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.95) !important;
    line-height: 1.25;
    margin-bottom: 4px;
}

.promo-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95) !important;
    line-height: 1.35;
}

.promo-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 6px;
}

.promo-price-current {
    font-size: 1.15rem;
    font-weight: 800;
    color: #38BDF8 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.promo-price-old {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: line-through;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9) !important;
}

/* 4. Sticky Category Bar */
.category-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10, 9, 10, 0.86);
    background: color-mix(in srgb, var(--bg-page) 88%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
}

.category-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 20px;
    gap: 8px;
    scroll-behavior: smooth;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    transition: all 180ms var(--ease-spring);
    cursor: pointer;
    user-select: none;
}

.category-pill:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.category-pill.active {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
    box-shadow: 0 4px 14px var(--color-accent-subtle);
    transform: translateY(-1px);
}

.category-pill:active {
    transform: scale(0.96);
}

/* 5. Products Section */
.menu-section {
    padding: 24px 20px 8px;
    scroll-margin-top: 65px;
}

.section-header {
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card Chassis */
.product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 13px 14px;
    gap: 14px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg, 1rem);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 200ms ease,
                box-shadow 220ms ease,
                background-color 200ms ease;
}

/* Card Variants / Themes */
.product-card.card-style-elevated {
    border: 1px solid var(--border-subtle);
    box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}
[data-theme-type="dark"] .product-card.card-style-elevated {
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.38), 0 1px 3px rgba(0, 0, 0, 0.22);
}

.product-card.card-style-bordered {
    border: 1px solid var(--border-subtle) !important;
    box-shadow: none !important;
}

.product-card.card-style-flat {
    border: 1px solid transparent !important;
    box-shadow: none !important;
}

.product-card.card-style-glass {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
}

/* Card Interactive States */
.product-card:hover {
    border-color: var(--color-accent-subtle);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
}
[data-theme-type="dark"] .product-card:hover {
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.product-card.card-style-bordered:hover {
    border-color: var(--color-accent) !important;
    box-shadow: 0 4px 16px var(--color-accent-subtle) !important;
}

.product-card.card-style-flat:hover {
    background: var(--pill-btn-hover-bg) !important;
    border-color: var(--border-subtle) !important;
}

.product-card:active {
    transform: scale(0.985);
}

/* Right Image Column (Square with rounded corners) */
.product-card-img-wrap {
    width: 126px;
    height: 126px;
    min-width: 126px;
    min-height: 126px;
    aspect-ratio: 1 / 1;
    border-radius: calc(var(--radius-lg, 1rem) - 4px);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    align-self: center;
    background: var(--pill-btn-bg, rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

[data-theme-type="light"] .product-card-img-wrap {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Skeleton Shimmer Loading Placeholder */
.product-card-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.8s infinite linear;
    pointer-events: none;
    z-index: 2;
    transition: opacity 300ms ease;
}

[data-theme-type="light"] .product-card-img-wrap::before {
    background: linear-gradient(
        90deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.05) 50%, 
        rgba(0, 0, 0, 0) 100%
    );
    background-size: 200% 100%;
}

.product-card-img-wrap.img-loaded::before {
    opacity: 0;
    animation: none;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: none;
    transform: scale(1.001);
    transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), opacity 250ms ease;
    z-index: 1;
}

.product-card-img.loaded,
.product-card-img-wrap.img-loaded .product-card-img {
    opacity: 1;
    filter: none;
}

.product-card:hover .product-card-img {
    transform: scale(1.06);
}

/* Content Hierarchy */
.product-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    padding: 0;
}

/* Card Layout Variations (Horizontal Split vs Vertical Showcase) */
.product-card.card-layout-horizontal {
    flex-direction: row;
    align-items: center;
    padding: 13px 14px;
    gap: 14px;
}

.product-card.card-layout-horizontal .product-card-body {
    order: 1;
}

.product-card.card-layout-horizontal .product-card-img-wrap {
    order: 2;
}

.product-card.card-layout-horizontal .btn-card-add-corner {
    display: inline-flex;
}

.product-card.card-layout-horizontal .btn-card-add-footer {
    display: none !important;
}

.product-card.card-layout-vertical {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
}

.product-card.card-layout-vertical .product-card-img-wrap {
    order: 1;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 195px !important;
    min-height: 195px !important;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    align-self: stretch;
}

.product-card.card-layout-vertical .btn-card-add-corner {
    display: none !important;
}

.product-card.card-layout-vertical .product-card-body {
    order: 2;
    padding: 15px 16px 16px;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.product-card.card-layout-vertical .product-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    width: 100%;
}

.product-card.card-layout-vertical .product-price-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.product-card.card-layout-vertical .product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.product-card.card-layout-vertical .btn-card-add-footer {
    display: inline-flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
                background-color 180ms ease,
                box-shadow 180ms ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.product-card.card-layout-vertical .btn-card-add-footer svg,
.product-card.card-layout-vertical .btn-card-add-footer i {
    width: 15px;
    height: 15px;
    stroke-width: 2.8;
    color: #ffffff;
}

.product-card.card-layout-vertical .btn-card-add-footer:hover {
    background: var(--color-accent);
    color: #ffffff;
    filter: brightness(1.12);
    transform: scale(1.04);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
}

.product-card.card-layout-vertical .btn-card-add-footer:active {
    transform: scale(0.96);
}

.product-card.card-layout-vertical .btn-card-add-footer.btn-added {
    background: #10B981 !important;
    color: #ffffff !important;
    transform: scale(1.04) !important;
}

.product-card-main {
    min-width: 0;
}

/* Product Pills Container (Badges + Dietary Tags) */
.product-card-pills {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.product-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: var(--radius-full, 9999px);
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    border: 1px solid var(--color-accent-subtle);
    width: fit-content;
    line-height: 1.2;
}

.product-tag-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 2px 7px;
    border-radius: var(--radius-full, 9999px);
    background: var(--pill-btn-bg, rgba(255, 255, 255, 0.05));
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    line-height: 1.2;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.28;
    letter-spacing: -0.015em;
    margin: 0 0 4px 0;
    word-break: break-word;
    transition: color 180ms ease;
}

.product-card:hover .product-name {
    color: var(--color-accent);
}

.product-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.42;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product Card Footer & Lockups */
.product-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 4px;
}

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
}

.product-prev-price {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.65;
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.product-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.product-tags-mini {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.tag-mini {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 7px;
    background: var(--pill-btn-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm, 6px);
    color: var(--text-secondary);
    white-space: nowrap;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

/* Quick Add Button in Corner of Card Image */
.btn-card-add-corner {
    position: absolute;
    bottom: 6px;
    right: 6px;
    z-index: 4;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 50%;
    background: var(--color-accent);
    color: #ffffff;
    border: 2px solid var(--bg-surface);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.32);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
                background-color 180ms ease,
                box-shadow 180ms ease,
                filter 180ms ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.btn-card-add-corner::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
}

.btn-card-add-cart svg,
.btn-card-add-cart i {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
    transition: transform 180ms ease;
    color: #ffffff;
}

.btn-card-add-corner:hover {
    background: var(--color-accent);
    color: #ffffff;
    filter: brightness(1.12);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.42);
    transform: scale(1.1);
}

.btn-card-add-corner:not(.btn-added):hover svg,
.btn-card-add-corner:not(.btn-added):hover i {
    transform: rotate(90deg);
}

.btn-card-add-corner:active {
    transform: scale(0.92);
}

.btn-card-add-corner.btn-added {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #ffffff !important;
    transform: scale(1.15) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45) !important;
}

.btn-card-add-cart.btn-added svg,
.btn-card-add-cart.btn-added i,
.btn-card-add-cart.btn-added:hover svg,
.btn-card-add-cart.btn-added:hover i {
    transform: none !important;
    animation: checkPop 250ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes checkPop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

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

.bottom-sheet {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--bg-surface);
    border-radius: 1.75rem 1.75rem 0 0;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 300ms var(--ease-spring);
    position: relative;
}

.modal-overlay.active .bottom-sheet {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    margin: 12px auto 6px;
}

.sheet-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.sheet-img-wrap {
    width: 100%;
    height: 260px;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.sheet-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.8s infinite linear;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    transition: opacity 250ms ease;
}

.sheet-img-wrap.img-loaded::before {
    opacity: 0;
    animation: none;
}

.sheet-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: none;
    transform: none;
    transition: opacity 300ms ease;
    position: relative;
    z-index: 2;
}

.sheet-img.loaded,
.sheet-img-wrap.img-loaded .sheet-img {
    opacity: 1;
    filter: none;
}

.sheet-body {
    padding: 24px;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.sheet-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.sheet-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-accent);
}

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

.sheet-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.meta-box {
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    padding: 12px 14px;
    border-radius: var(--radius-md);
}

.meta-box-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.meta-box-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tags-section {
    margin-top: 16px;
}

.tags-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-page);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

/* 7. Modal Dialog (WiFi / Info) */
.dialog-box {
    width: 90%;
    max-width: 440px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg, 1.25rem);
    border: 1px solid var(--border-subtle);
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transform: scale(0.95);
    transition: transform 250ms var(--ease-spring);
    margin: auto;
}

.modal-overlay.active .dialog-box {
    transform: scale(1);
}

@media (max-width: 640px) {
    .modal-overlay {
        align-items: flex-end;
    }
    .dialog-box {
        width: 100%;
        max-width: 100%;
        margin-top: auto;
        margin-bottom: 0;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        padding: 20px 20px 32px;
        transform: translateY(30px);
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-overlay.active .dialog-box {
        transform: translateY(0);
    }
}

/* Empty search state */
.empty-search-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* 8. Subtle Discreet Footer */
.menu-saas-footer {
    margin: 32px 20px 20px;
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.saas-discrete-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    transition: all 150ms ease;
    opacity: 0.85;
}

.saas-discrete-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translateY(-1px);
}

.saas-footer-brand {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
}

.saas-footer-brand a {
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 150ms ease;
}

.saas-footer-brand a:hover {
    opacity: 1;
}

.saas-footer-brand strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Share modal channels */
.share-channel-btn {
    transition: transform 150ms var(--ease-spring);
}

.share-channel-btn:hover {
    transform: translateY(-2px);
}

.share-channel-btn:active {
    transform: scale(0.95);
}

.btn-pill-share {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-pill-share:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Accessible focus rings */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--color-accent) !important;
    outline-offset: 2px !important;
}

/* Smooth filtering transition for product cards */
.product-card {
    transition: transform 200ms var(--ease-spring), opacity 150ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

/* Bottom sheet drag bar feedback */
.sheet-handle {
    cursor: grab;
    touch-action: none;
}

.sheet-handle:active {
    cursor: grabbing;
    background: var(--text-secondary);
}

/* ============================================================
   PORTAL HUB (PÁGINA PRINCIPAL INTERACTIVA)
   ============================================================ */
.portal-hub-container {
    padding: 16px 20px 40px;
    animation: hubFadeIn 250ms ease forwards;
}

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

.portal-hub-welcome {
    margin-bottom: 20px;
    text-align: left;
}

.portal-hub-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.portal-hub-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.portal-hub-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Hub Cards */
.hub-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease, border-color 180ms ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

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

/* Hero card distinction (Virtual Menu) - Impeccable Craft */
.hub-card-hero {
    border: 1px solid var(--color-accent);
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--color-accent-subtle) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 16px var(--color-accent-subtle);
}

.hub-card-hero:hover {
    border-color: var(--color-accent);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 24px var(--color-accent-subtle);
}

.hub-card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.hub-card-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hub-card-content {
    flex: 1;
    min-width: 0;
}

.hub-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.25;
}

.hub-card-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    width: fit-content;
}

.hub-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hub-card-arrow {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Sticky top bar inside catalog */
.catalog-top-hub-bar {
    position: sticky;
    top: 0;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface-glass, rgba(20, 15, 18, 0.92));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 20px;
    margin-bottom: 8px;
}

.btn-return-hub {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-subtle);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 150ms ease;
}

.btn-return-hub:hover {
    background: rgba(255, 255, 255, 0.2);
}

.catalog-top-res-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* ============================================================
   JUEGOS EN MESA & CLIENTE FRECUENTE ESTILOS
   ============================================================ */
/* Memory Match Grid */
.memory-grid {
    user-select: none;
}

.memory-card {
    aspect-ratio: 1 / 1;
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.memory-card:active {
    transform: scale(0.92);
}

.memory-card.flipped {
    background: var(--color-accent-subtle);
    border-color: var(--color-accent);
}

.memory-card.matched {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10B981;
    cursor: default;
    animation: matchPulse 300ms ease;
}

@keyframes matchPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Digital Stamp Card */
.stamp-card-container {
    user-select: none;
}

.stamp-slot {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px dashed var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 250ms ease;
    color: var(--text-secondary);
}

.stamp-slot.stamped {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: 2px solid #34D399;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    animation: stampIn 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stampIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.stamp-slot.reward-slot {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

.stamp-slot.reward-slot.stamped {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: 2px solid #FBBF24;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
}

.stamp-slot-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.stamp-slot.stamped .stamp-slot-num {
    color: #fff;
}

@keyframes geo-spin {
    100% { transform: rotate(360deg); }
}

.loyalty-pin-prompt-box {
    background: var(--bg-surface) !important;
    border: 1.5px solid var(--color-accent) !important;
    border-radius: var(--radius-lg, 16px) !important;
    padding: 22px 18px !important;
    margin-top: 14px !important;
    text-align: center !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16) !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100% !important;
}

.loyalty-pin-icon-wrap {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--color-accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loyalty-pin-title {
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    font-size: 1.15rem !important;
    margin: 0 0 6px 0 !important;
    font-family: var(--font-heading) !important;
}

.loyalty-pin-sub {
    font-size: 0.82rem !important;
    color: var(--text-secondary) !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.45 !important;
    max-width: 320px;
    font-family: var(--font-body) !important;
}

.loyalty-pin-input-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 4px 0 12px;
}

.loyalty-pin-input {
    width: 220px !important;
    height: 54px !important;
    text-align: center !important;
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    letter-spacing: 8px !important;
    padding: 0 14px !important;
    background: var(--bg-page) !important;
    border: 2px solid var(--border-subtle) !important;
    border-radius: 14px !important;
    color: var(--text-primary) !important;
    outline: none !important;
    font-family: monospace, var(--font-heading) !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box !important;
}

.loyalty-pin-input:focus {
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 4px var(--color-accent-subtle) !important;
}

.loyalty-pin-actions-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loyalty-pin-submit {
    width: 100% !important;
    height: 48px !important;
    background: var(--color-accent) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-family: var(--font-body) !important;
    box-shadow: 0 4px 14px var(--color-accent-subtle) !important;
    transition: opacity 0.2s, transform 0.12s;
}

.loyalty-pin-submit:hover {
    opacity: 0.92;
}

.loyalty-pin-submit:active {
    transform: scale(0.98);
}

.loyalty-pin-cancel {
    width: 100% !important;
    height: 42px !important;
    background: transparent !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    font-family: var(--font-body) !important;
    transition: background-color 0.2s, color 0.2s;
}

.loyalty-pin-cancel:hover {
    background: var(--border-subtle) !important;
    color: var(--text-primary) !important;
}

.loyalty-geo-box {
    width: 100%;
    border-radius: var(--radius-lg, 10px);
    padding: 12px 14px;
    margin-bottom: 12px;
    text-align: center;
    box-sizing: border-box;
}

.loyalty-geo-loading {
    background: var(--color-accent-subtle, rgba(56, 189, 248, 0.12));
    border: 1px solid var(--color-accent);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
}

.loyalty-geo-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid #10B981;
    color: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
}

.loyalty-geo-error {
    background: var(--bg-page);
    border: 1.5px solid #F59E0B;
}

.loyalty-geo-error-title {
    color: #F59E0B;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.loyalty-geo-error-text {
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 12px;
}

.loyalty-geo-btn {
    background: #F59E0B;
    color: #0F172A;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35);
    transition: transform 0.12s, opacity 0.12s;
    font-family: var(--font-body);
}

.loyalty-geo-btn:active {
    transform: scale(0.97);
}

.loyalty-geo-btn:hover {
    opacity: 0.92;
}

/* Specialized Dialog Boxes (Location, Loyalty, Games) */
.location-dialog-box,
.loyalty-dialog-box,
.games-dialog-box {
    max-width: 480px;
    width: 92%;
    border-radius: var(--radius-lg, 16px);
}

@media (max-width: 640px) {
    .location-dialog-box,
    .loyalty-dialog-box,
    .games-dialog-box,
    .dialog-box {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 12px)) !important;
    }
}

.location-map-wrap {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    margin-bottom: 14px;
    background: var(--bg-page);
    position: relative;
}

#restaurantLocationMap {
    width: 100%;
    height: 100%;
    min-height: 250px;
    z-index: 1;
}

#restaurantLocationMap .leaflet-pane {
    z-index: 10;
}

#restaurantLocationMap .leaflet-top,
#restaurantLocationMap .leaflet-bottom {
    z-index: 20;
}

.location-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.btn-pill-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.btn-pill-location:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #EF4444;
}

/* ========================================================
   CARRITO DE COMPRAS Y PEDIDOS EN LÍNEA (MOBILE FIRST)
   ======================================================== */

/* Selector de cantidad y acción en bottom sheet del platillo */
.sheet-order-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sheet-qty-picker {
    display: inline-flex;
    align-items: center;
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    padding: 4px;
}

.sheet-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    transition: background 150ms;
}

.sheet-qty-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

#sheetQtyDisplay {
    min-width: 32px;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.btn-sheet-add {
    flex: 1;
    height: 46px;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.92rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 150ms, opacity 150ms;
}

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

/* Barra flotante inferior (Sticky Cart Bar) */
.cart-floating-bar {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    z-index: 85;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
    animation: cartSlideUp 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-floating-inner {
    max-width: 580px;
    width: 100%;
    pointer-events: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 9999px;
    padding: 8px 10px 8px 16px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 200ms ease;
}

.cart-floating-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-floating-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cart-floating-badge.badge-bump {
    animation: cartBadgeBump 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cartBadgeBump {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.cart-floating-text {
    display: flex;
    flex-direction: column;
}

.cart-floating-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.cart-floating-total {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.cart-floating-action {
    height: 40px;
    padding: 0 18px;
    border-radius: 9999px;
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 160ms ease;
}

.cart-floating-action:active {
    transform: scale(0.96);
}

/* Modal / Bottom Sheet del Carrito */
.cart-sheet {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.cart-sheet-content {
    padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 12px));
    overflow-y: auto;
    flex: 1;
}

.cart-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}

.cart-sheet-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.btn-clear-cart {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 150ms;
}

.btn-clear-cart:hover {
    color: #EF4444;
}

/* Items en el carrito */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.cart-item-card {
    display: flex;
    gap: 12px;
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 12px;
    position: relative;
    transition: border-color 150ms;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.15);
}

.cart-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.cart-item-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.25;
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.cart-item-notes-input {
    width: 100%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 0.78rem;
    color: var(--text-primary);
    margin-top: 6px;
    outline: none;
    box-sizing: border-box;
}

.cart-item-notes-input:focus {
    border-color: var(--color-accent);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.cart-item-qty-stepper {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    padding: 2px 4px;
}

.cart-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: background 150ms;
}

.cart-qty-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.cart-qty-val {
    min-width: 24px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.btn-remove-item {
    background: none;
    border: none;
    color: #EF4444;
    opacity: 0.75;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 150ms;
}

.btn-remove-item:hover {
    opacity: 1;
}

/* Estado vacío del carrito */
.cart-empty-state {
    text-align: center;
    padding: 36px 20px;
}

.cart-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.cart-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cart-empty-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 280px;
    margin: 0 auto 20px;
}

.btn-back-menu {
    margin: 0 auto;
    padding: 10px 22px;
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
}

/* Alerta de pedido mínimo */
.cart-min-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #F59E0B;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
}

/* Resumen de precios */
.cart-price-breakdown,
.cart-final-breakdown {
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
}

.cart-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.cart-breakdown-row.cart-total-row {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    border-top: 1px solid var(--border-subtle);
    padding-top: 8px;
    margin-top: 6px;
    margin-bottom: 0;
}

.cart-breakdown-row span:last-child {
    font-variant-numeric: tabular-nums;
}

.cart-breakdown-row.cart-total-row span:last-child {
    color: var(--color-accent);
}

/* Botones principales */
.btn-cart-primary {
    width: 100%;
    height: 48px;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 150ms, opacity 150ms;
}

.btn-cart-primary:active {
    transform: scale(0.98);
}

.btn-cart-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-cart-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 4px 0;
    transition: color 150ms;
}

.btn-cart-back:hover {
    color: var(--text-primary);
}

/* Formulario de Checkout */
.cart-form-group {
    margin-bottom: 14px;
}

.cart-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cart-sublabel {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.required-star {
    color: #EF4444;
}

.cart-input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-page);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 0.92rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 150ms;
    box-sizing: border-box;
}

.cart-input:focus {
    border-color: var(--color-accent);
}

.cart-textarea {
    height: auto;
    min-height: 64px;
    padding: 10px 14px;
    resize: vertical;
    line-height: 1.4;
}

/* Selector de modalidad de entrega */
.delivery-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.delivery-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-page);
    cursor: pointer;
    transition: all 160ms ease;
    text-align: center;
    gap: 4px;
    user-select: none;
}

.delivery-type-card.active {
    border-color: var(--color-accent);
    background: rgba(225, 29, 72, 0.08);
    box-shadow: 0 0 0 1px var(--color-accent);
}

.delivery-type-card i,
.delivery-type-card svg {
    color: var(--text-secondary);
    transition: color 150ms;
}

.delivery-type-card.active i,
.delivery-type-card.active svg {
    color: var(--color-accent);
}

.dtype-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dtype-fee {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.delivery-type-card.active .dtype-fee {
    color: var(--color-accent);
    font-weight: 600;
}

/* Selector de métodos de pago */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.payment-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-page);
    cursor: pointer;
    transition: all 160ms ease;
    text-align: center;
    gap: 4px;
    user-select: none;
}

.payment-method-card.active {
    border-color: var(--color-accent);
    background: rgba(225, 29, 72, 0.08);
    box-shadow: 0 0 0 1px var(--color-accent);
}

.payment-method-card i,
.payment-method-card svg {
    color: var(--text-secondary);
    transition: color 150ms;
}

.payment-method-card.active i,
.payment-method-card.active svg {
    color: var(--color-accent);
}

.payment-method-card span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-method-card.active span {
    color: var(--color-accent);
}

/* Botón GPS */
.btn-location-gps {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38BDF8;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms;
}

.btn-location-gps:hover {
    background: rgba(56, 189, 248, 0.2);
}

/* Botón final de WhatsApp */
.btn-cart-submit {
    width: 100%;
    height: 50px;
    background: #25D366;
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: transform 150ms, opacity 150ms;
}

.btn-cart-submit:active {
    transform: scale(0.98);
}

.btn-cart-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pickup-details-section {
    margin-bottom: 14px;
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px;
}

@media (max-width: 380px) {
    .delivery-type-grid,
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }

    .cart-floating-inner {
        padding: 6px 8px 6px 12px;
    }

    .cart-floating-cta {
        font-size: 0.82rem;
        padding: 8px 14px;
    }
}

/* ==========================================================================
   Responsive Adaptations (Tablet, Desktop, Ultra-Wide & Small Mobile)
   ========================================================================== */

/* Tablet & Landscape (641px+) */
@media (min-width: 641px) {
    .modal-overlay {
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    .bottom-sheet {
        margin: auto;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        max-width: 580px;
        max-height: 85vh;
        transform: scale(0.96);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    }

    .modal-overlay.active .bottom-sheet {
        transform: scale(1);
    }

    .sheet-handle {
        display: none;
    }

    .cart-sheet {
        max-width: 600px;
        border-radius: 20px;
    }

    .promo-slide {
        flex: 0 0 340px;
        height: 200px;
    }

    .portal-hub-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .hub-card-hero {
        grid-column: 1 / -1;
    }
}

/* Tablet (Standard 768px+) */
@media (min-width: 768px) {
    .menu-app {
        max-width: 880px;
        margin: 20px auto 36px;
        border-radius: var(--radius-lg, 1.25rem);
        border: 1px solid var(--border-subtle);
    }

    .fb-cover-wrap {
        height: 230px;
    }

    .fb-profile-body {
        padding: 0 28px 24px;
        gap: 16px;
    }

    .fb-identity-row {
        flex-direction: row;
        align-items: flex-end;
        gap: 20px;
        margin-top: -58px;
    }

    .fb-avatar-container {
        width: 114px;
        height: 114px;
        min-width: 114px;
        min-height: 114px;
        border-width: 3px;
    }

    .fb-name {
        font-size: 1.7rem;
    }

    .fb-tagline {
        font-size: 0.9rem;
    }

    .fb-actions-group {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .fb-action-buttons-row {
        width: auto;
    }

    .fb-social-strip {
        padding-top: 0;
        margin-left: auto;
    }

    .restaurant-hero-integrated {
        padding: 24px 32px 28px;
        gap: 20px;
    }

    .hero-backdrop {
        height: 280px;
    }

    .hero-avatar-seal {
        width: 96px;
        height: 96px;
        min-width: 96px;
        min-height: 96px;
        border-radius: 24px;
    }

    .hero-brand-details .restaurant-name {
        font-size: 1.85rem;
    }

    .hero-brand-details .restaurant-tagline {
        font-size: 0.95rem;
    }

    .hero-capsule-dock {
        max-width: 520px;
    }

    .restaurant-hero {
        min-height: 280px;
        padding: 36px 32px;
    }

    .restaurant-cover-banner {
        height: 245px;
    }

    .restaurant-avatar-wrapper {
        width: 100px;
        height: 100px;
        min-width: 100px;
        min-height: 100px;
        border-radius: 26px;
    }

    .restaurant-profile-card {
        margin-top: -52px;
        padding: 0 32px 20px;
    }

    .restaurant-profile-card .restaurant-logo {
        width: 88px;
        height: 88px;
    }

    .restaurant-name {
        font-size: 1.85rem;
    }

    .restaurant-tagline {
        font-size: 0.95rem;
    }

    .dock-primary-actions {
        grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
        max-width: 520px;
    }

    .dock-social-strip {
        justify-content: flex-start;
    }

    .portal-hub-container {
        padding: 24px 32px 48px;
    }

    .menu-section {
        padding: 28px 32px 12px;
    }

    .search-container {
        padding: 16px 32px 0;
    }

    .category-nav {
        padding: 0 32px;
    }

    .product-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-card {
        padding: 14px 16px;
        gap: 14px;
    }

    .product-card-body {
        padding: 0;
    }

    .product-card-img-wrap {
        width: 132px;
        height: 132px;
        min-width: 132px;
        min-height: 132px;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1.2rem;
    }
}

/* Desktop & Large Screens (1024px+) */
@media (min-width: 1024px) {
    .menu-app {
        max-width: 1140px;
        margin: 28px auto 48px;
        border-radius: 1.5rem;
    }

    .fb-profile-header {
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
        overflow: hidden;
    }

    .fb-cover-wrap {
        height: 270px;
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
    }

    .fb-profile-body {
        padding: 0 36px 26px;
    }

    .fb-avatar-container {
        width: 120px;
        height: 120px;
        min-width: 120px;
        min-height: 120px;
        border-width: 3px;
    }

    .fb-name {
        font-size: 1.95rem;
    }

    .fb-actions-group {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .restaurant-hero-integrated {
        padding: 28px 40px 32px;
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
    }

    .hero-backdrop {
        height: 320px;
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
    }

    .hero-avatar-seal {
        width: 104px;
        height: 104px;
        min-width: 104px;
        min-height: 104px;
        border-radius: 28px;
    }

    .hero-brand-details .restaurant-name {
        font-size: 2.15rem;
    }

    .hero-capsule-dock {
        max-width: 560px;
    }

    .restaurant-hero {
        min-height: 320px;
        padding: 44px 40px;
    }

    .restaurant-cover-banner {
        height: 290px;
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
    }

    .restaurant-avatar-wrapper {
        width: 108px;
        height: 108px;
        min-width: 108px;
        min-height: 108px;
        border-radius: 28px;
    }

    .restaurant-profile-card {
        margin-top: -56px;
        padding: 0 40px 24px;
    }

    .restaurant-name {
        font-size: 2.15rem;
    }

    .dock-primary-actions {
        max-width: 560px;
    }

    .portal-hub-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .hub-card-hero {
        grid-column: span 2;
    }

    .promo-slide {
        flex: 0 0 380px;
        height: 220px;
    }

    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 20px;
    }

    .product-card {
        padding: 16px 18px;
        gap: 16px;
    }

    .product-card-body {
        padding: 0;
    }

    .product-card-img-wrap {
        width: 140px;
        height: 140px;
        min-width: 140px;
        min-height: 140px;
    }

    .product-card.card-layout-vertical .product-card-img-wrap {
        width: 100% !important;
        height: 200px !important;
        min-width: 100% !important;
        min-height: 200px !important;
    }

    .product-card.card-layout-vertical .product-card-body {
        padding: 16px 18px 20px;
    }

    .btn-card-add-corner {
        bottom: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .bottom-sheet {
        max-width: 620px;
    }

    .cart-sheet {
        max-width: 640px;
    }
}

/* Small mobile devices (iPhone SE, narrow viewports <= 420px) */
@media (max-width: 420px) {
    .fb-cover-wrap {
        height: 165px;
    }

    .fb-profile-body {
        padding: 0 14px 16px;
        gap: 12px;
    }

    .fb-identity-row {
        margin-top: -46px;
        gap: 8px;
    }

    .fb-avatar-container {
        width: 92px;
        height: 92px;
        min-width: 92px;
        min-height: 92px;
        border-width: 3px;
    }

    .fb-name {
        font-size: 1.25rem;
    }

    .fb-action-btn {
        height: 34px;
        padding: 0 12px;
        font-size: 0.775rem;
    }

    .fb-action-btn.fb-action-btn-icon {
        width: 34px;
        min-width: 34px;
        height: 34px;
        padding: 0;
    }

    .fb-social-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
    }

    .restaurant-hero-integrated {
        padding: 14px 14px 18px;
        gap: 14px;
    }

    .hero-backdrop {
        height: 195px;
    }

    .hero-avatar-seal {
        width: 74px;
        height: 74px;
        min-width: 74px;
        min-height: 74px;
        border-radius: 18px;
    }

    .hero-brand-details .restaurant-name {
        font-size: 1.3rem;
    }

    .dock-capsule-item {
        padding: 6px 2px;
        min-height: 50px;
    }

    .capsule-icon-wrap {
        width: 24px;
        height: 24px;
    }

    .capsule-label {
        font-size: 0.67rem;
    }

    .restaurant-hero {
        padding: 16px 14px;
        min-height: 200px;
    }

    .restaurant-cover-banner {
        height: 175px;
    }

    .restaurant-avatar-wrapper {
        width: 78px;
        height: 78px;
        min-width: 78px;
        min-height: 78px;
        border-radius: 18px;
    }

    .restaurant-profile-card {
        margin-top: -40px;
        padding: 0 14px 14px;
        gap: 12px;
    }

    .restaurant-profile-card .restaurant-logo {
        width: 62px;
        height: 62px;
    }

    .restaurant-name {
        font-size: 1.3rem;
    }

    .restaurant-quick-actions {
        gap: 6px;
    }

    .dock-primary-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .dock-action-btn {
        padding: 8px 4px;
        min-height: 56px;
        border-radius: 12px;
    }

    .dock-action-icon {
        width: 26px;
        height: 26px;
    }

    .dock-action-label {
        font-size: 0.68rem;
    }

    .btn-pill-sm {
        padding: 6px 10px;
        font-size: 0.74rem;
        min-height: 36px;
    }

    .product-card {
        padding: 11px 12px;
        gap: 10px;
    }

    .product-card-body {
        padding: 0;
    }

    .product-card-img-wrap {
        width: 112px;
        height: 112px;
        min-width: 112px;
        min-height: 112px;
    }

    .product-card.card-layout-vertical .product-card-img-wrap {
        width: 100% !important;
        height: 155px !important;
        min-width: 100% !important;
        min-height: 155px !important;
    }

    .product-card.card-layout-vertical .product-card-body {
        padding: 11px 12px 14px;
    }

    .product-card-pills {
        gap: 4px;
        margin-bottom: 4px;
    }

    .product-badge-pill,
    .product-tag-pill {
        font-size: 0.625rem;
        padding: 2px 6px;
    }

    .product-name {
        font-size: 0.98rem;
    }

    .product-price {
        font-size: 1.05rem;
    }

    .product-prev-price {
        font-size: 0.78rem;
    }

    .btn-card-add-corner {
        bottom: 5px;
        right: 5px;
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
    }

    .btn-card-add-corner svg,
    .btn-card-add-corner i {
        width: 15px;
        height: 15px;
    }
}

/* ============================================================
   FLOATING CAPSULE TOAST FEEDBACK
   ============================================================ */
.menu-toast-container {
    position: fixed;
    top: max(16px, env(safe-area-inset-top, 16px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
    display: flex;
    justify-content: center;
    width: auto;
    max-width: calc(100vw - 32px);
}

.menu-toast-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px 8px 10px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.25);
    color: #FFFFFF;
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    animation: toastCapsuleIn 280ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
    max-width: 100%;
}

[data-theme-type="light"] .menu-toast-pill {
    background: rgba(255, 255, 255, 0.94);
    color: #0F172A;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.16), 0 4px 10px rgba(15, 23, 42, 0.08);
}

.menu-toast-pill.hiding {
    animation: toastCapsuleOut 220ms ease forwards;
}

.menu-toast-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #10B981;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
    flex-shrink: 0;
}

.menu-toast-pill.warning .menu-toast-icon {
    background: #F59E0B;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.menu-toast-pill.error .menu-toast-icon {
    background: #EF4444;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.menu-toast-pill.info .menu-toast-icon {
    background: var(--color-accent);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.menu-toast-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

@keyframes toastCapsuleIn {
    0% {
        opacity: 0;
        transform: translateY(-24px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastCapsuleOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-16px) scale(0.94);
    }
}

/* ============================================================
   PRODUCT DISH LIKE SYSTEM (HEART BUTTON & ANIMATION)
   ============================================================ */
.btn-card-like {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 30px;
    min-width: 30px;
    padding: 0 8px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease,
                box-shadow 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-card-like .heart-icon {
    width: 14px;
    height: 14px;
    stroke: #FFFFFF;
    fill: transparent;
    transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275), fill 0.2s ease, stroke 0.2s ease;
    flex-shrink: 0;
}

.btn-card-like .like-counter {
    font-size: 0.72rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.btn-card-like:hover {
    transform: scale(1.08);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
}

.btn-card-like:active {
    transform: scale(0.92);
}

/* Liked state */
.btn-card-like.is-liked {
    background: rgba(239, 68, 68, 0.28);
    border-color: rgba(239, 68, 68, 0.75);
    color: #EF4444;
}

.btn-card-like.is-liked .heart-icon {
    stroke: #EF4444;
    fill: #EF4444;
    animation: heartPop 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-card-like.is-liked .like-counter {
    color: #EF4444;
}

/* Vertical layout card specific adjustments */
.product-card.card-layout-vertical .btn-card-like {
    top: 8px;
    right: 8px;
    height: 32px;
    min-width: 32px;
    padding: 0 10px;
    background: rgba(15, 23, 42, 0.72);
}

.product-card.card-layout-vertical .btn-card-like .heart-icon {
    width: 15px;
    height: 15px;
}

.product-card.card-layout-vertical .btn-card-like .like-counter {
    font-size: 0.75rem;
}

/* Modal Bottom Sheet Like Button */
.btn-sheet-like {
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #EF4444;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-sheet-like .heart-icon {
    width: 15px;
    height: 15px;
    stroke: #EF4444;
    fill: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-sheet-like:hover {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.45);
    transform: scale(1.04);
}

.btn-sheet-like:active {
    transform: scale(0.95);
}

.btn-sheet-like.is-liked {
    background: #EF4444;
    border-color: #EF4444;
    color: #FFFFFF;
}

.btn-sheet-like.is-liked .heart-icon {
    stroke: #FFFFFF;
    fill: #FFFFFF;
    animation: heartPop 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-sheet-like.is-liked .like-counter {
    color: #FFFFFF;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Modales de Compra y Carrito en Menú Público - Modo Claro Garantizado (WCAG AA) */
[data-theme-type="light"] .sheet-handle,
.theme-light .sheet-handle {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme-type="light"] .bottom-sheet,
.theme-light .bottom-sheet {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
}

[data-theme-type="light"] .cart-min-warning,
.theme-light .cart-min-warning {
    background: #FFFBEB;
    border-color: rgba(180, 83, 9, 0.35);
    color: #92400E;
    font-weight: 600;
}

[data-theme-type="light"] .btn-location-gps,
.theme-light .btn-location-gps {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.3);
    color: #0369A1;
}

[data-theme-type="light"] .btn-location-gps:hover,
.theme-light .btn-location-gps:hover {
    background: rgba(2, 132, 199, 0.16);
}

[data-theme-type="light"] .btn-sheet-share,
.theme-light .btn-sheet-share {
    color: #0369A1 !important;
    background: rgba(2, 132, 199, 0.1) !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
}

[data-theme-type="light"] .btn-clear-cart,
.theme-light .btn-clear-cart {
    color: var(--text-secondary);
}

[data-theme-type="light"] .btn-clear-cart:hover,
.theme-light .btn-clear-cart:hover {
    color: #DC2626;
}


