/* ═══════════════════════════════════════════════════════════
   Perú para ti — Premium Menu Design
   Inspired by biomenus.com aesthetic
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg-color:          #0d0d0d;
    --bg-secondary:      #141414;
    --card-bg:           #1c1c1c;
    --text-primary:      #f0f0f0;
    --text-secondary:    #999999;
    --text-tertiary:     #4a4a4a;
    --surface-color:     #262626;
    --surface-hover:     #2e2e2e;
    --border-color:      rgba(255,255,255,0.07);
    --border-strong:     rgba(255,255,255,0.12);

    /* Green accent matching biomenus */
    --accent-primary:    #3da94a;
    --accent-hover:      #2d8b39;
    --accent-dark:       #1f6327;
    --accent-glow:       rgba(61, 169, 74, 0.35);
    --accent-glow-soft:  rgba(61, 169, 74, 0.15);

    --font-family:  'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --radius-xs:  6px;
    --radius-sm:  10px;
    --radius-md:  16px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    --hero-height: 220px;
    --nav-height:  58px;
    --transition:  0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    padding-bottom: 110px;
    overscroll-behavior-y: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100vw;
    overflow-x: hidden;
    /* Subtle dark texture */
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(61,169,74,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(61,169,74,0.03) 0%, transparent 60%);
}

/* ── Hero Banner ─────────────────────────────────────────────────────────── */
.app-header { padding: 0; }

.hero-banner {
    position: relative;
    width: 100%;
    height: var(--hero-height);
    background-color: #0d0d0d; /* fallback si el video no carga */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 20px 22px;
    color: #fff;
    overflow: hidden;
}

/* ── Hero Video ──────────────────────────────────────────────────────────── */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25)  0%,
        rgba(0,0,0,0.50)  55%,
        rgba(13,13,13,0.97) 100%
    );
    z-index: 1;
}

.brand-title  { position: relative; z-index: 2; }
.header-info  { position: relative; z-index: 2; }

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 120%, rgba(61,169,74,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin-bottom: 6px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    position: relative;
}

.header-info {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.75;
    letter-spacing: 0.2px;
    position: relative;
}

/* Delivery badge */
.header-info::before {
    content: '🚀';
    margin-right: 6px;
}

/* ── Sticky Category Nav ─────────────────────────────────────────────────── */
.category-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(13, 13, 13, 0.88);
    border-bottom: 1px solid var(--border-color);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.category-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px;
    gap: 8px;
    width: 100%;
    list-style: none;
}

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

/* Fade edges on horizontal scroll */
.category-nav-wrapper::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 40px;
    background: linear-gradient(to left, rgba(13,13,13,0.9), transparent);
    pointer-events: none;
}

.nav-pill {
    list-style: none;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 7px 18px;
    background: transparent;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    border: 1.5px solid var(--border-strong);
    user-select: none;
}

.nav-pill:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.2);
    background: var(--surface-color);
}

.nav-pill.active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 16px var(--accent-glow);
}

/* ── Search Bar ──────────────────────────────────────────────────────────── */
.search-wrapper {
    background: var(--bg-color);
    padding: 10px 16px 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-icon {
    flex-shrink: 0;
    color: var(--text-tertiary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    background: var(--surface-color);
    border: 1.5px solid var(--border-strong);
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 15px;
    font-family: var(--font-family);
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

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

.search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow-soft);
}

.search-input::-webkit-search-cancel-button { cursor: pointer; }

/* ── Main Content ────────────────────────────────────────────────────────── */
.main-content { padding: 14px 12px 0; }

/* ── Loader ──────────────────────────────────────────────────────────────── */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    color: var(--text-secondary);
    font-weight: 500;
    gap: 16px;
}

.loader-container p {
    font-size: 15px;
    opacity: 0.7;
    letter-spacing: 0.3px;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--border-strong);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

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

/* ── Menu Grid ───────────────────────────────────────────────────────────── */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 14px;
}

@media (min-width: 640px)  {
    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .main-content { padding: 16px 16px 0; }
}
@media (min-width: 900px)  { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .menu-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Menu Card (3D perspectiva) ──────────────────────────────────────── */
.menu-card {
    perspective: 900px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    animation: fadeUp 0.35s ease both;
}

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

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.55);
    border-color: var(--border-strong);
}

.menu-card:active { transform: scale(0.975); }

/* Suprimir elevación cuando el card está girado */
.menu-card.flipped:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ── Card Inner (eje 3D) ───────────────────────────────────────────────── */
.card-inner {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.62s cubic-bezier(0.34, 1.02, 0.64, 1);
    border-radius: var(--radius-md);
}

.menu-card.flipped .card-inner {
    transform: rotateY(180deg);
}

/* ── Caras del Card ───────────────────────────────────────────────────────── */
.card-face {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.card-front {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.card-back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
    background: linear-gradient(145deg, #0c1f0e 0%, #162b18 45%, #0a180b 100%);
    border: 1px solid rgba(61,169,74,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 16px 32px;
    gap: 12px;
    text-align: center;
}

.card-back-icon {
    font-size: 30px;
    opacity: 0.9;
    filter: drop-shadow(0 0 12px rgba(61,169,74,0.6));
    flex-shrink: 0;
}

.card-back-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.card-back-desc {
    font-size: 12.5px;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
}

.card-back-desc .no-desc {
    opacity: 0.38;
    font-style: italic;
}

.card-back-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-primary);
    letter-spacing: -0.5px;
    margin-top: 2px;
}

/* Hint sutil en la parte inferior de la cara trasera */
.card-back::after {
    content: '↩ Toca para volver';
    position: absolute;
    bottom: 10px;
    left: 0; right: 0;
    font-size: 9.5px;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-align: center;
}


/* ── Card Image ──────────────────────────────────────────────────────────── */
.card-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    background: var(--surface-color);
    flex-shrink: 0;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

/* Ken-Burns solo cuando NO está girada */
.menu-card:not(.flipped):hover .card-image { transform: scale(1.06); }

/* Gradient overlay on image bottom */
.card-image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    pointer-events: none;
}

/* ── Floating Add Button (on image) ─────────────────────────────────────── */
.btn-add {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    box-shadow: 0 3px 12px var(--accent-glow);
}

.btn-add:hover {
    background: var(--accent-hover);
    transform: scale(1.12);
    box-shadow: 0 6px 20px var(--accent-glow);
}

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

.btn-add.disabled {
    background: var(--surface-color);
    color: var(--text-tertiary);
    border: 1.5px solid var(--border-strong);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Card Content ────────────────────────────────────────────────────────── */
.card-content {
    padding: 11px 12px 13px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: -0.1px;
}

.card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    line-height: 1.4;
}

.card-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-top: 4px;
    letter-spacing: -0.2px;
}

/* Keep card-bottom compatibility (we no longer use it but keeping in case) */
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* ── Out of Stock ────────────────────────────────────────────────────────── */
.out-of-stock { cursor: default; }
.out-of-stock .card-image { filter: grayscale(80%) brightness(35%); }
.out-of-stock .card-content { opacity: 0.45; }

.badge-out-of-stock {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.82);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ── Search Results ──────────────────────────────────────────────────────── */
#search-results-view { padding-top: 4px; }

.search-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 60px 20px;
    font-size: 15px;
    opacity: 0.7;
}

.search-empty::before {
    content: '🔍';
    display: block;
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ── FAB Cart ────────────────────────────────────────────────────────────── */
.fab-cart {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 28px var(--accent-glow), 0 2px 8px rgba(0,0,0,0.4);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    max-width: calc(100vw - 48px);
}

.fab-cart:hover {
    box-shadow: 0 14px 40px var(--accent-glow), 0 4px 12px rgba(0,0,0,0.5);
    transform: translateX(-50%) translateY(-3px);
}

.fab-cart:active { transform: translateX(-50%) scale(0.96); }

.fab-cart-inner { display: flex; align-items: center; gap: 12px; }

.fab-icon-wrap { position: relative; display: flex; align-items: center; }

.fab-badge {
    position: absolute;
    top: -9px; right: -11px;
    background: #fff;
    color: var(--accent-primary);
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.fab-total {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Separator line in FAB */
.fab-sep {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.3);
}

@media (min-width: 600px) {
    .fab-cart {
        left: auto;
        right: 28px;
        transform: none;
        bottom: 28px;
    }
    .fab-cart:hover { transform: translateY(-3px); }
    .fab-cart:active { transform: scale(0.96); }
}

@keyframes slideDown {
    from { transform: translateX(-50%) translateY(80px) scale(0.88); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0)    scale(1);    opacity: 1; }
}

@media (min-width: 600px) {
    @keyframes slideDown {
        from { transform: translateY(80px) scale(0.88); opacity: 0; }
        to   { transform: translateY(0)    scale(1);    opacity: 1; }
    }
}

/* ── Cart & Payment Modals ───────────────────────────────────────────────── */
.cart-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-modal-overlay.active { opacity: 1; pointer-events: auto; }

.cart-modal {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #181818;
    border-radius: 22px 22px 0 0;
    border-top: 1px solid var(--border-strong);
    z-index: 201;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.34, 1.06, 0.64, 1);
    display: flex;
    flex-direction: column;
    max-height: 88vh;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

/* Drag handle */
.cart-modal::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

@media (min-width: 620px) {
    .cart-modal {
        border-radius: 22px;
        border: 1px solid var(--border-strong);
        bottom: 28px;
        transform: translateY(120%);
        box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    }
    .cart-modal::before { display: none; }
}

.cart-modal.active { transform: translateY(0); }

.cart-modal-header {
    padding: 20px 22px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-modal-header h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.btn-close {
    background: var(--surface-color);
    border: 1px solid var(--border-strong);
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 22px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    line-height: 1;
}

.btn-close:hover { background: #333; color: var(--text-primary); }

.cart-modal-body {
    padding: 0 20px;
    overflow-y: auto;
    flex: 1;
    overscroll-behavior: contain;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

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

.cart-item-details { flex: 1; min-width: 0; }

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.cart-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-color);
    padding: 7px 14px;
    border-radius: 30px;
    font-weight: 700;
    border: 1px solid var(--border-strong);
    flex-shrink: 0;
    font-size: 15px;
}

.control-btn {
    background: none;
    border: none;
    font-size: 22px;
    font-weight: 300;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition), transform 0.1s;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.control-btn:hover { color: var(--accent-primary); }
.control-btn:active { transform: scale(0.88); }

.cart-modal-footer {
    padding: 18px 20px 22px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.summary-total { color: var(--accent-primary); }

.btn-primary {
    width: 100%;
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    padding: 15px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-family);
    transition: background var(--transition), transform 0.1s, box-shadow var(--transition);
    box-shadow: 0 4px 16px var(--accent-glow);
    letter-spacing: 0.1px;
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
    background: #2a2a2a;
    box-shadow: none;
    color: var(--text-tertiary);
    cursor: not-allowed;
    transform: none;
}

/* Transfer / Cash button variants */
.btn-checkout-transfer {
    background: transparent !important;
    color: var(--accent-primary) !important;
    border: 2px solid var(--accent-primary) !important;
    box-shadow: none !important;
}

.btn-checkout-transfer:hover {
    background: var(--accent-glow-soft) !important;
}

.btn-checkout-cash {
    background: #27ae60 !important;
    box-shadow: 0 4px 14px rgba(39,174,96,0.35) !important;
}

.btn-checkout-cash:hover { background: #229954 !important; }

/* ── Payment Modal ───────────────────────────────────────────────────────── */
.payment-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 18px;
}

.payment-instructions {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
    padding: 0 4px;
}

.payment-card {
    background: var(--surface-color);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 18px;
    overflow: hidden;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    gap: 12px;
}

.payment-row:last-child { border-bottom: none; padding-bottom: 0; }
.payment-row:first-child { padding-top: 0; }

.payment-label { color: var(--text-secondary); flex-shrink: 0; }
.payment-value { color: var(--text-primary); font-weight: 700; text-align: right; word-break: break-all; }

.btn-whatsapp {
    background: #25D366 !important;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35) !important;
}

.btn-whatsapp:hover { background: #1ebe5c !important; }
.btn-whatsapp:active { background: #128C7E !important; }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    align-items: center;
}

.toast {
    background: var(--surface-hover);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.55);
    animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

/* Green dot accent in toast */
.toast::before {
    content: '✓ ';
    color: var(--accent-primary);
    font-weight: 800;
}

@keyframes toastIn {
    from { transform: translateY(20px) scale(0.82); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* ── Responsive refinements ──────────────────────────────────────────────── */
@media (min-width: 900px) {
    :root { --hero-height: 280px; }

    .hero-banner { padding: 0 32px 28px; }
    .brand-title { font-size: 38px; }
    .header-info { font-size: 14px; }

    .main-content { padding: 20px 24px 0; }

    .search-wrapper { padding: 12px 24px 14px; }
    .search-input { font-size: 15px; }

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

    .card-title { font-size: 15px; }
    .card-price { font-size: 16px; }
}
