/* ═══════════════════════════════════════════════════════════════════
   PASHA RESTORAN · PIZZERIA — Premium Digital Menu
   Theme: Warm, appetizing, confident — refined restaurant aesthetic
═══════════════════════════════════════════════════════════════════ */

/* Google Fonts are loaded via <link> in App.razor — duplicating the
   import here triggered a second render-blocking request. */

/* ─── Design tokens ─── */
:root {
    /* Brand */
    --red:          #CE2235;
    --red-hover:    #B81E2F;
    --red-deep:     #A3192A;
    --red-pale:     #FBE6E4;
    --red-light:    #FCEFEE;
    --red-tint:     rgba(206, 34, 53, 0.08);
    --gold:         #C98A3C;
    --gold-light:   #E3B469;
    --gold-pale:    #F7ECD7;
    --sage:         #5C6B4A;
    --sage-light:   #8BA06F;
    --sage-pale:    #EAEEE2;
    --success:        #10B981;
    --success-strong: #059669;
    --success-soft:   rgba(16, 185, 129, 0.12);
    --danger:        #DC2626;
    --danger-strong: #B91C1C;
    --danger-soft:   rgba(220, 38, 38, 0.10);
    --espresso:     #3A2415;

    /* Surfaces */
    --bg:           #F8F3EB;
    --bg2:          #F1E9DD;
    --bg3:          #E9DCC8;
    --surface:      #FFFDFB;
    --surface2:     #F7F1E8;
    --surface3:     #F1E9DD;

    /* Borders & text */
    --border:       #EBE0D1;
    --border2:      #DCC9AC;
    --border3:      #C2A079;
    --text:         #211A14;
    --text2:        #5A4632;
    --text3:        #6B5B4A;   /* muted text — clears WCAG AA (>=4.5:1) on all light surfaces incl. --bg3; do not lighten */
    --text-on-red:  #FFFFFF;

    /* Typography */
    --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --fs-xs:        0.75rem;
    --fs-sm:        0.875rem;
    --fs-base:      1rem;
    --fs-md:        1.125rem;
    --fs-lg:        1.35rem;
    --fs-xl:        1.62rem;
    --fs-2xl:       1.94rem;
    --fs-3xl:       2.33rem;

    /* Shadows (warm-tinted, re-tuned softer) */
    --shadow-xs:    0 1px 2px rgba(90, 55, 25, 0.05);
    --shadow-sm:    0 2px 8px rgba(120, 70, 30, 0.08);
    --shadow-md:    0 6px 18px rgba(120, 70, 30, 0.10);
    --shadow-lg:    0 14px 34px rgba(110, 65, 25, 0.14);
    --shadow-xl:    0 24px 56px rgba(80, 45, 15, 0.18);
    --shadow-red:   0 10px 28px rgba(206, 34, 53, 0.30);

    /* Shape */
    --radius-xs:    8px;
    --radius-sm:    10px;
    --radius:       12px;
    --radius-lg:    18px;
    --radius-xl:    24px;
    --radius-full:  999px;

    /* Motion */
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast:     0.15s;
    --dur:          0.25s;
    --dur-slow:     0.45s;

    /* Layers */
    --z-nav:        100;
    --z-toast:      800;
    --z-modal-bg:   900;
    --z-modal:      910;
    --z-scroll-top: 95;
}

/* ─── Dark mode (via data-theme="dark") ─── */
html[data-theme="dark"] {
    --bg:           #14110D;
    --bg2:          #1A1610;
    --bg3:          #211B13;
    --surface:      #1E1812;
    --surface2:     #271F17;
    --surface3:     #30261B;
    --border:       #34291E;
    --border2:      #4A3B29;
    --border3:      #5F4B33;
    --text:         #F4ECE0;
    --text2:        #D8C4A8;
    --text3:        #A8957E;
    --red:          #E8485A;
    --red-hover:    #F25C6D;
    --red-deep:     #C7303F;
    --gold:         #D6A24E;
    --gold-light:   #E8C27E;
    --sage:         #8BA06F;
    --sage-light:   #A6B98A;
    --success:        #34D399;
    --success-strong: #6EE7B7;
    --success-soft:   rgba(52, 211, 153, 0.16);
    --danger:        #F87171;
    --danger-strong: #FCA5A5;
    --danger-soft:   rgba(248, 113, 113, 0.16);
    --red-pale:     rgba(232, 72, 90, 0.16);
    --red-light:    rgba(232, 72, 90, 0.10);
    --red-tint:     rgba(232, 72, 90, 0.14);
    --shadow-sm:    0 2px 10px rgba(0, 0, 0, 0.45);
    --shadow-md:    0 8px 24px rgba(0, 0, 0, 0.55);
    --shadow-lg:    0 16px 40px rgba(0, 0, 0, 0.65);
    --shadow-xl:    0 26px 70px rgba(0, 0, 0, 0.75);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    color-scheme: light;
    -webkit-text-size-adjust: 100%;
}
html[data-theme="dark"] { color-scheme: dark; }

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--red); color: #fff; }

/* Scrollbar polish */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb {
    background: var(--border2);
    border: 3px solid var(--bg2);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--border3); }

/* ─── Inline SVG icons (Icon.razor) ─── */
.pasha-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;   /* baseline-align with adjacent text */
    flex-shrink: 0;
}

/* ─── Blazor overrides ─── */
.page { background: var(--bg) !important; min-height: 100vh; }
.sidebar { display: none !important; }
.page > main { padding: 0 !important; margin: 0 !important; }
.top-row { display: none !important; }
.page article.content { padding: 0 !important; max-width: none !important; }

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--danger-strong);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.85rem 1.5rem;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
#blazor-error-ui a.reload { color: #FDE68A; margin-left: 0.5rem; text-decoration: underline; }
#blazor-error-ui .dismiss { cursor: pointer; margin-left: 1rem; opacity: 0.7; }

/* ════════════════════════════════════════════════════════════════
   WRAPPER
════════════════════════════════════════════════════════════════ */
.pasha-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    position: relative;
}

.pasha-wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(212, 20, 38, 0.04), transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(224, 161, 58, 0.05), transparent 40%);
}

/* ════════════════════════════════════════════════════════════════
   HERO HEADER
════════════════════════════════════════════════════════════════ */
.pasha-header {
    position: relative;
    padding: 2.75rem 1.5rem 4rem;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    /* Brand gradient — token-driven (no raw brand hex). A warm top glow over
       a red→deep-red wash; the bottom vignette comes from .header-bg-overlay. */
    background:
        radial-gradient(ellipse 130% 85% at 50% 0%, var(--red) 0%, transparent 68%),
        linear-gradient(157deg, var(--red) 0%, var(--red-deep) 60%, var(--espresso) 130%);
    color: #fff;
}

.pasha-header::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 220, 180, 0.12), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 200, 130, 0.10), transparent 30%);
    pointer-events: none;
}

.pasha-header::after {
    content: '';
    position: absolute;
    top: -160px; right: -160px;
    width: 440px; height: 440px;
    background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 62%);
    border-radius: 50%;
    pointer-events: none;
}

.header-bg-overlay {
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 14px),
        radial-gradient(circle at 50% 120%, rgba(0,0,0,0.3), transparent 62%);
    pointer-events: none;
}

/* Atmospheric restaurant photo behind the hero gradient */
.header-bg-photo {
    position: absolute; inset: 0;
    background-image: url('images/02.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.28;
    mix-blend-mode: overlay;
    filter: saturate(1.1) contrast(1.05);
    pointer-events: none;
    transform: scale(1.05);
    /* Single, very slow, subtle scale — the one ambient motion of the hero.
       No pan; calmer than the former Ken Burns. Disabled under reduced motion. */
    animation: heroZoom 48s ease-in-out infinite alternate;
    z-index: 0;
    will-change: transform;
}
html[data-theme="dark"] .header-bg-photo {
    opacity: 0.22;
    mix-blend-mode: soft-light;
}
@keyframes heroZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
    .header-bg-photo { animation: none; transform: scale(1.05); }
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    animation: fadeDown 0.7s var(--ease-out) both;
}

.logo-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    border-radius: var(--radius);
    transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
    cursor: pointer;
}
.logo-link:hover { transform: translateY(-2px); filter: brightness(1.05); }
.logo-link:active { transform: translateY(0); }
.logo-link:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 6px;
}

.logo-block { margin-bottom: 0.5rem; }

.logo-crown {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 1.05rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: var(--radius-full);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.1rem;
}
.logo-crown .dot {
    width: 5px; height: 5px;
    background: var(--gold-light);
    border-radius: 50%;
}

.logo-stars {
    font-size: 0.7rem;
    letter-spacing: 0.55em;
    color: var(--gold-light);
    margin-bottom: 0.55rem;
    display: block;
}

.logo-title {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 10.5vw, 6rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.005em;
    line-height: 0.92;
    text-shadow: 0 6px 30px rgba(0,0,0,0.32), 0 2px 4px rgba(0,0,0,0.18);
    position: relative;
}
.logo-title::after {
    content: '';
    display: block;
    width: 68px;
    height: 2px;
    margin: 0.85rem auto 0;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
    border-radius: 2px;
}

.logo-subtitle {
    font-family: var(--font-display);
    font-size: clamp(0.72rem, 2vw, 0.9rem);
    font-weight: 500;
    letter-spacing: 0.5em;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    margin-top: 0.95rem;
    display: block;
}

.logo-since {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.26);
    padding: 0.35rem 1.1rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-transform: uppercase;
}

.header-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(0.98rem, 2.3vw, 1.18rem);
    font-weight: 500;
    color: rgba(255,255,255,0.88);
    letter-spacing: 0.01em;
    line-height: 1.5;
    max-width: 30ch;
    margin: 1.25rem auto 0;
}

/* Hero stats chips */
.header-stats {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.9rem;
    flex-wrap: wrap;
}
.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.stat-chip:hover { transform: translateY(-2px); background: rgba(255,255,255,0.18); }
.stat-chip .stat-icon { font-size: 1rem; line-height: 1; }
.stat-chip .stat-num  { color: var(--gold-light); font-weight: 900; }

.header-wave {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 60px; z-index: 1;
    line-height: 0;
}
.header-wave svg { width: 100%; height: 100%; display: block; }

/* ════════════════════════════════════════════════════════════════
   ACTION BAR (sticky search + categories)
════════════════════════════════════════════════════════════════ */
.action-bar {
    position: sticky; top: 0;
    z-index: var(--z-nav);
    background: rgba(255, 249, 243, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
html[data-theme="dark"] .action-bar {
    background: rgba(31, 24, 17, 0.85);
}
.action-bar--scrolled,
html.pasha-scrolled .action-bar {
    box-shadow: 0 8px 28px rgba(150, 75, 25, 0.14);
}
html[data-theme="dark"] .action-bar--scrolled,
html[data-theme="dark"].pasha-scrolled .action-bar {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.action-bar-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.9rem 1.25rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ── Search bar ── */
.search-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.search-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.1rem;
    opacity: 0.55;
    pointer-events: none;
}
.search-input {
    width: 100%;
    padding: 0.8rem 2.6rem 0.8rem 2.75rem;
    border: 1.5px solid var(--border2);
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search-input::placeholder { color: var(--text3); font-weight: 500; }
.search-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px var(--red-tint);
}
.search-clear {
    position: absolute;
    right: 0.5rem;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--text3);
    font-size: 1.1rem;
    transition: all var(--dur) var(--ease);
}
.search-clear:hover { background: var(--red-pale); color: var(--red); }

.theme-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface);
    border: 1.5px solid var(--border2);
    color: var(--text2);
    transition: all var(--dur) var(--ease);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.theme-btn:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.theme-btn-placeholder {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text3);
    opacity: 0.35;
    display: inline-block;
}

/* "Moje narudžbe" quick-link in the action bar — same shape as cart/theme. */
.orders-link-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface);
    border: 1.5px solid var(--border2);
    color: var(--text2);
    font-size: 1.1rem;
    flex-shrink: 0;
    text-decoration: none;
    transition: all var(--dur) var(--ease);
}
.orders-link-btn:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.orders-link-btn:focus-visible {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px var(--red-tint);
}

/* ── Category chips ── */
.category-label {
    text-align: center;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text3);
    margin: 0.15rem 0 0.25rem;
}

.category-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.15rem 0.25rem;
}

.cat-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text2);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    min-height: 44px;
    white-space: nowrap;
}
.cat-btn:focus-visible {
    box-shadow: 0 0 0 4px var(--red-tint);
    border-color: var(--red);
}
.cat-btn:hover {
    background: var(--red-light);
    border-color: color-mix(in srgb, var(--red) 55%, var(--border));
    color: var(--red);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.cat-btn--active {
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    border-color: var(--red);
    color: var(--text-on-red);
    transform: translateY(-1px);
    box-shadow: var(--shadow-red);
}
.cat-btn--active:hover {
    background: linear-gradient(135deg, var(--red-hover), var(--red-deep));
    color: var(--text-on-red);
    border-color: var(--red-hover);
}

.cat-icon { font-size: 1.2rem; line-height: 1; }
.cat-name { line-height: 1; }
.cat-count {
    padding: 0.12rem 0.42rem;
    font-size: 0.66rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: var(--red-pale);
    color: var(--red);
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.cat-btn:hover .cat-count {
    background: color-mix(in srgb, var(--red) 16%, var(--surface));
}
.cat-btn--active .cat-count {
    background: color-mix(in srgb, var(--text-on-red) 25%, transparent);
    color: var(--text-on-red);
}

.loading-cats { text-align: center; padding: 1.25rem; }

/* ════════════════════════════════════════════════════════════════
   SEARCH RESULTS BANNER
════════════════════════════════════════════════════════════════ */
.search-banner {
    max-width: 1440px;
    margin: 1.5rem auto 0;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    box-shadow: var(--shadow-xs);
}
.search-banner-text strong {
    color: var(--red);
    font-weight: 900;
}
.search-banner .link-btn {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
}
.search-banner .link-btn:hover { background: var(--red-pale); }

/* ════════════════════════════════════════════════════════════════
   PRODUCTS SECTION
════════════════════════════════════════════════════════════════ */
.products-section {
    position: relative;
    z-index: 1;
    padding: 2rem 1.25rem 3.5rem;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

/* Products header with inline action */
.products-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--border);
    animation: fadeUp 0.4s var(--ease-out) both;
    flex-wrap: wrap;
}
.products-header-icon {
    width: 64px; height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--red-light), var(--red-pale));
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.products-title-block { flex: 1; min-width: 200px; }
.products-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4.2vw, 2.3rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.05;
}
.products-title .accent { color: var(--red); }
.products-desc {
    color: var(--text3);
    font-size: 0.92rem;
    margin-top: 0.35rem;
    font-weight: 500;
}
.products-count {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text2);
    padding: 0.35rem 0.75rem;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Section for search results */
.search-section {
    padding: 1.5rem 1.25rem 3rem;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

.group-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text2);
    margin-bottom: 0.55rem;
}

/* ── Products Grid ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* ── Product Card ── */
.product-card {
    position: relative;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
    display: flex;
    flex-direction: column;
    /* Snappy entrance — was 0.5s; longer durations made category clicks feel
       slow because the last card finished animating ~0.9s after the click. */
    animation: fadeUp 0.28s var(--ease-out) both;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 0 transparent;
    transition: box-shadow var(--dur) var(--ease);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--red) 45%, var(--border));
}
.product-card:hover::after {
    box-shadow: inset 0 0 0 1.5px var(--red-pale);
}
.product-card:focus-visible {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px var(--red-tint), var(--shadow-md);
}

/* Stagger — kept subtle (last card finishes by ~0.4s instead of ~0.9s).
   Cap at 4 cards so wide grids don't make the user wait for the 12th to land. */
.products-grid .product-card:nth-child(1)   { animation-delay: 0.02s; }
.products-grid .product-card:nth-child(2)   { animation-delay: 0.04s; }
.products-grid .product-card:nth-child(3)   { animation-delay: 0.06s; }
.products-grid .product-card:nth-child(4)   { animation-delay: 0.08s; }
.products-grid .product-card:nth-child(n+5) { animation-delay: 0.10s; }

/* Badge (e.g. new/popular) */
.product-badge {
    position: absolute;
    top: 0.75rem; left: 0.75rem;
    padding: 0.3rem 0.65rem;
    background: linear-gradient(135deg, var(--gold), #C48625);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    z-index: 3;
    box-shadow: 0 4px 14px rgba(200, 130, 40, 0.4);
}

/* Image */
.product-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, var(--bg2) 0%, var(--bg3) 100%);
}
.product-img-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.18));
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}
.product-card:hover .product-img-wrap::after { opacity: 1; }

.product-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease-out);
}
.product-card:hover .product-img { transform: scale(1.08); }

.product-img-placeholder {
    width: 100%; height: 100%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6) 0%, transparent 40%),
        linear-gradient(145deg, var(--bg2), var(--bg3));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.product-img-placeholder::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, var(--red-tint), transparent 30%);
}
.placeholder-icon {
    font-size: 4rem;
    opacity: 0.4;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
    transition: transform var(--dur-slow) var(--ease-out);
}
.product-card:hover .placeholder-icon { transform: scale(1.15) rotate(-6deg); }

/* Body */
.product-body {
    flex: 1;
    padding: 1.1rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.product-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.product-opis {
    font-size: 0.82rem;
    color: var(--text3);
    line-height: 1.45;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price */
.product-price-area {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1.5px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.single-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.55rem;
    color: var(--red);
    letter-spacing: 0.01em;
}
.single-price .currency {
    font-size: 0.85rem;
    color: var(--text3);
    margin-left: 0.2rem;
    font-weight: 600;
}

.dual-price {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    flex: 1;
}

.price-tag {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 0.4rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--surface2);
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.product-card:hover .price-tag { border-color: var(--border2); }
.price-tag--large {
    background: linear-gradient(145deg, var(--red-light), var(--red-pale));
    border-color: color-mix(in srgb, var(--red) 25%, transparent);
}
.product-card:hover .price-tag--large {
    border-color: color-mix(in srgb, var(--red) 40%, transparent);
}

.price-size {
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text3);
    line-height: 1;
}
.price-tag--large .price-size { color: var(--red); }

.price-val {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    letter-spacing: 0.01em;
}
.price-tag--large .price-val { color: var(--red); }
.price-val .currency { font-size: 0.7rem; opacity: 0.6; margin-left: 0.15rem; }

.price-divider { display: none; }

.price-note {
    font-size: 0.7rem;
    color: var(--text3);
    margin-top: 0.4rem;
    text-align: center;
    grid-column: 1 / -1;
    width: 100%;
    font-style: italic;
}
.product-price-area:has(.price-note) { flex-wrap: wrap; }
.product-price-area:has(.card-size-cta) { flex-wrap: wrap; }

/* Affordance shown on dual-price cards so users know tapping the card
   opens a size picker rather than adding directly. */
.card-size-cta {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--red-pale);
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1.5px solid color-mix(in srgb, var(--red) 22%, transparent);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.product-card:hover .card-size-cta {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    box-shadow: var(--shadow-red);
}
.card-size-cta-arrow {
    display: inline-flex;
    font-size: 0.95em;
    transition: transform var(--dur) var(--ease);
}
.product-card:hover .card-size-cta-arrow { transform: translateX(3px); }

.price-ask {
    font-size: 0.82rem;
    color: var(--text3);
    font-style: italic;
}

.view-arrow {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: 50%;
    color: var(--text3);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
    flex-shrink: 0;
    font-size: 1.05rem;
}
.product-card:hover .view-arrow {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: translateX(3px);
}

/* ════════════════════════════════════════════════════════════════
   SKELETON LOADER
════════════════════════════════════════════════════════════════ */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.skel-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.skel-img { width: 100%; aspect-ratio: 4/3; background: var(--bg2); }
.skel-body { padding: 1rem 1.1rem 1.2rem; }
.skel-line {
    height: 14px;
    background: var(--bg2);
    border-radius: 6px;
    margin-bottom: 0.55rem;
}
.skel-line.short { width: 60%; }
.skel-line.mid   { width: 85%; }
.skel-line.price { width: 40%; height: 22px; margin-top: 0.85rem; }

.skel-shimmer {
    position: relative;
    overflow: hidden;
}
.skel-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
    animation: shimmer 1.4s infinite;
}
html[data-theme="dark"] .skel-shimmer::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
}

/* ════════════════════════════════════════════════════════════════
   WELCOME PANEL — compact, elegant intro strip
════════════════════════════════════════════════════════════════ */
.welcome-panel {
    position: relative;
    text-align: center;
    padding: 1.75rem 1.5rem 1.85rem;
    animation: fadeUp 0.5s var(--ease-out) both;
    max-width: 860px;
    margin: 1.5rem auto 0.5rem;
    border-radius: 22px;
    background:
        radial-gradient(900px 200px at 50% -60%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 70%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
    border: 1px solid var(--border);
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--surface) 70%, transparent) inset,
        0 10px 30px -18px color-mix(in srgb, var(--espresso) 25%, transparent);
    overflow: hidden;
    isolation: isolate;
}

/* Subtle gold hairline top accent */
.welcome-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 60%, transparent), transparent);
    pointer-events: none;
}

/* ── Title ── */
.welcome-title {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3.4vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.55rem;
    line-height: 1.15;
    letter-spacing: -0.005em;
}
.welcome-title .accent {
    color: var(--red);
    font-style: italic;
    background: linear-gradient(135deg, var(--red) 40%, var(--gold) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Inline tag row (Od 2007 · Svježi · Autentični) ── */
.welcome-tags {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.7rem;
    margin: 0 auto 1.25rem;
    padding: 0.45rem 1rem;
    background: color-mix(in srgb, var(--gold) 8%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--gold) 25%, var(--border));
    border-radius: 999px;
    color: var(--text2);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.w-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}
.w-tag-icon {
    font-size: 0.95rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--espresso) 18%, transparent));
}
.w-tag-dot {
    color: var(--border3);
    font-weight: 700;
    font-size: 0.7rem;
    line-height: 1;
    user-select: none;
}

/* ── Quick tiles (Top 4 categories) — slim horizontal row ── */
.quick-tiles {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0.25rem auto 0;
    max-width: 720px;
}
.quick-tile {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.65rem 0.75rem;
    text-align: left;
    transition:
        transform var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease),
        background var(--dur) var(--ease);
    cursor: pointer;
    min-height: 52px;
}
.quick-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 60%);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}
.quick-tile:hover,
.quick-tile:focus-visible {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--red) 45%, var(--border));
    box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--red) 32%, transparent);
}
.quick-tile:focus-visible {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px var(--red-tint);
}
.quick-tile:hover::before,
.quick-tile:focus-visible::before { opacity: 1; }
.quick-tile-icon {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-pale), color-mix(in srgb, var(--gold) 25%, transparent));
    border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
    flex-shrink: 0;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.quick-tile:hover .quick-tile-icon,
.quick-tile:focus-visible .quick-tile-icon {
    transform: scale(1.05) rotate(-4deg);
    background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 40%, var(--gold-pale)), color-mix(in srgb, var(--red) 25%, var(--gold)));
}
.quick-tile-label {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text);
    line-height: 1.2;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--dur) var(--ease);
}
.quick-tile:hover .quick-tile-label,
.quick-tile:focus-visible .quick-tile-label { color: var(--red); }
.quick-tile-arrow {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text3);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), color var(--dur) var(--ease);
    flex-shrink: 0;
}
.quick-tile:hover .quick-tile-arrow,
.quick-tile:focus-visible .quick-tile-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--red);
}

@media (max-width: 760px) {
    .quick-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .welcome-panel { padding: 1.4rem 1rem 1.5rem; border-radius: 18px; }
    .welcome-tags { font-size: 0.76rem; padding: 0.4rem 0.85rem; }
}

/* ── Dark-mode tweak for the panel ── */
[data-theme="dark"] .welcome-panel {
    background:
        radial-gradient(900px 200px at 50% -60%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%),
        linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.05) inset,
        0 10px 28px -16px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .welcome-tags {
    background: color-mix(in srgb, var(--gold) 10%, var(--surface2));
    border-color: color-mix(in srgb, var(--gold) 28%, var(--border2));
}

/* ─────────────────────────────────────────────
   Featured / "Preporučujemo" section
   ───────────────────────────────────────────── */
.featured-section {
    margin: 2.75rem auto 1rem;
    max-width: 1200px;
    padding: 0 1.25rem;
    position: relative;
    animation: featuredRise .6s var(--ease) both;
}
@keyframes featuredRise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.featured-section::before {
    content: "";
    position: absolute;
    inset: -1.5rem 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    opacity: .7;
}

.featured-header {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    margin-bottom: 1.35rem;
    flex-wrap: wrap;
}
.featured-title-block { flex: 1 1 240px; min-width: 0; }

.featured-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--red);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--red) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--red) 25%, transparent);
}
.featured-star {
    display: inline-flex;
    color: var(--gold);
    filter: drop-shadow(0 0 5px color-mix(in srgb, var(--gold) 45%, transparent));
    font-size: 0.95rem;
    line-height: 1;
}

.featured-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.4vw, 2.25rem);
    font-weight: 700;
    color: var(--text);
    margin: 0.6rem 0 0.35rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.featured-desc {
    color: var(--text2);
    font-size: 0.98rem;
    max-width: 620px;
    margin: 0;
    line-height: 1.55;
}

.featured-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.9rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold) 60%, var(--red)));
    color: var(--text-on-red);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--gold) 32%, transparent);
}

/* Featured card grid — premium gold-edged treatment */
.products-grid--featured .product-card {
    border-color: color-mix(in srgb, var(--gold) 32%, var(--border));
    box-shadow: 0 4px 16px color-mix(in srgb, var(--gold) 12%, transparent);
}
.products-grid--featured .product-card::after {
    content: "★";
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold) 70%, var(--espresso)));
    color: var(--text-on-red);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--gold) 40%, transparent);
    pointer-events: none;
    transform-origin: center;
    animation: featuredBadgePop .5s var(--ease-spring) both;
}
@keyframes featuredBadgePop {
    from { opacity: 0; transform: scale(0.4); }
    to   { opacity: 1; transform: scale(1); }
}
.products-grid--featured .product-card:hover {
    box-shadow: 0 12px 28px color-mix(in srgb, var(--gold) 22%, transparent);
}
@media (prefers-reduced-motion: reduce) {
    .products-grid--featured .product-card::after { animation: none; }
}

/* Empty state (search no results) */
.empty-state {
    text-align: center;
    padding: 4rem 1.5rem 2rem;
    max-width: 480px;
    margin: 0 auto;
}
.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}
.empty-state-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.empty-state-text {
    color: var(--text3);
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
    transition: all var(--dur) var(--ease);
    border: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

/* ════════════════════════════════════════════════════════════════
   GALLERY — "Naš prostor"
════════════════════════════════════════════════════════════════ */
.gallery-section {
    margin: 3.5rem auto 1.5rem;
    max-width: 1200px;
    padding: 0 1.25rem;
    position: relative;
    animation: featuredRise .6s var(--ease) both;
}
.gallery-section::before {
    content: "";
    position: absolute;
    inset: -1.75rem 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    opacity: .7;
}

.gallery-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2rem;
}
.gallery-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--red);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--red) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--red) 25%, transparent);
}
.gallery-star {
    display: inline-flex;
    color: var(--gold);
    filter: drop-shadow(0 0 5px color-mix(in srgb, var(--gold) 45%, transparent));
    font-size: 0.95rem;
    line-height: 1;
}
.gallery-title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.8vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    margin: 0.8rem 0 0.5rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.gallery-desc {
    color: var(--text2);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 560px;
}

/* 2×2 grid on desktop, single column on mobile */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 9;
    background: var(--surface3);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
    isolation: isolate;
    transition:
        transform var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease),
        border-color var(--dur) var(--ease);
}
.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top,
        color-mix(in srgb, var(--espresso) 78%, transparent) 0%,
        color-mix(in srgb, var(--espresso) 32%, transparent) 35%,
        transparent 60%);
    opacity: 0.85;
    transition: opacity var(--dur) var(--ease);
    z-index: 1;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.7s var(--ease-out), filter var(--dur) var(--ease);
    filter: saturate(1.05);
}
.gallery-item figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.95rem 1.15rem;
    color: var(--text-on-red);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 1px 4px color-mix(in srgb, var(--espresso) 60%, transparent);
    transform: translateY(0);
    transition: transform var(--dur) var(--ease);
}
.gallery-cap-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--gold), var(--red));
    font-size: 0.95rem;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--espresso) 40%, transparent);
}
.gallery-cap-text {
    line-height: 1.1;
}

.gallery-item:hover,
.gallery-item:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--gold) 45%, var(--border));
}
.gallery-item:hover img,
.gallery-item:focus-within img {
    transform: scale(1.06);
    filter: saturate(1.15);
}
.gallery-item:hover::after,
.gallery-item:focus-within::after {
    opacity: 1;
}

@media (max-width: 760px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
    .gallery-item {
        aspect-ratio: 16 / 10;
        border-radius: var(--radius);
    }
    .gallery-item figcaption {
        padding: 0.8rem 0.95rem;
        font-size: 0.82rem;
    }
    .gallery-cap-icon {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }
    .gallery-section {
        margin-top: 2.5rem;
        padding: 0 1rem;
    }
}

[data-theme="dark"] .gallery-item {
    border-color: var(--border2);
}

/* ════════════════════════════════════════════════════════════════
   INFO SECTION (hours, location, contact)
════════════════════════════════════════════════════════════════ */
.info-section {
    position: relative;
    z-index: 1;
    padding: 3.5rem 1.25rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, var(--red-light), transparent 60%),
        var(--bg2);
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}
.info-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.info-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}
.info-heading .eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 900;
    color: var(--red);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border: 1.5px solid var(--red-pale);
    background: var(--surface);
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}
.info-heading h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}
.info-heading h2 .accent { color: var(--red); font-style: italic; }
.info-heading p {
    color: var(--text2);
    margin-top: 0.75rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.info-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--dur) var(--ease);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border2);
}
.info-card-icon {
    width: 48px; height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red-light);
    color: var(--red);
    border: 1px solid var(--red-pale);
    border-radius: var(--radius);
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}
.info-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
}
.info-card p, .info-card a {
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.5;
}
.info-card a {
    color: var(--red);
    font-weight: 700;
    transition: color var(--dur) var(--ease);
}
.info-card a:hover { color: var(--red-hover); text-decoration: underline; }

.hours-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.35rem;
}
.hours-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
    padding: 0.25rem 0;
    border-bottom: 1px dashed var(--border);
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { color: var(--text2); font-weight: 600; }
.hours-list .time { color: var(--text); font-weight: 800; font-family: var(--font-display); letter-spacing: 0.04em; }
.hours-list .time.closed { color: var(--text3); font-style: italic; }

/* ════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
.pasha-footer {
    background: linear-gradient(180deg, var(--red-deep), var(--espresso));
    padding: 3.5rem 1.5rem 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.pasha-footer::before {
    content: '';
    position: absolute;
    top: -80px; left: -80px;
    width: 260px; height: 260px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}
.pasha-footer::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -80px;
    width: 320px; height: 320px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand-block .foot-title {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.footer-brand-block .foot-subtitle {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    margin-bottom: 1.1rem;
}
.footer-brand-block .foot-tag {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--fs-md);
    color: rgba(255,255,255,0.82);
    margin-bottom: 1.5rem;
    max-width: 400px;
    line-height: 1.6;
}
.socials { display: flex; gap: 0.6rem; }
.soc {
    width: 44px; height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    font-size: var(--fs-md);
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
                border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.soc:hover {
    background: #fff;
    color: var(--red);
    border-color: #fff;
    transform: translateY(-3px);
}
.soc:focus-visible {
    outline: none;
    background: #fff;
    color: var(--red);
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.35);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col li {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
}
.footer-col li, .footer-col a {
    color: rgba(255,255,255,0.82);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    line-height: 1.5;
    transition: color var(--dur) var(--ease);
}
.footer-col a {
    border-radius: var(--radius-xs);
}
.footer-col a:hover { color: #fff; }
.footer-col a:focus-visible {
    outline: none;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
}
.footer-col .k { color: rgba(255,255,255,0.6); font-weight: 700; }
.footer-col .foot-ico {
    flex: none;
    display: inline-flex;
    align-self: center;
    color: var(--gold-light);
    font-size: var(--fs-base);
    opacity: 0.85;
}

.footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.06em;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-bottom .stars { color: var(--gold-light); letter-spacing: 0.35em; }

/* ════════════════════════════════════════════════════════════════
   MODAL (Product detail)
════════════════════════════════════════════════════════════════ */
.modal-backdrop {
    position: fixed; inset: 0;
    background: color-mix(in srgb, var(--espresso) 62%, transparent);
    backdrop-filter: blur(10px) saturate(1.05);
    -webkit-backdrop-filter: blur(10px) saturate(1.05);
    z-index: var(--z-modal-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn var(--dur) var(--ease-out) both;
    overflow-y: auto;
}

.modal-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    max-width: 640px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    z-index: var(--z-modal);
    animation: modalIn var(--dur-slow) var(--ease-spring) both;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 42px; height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--espresso) 45%, transparent);
    color: #fff;
    font-size: 1.2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5;
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease);
}
.modal-close:hover { background: var(--red); transform: rotate(90deg); }
.modal-close:focus-visible {
    outline: none;
    background: var(--red);
    box-shadow: 0 0 0 4px var(--red-tint), 0 0 0 6px color-mix(in srgb, var(--surface) 70%, transparent);
}

.modal-hero {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.modal-hero img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.modal-hero-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    opacity: 0.45;
    background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--surface) 60%, transparent), transparent 50%), linear-gradient(145deg, var(--bg2), var(--bg3));
}

.modal-body {
    padding: 1.75rem 1.75rem 1.5rem;
    overflow-y: auto;
}
.modal-group-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    background: var(--red-pale);
    color: var(--red);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 0.8rem;
}
.modal-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}
.modal-desc {
    color: var(--text2);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.modal-price-row {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 1.1rem 1.25rem;
    background: var(--surface2);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.modal-price-block { display: flex; flex-direction: column; gap: 0.2rem; }
.modal-price-block .label {
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text3);
}
.modal-price-block .val {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--red);
    letter-spacing: 0.01em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.modal-price-block .val .currency { font-size: 0.9rem; color: var(--text3); font-weight: 600; margin-left: 0.25rem; }
.modal-price-note {
    color: var(--text3);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.25rem;
}

.modal-cta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.btn-ghost {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.1rem;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text2);
    transition: all var(--dur) var(--ease);
    text-transform: uppercase;
    min-width: 140px;
}
.btn-ghost .pasha-icon { font-size: 1.05rem; flex-shrink: 0; }
.btn-ghost:hover {
    background: var(--red-pale);
    color: var(--red);
    border-color: var(--red);
}
.btn-ghost:focus-visible {
    outline: none;
    color: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 0 4px var(--red-tint);
}

/* ════════════════════════════════════════════════════════════════
   SCROLL TO TOP BUTTON
════════════════════════════════════════════════════════════════ */
.scroll-top {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    width: 52px; height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: #fff;
    font-size: 1.3rem;
    z-index: var(--z-scroll-top);
    box-shadow: var(--shadow-red);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: transform var(--dur) var(--ease-spring), opacity var(--dur) var(--ease);
}
.scroll-top--visible,
html.pasha-scrolled-deep .scroll-top {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.scroll-top:hover { transform: translateY(-4px) scale(1.05); }

/* ── Spinner ── */
.spinner {
    display: inline-block;
    width: 22px; height: 22px;
    border: 2.5px solid rgba(212,20,38,0.18);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}
.products-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    color: var(--text3);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ── Keyframes ── */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin    { to   { transform: rotate(360deg); } }
@keyframes shimmer { to   { transform: translateX(100%); } }
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.3); }
}
@keyframes wave {
    0%, 100%  { transform: rotate(0); }
    15%, 45%  { transform: rotate(-14deg); }
    30%, 60%  { transform: rotate(12deg); }
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes nudgeUp {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */

/* ── Very small phones ── */
@media (max-width: 400px) {
    body { font-size: 15.5px; }
    .pasha-header { padding: 2rem 1rem 3.25rem; }
    .action-bar-inner { padding: 0.7rem 0.85rem 0.8rem; }
    .search-input { padding: 0.72rem 2.4rem 0.72rem 2.6rem; font-size: 0.9rem; }
    .theme-btn { width: 40px; height: 40px; }
    .cat-btn { padding: 0.55rem 0.7rem; font-size: 0.72rem; }
    .cat-icon { font-size: 1.05rem; }
    .cat-count { font-size: 0.6rem; }

    .products-section { padding: 1.25rem 0.85rem 2.25rem; }
    .products-header  { gap: 0.75rem; margin-bottom: 1.25rem; padding-bottom: 1rem; }
    .products-header-icon { width: 52px; height: 52px; font-size: 1.65rem; }
    .products-grid, .skeleton-grid { grid-template-columns: 1fr; gap: 0.9rem; }

    .welcome-panel { padding: 1.25rem 0.9rem 1.4rem; border-radius: 16px; }
    .welcome-tags { font-size: 0.74rem; padding: 0.35rem 0.75rem; }
    .quick-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
    .quick-tile { padding: 0.55rem 0.6rem; min-height: 46px; }
    .quick-tile-icon { width: 30px; height: 30px; font-size: 1rem; }
    .quick-tile-label { font-size: 0.72rem; }

    .info-section { padding: 2.5rem 0.85rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .scroll-top { width: 46px; height: 46px; bottom: 1rem; right: 1rem; }

    .modal-body { padding: 1.25rem 1.1rem; }
}

/* ── Standard phones ── */
@media (min-width: 401px) and (max-width: 640px) {
    .pasha-header { padding: 2.25rem 1rem 3.5rem; }
    .products-grid, .skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }
    .product-opis { display: none; }
    .single-price { font-size: 1.25rem; }
    .price-tag { padding: 0.4rem 0.3rem; }
    .price-val { font-size: 0.88rem; }
    .view-arrow { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }

    .welcome-panel { padding: 1.5rem 1.1rem 1.65rem; }
    .quick-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Large phones / small tablets ── */
@media (min-width: 641px) and (max-width: 767px) {
    .products-grid, .skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Tablets ── */
@media (min-width: 768px) and (max-width: 1023px) {
    .products-grid, .skeleton-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
    .cat-btn { padding: 0.7rem 1.15rem; font-size: 0.85rem; }
    .cat-icon { font-size: 1.35rem; }
    .products-grid, .skeleton-grid {
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
        gap: 1.5rem;
    }
    .pasha-header { padding: 3.5rem 2rem 5rem; }
    .info-section { padding: 4.5rem 2rem; }
}

@media (min-width: 1440px) {
    .products-grid, .skeleton-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Touch: prevent stuck hover states */
@media (hover: none) {
    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
        border-color: var(--border);
    }
    .product-card:hover::after { box-shadow: none; }
    .product-card:hover .product-img { transform: none; }
    .product-card:hover .view-arrow { background: var(--surface2); color: var(--text3); transform: none; }
    .cat-btn:hover         { transform: none; background: var(--surface); color: var(--text2); border-color: var(--border); }
    .cat-btn:hover .cat-count { background: var(--red-pale); }
    .cat-btn--active       { transform: translateY(-1px); }
    .cat-btn--active:hover { transform: translateY(-1px); background: linear-gradient(135deg, var(--red), var(--red-deep)); color: var(--text-on-red); border-color: var(--red); }
    .info-card:hover       { transform: none; box-shadow: var(--shadow-sm); }
    .quick-tile:hover      { transform: none; border-color: var(--border); }
    .stat-chip:hover       { transform: none; background: rgba(255,255,255,0.1); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ════════════════════════════════════════════════════════════════
   CART BUTTON (in action bar)
════════════════════════════════════════════════════════════════ */
.cart-btn {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface);
    border: 1.5px solid var(--border2);
    color: var(--text2);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all var(--dur) var(--ease);
}
.cart-btn:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.cart-btn--pulse {
    animation: cartPulse 0.35s var(--ease-spring) both;
}
@keyframes cartPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.22); }
    100% { transform: scale(1); }
}

.cart-btn-badge {
    position: absolute;
    top: -5px; right: -5px;
    min-width: 18px; height: 18px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.62rem;
    font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg);
    animation: badgePop 0.3s var(--ease-spring) both;
    line-height: 1;
    font-family: var(--font-body);
}
@keyframes badgePop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* ── Hero order badge ── */
.header-order-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: var(--radius-full);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.92);
    margin-top: 1rem;
    text-transform: uppercase;
}
.order-badge-dot {
    width: 8px; height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 1.8s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
}

/* ── Order CTA strip (homepage) ── */
.order-cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem auto 0;
    max-width: 860px;
    padding: 1rem 1.4rem;
    background: linear-gradient(135deg, var(--red-light), var(--red-pale));
    border: 1.5px solid color-mix(in srgb, var(--red) 20%, transparent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    animation: fadeUp 0.5s var(--ease-out) both;
}
.order-cta-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.order-cta-icon { font-size: 1.7rem; line-height: 1; }
.order-cta-left strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: -0.005em;
}
.order-cta-left span {
    display: block;
    font-size: 0.8rem;
    color: var(--text2);
    margin-top: 0.15rem;
}
.order-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.3rem;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: var(--text-on-red);
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
    box-shadow: var(--shadow-red);
    outline: none;
}
.order-cta-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--red-hover), var(--red-deep));
    box-shadow: 0 14px 36px color-mix(in srgb, var(--red) 42%, transparent);
}
.order-cta-btn:focus-visible {
    box-shadow: 0 0 0 4px var(--red-tint), var(--shadow-red);
}
.order-cta-btn:active {
    transform: translateY(0);
}

/* ── Ordering-disabled notice (homepage, browse-only mode) ──
   Shown below the action bar when online ordering is off. Calm, on-brand
   gold accent (not an alarm) — the menu is still fully browsable, prices
   included. Tints are derived via color-mix from --gold + --surface so the
   banner reads correctly in both light and dark themes. */
.ordering-disabled-notice {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.25rem auto 0;
    max-width: 860px;
    padding: 1rem 1.4rem;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--gold) 12%, var(--surface)),
            color-mix(in srgb, var(--gold) 6%, var(--surface)));
    border: 1.5px solid color-mix(in srgb, var(--gold) 32%, transparent);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    animation: fadeUp 0.5s var(--ease-out) both;
}
.ordering-disabled-notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-full);
    color: var(--gold);
    background: color-mix(in srgb, var(--gold) 16%, transparent);
    font-size: 1.2rem;
}
.ordering-disabled-notice-text {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
}
@media (max-width: 560px) {
    .ordering-disabled-notice {
        align-items: flex-start;
        padding: 0.9rem 1.1rem;
        gap: 0.7rem;
    }
    .ordering-disabled-notice-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1.05rem;
    }
    .ordering-disabled-notice-text { font-size: 0.9rem; }
}

/* ════════════════════════════════════════════════════════════════
   PRODUCT CARD — add to cart button
════════════════════════════════════════════════════════════════ */
.card-add-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface2);
    border: 1.5px solid var(--border2);
    color: var(--text2);
    font-size: 1.05rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease);
    line-height: 1;
}
.card-add-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: scale(1.1);
    box-shadow: var(--shadow-red);
}
.card-add-btn:focus-visible {
    outline: none;
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 0 0 4px var(--red-tint);
}
.card-add-btn--done,
.card-add-btn--done:hover {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--success) 35%, transparent);
}

/* ════════════════════════════════════════════════════════════════
   PRODUCT DETAIL MODAL — cart additions
════════════════════════════════════════════════════════════════ */
.modal-cart-section {
    margin-top: 0.85rem;
    padding: 1.1rem;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* Size selector */
.modal-size-row { display: flex; flex-direction: column; gap: 0.55rem; }
.modal-size-label {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text3);
}
.modal-size-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.modal-size-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.8rem 0.6rem;
    background: var(--surface);
    border: 2px solid var(--border2);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease-spring);
}
.modal-size-btn:hover {
    border-color: var(--red);
    background: var(--red-light);
    transform: translateY(-2px);
}
.modal-size-btn:focus-visible {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px var(--red-tint);
}
.modal-size-btn--active,
.modal-size-btn--active:hover {
    border-color: var(--red-deep);
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: var(--text-on-red);
    box-shadow: var(--shadow-red);
    transform: translateY(-2px);
}
.modal-size-btn--active:focus-visible {
    box-shadow: var(--shadow-red), 0 0 0 4px var(--red-tint);
}

/* Selected check badge — only visible on the active size */
.size-check {
    position: absolute;
    top: -9px; right: -9px;
    width: 24px; height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 0.78rem;
    border: 2px solid var(--surface);
    box-shadow: var(--shadow-sm);
    transform: scale(0);
    transition: transform var(--dur) var(--ease-spring);
}
.modal-size-btn--active .size-check { transform: scale(1); }

.size-code {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}
.size-name {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}
.modal-size-btn--active .size-name { opacity: 0.95; }
.size-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.modal-size-btn--active .size-price { color: color-mix(in srgb, var(--text-on-red) 92%, transparent); }

.modal-size-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--text3);
    font-style: italic;
    text-align: center;
    margin-top: -0.25rem;
}
.modal-size-hint .pasha-icon {
    font-size: 0.95rem;
    color: var(--red);
    animation: nudgeUp 1.4s var(--ease) infinite;
}

/* Quantity + add-to-cart row */
.modal-qty-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.modal-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--surface);
    border: 1.5px solid var(--border2);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.5rem;
    flex-shrink: 0;
}
.modal-qty-btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    color: var(--text2);
    font-size: 1rem;
    font-weight: 700;
    transition: all var(--dur) var(--ease);
}
.modal-qty-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--text-on-red);
}
.modal-qty-btn:focus-visible {
    outline: none;
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 0 0 3px var(--red-tint);
}
.modal-qty-val {
    min-width: 24px;
    text-align: center;
    font-weight: 900;
    font-size: 1rem;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.modal-add-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.1rem;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-red);
    transition: all var(--dur) var(--ease);
    min-height: 48px;
}
.modal-add-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px color-mix(in srgb, var(--red) 45%, transparent);
}
.modal-add-btn:focus-visible {
    outline: none;
    box-shadow: var(--shadow-red), 0 0 0 4px var(--red-tint),
                0 0 0 6px color-mix(in srgb, var(--surface) 70%, transparent);
}
.modal-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}
.modal-add-btn--done,
.modal-add-btn--done:hover {
    background: linear-gradient(135deg, var(--success), var(--success-strong)) !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--success) 40%, transparent) !important;
    transform: none;
}
.modal-add-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.modal-add-label .pasha-icon { font-size: 1.1rem; flex-shrink: 0; }
.modal-add-total {
    font-size: 0.78rem;
    opacity: 0.85;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ════════════════════════════════════════════════════════════════
   CART DRAWER
════════════════════════════════════════════════════════════════ */
.cart-backdrop {
    position: fixed; inset: 0;
    background: color-mix(in srgb, var(--espresso) 45%, transparent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-modal-bg);
    animation: fadeIn 0.2s var(--ease) both;
}
html[data-theme="dark"] .cart-backdrop { background: color-mix(in srgb, #000 65%, transparent); }

.cart-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(420px, 100vw);
    background: var(--surface);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
    overflow: hidden;
}
.cart-drawer--open { transform: translateX(0); }

.cart-head {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: var(--surface);
}
.cart-head-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text);
}
.cart-head-icon {
    display: inline-flex;
    font-size: 1.3rem;
    color: var(--red);
}
.cart-head-badge {
    background: var(--red);
    color: var(--text-on-red);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 800;
    padding: 0.1rem 0.5rem;
    font-family: var(--font-body);
    font-variant-numeric: tabular-nums;
    line-height: 1.45;
}
.cart-head-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text3);
    font-size: 1.05rem;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cart-head-close:hover {
    background: var(--red-pale);
    color: var(--red);
    border-color: var(--red);
}
.cart-head-close:focus-visible {
    outline: none;
    color: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-tint);
}

/* Header right cluster — holds the discrete clear button + close button */
.cart-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Discreet "empty cart" trigger. Lives away from the primary checkout flow
   so it can't be hit by accident; opens an inline confirm banner. */
.cart-head-clear {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text3);
    font-size: 1rem;
    opacity: 0.75;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.cart-head-clear:hover {
    background: var(--red-pale);
    color: var(--red);
    border-color: var(--red);
    opacity: 1;
}
.cart-head-clear:focus-visible {
    outline: none;
    color: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-tint);
    opacity: 1;
}

/* Banner variant of the confirm dialog — sits between header and items so
   the user sees confirmation at the same place they triggered it. */
.cart-clear-confirm--banner {
    margin: 0.85rem 0.85rem 0;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 0;
    overscroll-behavior: contain;
}

/* Empty state */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    height: 100%;
}
.cart-empty-icon {
    display: inline-flex;
    font-size: 3rem;
    color: var(--border3);
    margin-bottom: 0.25rem;
}
.cart-empty h3 {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text);
}
.cart-empty p { color: var(--text3); font-size: var(--fs-sm); max-width: 220px; line-height: 1.5; }
.cart-empty-cta {
    margin-top: 0.75rem;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: var(--text-on-red);
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: var(--fs-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    box-shadow: var(--shadow-red);
}
.cart-empty-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cart-empty-cta:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--red-tint), var(--shadow-red);
}

/* Cart items list */
.cart-list {
    list-style: none;
    padding: 0 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.cart-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    animation: fadeUp 0.3s var(--ease-out) both;
}
.cart-item:hover {
    border-color: var(--border2);
    box-shadow: var(--shadow-xs);
}
.cart-item-thumb {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg2);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-emoji { font-size: 1.7rem; line-height: 1; opacity: 0.7; }
.cart-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.cart-item-name {
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-size {
    font-size: var(--fs-xs);
    color: var(--text3);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.cart-item-unit-price {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text2);
    font-variant-numeric: tabular-nums;
}
.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}
.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.cart-qty-btn {
    width: 27px; height: 27px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface);
    border: 1.5px solid var(--border2);
    color: var(--text2);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cart-qty-btn:hover { background: var(--red); color: var(--text-on-red); border-color: var(--red); }
.cart-qty-btn:focus-visible {
    outline: none;
    color: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-tint);
}
.cart-qty-val {
    min-width: 18px;
    text-align: center;
    font-weight: 800;
    font-size: var(--fs-sm);
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.cart-item-total {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text3);
    padding: 0.25rem;
    border-radius: var(--radius-xs);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease);
    opacity: 0.7;
}
.cart-remove:hover { color: var(--red); background: var(--red-pale); opacity: 1; }
.cart-remove:focus-visible {
    outline: none;
    color: var(--red);
    opacity: 1;
    box-shadow: 0 0 0 3px var(--red-tint);
}

/* Cart footer */
.cart-foot {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: var(--surface);
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.95rem;
    background: var(--surface2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.cart-total-label {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cart-total-val {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--red);
    font-variant-numeric: tabular-nums;
}
.cart-checkout-btn {
    width: 100%;
    padding: 0.9rem 1.4rem;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: var(--text-on-red);
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: var(--fs-base);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    box-shadow: var(--shadow-red);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.cart-checkout-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--red-tint), var(--shadow-red);
}
.cart-checkout-arrow {
    font-size: 1.2rem;
    transition: transform var(--dur) var(--ease);
}
.cart-checkout-btn:hover .cart-checkout-arrow { transform: translateX(3px); }
.cart-clear-btn {
    width: 100%;
    padding: 0.6rem;
    background: transparent;
    border: 1.5px solid var(--border2);
    border-radius: var(--radius-full);
    color: var(--text2);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cart-clear-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--red-tint);
}

/* "Nastavi kupovinu" — neutral secondary action that closes the drawer and
   sends the user back to the menu. Sits where the destructive empty-cart
   button used to live so the bottom of the cart is shopping-flow only. */
.cart-continue-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem;
    background: var(--surface2);
    border: 1.5px solid var(--border2);
    border-radius: var(--radius-full);
    color: var(--text2);
    font-size: var(--fs-sm);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cart-continue-btn .pasha-icon {
    font-size: 1.05rem;
    transition: transform var(--dur) var(--ease);
}
.cart-continue-btn:hover {
    background: var(--surface);
    border-color: var(--border3);
    color: var(--text);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.cart-continue-btn:hover .pasha-icon { transform: translateX(-3px); }
.cart-continue-btn:focus-visible {
    outline: none;
    border-color: var(--red);
    color: var(--text);
    box-shadow: 0 0 0 3px var(--red-tint);
}

/* Inline confirm dialog (banner under header OR inline in footer).
   Deliberately loud: a destructive action gets a red-accented surface, a
   left rail and lift so it can't be mistaken for an ordinary cart row. */
.cart-clear-confirm {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem 0.9rem;
    background: var(--red-pale);
    border: 1.5px solid color-mix(in srgb, var(--red) 45%, var(--border2));
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    color: var(--red-deep);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-align: center;
    box-shadow: var(--shadow-sm);
    animation: fadeUp 0.18s var(--ease-out);
}
.cart-clear-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.cart-clear-btn--cancel {
    background: var(--surface);
    border-color: var(--border2);
    color: var(--text2);
}
.cart-clear-btn--cancel:hover {
    background: var(--surface2);
    border-color: var(--border3);
    color: var(--text);
}
.cart-clear-btn--confirm {
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: var(--text-on-red);
    border-color: transparent;
    box-shadow: var(--shadow-red);
}
.cart-clear-btn--confirm:hover {
    background: linear-gradient(135deg, var(--red-hover), var(--red-deep));
    color: var(--text-on-red);
}
.cart-clear-btn--confirm:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--red-tint), var(--shadow-red);
}

/* ════════════════════════════════════════════════════════════════
   CHECKOUT PAGE
════════════════════════════════════════════════════════════════ */
.checkout-empty {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1.5rem;
    text-align: center;
}
.checkout-empty-icon { font-size: 4rem; opacity: 0.3; margin-bottom: 0.5rem; }
.checkout-empty h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}
.checkout-empty p { color: var(--text3); max-width: 360px; }
.checkout-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1.4rem;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: var(--text-on-red);
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: var(--shadow-red);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.checkout-back-btn:hover { transform: translateY(-2px); }
.checkout-back-btn:focus-visible {
    outline: none;
    box-shadow: var(--shadow-red), 0 0 0 4px var(--red-tint);
}

.checkout-page {
    min-height: 100vh;
    background: var(--bg);
    padding-bottom: 4rem;
}

.checkout-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.checkout-logo {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.checkout-logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--red);
}
.checkout-logo-sub {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text3);
    font-weight: 700;
}
.checkout-header-steps {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text3);
    letter-spacing: 0.02em;
}
.checkout-step {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem 0.3rem 0.35rem;
    border-radius: var(--radius-full);
    background: var(--surface2);
    border: 1px solid var(--border);
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.checkout-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: var(--radius-full);
    background: var(--surface3);
    color: var(--text3);
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}
.checkout-step--active {
    background: var(--red-light);
    border-color: color-mix(in srgb, var(--red) 25%, transparent);
    color: var(--red);
}
.checkout-step--active .checkout-step-num {
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: var(--text-on-red);
}
.checkout-step-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--border3);
    font-size: 1rem;
}
/* Collapse step labels on very narrow screens — numbers stay legible */
@media (max-width: 420px) {
    .checkout-step-label { display: none; }
    .checkout-step { padding: 0.3rem; }
}

.checkout-grid {
    max-width: 1080px;
    margin: 2rem auto;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 860px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        margin-top: 1.25rem;
        gap: 1.1rem;
    }
    /* Form first on mobile: the user fills it, then scrolls to the
       summary + submit. Avoids a tall sticky summary pushing the form
       below the fold. */
    .checkout-form-col { order: -1; }
    /* No sticky on small screens — let the summary scroll with the page
       so it never overlaps the form or traps the submit button. */
    .checkout-card--sticky { position: static; top: auto; }
}

.checkout-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.checkout-card--sticky { position: sticky; top: 80px; }

.checkout-card-head {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.checkout-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    background: var(--red-light);
    color: var(--red);
    font-size: 1.05rem;
    flex-shrink: 0;
}
.checkout-card-head h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}
.checkout-items-count {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text3);
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
}

.checkout-fields {
    padding: 1.3rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.checkout-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text2);
}
.checkout-input {
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border2);
    background: var(--surface2);
    color: var(--text);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.checkout-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-tint);
    background: var(--surface);
}
.checkout-textarea {
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border2);
    background: var(--surface2);
    color: var(--text);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    resize: vertical;
    min-height: 80px;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    font-family: inherit;
}
.checkout-textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-tint);
    background: var(--surface);
}
.checkout-field--error .checkout-input,
.checkout-field--error .checkout-textarea {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 12%, transparent);
}
.checkout-field--error .checkout-input:focus,
.checkout-field--error .checkout-textarea:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent);
}
.checkout-field--error .checkout-label { color: var(--danger); }
.checkout-error {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--danger);
    font-weight: 700;
}

/* Delivery type buttons */
.checkout-delivery-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}
.checkout-delivery-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: var(--surface2);
    border: 2px solid var(--border2);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    text-align: left;
}
.checkout-delivery-btn:hover {
    border-color: var(--red);
    background: var(--red-light);
}
.checkout-delivery-btn:focus-visible {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px var(--red-tint);
}
.checkout-delivery-btn--active {
    border-color: var(--red);
    background: linear-gradient(135deg, var(--red-light), var(--red-pale));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 15%, transparent);
}
.delivery-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text3);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.checkout-delivery-btn:hover .delivery-btn-icon,
.checkout-delivery-btn--active .delivery-btn-icon {
    color: var(--red);
    border-color: color-mix(in srgb, var(--red) 30%, transparent);
}
.checkout-delivery-btn--active .delivery-btn-icon {
    background: var(--surface);
}
.checkout-delivery-btn strong { display: block; font-size: 0.85rem; font-weight: 800; color: var(--text); }
.checkout-delivery-btn div span { display: block; font-size: 0.72rem; color: var(--text3); margin-top: 0.1rem; }

.checkout-server-error {
    padding: 0.85rem 1rem;
    background: color-mix(in srgb, var(--danger) 8%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--danger) 25%, transparent);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--danger);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.checkout-server-error .pasha-icon { font-size: 1.1rem; }

/* Summary column */
.checkout-item-list {
    list-style: none;
    padding: 0.85rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-bottom: 1px solid var(--border);
}
.checkout-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 0.7rem;
}
.checkout-item-thumb {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.checkout-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item-emoji { font-size: 1.4rem; opacity: 0.55; }
.checkout-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.checkout-item-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.checkout-item-size {
    font-size: 0.65rem;
    color: var(--text3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}
.checkout-item-qty {
    font-size: 0.72rem;
    color: var(--text3);
    font-weight: 600;
}
.checkout-item-price {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.checkout-totals {
    padding: 0.85rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border);
}
.checkout-subtotal,
.checkout-delivery-fee {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text2);
}
.checkout-fee-note { color: var(--text3); font-style: italic; }
.checkout-grand-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border);
    margin-top: 0.4rem;
}

.checkout-submit-btn {
    width: calc(100% - 2.5rem);
    margin: 0.85rem 1.25rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: var(--text-on-red);
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-red);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.checkout-submit-btn .pasha-icon { font-size: 1.1rem; }
.checkout-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--red) 45%, transparent);
}
.checkout-submit-btn:focus-visible {
    outline: none;
    box-shadow: var(--shadow-red), 0 0 0 4px var(--red-tint);
}
.checkout-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.checkout-privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 1.25rem 1rem;
    font-size: 0.72rem;
    color: var(--text3);
    text-align: center;
    font-style: italic;
}
.checkout-privacy-note .pasha-icon { font-size: 0.95rem; font-style: normal; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════
   ORDER CONFIRMATION PAGE
════════════════════════════════════════════════════════════════ */
.conf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 4rem;
    color: var(--text3);
    font-weight: 700;
}
.conf-not-found {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    text-align: center;
}
.conf-not-found-icon { font-size: 3.5rem; color: var(--text3); opacity: 0.4; }
.conf-not-found h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}
.conf-not-found p { color: var(--text3); }
.conf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--red);
    font-weight: 700;
    margin-top: 0.5rem;
}

.conf-page { max-width: 900px; margin: 0 auto; padding: 0 1.25rem 3rem; }

.conf-hero {
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: #fff;
    text-align: center;
    padding: 2.5rem 1.5rem 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.conf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 14px);
    pointer-events: none;
}
.conf-hero--cancelled {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--text2) 78%, #000),
        var(--espresso));
}
.conf-hero-inner { position: relative; z-index: 1; }
.conf-hero-icon { font-size: 3.5rem; margin-bottom: 0.75rem; animation: fadeDown 0.5s var(--ease-out) both; }
.conf-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: fadeDown 0.6s var(--ease-out) both;
}
.conf-hero-sub {
    font-size: 0.95rem;
    opacity: 0.88;
    max-width: 480px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}
.conf-order-number {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(6px);
}
.conf-order-label {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: 700;
}
.conf-order-code {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.conf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
    .conf-grid { grid-template-columns: 1fr; }
}

.conf-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
}
.conf-card--full { grid-column: 1 / -1; }
.conf-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* ── Status tracker (5-step rail) ── */
.conf-tracker {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.25rem;
    margin-bottom: 1.1rem;
    padding: 0;
    list-style: none;
    position: relative;
}
/* Connecting rail behind the dots */
.conf-tracker::before {
    content: '';
    position: absolute;
    top: 19px;
    left: 28px;
    right: 28px;
    height: 2px;
    background: var(--border2);
    z-index: 0;
}
.conf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    position: relative;
    z-index: 1;
}
.conf-step-dot {
    width: 38px; height: 38px;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    background: var(--surface2);
    border: 2px solid var(--border2);
    color: var(--text3);
    font-size: 1.05rem;
    transition: background var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
}
/* Completed steps — calm success */
.conf-step--done .conf-step-dot {
    background: var(--success-soft);
    border-color: var(--success);
    color: var(--success-strong);
}
/* Current step — brand red, gently emphasized */
.conf-step--current .conf-step-dot {
    background: var(--red);
    border-color: var(--red);
    color: var(--text-on-red);
    box-shadow: 0 0 0 4px var(--red-tint);
}
/* Upcoming steps inherit the muted base above. */

.conf-step-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text3);
    text-align: center;
    max-width: 60px;
    line-height: 1.25;
}
.conf-step--done .conf-step-label,
.conf-step--current .conf-step-label {
    color: var(--text2);
}

/* Cancelled — distinct treatment: muted red rail + x dots, no "done" greens */
.conf-tracker--cancelled::before {
    background: color-mix(in srgb, var(--red) 30%, var(--border2));
}
.conf-step--muted .conf-step-dot {
    background: var(--surface2);
    border-color: var(--border2);
    color: var(--text3);
    opacity: 0.7;
}
.conf-step--muted .conf-step-label {
    color: var(--text3);
}

.conf-cancelled-note {
    padding: 0.7rem 0.9rem;
    background: color-mix(in srgb, var(--red) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--red) 22%, transparent);
    border-radius: var(--radius);
    font-size: 0.82rem;
    color: var(--red);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.conf-cancelled-note .pasha-icon { flex-shrink: 0; font-size: 1.05rem; }

/* Status pill — uses translucent backgrounds so it adapts to light/dark theme */
.order-status--nova        { background: rgba(59,130,246,0.12);  color: #2563EB; border: 1.5px solid rgba(59,130,246,0.30); }
.order-status--potvrdjena  { background: var(--success-soft);  color: var(--success-strong); border: 1.5px solid color-mix(in srgb, var(--success) 32%, transparent); }
.order-status--priprema    { background: rgba(245,158,11,0.14);  color: #B45309; border: 1.5px solid rgba(245,158,11,0.34); }
.order-status--sprema      { background: rgba(139,92,246,0.14);  color: #7C3AED; border: 1.5px solid rgba(139,92,246,0.32); }
.order-status--isporucena  { background: var(--success-soft);   color: var(--success-strong); border: 1.5px solid color-mix(in srgb, var(--success) 34%, transparent); }
.order-status--otkazana    { background: var(--danger-soft);   color: var(--danger); border: 1.5px solid color-mix(in srgb, var(--danger) 30%, transparent); }

html[data-theme="dark"] .order-status--nova       { color: #93C5FD; border-color: rgba(147,197,253,0.40); }
html[data-theme="dark"] .order-status--potvrdjena { color: var(--success-strong); border-color: color-mix(in srgb, var(--success) 45%, transparent); }
html[data-theme="dark"] .order-status--priprema   { color: #FBBF24; border-color: rgba(251,191,36,0.40); }
html[data-theme="dark"] .order-status--sprema     { color: #C4B5FD; border-color: rgba(196,181,253,0.40); }
html[data-theme="dark"] .order-status--isporucena { color: var(--success-strong); border-color: color-mix(in srgb, var(--success) 45%, transparent); }
html[data-theme="dark"] .order-status--otkazana   { color: var(--danger-strong); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }

.conf-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 0.85rem;
}
.conf-status-pill .pasha-icon { font-size: 0.95rem; flex-shrink: 0; }

.conf-refresh-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem;
    border: 1.5px solid var(--border2);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all var(--dur) var(--ease);
}
.conf-refresh-btn .pasha-icon { font-size: 0.95rem; }
.conf-refresh-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-pale); }
.conf-refresh-btn:hover .pasha-icon { transform: rotate(90deg); transition: transform var(--dur) var(--ease); }

/* Order info grid */
.conf-info-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.conf-info-row {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.88rem;
}
.conf-info-row:last-child { border-bottom: none; }
.conf-info-key {
    flex-shrink: 0;
    width: 80px;
    color: var(--text3);
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-top: 0.1rem;
}
.conf-info-val { color: var(--text); font-weight: 600; line-height: 1.4; }
.conf-info-val--icon { display: inline-flex; align-items: center; gap: 0.4rem; }
.conf-info-val--icon .pasha-icon { font-size: 1rem; color: var(--text2); flex-shrink: 0; }

/* Order items table */
.conf-items { list-style: none; display: flex; flex-direction: column; gap: 0; }
.conf-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--border);
}
.conf-item:last-child { border-bottom: none; }
.conf-item-info { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; }
.conf-item-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.conf-item-size { font-size: 0.68rem; color: var(--text3); text-transform: uppercase; font-weight: 700; letter-spacing: 0.06em; }
.conf-item-meta { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }
.conf-item-qty { font-size: 0.82rem; color: var(--text3); font-weight: 600; }
.conf-item-price {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--red);
    min-width: 70px;
    text-align: right;
}
.conf-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0 0;
    border-top: 2px solid var(--border);
    margin-top: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text2);
}
.conf-order-total strong {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--red);
}

/* Action buttons */
.conf-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.conf-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.3rem;
    border: 1.5px solid var(--border2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text2);
    background: var(--surface);
    transition: all var(--dur) var(--ease);
    letter-spacing: 0.04em;
}
.conf-action-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-pale); }
.conf-action-btn--primary {
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: #fff;
    border-color: var(--red);
    box-shadow: var(--shadow-red);
}
.conf-action-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px color-mix(in srgb, var(--red) 40%, transparent);
    color: var(--text-on-red);
    background: linear-gradient(135deg, var(--red-hover), var(--red-deep));
}

.conf-save-hint {
    font-size: 0.8rem;
    color: var(--text3);
    text-align: center;
    padding: 0.85rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* ════════════════════════════════════════════════════════════════
   ADMIN ORDER STYLES
════════════════════════════════════════════════════════════════ */
.ac-section-label {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text3);
    padding: 0 0.25rem;
    margin-bottom: 0.4rem;
}

.stat-card--alert {
    border-color: color-mix(in srgb, var(--danger) 35%, transparent) !important;
    background: color-mix(in srgb, var(--danger) 4%, transparent) !important;
}
html[data-theme="dark"] .stat-card--alert {
    background: color-mix(in srgb, var(--danger) 10%, transparent) !important;
}
html[data-theme="dark"] .orders-row--new td { background: rgba(59, 130, 246, 0.10); }

/* Orders filter tabs */
.orders-filter-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
}
.orders-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.orders-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text2);
    letter-spacing: 0.04em;
    transition: all var(--dur) var(--ease);
    cursor: pointer;
}
.orders-tab .pasha-icon { font-size: 0.95rem; flex-shrink: 0; }
.orders-tab-label { line-height: 1; }
.orders-tab:hover { border-color: var(--red); color: var(--red); background: var(--red-pale); }
.orders-tab--active {
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    border-color: var(--red);
    color: var(--text-on-red);
}
.orders-tab-badge {
    background: color-mix(in srgb, var(--text3) 16%, transparent);
    color: var(--text2);
    border-radius: var(--radius-full);
    padding: 0.05rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    min-width: 1.1rem;
    text-align: center;
}
.orders-tab--active .orders-tab-badge {
    background: color-mix(in srgb, var(--text-on-red) 26%, transparent);
    color: var(--text-on-red);
}

/* Orders table */
.orders-table-wrap { overflow-x: auto; }
.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.orders-table th {
    padding: 0.7rem 0.9rem;
    text-align: left;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text3);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.orders-table td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
}
.orders-row:hover td { background: var(--surface2); }
.orders-row--new td { background: rgba(59, 130, 246, 0.04); }
.orders-order-num {
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--text);
}
.orders-tel {
    color: var(--red);
    font-weight: 700;
    font-size: 0.85rem;
}
.orders-tel:hover { text-decoration: underline; }
.orders-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.orders-type-pill .pasha-icon { font-size: 0.85rem; flex-shrink: 0; }
.orders-type-pill--dostava     { background: rgba(59,130,246,0.12); color: #2563EB; }
.orders-type-pill--preuzimanje { background: var(--success-soft);  color: var(--success-strong); }
html[data-theme="dark"] .orders-type-pill--dostava     { color: #93C5FD; }
.orders-time { color: var(--text3); font-size: 0.78rem; white-space: nowrap; }

/* Order status badge (used in both customer + admin) */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.order-status-badge .pasha-icon { font-size: 0.95rem; flex-shrink: 0; }

/* Quick actions */
.orders-quick-actions { display: flex; gap: 0.35rem; }
.orders-action-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    color: var(--text2);
    font-size: 0.85rem;
    transition: all var(--dur) var(--ease);
    cursor: pointer;
}
.orders-action-btn .pasha-icon { font-size: 1rem; }
.orders-action-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-pale); }
.orders-action-btn:focus-visible {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px var(--red-tint);
}
.orders-action-btn--next {
    background: rgba(59,130,246,0.12);
    border-color: rgba(59,130,246,0.35);
    color: #2563EB;
}
.orders-action-btn--next:hover { background: #2563EB; border-color: #2563EB; color: #fff; }
html[data-theme="dark"] .orders-action-btn--next { color: #93C5FD; border-color: rgba(147,197,253,0.40); }

/* ── Toast ── */
.orders-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    z-index: var(--z-toast);
    animation: fadeUp 0.3s var(--ease-out) both;
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
    white-space: nowrap;
}

/* ── Admin order detail ── */
.order-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1.1rem 1.25rem;
}
.order-status-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    background: var(--surface2);
    border: 1.5px solid var(--border2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text2);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    letter-spacing: 0.04em;
}
.order-status-btn .pasha-icon { font-size: 1rem; flex-shrink: 0; }
.order-status-btn:hover:not(:disabled) {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-pale);
}
.order-status-btn:focus-visible {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px var(--red-tint);
}
.order-status-btn--current {
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    border-color: var(--red);
    color: var(--text-on-red);
    cursor: default;
    pointer-events: none;
}
.order-status-btn--cancel:hover:not(:disabled) {
    border-color: var(--red);
    color: var(--red);
    background: color-mix(in srgb, var(--red) 10%, transparent);
}

.order-detail-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.55rem 1.1rem;
    font-size: 0.88rem;
}
.order-detail-dl dt {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text3);
    padding-top: 0.15rem;
}
.order-detail-dl dd {
    color: var(--text);
    font-weight: 600;
    line-height: 1.45;
}
.order-napomena { font-style: italic; color: var(--text2) !important; }
.order-tel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--red);
    font-weight: 700;
}
.order-tel-link .pasha-icon { font-size: 0.95rem; flex-shrink: 0; }
.order-tel-link:hover { text-decoration: underline; }
.order-detail-type { display: inline-flex; align-items: center; gap: 0.4rem; }
.order-detail-type .pasha-icon { font-size: 1rem; color: var(--text2); flex-shrink: 0; }

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.order-items-table th {
    padding: 0.65rem 1rem;
    text-align: left;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text3);
    border-bottom: 1.5px solid var(--border);
}
.order-items-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px dashed var(--border);
    color: var(--text);
    vertical-align: middle;
}
.order-items-total td {
    border-bottom: none;
    border-top: 2px solid var(--border);
    font-weight: 800;
    font-size: 0.95rem;
}

/* ════════════════════════════════════════════════════════════════
   THEME TOGGLE — page variants
════════════════════════════════════════════════════════════════ */
/* Checkout-page variant: matches header height/spacing */
.theme-btn--checkout {
    flex-shrink: 0;
    width: 40px; height: 40px;
}

/* Admin topbar variant: subtle border, sits next to "Pogledaj sajt" */
.theme-btn--admin {
    width: 38px; height: 38px;
    font-size: 1rem;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--border2);
    color: var(--text2);
    margin-right: 0.5rem;
    transition: all var(--dur) var(--ease);
}
.theme-btn--admin:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-1px);
}

/* Floating variant for OrderConfirmation page */
.conf-floating-actions {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: var(--z-nav);
}
.conf-floating-link,
.theme-btn--floating {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1.5px solid var(--border2);
    color: var(--text2);
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--dur) var(--ease);
    text-decoration: none;
}
.conf-floating-link:hover,
.theme-btn--floating:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════════
   MOJE NARUDŽBE — guest order history page
════════════════════════════════════════════════════════════════ */
.my-orders-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--red) 6%, transparent), transparent 40%),
        radial-gradient(circle at 85% 100%, color-mix(in srgb, var(--gold) 7%, transparent), transparent 40%),
        var(--bg);
}
@supports (height: 100dvh) {
    .my-orders-page { min-height: 100dvh; }
}

.my-orders-floating-actions {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: var(--z-nav);
}

.my-orders-head {
    text-align: center;
    margin-bottom: 2rem;
}
.my-orders-head-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    display: grid; place-items: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--red-pale), var(--gold-pale));
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    color: var(--red);
}
.my-orders-head-icon .pasha-icon { font-size: 1.9rem; stroke-width: 1.75; }
.my-orders-head h1 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4.5vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}
.my-orders-sub {
    color: var(--text2);
    margin-top: 0.6rem;
    line-height: 1.5;
    font-size: 0.95rem;
}
.my-orders-privacy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    padding: 0.25rem 0.75rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    color: var(--text3);
    font-weight: 700;
}
.my-orders-privacy .pasha-icon { font-size: 0.9rem; color: var(--text2); }

.my-orders-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 3rem 1rem;
    color: var(--text3);
    font-weight: 600;
}

.my-orders-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}
.my-orders-empty-icon { color: var(--text3); opacity: 0.45; margin-bottom: 0.75rem; }
.my-orders-empty-icon .pasha-icon { font-size: 3.25rem; stroke-width: 1.5; }
.my-orders-empty h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}
.my-orders-empty p { color: var(--text3); max-width: 380px; margin: 0 auto 1.25rem; }
.my-orders-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.4rem;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: var(--shadow-red);
    transition: all var(--dur) var(--ease);
}
.my-orders-empty-cta .pasha-icon { font-size: 1rem; transition: transform var(--dur) var(--ease); }
.my-orders-empty-cta:hover { transform: translateY(-2px); }
.my-orders-empty-cta:hover .pasha-icon { transform: translateX(-3px); }

.my-orders-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.my-orders-count {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.my-orders-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.my-orders-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--text2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all var(--dur) var(--ease);
}
.my-orders-tool-btn .pasha-icon { font-size: 0.95rem; flex-shrink: 0; transition: transform var(--dur) var(--ease); }
.my-orders-tool-btn:hover:not(:disabled) {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-pale);
}
/* Refresh (non-danger) button: spin the cw arrow on hover as a refresh hint. */
.my-orders-tool-btn:not(.my-orders-tool-btn--danger):hover:not(:disabled) .pasha-icon { transform: rotate(90deg); }
.my-orders-tool-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.my-orders-tool-btn--danger { color: var(--text3); }
.my-orders-tool-btn--danger:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-pale);
}
.my-orders-clear-confirm {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--red-pale);
    border: 1px solid var(--red);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--red);
    animation: fadeUp 0.18s var(--ease-out);
}
.my-orders-clear-yes,
.my-orders-clear-no {
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.78rem;
}
.my-orders-clear-yes {
    background: var(--red);
    color: #fff;
}
.my-orders-clear-no {
    background: transparent;
    color: var(--red);
    border: 1px solid var(--red);
}

.my-orders-list {
    display: grid;
    gap: 0.85rem;
}

.my-order-card-wrap {
    position: relative;
}

.my-order-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.1rem 1.2rem 1rem;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
    overflow: hidden;
    position: relative;
}
.my-order-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--border2);
    transition: background var(--dur) var(--ease);
}
.my-order-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--red);
}
.my-order-card:focus-visible {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px var(--red-tint), var(--shadow-md);
}

/* Status colour rail on the left edge — instant visual scan of order state.
   Hues mirror the canonical .order-status--* pill table; green tokenized to --success. */
.my-order-card--active::before    { background: linear-gradient(180deg, #2563EB, #1D4ED8); }
.my-order-card--preparing::before { background: linear-gradient(180deg, #F59E0B, #D97706); }
.my-order-card--done::before      { background: linear-gradient(180deg, var(--success), var(--success-strong)); }
.my-order-card--cancelled::before { background: linear-gradient(180deg, #6B7280, #4B5563); }

.my-order-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.my-order-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.my-order-status-pill .pasha-icon { font-size: 0.95rem; flex-shrink: 0; }
.my-order-num {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text2);
    letter-spacing: 0.05em;
}

.my-order-card-body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}
.my-order-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text2);
    font-size: 0.92rem;
    font-weight: 600;
}
.my-order-meta-icon { display: inline-flex; color: var(--text3); }
.my-order-meta-icon .pasha-icon { font-size: 1.05rem; }
.my-order-meta-sep { color: var(--text3); margin: 0 0.2rem; }
.my-order-total {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--red);
    letter-spacing: 0.02em;
}
.my-order-currency { font-size: 0.85rem; opacity: 0.7; margin-left: 0.15rem; }

.my-order-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--border);
}
.my-order-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text3);
    font-size: 0.82rem;
}
.my-order-time .pasha-icon { font-size: 0.95rem; flex-shrink: 0; }
.my-order-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--red);
    transition: transform var(--dur) var(--ease);
}
.my-order-arrow .pasha-icon { font-size: 1.05rem; }
.my-order-card:hover .my-order-arrow { transform: translateX(4px); }

.my-order-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text3);
    opacity: 0;
    transition: all var(--dur) var(--ease);
    z-index: 2;
}
.my-order-remove .pasha-icon { font-size: 0.9rem; }
.my-order-card-wrap:hover .my-order-remove,
.my-order-remove:focus-visible { opacity: 1; }
.my-order-remove:hover {
    background: var(--red-pale);
    color: var(--red);
    border-color: var(--red);
    transform: scale(1.05);
}
/* On touch devices the hover-to-reveal pattern doesn't work — keep visible. */
@media (hover: none) {
    .my-order-remove { opacity: 0.7; }
}

.my-orders-foot-note {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    background: var(--surface2);
    border: 1px dashed var(--border2);
    border-radius: var(--radius);
    color: var(--text3);
    font-size: 0.85rem;
    line-height: 1.5;
}
.my-orders-foot-note .pasha-icon { font-size: 0.95rem; color: var(--text2); margin-right: 0.15rem; }

/* ════════════════════════════════════════════════════════════════
   ACCESSIBILITY — skip link
════════════════════════════════════════════════════════════════ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    padding: 0.6rem 1rem;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    z-index: 1000;
    transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
    top: 1rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Screen-reader-only — visually hidden but announced by assistive tech.
   Used for live regions like the cart announcement. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ════════════════════════════════════════════════════════════════
   MOBILE: dynamic viewport height (handles iOS Safari toolbar collapse)
════════════════════════════════════════════════════════════════ */
@supports (height: 100dvh) {
    .pasha-wrapper { min-height: 100dvh; }
    .checkout-empty,
    .conf-not-found,
    .status-page { min-height: 100dvh; }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE: sticky "view cart" CTA
   Only shown when cart has items, on small screens, and only on the home
   page. The .has-cart class is added to <body> by Home.razor when Korpa.Count > 0.
════════════════════════════════════════════════════════════════ */
.mobile-cart-cta {
    display: none;
    position: fixed;
    left: 50%;
    bottom: max(1rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 90;
    padding: 0.85rem 1.4rem;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 16px 36px rgba(212, 20, 38, 0.4);
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.2);
    transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}
.mobile-cart-cta:hover { transform: translateX(-50%) translateY(-2px); }
.mobile-cart-cta-count {
    background: rgba(255,255,255,0.2);
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-full);
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
}

@media (max-width: 720px) {
    body.has-cart .mobile-cart-cta { display: inline-flex; }
    /* Add padding so the floating CTA doesn't cover the footer's last line */
    body.has-cart .pasha-footer { padding-bottom: 4.5rem; }
}

/* ════════════════════════════════════════════════════════════════
   STATUS PAGES (404, 500, generic error)
════════════════════════════════════════════════════════════════ */
.status-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 1.25rem;
    background:
        radial-gradient(circle at 20% 10%, var(--red-tint), transparent 45%),
        radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 45%),
        var(--bg);
}

.status-card {
    width: 100%;
    max-width: 520px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2.25rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
}

.status-card-mark {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--red) 0%, var(--gold) 100%);
    color: #fff;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--red) 38%, transparent);
    margin-bottom: 0.25rem;
}

.status-card-code {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 5rem;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--red);
    margin-top: 0.25rem;
}
.status-card-code--err { color: var(--gold); }

.status-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.65rem;
    color: var(--text);
    line-height: 1.25;
    margin-top: -0.125rem;
}

.status-card-text {
    color: var(--text2);
    max-width: 380px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.status-card-meta {
    margin-top: 0.25rem;
    color: var(--text3);
    font-size: 0.85rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.875rem;
    width: 100%;
}
.status-card-meta code {
    background: color-mix(in srgb, var(--red) 8%, var(--bg2));
    border: 1px solid color-mix(in srgb, var(--red) 20%, var(--border));
    border-radius: var(--radius-xs);
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    color: var(--red);
    margin-left: 0.4rem;
}

.status-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 0.625rem;
}

.status-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 1.35rem;
    border-radius: var(--radius-full);
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border2);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.status-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    background: color-mix(in srgb, var(--surface2) 60%, var(--surface));
    border-color: var(--border);
}
.status-btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent);
    outline-offset: 3px;
}
.status-btn--primary {
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-red);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.status-btn--primary:hover {
    box-shadow: 0 14px 36px color-mix(in srgb, var(--red) 45%, transparent);
    background: linear-gradient(135deg, var(--red-hover), var(--red-deep));
}
.status-btn--primary:focus-visible {
    outline-color: color-mix(in srgb, var(--red) 70%, transparent);
}

.status-foot {
    color: var(--text3);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

/* ════════════════════════════════════════════════════════════════
   ACCESSIBILITY POLISH
════════════════════════════════════════════════════════════════ */

/* Visible focus ring for keyboard navigation (mouse focus stays clean) */
:focus-visible {
    outline: 3px solid rgba(212, 20, 38, 0.55);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Honor user motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print */
@media print {
    .action-bar, .scroll-top, .modal-backdrop, .pasha-footer,
    .conf-floating-actions, .theme-btn { display: none !important; }
    .pasha-header { background: none; color: var(--text); }
    .product-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE TAP TARGETS — minimum 44×44 px hit area on small screens
   per WCAG 2.5.5 / Apple HIG
════════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
    .cart-btn,
    .theme-btn,
    .orders-link-btn,
    .search-clear,
    .cart-head-close,
    .cart-head-clear,
    .cart-qty-btn,
    .cart-remove,
    .modal-close,
    .modal-qty-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ════════════════════════════════════════════════════════════════
   LOGIN PASSWORD POLICY HINT
════════════════════════════════════════════════════════════════ */
.login-policy {
    margin: 0.5rem 0 1rem;
    padding: 0.6rem 0.9rem;
    list-style: none;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text2);
}
.login-policy li {
    padding: 0.15rem 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.login-policy li::before {
    content: "✓";
    color: var(--red);
    font-weight: 700;
}
.login-alert--ok {
    background: #E7F6E8;
    border-color: #98D69B;
    color: #1F5C25;
}
html[data-theme="dark"] .login-alert--ok {
    background: rgba(50, 150, 60, 0.15);
    border-color: rgba(120, 220, 130, 0.35);
    color: #B6E8B9;
}
