/* =====================================================================
   CrazyTaste — main stylesheet (no build step, edit directly)
   Visual base: "Blogar" template (TEMPLATE/blogar) — Red Hat Display,
   black headings, #F0F2F5 surfaces, blue primary, red category labels,
   flip-text navigation hover, growing title underline, image zoom.
   Sections: 1 tokens · 2 base · 3 layout · 4 header · 5 components
             6 home · 7 listing · 8 product · 9 pages · 10 footer · 11 motion
   ===================================================================== */

/* ---------- 1. Fonts & design tokens ---------- */
@font-face {
    font-family: 'Red Hat Display';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('../fonts/red-hat-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Red Hat Display';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('../fonts/red-hat-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --font: 'Red Hat Display', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif;

    --c-primary: #3858F6;
    --c-primary-hover: #2241e0;
    --c-primary-soft: rgba(56, 88, 246, .1);
    --c-secondary: #D93E40;
    --c-hot: #F1352A;
    --c-accent: #FF8F3C;
    --c-success: #2e9e4f;
    --c-warning: #b45309;
    --c-danger: #d70f12;

    --c-heading: #000000;
    --c-text: #1a1a1a;
    --c-muted: #65676B;
    --c-subtle: #878787;
    --c-bg: #ffffff;
    --c-bg-soft: #F0F2F5;
    --c-surface: #ffffff;
    --c-surface-2: #F0F2F5;
    --c-border: #E6E6E6;
    --c-border-strong: #CED0D4;
    --c-overlay: rgba(0, 0, 0, .5);
    --c-dark-section: #1A1A1A;
    --c-on-dark: #ffffff;
    --c-demo-bg: #fff4d6;
    --c-demo-text: #7a4b00;
    --c-demo-border: #f3c96b;

    --radius: 10px;
    --radius-big: 16px;
    --radius-small: 6px;
    --radius-pill: 500px;
    --shadow-1: 0 2px 6px rgba(0, 0, 0, .05);
    --shadow-2: 0 4px 10px rgba(37, 47, 63, .1);
    --shadow-3: 0 18px 40px -12px rgba(15, 23, 42, .25);
    --ease: cubic-bezier(.19, 1, .22, 1);
    --t: .3s;

    --header-h: 80px;
    --gutter: 16px;
    color-scheme: light;
}

/* Dark tokens: system preference unless the visitor chose light, or explicit choice */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --c-primary: #5b77ff;
        --c-primary-hover: #7d93ff;
        --c-primary-soft: rgba(91, 119, 255, .16);
        --c-secondary: #ff6b6d;
        --c-heading: #ffffff;
        --c-text: #e8e8e8;
        --c-muted: #b4b4b4;
        --c-subtle: #9F9F9F;
        --c-bg: #212121;
        --c-bg-soft: #1A1A1A;
        --c-surface: #1A1A1A;
        --c-surface-2: #242424;
        --c-border: #333333;
        --c-border-strong: #444444;
        --c-dark-section: #141414;
        --c-demo-bg: #3b2d0b;
        --c-demo-text: #ffd37a;
        --c-demo-border: #6b5114;
        --shadow-1: 0 2px 6px rgba(0, 0, 0, .3);
        --shadow-2: 0 4px 14px rgba(0, 0, 0, .35);
        --shadow-3: 0 18px 40px -12px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --c-primary: #5b77ff;
    --c-primary-hover: #7d93ff;
    --c-primary-soft: rgba(91, 119, 255, .16);
    --c-secondary: #ff6b6d;
    --c-heading: #ffffff;
    --c-text: #e8e8e8;
    --c-muted: #b4b4b4;
    --c-subtle: #9F9F9F;
    --c-bg: #212121;
    --c-bg-soft: #1A1A1A;
    --c-surface: #1A1A1A;
    --c-surface-2: #242424;
    --c-border: #333333;
    --c-border-strong: #444444;
    --c-dark-section: #141414;
    --c-demo-bg: #3b2d0b;
    --c-demo-text: #ffd37a;
    --c-demo-border: #6b5114;
    --shadow-1: 0 2px 6px rgba(0, 0, 0, .3);
    --shadow-2: 0 4px 14px rgba(0, 0, 0, .35);
    --shadow-3: 0 18px 40px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--c-primary-hover); }
h1, h2, h3, h4, h5, h6, .h4 { color: var(--c-heading); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; overflow-wrap: anywhere; hyphens: auto; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.25rem; }
.h4 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
code { font-size: .9em; background: var(--c-surface-2); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--c-primary); color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-small); }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--c-muted); }
.small { font-size: .875rem; }
[hidden] { display: none !important; }

.icon { width: 20px; height: 20px; flex: none; }
.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 16px; height: 16px; }
.icon--xl { width: 44px; height: 44px; }
.iso {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 26px; height: 18px; padding: 0 4px; border-radius: 4px;
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
    background: var(--c-surface-2); color: var(--c-muted); border: 1px solid var(--c-border);
    vertical-align: middle;
}
.dot { color: var(--c-border-strong); margin: 0 .45em; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: calc(1230px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }
@media (min-width: 768px) { :root { --gutter: 24px; } }

.section { padding: 56px 0; }
.section--tight { padding: 32px 0 64px; }
.section--grey { background: var(--c-bg-soft); }
.section--dark { background: var(--c-dark-section); color: #e8e8e8; --c-heading: #fff; --c-text: #e8e8e8; --c-muted: #b4b4b4; --c-surface: #232323; --c-surface-2: #2b2b2b; --c-border: #333; }
.section--dark .section-title, .section--dark .card__title a { color: #fff; }
@media (min-width: 992px) { .section { padding: 88px 0; } }

.grid { display: grid; gap: 14px; }
.grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { gap: 22px; } }
@media (min-width: 768px) { .grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; } }

/* ---------- 4. Header ---------- */
.topbar { background: var(--c-bg-soft); font-size: 14px; display: none; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 16px; }
.topbar__claim { margin: 0; color: var(--c-muted); font-weight: 500; }
.topbar__tools { display: flex; gap: 8px; align-items: center; }
@media (min-width: 1200px) { .topbar { display: block; } }

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--c-surface);
    border-bottom: 1px solid transparent;
    transition: box-shadow var(--t), border-color var(--t), background var(--t);
}
.site-header.is-scrolled { box-shadow: var(--shadow-2); border-bottom-color: var(--c-border); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
@media (min-width: 1200px) { .site-header__inner { min-height: var(--header-h); } }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-heading); flex: none; }
.logo:hover { color: var(--c-heading); }
.logo__mark svg { width: 36px; height: 36px; transition: transform .6s var(--ease); }
.logo:hover .logo__mark svg { transform: rotate(-8deg) scale(1.06); }
.logo__word { font-size: 21px; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
.logo__word span { color: var(--c-hot); }
@media (min-width: 400px) { .logo__mark svg { width: 40px; height: 40px; } .logo__word { font-size: 23px; } }

.site-nav { display: none; margin: 0 auto; }
@media (min-width: 1200px) { .site-nav { display: block; } }
.mainnav { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.mainnav a { display: flex; padding: 10px 11px; font-size: 16px; font-weight: 500; color: var(--c-muted); border-radius: var(--radius-small); }
.mainnav a.is-active { color: var(--c-heading); }
.mainnav a.is-active .flip { box-shadow: inset 0 -2px 0 var(--c-hot); }

/* Template signature: flip-text hover (pointer devices only) */
.hover-flip .flip { display: inline-flex; overflow: hidden; vertical-align: top; }
.hover-flip .flip > span { display: inline-block; position: relative; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .hover-flip .flip > span { transition: transform .8s var(--ease); }
    .hover-flip .flip > span::after {
        content: attr(data-text); position: absolute; left: 0; top: 105%; white-space: nowrap;
        color: var(--c-primary); transform: skewY(7deg); transform-origin: left top;
        transition: transform 1.2s var(--ease);
    }
    .card__cat.hover-flip .flip > span::after { color: var(--c-primary); }
    .hover-flip:hover .flip > span, .hover-flip:focus-visible .flip > span { transform: translateY(-105%); }
    .hover-flip:hover .flip > span::after, .hover-flip:focus-visible .flip > span::after { transform: skewY(0); }
}

.site-header__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 1200px) { .site-header__tools { margin-left: 0; } }
.search-pill {
    display: none; align-items: center; gap: 8px;
    background: var(--c-surface-2); border-radius: var(--radius-pill);
    padding: 0 16px; height: 42px; width: 230px; color: var(--c-muted);
    border: 1px solid transparent; transition: border-color var(--t), width .4s var(--ease), background var(--t);
}
.search-pill:focus-within { border-color: var(--c-primary); background: var(--c-surface); width: 270px; }
.search-pill input { border: 0; background: transparent; outline: none; font: inherit; font-size: 15px; color: var(--c-text); width: 100%; min-width: 0; }
@media (min-width: 768px) { .search-pill { display: flex; } .icon-btn--search { display: none !important; } }
@media (min-width: 1200px) and (max-width: 1360px) { .search-pill { width: 180px; } .search-pill:focus-within { width: 220px; } }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--c-surface-2); color: var(--c-heading);
    transition: background var(--t), color var(--t), transform var(--t);
    list-style: none;
}
.icon-btn:hover { background: var(--c-primary); color: #fff; }
.icon-btn::-webkit-details-marker { display: none; }
.theme-icon { display: inline-flex; }
.theme-icon--sun { display: none; }
:root[data-theme="dark"] .theme-icon--sun { display: inline-flex; }
:root[data-theme="dark"] .theme-icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-icon--sun { display: inline-flex; }
    :root:not([data-theme="light"]) .theme-icon--moon { display: none; }
}

/* Dropdowns (language, delivery country) — <details>, no JS required */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.pill-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
    border-radius: var(--radius-pill); background: var(--c-surface); color: var(--c-heading);
    font-size: 14px; font-weight: 600; border: 1px solid var(--c-border); white-space: nowrap;
    transition: border-color var(--t), color var(--t);
}
.pill-btn:hover, .dropdown[open] > .pill-btn { border-color: var(--c-primary); color: var(--c-primary); }
.dropdown__menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; min-width: 220px;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
    box-shadow: var(--shadow-3); padding: 8px; list-style: none; margin: 0;
    animation: drop .25s var(--ease);
}
.dropdown__menu ul { list-style: none; margin: 0; padding: 0; }
.dropdown__menu a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-small); color: var(--c-text); font-weight: 500; }
.dropdown__menu a:hover { background: var(--c-surface-2); color: var(--c-primary); }
.dropdown__menu a.is-active { color: var(--c-primary); background: var(--c-primary-soft); }
.dropdown__menu .code { font-size: 12px; font-weight: 700; color: var(--c-subtle); width: 22px; }
.dropdown__hint { font-size: 13px; color: var(--c-muted); margin: 4px 8px 8px; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Mobile drawer */
.drawer > summary { list-style: none; }
.drawer > summary::-webkit-details-marker { display: none; }
.drawer__close { display: none; }
.drawer[open] .drawer__open { display: none; }
.drawer[open] .drawer__close { display: inline-flex; }
.drawer__panel {
    position: fixed; left: 0; right: 0; top: 64px; bottom: 0; z-index: 99;
    background: var(--c-surface); padding: 20px var(--gutter) 40px; overflow-y: auto;
    border-top: 1px solid var(--c-border); animation: slide .35s var(--ease);
}
@keyframes slide { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.drawer__nav { list-style: none; margin: 16px 0; padding: 0; }
.drawer__nav a { display: block; padding: 14px 4px; font-size: 20px; font-weight: 700; color: var(--c-heading); border-bottom: 1px solid var(--c-border); }
.drawer__nav a.is-active { color: var(--c-hot); }
.drawer__tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.drawer__tools .dropdown__menu { position: static; margin-top: 8px; box-shadow: none; }
.drawer__tools .pill-btn { height: 44px; padding: 0 16px; }
.search-field { display: flex; gap: 8px; }
.search-field input {
    flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: var(--radius-pill);
    border: 1px solid var(--c-border-strong); background: var(--c-surface-2); color: var(--c-text); font: inherit;
}
@media (min-width: 1200px) { .drawer { display: none; } }

/* Vertical LIGHT / DARK switcher (template "my_switcher") — desktop only */
.theme-switcher {
    position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 90;
    display: none; flex-direction: column; border: 2px solid var(--c-primary); border-radius: var(--radius-pill);
    background: var(--c-surface); overflow: hidden; box-shadow: var(--shadow-2);
}
.theme-switcher button {
    writing-mode: vertical-rl; transform: rotate(180deg); border: 0; background: transparent; cursor: pointer;
    font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--c-primary); padding: 14px 7px; transition: background var(--t), color var(--t);
}
.theme-switcher button + button { border-bottom: 2px solid var(--c-primary); }
.theme-switcher button[aria-pressed="true"] { background: var(--c-primary); color: #fff; }
@media (min-width: 1400px) { .theme-switcher:not([hidden]) { display: flex; } }

/* ---------- 5. Components ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 50px; padding: 0 28px; border-radius: var(--radius-pill); border: 2px solid transparent;
    font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; white-space: nowrap;
    transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
    text-align: center;
}
.btn--primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn--primary:hover { background: transparent; color: var(--c-primary); }
.btn--outline { border-color: var(--c-border-strong); color: var(--c-heading); background: var(--c-surface); }
.btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--ghost { color: var(--c-muted); background: transparent; }
.btn--ghost:hover { color: var(--c-primary); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--lg { height: 56px; padding: 0 32px; }
.btn--disabled { background: var(--c-surface-2); color: var(--c-subtle); border-color: var(--c-border); cursor: not-allowed; height: 40px; font-size: 14px; padding: 0 16px; }
.btn:active { transform: scale(.98); }

.kicker { margin: 0 0 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--c-secondary); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-title { margin: 0; overflow-wrap: anywhere; }
.section-head > div { min-width: 0; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
/* Small screens: long titles (brand names, Greek) get the full width, the "see all" link moves below */
@media (max-width: 599.98px) {
    .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .link-more { white-space: normal; min-height: 44px; }
}
.link-more .icon { transition: transform var(--t); }
.link-more:hover .icon { transform: translateX(4px); }
.section-note, .page-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 24px; font-size: 14px; color: var(--c-muted); }
.section-note .icon, .page-note .icon { margin-top: 3px; }
.page-meta { display: flex; gap: 6px; align-items: center; color: var(--c-muted); font-size: 15px; }

/* Badges */
.badge {
    display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px;
    border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; letter-spacing: .03em;
    text-transform: uppercase; white-space: nowrap; line-height: 1;
}
.badge--demo { background: var(--c-demo-bg); color: var(--c-demo-text); border: 1px dashed var(--c-demo-border); }
.badge--limited { background: var(--c-secondary); color: #fff; }
.badge--viral { background: linear-gradient(135deg, #7c3aed, var(--c-primary)); color: #fff; }
.badge--soon { background: var(--c-primary-soft); color: var(--c-primary); }
.badge--tag { background: var(--c-surface-2); color: var(--c-muted); text-transform: none; letter-spacing: 0; font-weight: 600; }
.score-pill {
    display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px;
    border-radius: var(--radius-pill); background: rgba(10, 10, 10, .78); color: #fff;
    font-weight: 800; font-size: 14px; backdrop-filter: blur(6px);
}
.score-pill .icon { color: var(--c-accent); }

/* Product card (template content-block) */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media {
    display: block; position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius);
    overflow: hidden; background: var(--c-surface-2); isolation: isolate;
}
.card__media img, .card__media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) {
    .card:hover .card__media img, .card:hover .card__media .ph { transform: scale(1.08); }
    .card:hover .card__score .score-pill { transform: translateY(-2px) scale(1.06); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
    .taste:hover .taste__dots i.on { transform: scale(1.18); }
}
.card__score .score-pill { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:focus-within .card__media { outline: 3px solid var(--c-primary); outline-offset: 3px; }
.card:focus-within .card__title a { background-size: 100% 2px; }
.card__flags { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 2; max-width: calc(100% - 70px); pointer-events: none; }
.card__score { position: absolute; top: 10px; right: 10px; z-index: 2; }
.card__body { padding: 14px 2px 0; min-width: 0; }
.card__cat {
    display: inline-flex; margin: 0 0 6px; font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; color: var(--c-secondary);
}
.card__cat:hover { color: var(--c-secondary); }
.card__cat--light { color: #ffb4b5; }
.card__title { font-size: 16px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; }
.card__title a, .story__title a, .feature__title a {
    color: var(--c-heading);
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat;
    transition: background-size .6s var(--ease), color var(--t);
}
.card:hover .card__title a, .card__title a:focus-visible, .story:hover .story__title a, .feature:hover .feature__title a { background-size: 100% 2px; }
/* Make the whole card clickable without nesting links */
.card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card__cat { position: relative; z-index: 3; }
.card__meta { margin: 0; font-size: 13px; color: var(--c-muted); overflow-wrap: anywhere; }
.card__text { margin: 8px 0 0; font-size: 14px; color: var(--c-muted); }
@media (min-width: 640px) { .card__title { font-size: 18px; } .card__body { padding-top: 18px; } }
@media (max-width: 420px) {
    .card__flags .badge { height: 20px; font-size: 10px; padding: 0 6px; }
    .score-pill { height: 24px; font-size: 12px; padding: 0 8px; }
    .card__flags { top: 6px; left: 6px; } .card__score { top: 6px; right: 6px; }
}

/* Image placeholder (no rights-cleared photo yet) */
.ph {
    --ph-a: #ff8f3c; --ph-b: #f1352a;
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; min-height: 100%; overflow: hidden; color: rgba(255, 255, 255, .95);
    background:
        radial-gradient(120% 90% at 85% 10%, rgba(255, 255, 255, .28), transparent 55%),
        radial-gradient(90% 70% at 10% 100%, rgba(0, 0, 0, .18), transparent 60%),
        linear-gradient(135deg, var(--ph-a), var(--ph-b));
    filter: hue-rotate(var(--ph-rot, 0deg));
}
.ph__glyph { width: 46%; max-width: 160px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .18)); }
.ph__glyph svg { width: 100%; height: auto; }
.ph__initials {
    position: absolute; right: 8%; bottom: 4%; font-size: clamp(28px, 9vw, 64px); font-weight: 900;
    letter-spacing: -.04em; color: rgba(255, 255, 255, .22); line-height: 1;
}
.ph--chips { --ph-a: #ffb347; --ph-b: #f1352a; }
.ph--candy { --ph-a: #ff7eb3; --ph-b: #8e44ff; }
.ph--chocolate { --ph-a: #a0643c; --ph-b: #4a2511; }
.ph--drink { --ph-a: #38d6f6; --ph-b: #3858F6; }
.ph--noodles { --ph-a: #ffd23f; --ph-b: #f1352a; }
.ph--sauce { --ph-a: #ff5f45; --ph-b: #8b0000; }
.ph--spice { --ph-a: #ffa53c; --ph-b: #b5361d; }
.ph--snack { --ph-a: #6ee7a8; --ph-b: #138f6a; }
.ph--hero .ph__glyph { width: 38%; max-width: 220px; }

/* Chips */
.chip {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px;
    border-radius: var(--radius-small); border: 1px solid var(--c-border-strong);
    color: var(--c-heading); background: var(--c-surface); font-weight: 500; font-size: 15px;
    transition: border-color var(--t), color var(--t), box-shadow var(--t), transform var(--t);
}
.chip:hover { color: var(--c-primary); border-color: var(--c-primary); box-shadow: var(--shadow-2); }
.chip--removable { background: var(--c-primary-soft); border-color: transparent; color: var(--c-primary); font-weight: 600; min-height: 34px; padding: 4px 12px; }
.chip--country { padding-right: 10px; }
.chip__count { font-size: 12px; font-weight: 700; color: var(--c-subtle); background: var(--c-surface-2); border-radius: var(--radius-pill); padding: 2px 8px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 22px 0 0; }
.quick-chips--left { margin-top: 18px; }
.flavour-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 24px; }
.flavour-chips .chip { min-height: 34px; font-size: 14px; border-radius: var(--radius-pill); }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 16px; font-size: 14px; color: var(--c-muted); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--c-border-strong); }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs [aria-current] { color: var(--c-heading); font-weight: 600; overflow-wrap: anywhere; }

/* Pagination */
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 48px 0 0; }
.pg {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
    border-radius: var(--radius-pill); border: 1px solid var(--c-border-strong); color: var(--c-heading); font-weight: 600;
}
a.pg:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pg.is-current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pg--gap { border: 0; min-width: 20px; }

/* Notices */
.notice { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 18px; border-radius: var(--radius); margin: 0 0 20px; font-size: 15px; }
.notice--demo { background: var(--c-demo-bg); color: var(--c-demo-text); border: 1px dashed var(--c-demo-border); }
.notice--info { background: var(--c-primary-soft); color: var(--c-heading); }
.notice--warning { background: var(--c-demo-bg); color: var(--c-demo-text); border: 1px solid var(--c-demo-border); }
.notice--soft { background: var(--c-surface-2); color: var(--c-muted); }
.notice--success { background: rgba(46, 158, 79, .12); color: var(--c-success); border: 1px solid rgba(46, 158, 79, .35); }
.notice--error { background: rgba(215, 15, 18, .08); color: var(--c-danger); border: 1px solid rgba(215, 15, 18, .3); }
:root[data-theme="dark"] .notice--error { color: #ff8a8c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notice--error { color: #ff8a8c; } }

.empty-state { text-align: center; padding: 56px 16px; border: 2px dashed var(--c-border); border-radius: var(--radius-big); color: var(--c-muted); }
.empty-state .icon { margin: 0 auto 16px; color: var(--c-border-strong); }
.empty-state .btn { margin-top: 8px; max-width: 100%; white-space: normal; text-align: center; height: auto; min-height: 44px; }

/* Forms */
.field { margin-bottom: 20px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; font-size: 14px; color: var(--c-heading); margin-bottom: 8px; padding: 0; }
.field input[type="search"], .field input[type="text"], .field input[type="email"], .field input[type="url"], .field input[type="number"],
.field input[type="password"], .field input[type="date"], .field input[type="datetime-local"], .field select, .field textarea {
    width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; font-size: 15px;
    color: var(--c-text); background: var(--c-surface); border: 1px solid var(--c-border-strong); border-radius: var(--radius);
    transition: border-color var(--t), box-shadow var(--t);
}
.field select { appearance: none; padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23878787' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.field__hint { font-size: 13px; color: var(--c-muted); margin: 8px 0 0; display: flex; gap: 6px; }
.field--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.field--chips legend { width: 100%; }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-chip span {
    display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: var(--radius-pill);
    border: 1px solid var(--c-border-strong); font-size: 14px; font-weight: 500; color: var(--c-text); transition: all var(--t);
}
.radio-chip input:checked + span { background: var(--c-heading); color: var(--c-bg); border-color: var(--c-heading); }
.radio-chip input:focus-visible + span { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 36px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--c-primary); flex: none; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); }
.table--compact th, .table--compact td { padding: 8px 4px; }
.table--compact tbody th { font-weight: 500; color: var(--c-muted); }

/* ---------- 6. Home ---------- */
.hero { position: relative; overflow: hidden; background: var(--c-bg-soft); padding: 48px 0 56px; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.blob--1 { width: 420px; height: 420px; background: #3858F6; top: -140px; right: -80px; animation: float1 18s ease-in-out infinite alternate; }
.blob--2 { width: 360px; height: 360px; background: #F1352A; bottom: -160px; right: 22%; animation: float2 22s ease-in-out infinite alternate; opacity: .35; }
.blob--3 { width: 300px; height: 300px; background: #FF8F3C; top: 30%; left: -140px; animation: float1 26s ease-in-out infinite alternate-reverse; opacity: .3; }
:root[data-theme="dark"] .blob { opacity: .32; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blob { opacity: .32; } }
@keyframes float1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 50px) scale(1.15); } }
@keyframes float2 { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(70px, -40px) scale(.95); } }

.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero__copy { min-width: 0; }
.kicker--hero { display: inline-flex; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--c-surface); box-shadow: var(--shadow-1); }
.hero__title { font-size: clamp(2.05rem, 1.1rem + 4.6vw, 4.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; margin: 14px 0 18px; hyphens: manual; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
    content: ''; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .32em; z-index: -1; border-radius: 4px;
    background: linear-gradient(90deg, var(--c-hot), var(--c-accent)); opacity: .9;
    transform: scaleX(0); transform-origin: left; animation: hl-in 1s var(--ease) forwards;
}
.hl--1::after { animation-delay: .35s; }
.hl--2::after { animation-delay: .65s; background: linear-gradient(90deg, #3858F6, #38d6f6); }
.hl--3::after { animation-delay: .95s; background: linear-gradient(90deg, #8e44ff, #ff7eb3); }
@keyframes hl-in { to { transform: scaleX(1); } }
.hero__lead { font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); color: var(--c-muted); max-width: 40rem; margin-bottom: 26px; }

.hero-search {
    display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; max-width: 620px;
    background: var(--c-surface); border-radius: var(--radius-pill); box-shadow: var(--shadow-3);
    border: 2px solid transparent; transition: border-color var(--t), box-shadow var(--t);
}
.hero-search:focus-within { border-color: var(--c-primary); }
.hero-search__icon { color: var(--c-muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--c-text); height: 48px; }
.hero-search .btn { height: 48px; padding: 0 22px; }
.hero-search--compact { margin: 24px auto; }
@media (max-width: 420px) { .hero-search { padding-left: 12px; } .hero-search .btn { padding: 0 16px; } .hero-search__icon { display: none; } }

/* Orbit visual (the hero "wow") */
.hero__visual { display: none; }
@media (min-width: 992px) {
    .hero { padding: 72px 0 88px; }
    .hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); }
    .hero__visual { display: flex; justify-content: center; }
}
.orbit { position: relative; width: min(440px, 100%); aspect-ratio: 1; }
.orbit__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--c-border-strong); }
.orbit__ring--outer { animation: spin 46s linear infinite; }
.orbit__ring--inner { inset: 22%; border-style: solid; border-color: var(--c-border); animation: spin 30s linear infinite reverse; }
.orbit__item { position: absolute; width: 74px; height: 74px; margin: -37px; border-radius: 22px; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-3); color: #fff; animation: spin 46s linear infinite reverse; }
.orbit__item > span { width: 46px; display: block; }
.orbit__item--0 { top: 0; left: 50%; }
.orbit__item--1 { top: 25%; left: 93.3%; }
.orbit__item--2 { top: 75%; left: 93.3%; }
.orbit__item--3 { top: 100%; left: 50%; }
.orbit__item--4 { top: 75%; left: 6.7%; }
.orbit__item--5 { top: 25%; left: 6.7%; }
.orbit__core {
    position: absolute; inset: 31%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: radial-gradient(circle at 30% 25%, #ffb36b, #F1352A 55%, #a3123a); color: #fff; box-shadow: 0 30px 60px -20px rgba(241, 53, 42, .6), inset 0 -8px 20px rgba(0, 0, 0, .15);
    animation: pulse 4s ease-in-out infinite;
}
.orbit__label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; opacity: .9; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.04); } }
.topic--chips, .orbit__item.topic--chips { background: linear-gradient(135deg, #ffb347, #f1352a); }
.topic--candy, .orbit__item.topic--candy { background: linear-gradient(135deg, #ff7eb3, #8e44ff); }
.topic--chocolate, .orbit__item.topic--chocolate { background: linear-gradient(135deg, #a0643c, #4a2511); }
.topic--drink, .orbit__item.topic--drink { background: linear-gradient(135deg, #38d6f6, #3858F6); }
.topic--noodles, .orbit__item.topic--noodles { background: linear-gradient(135deg, #ffd23f, #f1352a); }
.topic--sauce, .orbit__item.topic--sauce { background: linear-gradient(135deg, #ff5f45, #8b0000); }
.topic--spice, .orbit__item.topic--spice { background: linear-gradient(135deg, #ffa53c, #b5361d); }
.topic--snack, .orbit__item.topic--snack { background: linear-gradient(135deg, #6ee7a8, #138f6a); }

/* Pillars: Discover / Extreme / Limited */
.section--pillars { padding: 0; margin-top: -28px; position: relative; z-index: 2; }
.pillars { display: grid; gap: 14px; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; } }
.pillar {
    position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
    padding: 18px 20px; border-radius: var(--radius-big); background: var(--c-surface); color: var(--c-text);
    box-shadow: var(--shadow-2); border: 1px solid var(--c-border); overflow: hidden;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color var(--t);
}
.pillar::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); z-index: -1; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); color: var(--c-text); border-color: transparent; }
.pillar__icon { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; }
.pillar__icon .icon { width: 26px; height: 26px; }
.pillar--discover .pillar__icon { background: linear-gradient(135deg, #38d6f6, #3858F6); }
.pillar--extreme .pillar__icon { background: linear-gradient(135deg, #FF8F3C, #F1352A); }
.pillar--limited .pillar__icon { background: linear-gradient(135deg, #ff7eb3, #8e44ff); }
.pillar__title { font-size: 20px; font-weight: 800; color: var(--c-heading); }
.pillar__text { grid-column: 2; font-size: 14px; color: var(--c-muted); line-height: 1.45; }
.pillar__go { grid-row: 1 / 3; grid-column: 3; width: 36px; height: 36px; border-radius: 50%; background: var(--c-surface-2); display: flex; align-items: center; justify-content: center; color: var(--c-heading); transition: background var(--t), color var(--t), transform .5s var(--ease); }
.pillar:hover .pillar__go { background: var(--c-primary); color: #fff; transform: translateX(3px); }

/* Limited: list + feature (template "Top Stories") */
.stories { display: grid; gap: 24px; }
@media (min-width: 992px) { .stories { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 30px; } }
.stories__list { display: flex; flex-direction: column; }
.story { position: relative; display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.story:first-child { padding-top: 0; }
.story__thumb { flex: none; width: 88px; height: 88px; border-radius: var(--radius); overflow: hidden; }
.story__thumb img, .story__thumb .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.story__thumb .ph__initials { display: none; }
.story:hover .story__thumb img, .story:hover .story__thumb .ph { transform: scale(1.1); }
.story__title { font-size: 18px; margin: 0 0 4px; }
.story__body { min-width: 0; }
.story__body .card__cat { margin-bottom: 4px; }
@media (min-width: 640px) { .story__thumb { width: 104px; height: 104px; } .story__title { font-size: 20px; } }
.feature { position: relative; border-radius: var(--radius-big); overflow: hidden; min-height: 360px; display: flex; isolation: isolate; }
.feature__media { position: absolute; inset: 0; z-index: -2; }
.feature__media img, .feature__media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature:hover .feature__media img, .feature:hover .feature__media .ph { transform: scale(1.05); }
.feature::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .78)); pointer-events: none; }
.feature__overlay { align-self: flex-end; padding: 28px; color: #fff; }
.feature__title { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); margin: 0 0 8px; }
.feature__title a { color: #fff; }
.feature__title a::after { content: ''; position: absolute; inset: 0; }
.feature__text { margin: 0; color: rgba(255, 255, 255, .85); }

/* Category tiles (template "Trending Topics") */
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 640px) { .topics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .topics { grid-template-columns: repeat(8, minmax(0, 1fr)); } .topics--large { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.topic {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1 / 1.08;
    padding: 14px; border-radius: var(--radius); color: #fff; overflow: hidden; isolation: isolate;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.topic::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .35)); }
.topic:hover { transform: translateY(-5px) rotate(-.5deg); box-shadow: var(--shadow-3); color: #fff; }
.topic__glyph { position: absolute; top: 12%; left: 50%; width: 46%; transform: translateX(-50%); transition: transform .6s var(--ease); opacity: .95; }
.topic:hover .topic__glyph { transform: translateX(-50%) scale(1.12) rotate(-6deg); }
.topic__name { font-weight: 800; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.topic__count { font-size: 12px; opacity: .85; font-weight: 600; }
.topic-group { display: flex; flex-direction: column; gap: 10px; }
.topic-children { list-style: none; margin: 0; padding: 0 4px; font-size: 15px; }
.topic-children a { color: var(--c-heading); font-weight: 600; }
.topics--large .topic { aspect-ratio: 4 / 3; }
.topics--large .topic__glyph { width: 32%; top: 14%; }
.topics--large .topic__name { font-size: 20px; }

/* Concept steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { padding: 28px; border-radius: var(--radius-big); background: var(--c-bg-soft); border: 1px solid var(--c-border); }
.step__no { display: block; font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -.04em; margin-bottom: 14px;
    background: linear-gradient(135deg, var(--c-hot), var(--c-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step__title { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.step p { color: var(--c-muted); margin: 0; }
.concept__note { margin-top: 24px; font-size: 14px; color: var(--c-muted); }

/* ---------- 7. Listing pages ---------- */
.page-hero { background: var(--c-bg-soft); padding: 28px 0 32px; }
@media (min-width: 992px) { .page-hero { padding: 44px 0 48px; } }
.page-title { margin: 0 0 10px; }
.page-intro { font-size: 1.08rem; color: var(--c-muted); max-width: 46rem; margin: 0; }

.listing { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 72px; }
@media (min-width: 992px) { .listing { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; padding-top: 40px; } }
.results { min-width: 0; }
.results__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.results__count { margin: 0; font-weight: 600; color: var(--c-muted); }
.active-filters { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0; margin: 0 0 24px; }
.link-reset { font-size: 14px; font-weight: 600; }

.filters__panel { background: var(--c-bg-soft); border-radius: var(--radius-big); padding: 22px; }
.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.filters__title { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0; }
.filters__close { display: none; }
.filters__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.filters__actions .btn { flex: 1; height: 46px; padding: 0 18px; }
.filters-open { display: inline-flex; }
@media (min-width: 992px) {
    .filters { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; border-radius: var(--radius-big); }
    .filters-open { display: none; }
}
/* Mobile: off-canvas filter panel via :target (works without JavaScript) */
@media (max-width: 991.98px) {
    .filters { position: fixed; inset: 0; z-index: 200; background: var(--c-overlay); display: none; }
    .filters:target, .filters.is-open { display: block; }
    .filters__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); border-radius: 0; overflow-y: auto; background: var(--c-surface); animation: panel .35s var(--ease); padding-bottom: 96px; }
    .filters__close { display: inline-flex; }
    .filters__actions { position: fixed; bottom: 0; right: 0; width: min(420px, 100%); padding: 14px 22px; background: var(--c-surface); border-top: 1px solid var(--c-border); }
}
@keyframes panel { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.country-card {
    display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--c-border);
    background: var(--c-surface); color: var(--c-heading); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color var(--t);
}
.country-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: transparent; color: var(--c-heading); }
.country-card__iso { font-size: 28px; font-weight: 900; letter-spacing: -.02em; background: linear-gradient(135deg, var(--c-primary), #8e44ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.country-card__name { font-weight: 700; overflow-wrap: anywhere; }
.country-card__count { font-size: 13px; color: var(--c-muted); }

.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.az a { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-small); border: 1px solid var(--c-border-strong); color: var(--c-heading); font-weight: 700; }
.az a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.brand-group { margin-bottom: 28px; }
.brand-group__letter { font-size: 28px; color: var(--c-secondary); border-bottom: 1px solid var(--c-border); padding-bottom: 6px; }
.brand-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.brand-item { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--c-bg-soft); color: var(--c-heading); transition: background var(--t), transform .4s var(--ease); }
.brand-item:hover { background: var(--c-primary-soft); color: var(--c-primary); transform: translateX(3px); }
.brand-item__name { font-weight: 700; }
.brand-item__count { margin-left: auto; font-size: 13px; color: var(--c-muted); }

/* ---------- 8. Product page ---------- */
.page-product .breadcrumbs { padding-top: 20px; }
.product__top { display: grid; gap: 28px; padding-bottom: 36px; }
@media (min-width: 992px) { .product__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 56px; } }
.product__media { border-radius: var(--radius-big); overflow: hidden; aspect-ratio: 1; background: var(--c-surface-2); box-shadow: var(--shadow-2); }
.product__media img, .product__media .ph { width: 100%; height: 100%; object-fit: cover; }
.product__thumbs { list-style: none; display: flex; gap: 10px; padding: 0; margin: 12px 0 0; }
.product__thumbs img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-small); }
.product__credit { font-size: 12px; color: var(--c-subtle); margin: 8px 0 0; }
.product__title { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); font-weight: 800; letter-spacing: -.025em; margin: 6px 0 10px; }
.product__meta { color: var(--c-muted); font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-bottom: 14px; }
.product__meta a { color: var(--c-heading); font-weight: 600; }
.product__meta a:hover { color: var(--c-primary); }
.product__flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.product__lead { font-size: 1.12rem; color: var(--c-text); }
.product__panels { display: grid; gap: 14px; margin: 22px 0; }
@media (min-width: 560px) { .product__panels { grid-template-columns: auto 1fr; } }
.scorecard { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius-big); background: var(--c-bg-soft); max-width: 340px; }
.gauge {
    --score: 50; position: relative; flex: none; width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: conic-gradient(from 210deg, var(--c-accent), var(--c-hot) calc(var(--score) * 3.0deg), var(--c-border) 0deg 300deg, transparent 300deg);
}
.gauge::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--c-bg-soft); }
.gauge__value { position: relative; font-size: 30px; font-weight: 900; color: var(--c-heading); letter-spacing: -.03em; }
.gauge__max { position: relative; font-size: 12px; color: var(--c-muted); margin-top: 10px; }
.gauge--empty { background: conic-gradient(from 210deg, var(--c-border) 0deg 300deg, transparent 300deg); }
.gauge--empty .gauge__value { color: var(--c-muted); }
.scorecard__title { font-weight: 800; color: var(--c-heading); margin: 0 0 4px; }
.scorecard__basis { font-size: 13px; color: var(--c-muted); margin: 0; line-height: 1.4; }
.tastecard { padding: 18px; border-radius: var(--radius-big); background: var(--c-bg-soft); }
.tastecard__title { font-weight: 800; color: var(--c-heading); margin: 0 0 10px; font-size: 15px; }
.tastecard__title .muted { font-weight: 500; font-size: 13px; }
.taste-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.taste { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.taste__label { font-weight: 600; }
.taste__dots { display: inline-flex; gap: 4px; }
.taste__dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--c-border); transition: transform var(--t); }
.taste__dots i.on { background: var(--c-primary); }
.taste--spicy .taste__dots i.on { background: var(--c-hot); }
.taste--sweet .taste__dots i.on { background: #e84393; }
.taste--sour .taste__dots i.on { background: #84cc16; }
.taste--salty .taste__dots i.on { background: #64748b; }
.taste--umami .taste__dots i.on { background: #a16207; }
.taste--bitter .taste__dots i.on { background: #4b5563; }

.product__body { display: grid; gap: 32px; padding-bottom: 72px; }
@media (min-width: 992px) { .product__body { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; } }
.product__main { min-width: 0; }
.prose { font-size: 17px; line-height: 1.75; }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose > h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; }
.prose section + section { margin-top: 32px; }
section.prose { margin-bottom: 36px; }

.offers h2 { margin-bottom: 8px; }
.offers__ship { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--c-muted); font-size: 15px; margin-bottom: 18px; }
.offer-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; }
.offer {
    display: grid; gap: 10px 18px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--c-border); background: var(--c-surface);
    transition: border-color var(--t), box-shadow var(--t);
}
.offer:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-2); }
@media (min-width: 640px) { .offer { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; } .offer__checked { grid-column: 1 / 3; } .offer__cta { grid-row: 1 / 3; grid-column: 3; } }
.offer--demo { border-style: dashed; border-color: var(--c-demo-border); }
.offer__merchant { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.offer__merchant strong { color: var(--c-heading); font-size: 17px; }
.offer__ship { width: 100%; font-size: 13px; color: var(--c-muted); display: flex; gap: 6px; align-items: center; }
.offer__price { display: flex; flex-direction: column; gap: 2px; }
.price { font-size: 22px; font-weight: 800; color: var(--c-heading); letter-spacing: -.02em; }
.offer__note { font-size: 12px; color: var(--c-demo-text); font-weight: 600; }
.offer__avail { font-size: 13px; font-weight: 600; }
.offer__avail--in_stock { color: var(--c-success); }
.offer__avail--out_of_stock { color: var(--c-danger); }
.offer__avail--preorder { color: var(--c-primary); }
.offer__avail--unknown { color: var(--c-muted); }
.offer__checked { font-size: 13px; color: var(--c-muted); display: flex; flex-wrap: wrap; gap: 8px; }
.offer__stale { color: var(--c-warning); font-weight: 600; }
.offer__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.offer__aff { font-size: 12px; color: var(--c-muted); }

.product__aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.widget { background: var(--c-bg-soft); border-radius: var(--radius); padding: 24px; }
.widget__title { font-size: 18px; text-align: center; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--c-border-strong); }
.widget p:last-child { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 12px; font-size: 15px; }
.facts dt { color: var(--c-muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--c-heading); overflow-wrap: anywhere; }
.facts .tri--unknown { color: var(--c-muted); font-weight: 500; font-style: italic; }
.facts--legal { grid-template-columns: minmax(120px, auto) 1fr; }
.facts .placeholder { color: var(--c-warning); font-style: italic; }
.plain-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }

/* ---------- 9. Other pages ---------- */
.error-page { text-align: center; }
.error-page__code { font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 900; line-height: 1; letter-spacing: -.05em; margin: 0 0 8px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page .page-intro { margin: 0 auto; }
.error-page__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.contact-mail { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 700; }

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--c-bg-soft); border-top: 1px solid var(--c-border); padding: 56px 0 24px; font-size: 15px; }
.site-footer__top { display: grid; gap: 32px; }
@media (min-width: 768px) { .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer__brand p { color: var(--c-muted); max-width: 22rem; }
.site-footer__slogan { font-weight: 800; color: var(--c-heading) !important; }
.logo--footer { margin-bottom: 12px; }
.site-footer__title { font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--c-muted); }
.site-footer ul a:hover { color: var(--c-primary); }
.site-footer__note { color: var(--c-muted); font-size: 14px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--c-border); font-size: 14px; color: var(--c-muted); }
.site-footer__bottom p { margin: 0; }
.to-top { font-weight: 600; }

/* ---------- 10b. Step 4: discovery ---------- */
/* Hero: second action + catalogue size */
.hero__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 16px 0 0; }
.btn--surprise { gap: 8px; }
.hero__count { font-size: 14px; color: var(--c-muted); font-weight: 500; }

/* Product types */
.type-tiles { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.type-tile {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 96px; padding: 16px 18px;
    border-radius: var(--radius-big); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-heading); overflow: hidden; isolation: isolate;
}
.type-tile::before {
    content: ''; position: absolute; inset: auto -30% -60% auto; width: 140px; height: 140px; border-radius: 50%; z-index: -1; opacity: .18;
    background: radial-gradient(circle, var(--tile, var(--c-primary)) 0, transparent 70%); transition: transform .5s var(--ease), opacity .3s;
}
.type-tile--extreme-spicy { --tile: var(--c-hot); }
.type-tile--sour-candy { --tile: #84cc16; }
.type-tile--limited-editions { --tile: var(--c-secondary); }
.type-tile--instant-noodles, .type-tile--international-flavours { --tile: var(--c-accent); }
.type-tile--unusual-chocolate { --tile: #8b5e3c; }
.type-tile--unusual-drinks { --tile: #0ea5e9; }
.type-tile__name { font-weight: 800; font-size: 17px; line-height: 1.25; }
.type-tile__count { font-size: 13px; color: var(--c-muted); font-weight: 600; }
.type-tile:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.chip--flavour { padding-right: 8px; }

/* Why it's unusual */
.why { margin: 0 0 32px; padding: 20px 22px; border-radius: var(--radius-big); background: var(--c-bg-soft); border-left: 4px solid var(--c-accent); }
.why h2 { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; margin: 0 0 10px; }
.why__list { margin: 0 0 8px; padding-left: 1.2em; display: grid; gap: 6px; }
.why__item--signal { font-weight: 600; color: var(--c-heading); }

/* Taste profile: unknown values and explanation */
.taste--unknown .taste__label { color: var(--c-muted); }
.taste__unknown { font-size: 13px; color: var(--c-muted); font-style: italic; }
.tastecard__note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--c-muted); }
.tastecard--empty { display: flex; flex-direction: column; justify-content: center; }

/* Data status per field */
.datastatus { margin-top: 12px; }
.datastatus summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.datastatus table { margin-top: 8px; font-size: 13px; }
.ds--ok, .ds--manual { color: var(--c-success); }
.ds--missing, .ds--incomplete { color: var(--c-muted); }
.ds--conflict { color: var(--c-warning); }

/* No offer: honest empty state */
.offers__empty p { margin: 0 0 6px; }
.offers__empty p:last-child { margin-bottom: 0; }

/* Search suggestions */
.suggestions { margin-top: 22px; text-align: center; }
.suggestions__title { font-weight: 700; color: var(--c-heading); margin: 0; }
.suggestions .quick-chips { justify-content: center; }

@media (hover: hover) and (pointer: fine) {
    .type-tile { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
    .type-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--tile, var(--c-primary)); }
    .type-tile:hover::before { transform: scale(1.35); opacity: .3; }
}

/* ---------- 11. Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@property --score { syntax: "<number>"; inherits: true; initial-value: 0; }
@media (prefers-reduced-motion: no-preference) {
    .gauge:not(.gauge--empty) { animation: gauge-fill 1.1s var(--ease) both; }
    @keyframes gauge-fill { from { --score: 0; } }
    .taste__dots i.on { animation: dot-pop .5s var(--ease) both; }
    .taste__dots i.on:nth-child(2) { animation-delay: .05s; } .taste__dots i.on:nth-child(3) { animation-delay: .1s; }
    .taste__dots i.on:nth-child(4) { animation-delay: .15s; } .taste__dots i.on:nth-child(5) { animation-delay: .2s; }
    @keyframes dot-pop { from { transform: scale(.4); opacity: .3; } }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    .hl::after { transform: scaleX(1); }
}
@media print {
    .topbar, .site-header, .site-footer, .theme-switcher, .filters, .offer__cta { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ---------- 12. Small phones (320–419px) ---------- */
.drawer__theme { display: none; }
@media (max-width: 419.98px) {
    .site-header__tools { gap: 6px; }
    .site-header__tools > .js-theme-toggle { display: none; }
    .drawer__theme:not([hidden]) { display: inline-flex; }
    .icon-btn { width: 42px; height: 42px; }
    .logo { gap: 8px; }
    .logo__mark svg { width: 32px; height: 32px; }
    .logo__word { font-size: 18px; }
}
