/* =========================================================
   Base design system shared by every theme (mobile first).

   Colours: --primary / --accent and their tints and shades
   (--primary-50 … --primary-800, --on-primary) are generated by
   PHP from the theme colours (see palette_css() in app/theme.php).
   Themes change the look by overriding the variables below and
   adding rules in themes/<name>/style.css.
   ========================================================= */
/* One clear font for Bangla and English, stored in the shop (assets/fonts): Noto Sans Bengali */
@font-face { font-family: "Shop Sans"; src: url("../fonts/noto-sans-bengali-bengali.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
    unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1; }
@font-face { font-family: "Shop Sans"; src: url("../fonts/noto-sans-bengali-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
    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; }
@font-face { font-family: "Shop Sans"; src: url("../fonts/noto-sans-bengali-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
    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; }
:root {
    /* fallbacks (the real values are printed in the page <head>) */
    --primary: #0d9488; --primary-50: #effaf9; --primary-100: #dbf3f1; --primary-200: #b6e6e2;
    --primary-600: #0b8278; --primary-700: #0a6f66; --primary-800: #085952; --on-primary: #fff; --on-primary-700: #fff;
    --accent: #f59e0b; --accent-50: #fef8ec; --accent-100: #fdf0d5; --accent-600: #d88b0a; --accent-700: #b87608; --on-accent: #111827;

    /* neutrals */
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --text: #0f172a;
    --text-2: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --danger: #dc2626;
    --danger-50: #fef2f2;
    --success: #15803d;
    --success-50: #f0fdf4;

    /* shape & depth */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 12px rgba(15, 23, 42, .05);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .14);

    /* type */
    --font: "Shop Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-heading: var(--font);
    --heading-weight: 700;
    --fs-xs: .75rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-lg: 1.125rem;
    --fs-xl: 1.375rem; --fs-2xl: 1.75rem; --fs-3xl: 2.25rem;

    --container: 1240px;
    --gutter: 16px;
    --header-h: 64px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 24px; --fs-2xl: 2rem; --fs-3xl: 2.75rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 16px; } }
body.drawer-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--heading-weight); line-height: 1.3; margin: 0 0 .5em; color: var(--text); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--primary-200); outline-offset: 2px; border-radius: 4px; }
.icon { flex: none; display: inline-block; vertical-align: middle; }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--text); color: #fff; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.page { padding-top: 20px; padding-bottom: 48px; }
.page-narrow { max-width: 800px; }
.page-title { font-size: var(--fs-xl); margin-bottom: .25em; }
@media (min-width: 768px) { .page-title { font-size: var(--fs-2xl); } }
.page-title small { font-size: var(--fs-sm); color: var(--muted); font-weight: 400; }
.section { margin: 36px 0; }
@media (min-width: 768px) { .section { margin: 56px 0; } }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-lg); margin: 0; }
@media (min-width: 768px) { .section-head h2 { font-size: var(--fs-xl); } }
.section-head__icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--primary-50); color: var(--primary-700); }
.section-head a { display: inline-flex; align-items: center; gap: 4px; color: var(--primary-700); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.icon-line { display: flex; align-items: center; gap: 8px; }
.icon-line--center { justify-content: center; }
.empty { color: var(--muted); padding: 32px 0; text-align: center; }
.empty-box { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.empty-box__icon { display: inline-grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 12px; border-radius: 50%; background: var(--primary-50); color: var(--primary); }
.flash-area:empty { display: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 10px 20px;
    border: 1.5px solid transparent; border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text);
    font-weight: 600; font-size: var(--fs-base); line-height: 1.2; text-decoration: none; text-align: center;
    cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .05s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.btn-primary:hover:not(:disabled) { background: var(--primary-600); }
.btn-outline { background: var(--surface); border-color: var(--primary); color: var(--primary-700); }
.btn-outline:hover:not(:disabled) { background: var(--primary-50); }
.btn-light { background: #fff; color: var(--primary-800); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: var(--primary-50); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: inherit; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: var(--fs-lg); }
.btn-link { display: block; text-align: center; margin-top: 14px; color: var(--primary-700); font-weight: 500; }
.link-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 4px 0; color: var(--danger); cursor: pointer; font-size: var(--fs-sm); }
.link-btn:hover { text-decoration: underline; }
.icon-btn {
    position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
    border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; text-decoration: none; cursor: pointer;
}
.icon-btn:hover { background: rgba(0,0,0,.06); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 10px; margin: 14px 0; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500; border: 1px solid transparent; }
.alert-success { background: var(--success-50); color: #14532d; border-color: #bbf7d0; }
.alert-error { background: var(--danger-50); color: #7f1d1d; border-color: #fecaca; }
.alert-info { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }

/* ---------- Logo (image or text) ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
/* Logo image: the height depends on the logo's shape (set by PHP), never a box around it.
   Long logos (icon + name side by side) are lower, square/stacked logos taller. */
.logo { max-width: 100%; }
.logo__img { display: block; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.logo__img--wide    { height: 36px; max-width: min(100%, 260px); }
.logo__img--medium  { height: 44px; max-width: min(100%, 200px); }
.logo__img--compact { height: 52px; max-width: min(100%, 120px); }
@media (min-width: 768px) {
    .logo__img--wide    { height: 44px; max-width: 340px; }
    .logo__img--medium  { height: 54px; max-width: 260px; }
    .logo__img--compact { height: 64px; max-width: 150px; }
}
.logo__mark {
    display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px;
    background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 1.15rem; line-height: 1;
}
.logo__text { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
@media (min-width: 768px) { .logo__text { font-size: 1.45rem; max-width: 320px; } .logo__mark { width: 42px; height: 42px; font-size: 1.3rem; } }

/* ---------- Header pieces shared by themes ---------- */
.header-cart { position: relative; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; font-weight: 600; }
.header-cart__icon { position: relative; display: inline-grid; place-items: center; }
.count {
    position: absolute; top: -7px; right: -9px; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 10px; background: var(--accent); color: var(--on-accent);
    font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px var(--surface);
}
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; }
.lang-switch--block a { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); width: 100%; }

/* ---------- Slide-in menu (drawer) ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); opacity: 0; transition: opacity .25s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
    position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 86vw); overflow-y: auto;
    background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
    transform: translateX(-100%); transition: transform .3s var(--ease);
    display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__panel:focus { outline: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.drawer__head .logo { color: var(--text); }
.drawer__head .logo { min-width: 0; }
.drawer__head .logo__img--wide { height: 30px; }
.drawer__head .logo__img--medium { height: 38px; }
.drawer__head .logo__img--compact { height: 44px; }
.drawer__nav { display: flex; flex-direction: column; padding: 8px 8px; }
.drawer__nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.drawer__nav a:hover { background: var(--surface-2); }
.drawer__nav a > .icon:first-child { color: var(--primary-700); }
.drawer__nav a > span:not(.drawer__cat-visual) { flex: 1; }
.drawer__chev { color: var(--muted); }
.drawer__cat-visual { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--primary-50); color: var(--primary-700); overflow: hidden; flex: none; }
.drawer__cat-visual img { width: 100%; height: 100%; object-fit: cover; }
.drawer__label { margin: 14px 10px 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.drawer__section { padding: 4px 18px 16px; border-top: 1px solid var(--border); }
.drawer__section .drawer__label { margin-left: 0; }

/* ---------- Contact list & social ---------- */
.contact-list, .link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { margin-top: 3px; color: var(--primary); }
.contact-list a { text-decoration: none; }
.contact-list a:hover, .link-list a:hover { text-decoration: underline; }
.link-list a { text-decoration: none; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.social-links a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); color: inherit; transition: background .15s, color .15s; }
.social-links a:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* ---------- Home banner slider ---------- */
.hero { position: relative; margin-top: 16px; border-radius: var(--radius-lg); overflow: hidden; background: var(--primary-50); }
@media (min-width: 768px) { .hero { margin-top: 24px; } }
.hero__track { display: flex; align-items: flex-start; transition: height .35s var(--ease); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.hero__image-link { display: block; }
.hero__slide--image img { width: 100%; aspect-ratio: 8 / 3; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; display: flex; align-items: center; padding: 16px 20px; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.15) 65%, transparent); color: #fff; pointer-events: none; }
.hero__overlay .btn { pointer-events: auto; }
.hero__overlay .hero__title { color: #fff; }
.hero__overlay p { display: none; }
@media (min-width: 640px) { .hero__overlay { padding: 24px 48px; } .hero__overlay p { display: block; } }

.hero__designed {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px;
    min-height: 240px; padding: 28px 22px 44px; isolation: isolate;
    background: linear-gradient(125deg, var(--primary-700) 0%, var(--primary) 55%, var(--primary-600) 100%);
    color: var(--on-primary);
}
@media (min-width: 768px) { .hero__designed { min-height: 380px; padding: 48px 56px; } }
.hero__text { position: relative; z-index: 2; max-width: 560px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; margin-bottom: 14px; border-radius: var(--radius-pill); background: rgba(255,255,255,.16); font-size: var(--fs-sm); font-weight: 600; }
.hero__title { font-size: 1.7rem; line-height: 1.2; margin-bottom: 10px; color: inherit; }
@media (min-width: 768px) { .hero__title { font-size: var(--fs-3xl); } }
.hero__designed p { margin-bottom: 20px; opacity: .92; font-size: var(--fs-lg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__shape { position: absolute; z-index: -1; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero__shape--1 { width: 340px; height: 340px; right: -90px; top: -120px; }
.hero__shape--2 { width: 220px; height: 220px; right: 18%; bottom: -130px; background: rgba(255,255,255,.06); }
/* Picture cards: a small row under the text on phones, an overlapping group on the right on bigger screens */
.hero__showcase { position: relative; z-index: 1; display: flex; gap: 10px; margin-top: 4px; }
@media (max-width: 719px) {
    .hero__designed { flex-direction: column; align-items: stretch; }
    .hero__showcase .hero__product { position: relative; inset: auto; flex: 0 0 auto; width: 31%; max-width: 104px; aspect-ratio: 1; transform: none; border-width: 3px; box-shadow: var(--shadow); }
}
@media (min-width: 720px) { .hero__showcase { display: block; flex: 1; height: 290px; margin: 0; } }
.hero__product { position: absolute; display: block; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 4px solid #fff; }
.hero__product img { width: 100%; height: 100%; object-fit: cover; }
.hero__product--0 { width: 46%; aspect-ratio: 1; right: 30%; top: 8%; transform: rotate(-5deg); z-index: 2; }
.hero__product--1 { width: 38%; aspect-ratio: 1; right: 0; top: 0; transform: rotate(4deg); }
.hero__product--2 { width: 34%; aspect-ratio: 1; right: 8%; bottom: 0; transform: rotate(-2deg); z-index: 3; }
@media (min-width: 720px) {
    .hero__showcase--n1 .hero__product--0 { width: 56%; right: 18%; top: 4%; transform: rotate(-3deg); }
    .hero__showcase--n2 .hero__product--0 { width: 50%; right: 34%; top: 12%; }
    .hero__showcase--n2 .hero__product--1 { width: 44%; right: 2%; top: 2%; }
}
a.hero__product { transition: transform .2s var(--ease), box-shadow .2s; }
a.hero__product:hover, a.hero__product:focus-visible { box-shadow: 0 18px 40px rgba(0,0,0,.28); outline: none; }
a.hero__product:focus-visible { border-color: var(--accent, #fff); }

.hero__nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; display: none; place-items: center;
    width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--text); box-shadow: var(--shadow);
}
.hero__nav--prev { left: 14px; } .hero__nav--next { right: 14px; }
@media (min-width: 768px) { .hero__nav { display: grid; } }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.hero__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.12); transition: width .2s, background .2s; }
.hero__dots button[aria-current="true"] { width: 22px; background: #fff; }

/* ---------- Trust badges ---------- */
.trust { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; } }
/* 2 to 6 boxes: the last box of an odd row fills the row on a phone; on wide screens they share the row (6 = 3 + 3) */
.trust li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.trust__link { display: flex; gap: 10px; align-items: center; width: 100%; color: inherit; text-decoration: none; min-width: 0; }
.trust__link:hover strong, .trust__link:focus-visible strong { text-decoration: underline; }
@media (min-width: 900px) {
    .trust--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust--n3, .trust--n5, .trust--n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .trust li:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 1100px) { .trust--n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.trust li { display: flex; gap: 10px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.trust__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--primary-50); color: var(--primary-700); }
.trust strong { display: block; font-size: var(--fs-sm); line-height: 1.3; }
.trust small { display: block; color: var(--muted); font-size: var(--fs-xs); line-height: 1.35; overflow-wrap: anywhere; }
@media (min-width: 768px) { .trust strong { font-size: var(--fs-base); } .trust small { font-size: var(--fs-sm); } }

/* ---------- Category grid: rows always fill the full width ---------- */
.cat-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-grid__item {
    flex: 1 1 calc((100% - 20px) / 3); min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 16px 8px; text-align: center; text-decoration: none; font-weight: 600; font-size: var(--fs-sm); line-height: 1.3;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-grid__item:hover { border-color: var(--primary-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-grid__visual { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--primary-50); color: var(--primary-700); overflow: hidden; }
.cat-grid__visual img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .cat-grid { gap: 14px; } .cat-grid__item { flex-basis: calc((100% - 42px) / 4); } }
@media (min-width: 1000px) { .cat-grid__item { flex-basis: calc((100% - 70px) / 6); font-size: var(--fs-base); } .cat-grid__visual { width: 64px; height: 64px; } }

.cat-grid--cards .cat-grid__item { flex-basis: calc((100% - 10px) / 2); min-height: 180px; padding: 20px 12px; justify-content: flex-end; position: relative; overflow: hidden; border: 0; border-radius: var(--radius); }
@media (min-width: 640px) { .cat-grid--cards .cat-grid__item { flex-basis: calc((100% - 28px) / 3); min-height: 230px; } }
@media (min-width: 1000px) { .cat-grid--cards .cat-grid__item { flex-basis: calc((100% - 56px) / 5); min-height: 300px; } }
.cat-grid--cards .cat-grid__visual { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; background: transparent; }
.cat-grid--cards .cat-grid__visual .icon { width: 48px; height: 48px; margin-bottom: 30px; opacity: .9; }
.cat-grid--cards .cat-grid__name { position: relative; z-index: 1; padding: 8px 16px; background: rgba(255,255,255,.94); border-radius: var(--radius-pill); color: var(--text); }
.cat-grid--cards .tone-0 { background: var(--primary-50); } .cat-grid--cards .tone-1 { background: var(--accent-50); }
.cat-grid--cards .tone-2 { background: #eef2f7; } .cat-grid--cards .tone-3 { background: var(--primary-100); }

/* ---------- Product grid & card (equal heights) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.product-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.product-card__media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card.is-out .product-card__media img { filter: grayscale(.6); opacity: .75; }
.product-card__body { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 12px; flex: 1; }
@media (min-width: 640px) { .product-card__body { padding: 12px 14px 14px; } }
.product-card__cat { margin: 0; font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card__name { margin: 0; font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; min-height: 2.8em; }
@media (min-width: 640px) { .product-card__name { font-size: .95rem; } }
.product-card__name a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is clickable */
.product-card__action { margin-top: auto; padding-top: 4px; position: relative; z-index: 2; }
.btn-card { width: 100%; min-height: 40px; padding: 8px 10px; font-size: var(--fs-sm); background: var(--primary-50); color: var(--primary-800); border-color: var(--primary-100); }
.btn-card:hover:not(:disabled) { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-card:disabled { background: var(--surface-2); color: var(--muted); border-color: var(--border); opacity: 1; }
@media (max-width: 380px) { .btn-card .icon { display: none; } }

.badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 8px; border-radius: 6px; font-size: var(--fs-xs); font-weight: 700; line-height: 1.4; }
.badge-sale { background: var(--accent); color: var(--on-accent); }
.badge-out { background: rgba(15, 23, 42, .78); color: #fff; }

.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-height: 1.6em; }
.price__now { font-weight: 700; color: var(--primary-700); font-size: var(--fs-base); }
@media (min-width: 640px) { .price__now { font-size: var(--fs-lg); } }
.price__old { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Listing pages ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-700); text-decoration: underline; }
.breadcrumb span:last-child { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.listing-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.listing-head .page-title { margin: 0; }
.sort-form label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--muted); }
.sort-form select { padding: 9px 32px 9px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 16px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; background: var(--surface); }
.chip:hover { border-color: var(--primary-200); color: var(--primary-700); }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 32px 0; }
.pagination a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--primary-700); font-weight: 600; text-decoration: none; }
.pagination a:hover { background: var(--primary-50); }
.search-big { display: flex; gap: 8px; margin-bottom: 24px; }
.search-big input { flex: 1; min-width: 0; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.search-big input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
@media (max-width: 480px) { .search-big .btn span { display: none; } }

/* ---------- Product page ---------- */
.product-detail { display: grid; gap: 24px; }
@media (min-width: 800px) { .product-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
/* Product photos: gallery with hover zoom, thumbnails and full-screen viewer */
.gallery { min-width: 0; }
@media (min-width: 800px) { .gallery { position: sticky; top: 90px; } }
.gallery__stage { position: relative; background: var(--surface-2); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid var(--border); }
.gallery__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; height: 100%; margin: 0; overflow: hidden; scroll-snap-align: center; cursor: zoom-in; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; will-change: transform; user-select: none; -webkit-user-drag: none; }
.gallery__slide.is-zoomed img { transition: transform .08s linear; }
.gallery__btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.15); cursor: pointer; transition: opacity .2s, transform .2s; }
.gallery__btn:hover { transform: scale(1.06); }
.gallery__expand { right: 12px; bottom: 12px; }
.gallery__nav { top: 50%; margin-top: -21px; opacity: 0; }
.gallery__nav--prev { left: 12px; } .gallery__nav--next { right: 12px; }
.gallery__stage:hover .gallery__nav, .gallery__nav:focus-visible { opacity: 1; }
@media (hover: none) { .gallery__nav { display: none; } }
.gallery__count { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(17,24,39,.65); color: #fff; font-size: var(--fs-sm); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .gallery__count { display: none; } }
.gallery .badge-sale { position: absolute; top: 12px; left: 12px; z-index: 2; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.gallery__thumb { flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; cursor: pointer; opacity: .75; transition: opacity .2s, border-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb[aria-current="true"] { border-color: var(--primary); opacity: 1; }
.gallery__hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; color: var(--muted); font-size: var(--fs-xs, .78rem); }
.gallery__hint-touch { display: none; }
@media (hover: none) { .gallery__hint-desk { display: none; } .gallery__hint-touch { display: inline; } }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: #0c0c0f; color: #fff; opacity: 0; transition: opacity .2s; touch-action: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; flex: none; }
.lightbox__count { font-weight: 600; font-size: var(--fs-sm); opacity: .85; }
.lightbox__btn { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255,255,255,.22); }
.lightbox__btn:disabled { opacity: .3; cursor: default; }
.lightbox__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; }
.lightbox__stage.is-zoomed { cursor: grab; }
.lightbox__stage.is-dragging { cursor: grabbing; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: 50% 50%; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lightbox__img.is-animating { transition: transform .25s ease; }
.lightbox__nav { position: absolute; top: 50%; margin-top: -23px; z-index: 2; }
.lightbox__nav--prev { left: 14px; } .lightbox__nav--next { right: 14px; }
@media (hover: none) { .lightbox__nav { display: none; } }
.lightbox__thumbs { display: flex; justify-content: center; gap: 8px; padding: 10px 14px 16px; overflow-x: auto; flex: none; }
.lightbox__thumbs button { flex: 0 0 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #222; opacity: .55; cursor: pointer; }
.lightbox__thumbs button[aria-current="true"] { border-color: #fff; opacity: 1; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
body.lightbox-open { overflow: hidden; }

/* Product options (size, colour …) */
.options { grid-column: 1 / -1; display: grid; gap: 16px; margin-bottom: 4px; }
.option { border: 0; margin: 0; padding: 0; min-width: 0; }
.option legend { padding: 0; margin-bottom: 8px; font-weight: 600; color: var(--text-2); }
.option legend strong { color: var(--text); }
.option__values { display: flex; flex-wrap: wrap; gap: 8px; }
.option__value { position: relative; margin: 0; cursor: pointer; }
.option__value input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option__value span { display: inline-flex; align-items: center; gap: 8px; min-width: 48px; min-height: 44px; justify-content: center; padding: 8px 16px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; transition: border-color .15s, background .15s, color .15s; }
.option__value:hover span { border-color: var(--primary); }
.option__value input:checked + span { border-color: var(--primary); background: var(--primary-50); color: var(--primary-700); box-shadow: inset 0 0 0 1px var(--primary); }
.option__value input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.option__value.is-unavailable span { color: var(--muted); border-style: dashed; background: var(--surface-2); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.option__dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.option-error { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--danger-50); color: var(--danger); font-weight: 600; }
.option.is-missing legend { color: var(--danger); }
.option.is-missing .option__value span { border-color: var(--danger); }
.item-options { display: block; color: var(--muted); font-size: var(--fs-sm); }
.product-detail__info h1 { font-size: var(--fs-xl); }
@media (min-width: 768px) { .product-detail__info h1 { font-size: var(--fs-2xl); } }
.product-detail__info .price__now { font-size: 1.75rem; }
.product-detail__info .price__old { font-size: var(--fs-lg); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin: 10px 0 18px; padding: 4px 12px; border-radius: var(--radius-pill); font-size: var(--fs-sm); }
.stock.in { color: var(--success); background: var(--success-50); }
.stock.out { color: var(--danger); background: var(--danger-50); }
.buy-form { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-bottom: 20px; }
.buy-form .btn-primary { grid-column: 1 / -1; }
@media (min-width: 480px) and (max-width: 799px), (min-width: 1200px) { .buy-form { grid-template-columns: auto 1fr 1fr; } .buy-form .btn-primary { grid-column: auto; } }
.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); height: 46px; }
.qty button { display: grid; place-items: center; width: 42px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 48px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm { height: 36px; }
.qty-sm button { width: 34px; }
.qty-sm input { width: 38px; }
.product-meta { list-style: none; padding: 16px; margin: 0 0 22px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); font-size: var(--fs-sm); display: grid; gap: 12px; }
.product-meta li { display: flex; gap: 12px; align-items: flex-start; }
.product-meta .icon { color: var(--primary-700); }
.product-meta a { color: var(--primary-700); font-weight: 600; }
.description { color: var(--text-2); }
.description h2 { font-size: var(--fs-lg); }

/* ---------- Cart & checkout ---------- */
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item__img img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); }
.cart-item__info > a { text-decoration: none; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; }
.cart-item__total { white-space: nowrap; }
.cart-actions { margin: 16px 0; text-align: right; }
.summary, .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 16px; }
@media (min-width: 768px) { .summary, .card { padding: 24px; } }
.card h2 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-lg); margin-bottom: 16px; }
.card h2 .icon { color: var(--primary-700); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: var(--fs-lg); }
.summary-row.total strong { color: var(--primary-700); }
.mini-items { list-style: none; padding: 0; margin: 0 0 12px; }
.mini-items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: var(--fs-sm); }

.field { display: block; margin-bottom: 16px; font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); border: 0; padding: 0; }
.field legend { padding: 0; margin-bottom: 8px; }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea, .field select {
    display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 12px 14px;
    border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff;
    font-weight: 400; font-size: 16px; color: var(--text); /* 16px stops phones from zooming in */
}
.field input:not([type="radio"]):focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.field-error { display: block; color: var(--danger); font-size: var(--fs-sm); font-weight: 500; margin-top: 6px; }
.radio-card { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; color: var(--text); transition: border-color .15s, background .15s; }
.radio-card span:not(.radio-card__icon) { flex: 1; }
.radio-card:has(input:checked), .radio-card.selected { border-color: var(--primary); background: var(--primary-50); }
.radio-card input { accent-color: var(--primary); width: 20px; height: 20px; margin: 0; }
.radio-card__icon { display: grid; place-items: center; color: var(--success); }
.payment-method { margin: 18px 0; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; color: var(--muted); font-size: var(--fs-sm); text-align: center; }
.secure-note .icon { color: var(--success); }
@media (min-width: 900px) {
    .checkout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
    .checkout > .card:last-child { position: sticky; top: 90px; }
    .page-narrow:has(.checkout) { max-width: 1060px; }
}

.order-done { text-align: center; padding: 24px 0 8px; }
.order-done__icon { display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 50%; background: var(--success); color: #fff; box-shadow: 0 0 0 10px var(--success-50); }
.order-no { font-size: var(--fs-lg); }

/* ---------- Footer (structure; themes set the colours) ---------- */
.site-footer { margin-top: 56px; font-size: var(--fs-sm); }
.site-footer__grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 32px; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
    .site-footer__grid { grid-template-columns: 1.4fr 1.2fr 1.2fr 1fr 1fr; gap: 32px; }
    .site-footer__grid--1 { grid-template-columns: 1fr; }
    .site-footer__grid--2 { grid-template-columns: 1.4fr 1fr; }
    .site-footer__grid--3 { grid-template-columns: 1.4fr 1fr 1fr; }
    .site-footer__grid--4 { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; }
}
.site-footer__text { margin: 0; line-height: 1.7; opacity: .9; }
.site-footer h3 { font-size: var(--fs-base); margin-bottom: 14px; }
.site-footer__brand p { margin: 12px 0 0; max-width: 320px; line-height: 1.6; }
.site-footer__bottom { border-top: 1px solid var(--border); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.site-footer__bottom p { margin: 0; }
.payments { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pay-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-sm); background: #fff; color: #14532d; border: 1px solid #bbf7d0; font-weight: 600; font-size: var(--fs-xs); }
.pay-badge .icon { color: var(--success); }

/* ---------- Floating chat & preview bar ---------- */
.chat-fab { position: fixed; right: 16px; bottom: 84px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
@media (min-width: 900px) { .chat-fab { bottom: 24px; } }
.preview-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #111827; color: #fff; padding: 10px 16px; text-align: center; font-size: var(--fs-sm); }
.preview-bar a { color: #fde68a; margin-left: 10px; }

.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline; } }

/* ---------- Announcement bar (Settings → Announcement bar) ---------- */
/* Announcement bar: colours default to the theme's main colour; size, position, button and close are chosen in Settings */
.site-announcement { position: relative; background: var(--ann-bg, var(--primary)); color: var(--ann-fg, var(--on-primary)); text-align: center; font-size: 15px; font-weight: 600; }
.site-announcement__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 11px var(--gutter); }
.site-announcement__msg { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin: 0; color: inherit; text-decoration: none; line-height: 1.4; }
a.site-announcement__msg:hover .site-announcement__text { text-decoration: underline; }
.site-announcement__icon { flex: none; }
.site-announcement__btn { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 5px 16px; border-radius: var(--radius-pill); background: var(--ann-fg, var(--on-primary)); color: var(--ann-bg, var(--primary)); font-weight: 700; font-size: .92em; text-decoration: none; line-height: 1.2; }
.site-announcement__btn:hover, .site-announcement__btn:focus-visible { filter: brightness(.94); text-decoration: underline; }
.site-announcement__close { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: .85; }
.site-announcement__close:hover, .site-announcement__close:focus-visible { opacity: 1; background: rgba(127,127,127,.25); }
.site-announcement--closable .site-announcement__inner { padding-right: 52px; padding-left: 52px; }
.site-announcement[hidden], .site-announcement.is-closed { display: none; }
/* Medium: between compact and large */
.site-announcement--medium { font-size: 1.0625rem; font-weight: 700; }
.site-announcement--medium .site-announcement__inner { padding-top: 16px; padding-bottom: 16px; gap: 10px 18px; }
.site-announcement--medium .site-announcement__btn { min-height: 38px; padding: 6px 20px; }
/* Large: clearly taller, bigger and bolder text */
.site-announcement--large { font-size: 1.1rem; font-weight: 800; }
.site-announcement--large .site-announcement__inner { padding-top: 24px; padding-bottom: 24px; gap: 12px 22px; }
.site-announcement--large .site-announcement__btn { min-height: 44px; padding: 8px 24px; font-size: .95em; }
@media (min-width: 768px) {
    .site-announcement { font-size: 16px; }
    .site-announcement--medium { font-size: 1.2rem; }
    .site-announcement--medium .site-announcement__inner { padding-top: 20px; padding-bottom: 20px; }
    .site-announcement--large { font-size: 1.4rem; }
    .site-announcement--large .site-announcement__inner { padding-top: 30px; padding-bottom: 30px; }
}
/* Several announcements, one at a time: they sit on top of each other so the bar never changes height */
.site-announcement__rotator { display: grid; min-width: 0; }
.site-announcement__item { grid-area: 1 / 1; display: flex; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.site-announcement__item.is-current { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
    .site-announcement__item { transition: none !important; }
    /* the page-wide "no animation" rule above must not stop the scrolling the shop owner switched on */
    .site-announcement__ticker.is-running .site-announcement__track { animation: ann-ticker var(--ann-dur, 30s) linear infinite !important; }
    .site-announcement__ticker.is-paused .site-announcement__track, .site-announcement__ticker:focus-within .site-announcement__track { animation-play-state: paused !important; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) { .site-announcement__ticker:hover .site-announcement__track { animation-play-state: paused !important; } }
/* Scrolling mode: the text moves from right to left in a loop (the script adds is-ticking / is-running).
   Without the script the announcements just stand still, side by side. The admin chose scrolling, so it also runs when the visitor's device asks for less motion. */
.site-announcement__ticker { flex: 1 1 0; min-width: 0; overflow: hidden; }
.site-announcement__ticker.is-ticking { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.site-announcement__track { display: flex; width: max-content; max-width: none; }
.site-announcement__group { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 0; }
.site-announcement__sep { flex: none; margin: 0 1.1em; font-size: .6em; opacity: .75; }
.site-announcement__ticker:not(.is-ticking) .site-announcement__track { width: auto; justify-content: center; }
.site-announcement__ticker:not(.is-ticking) .site-announcement__group[aria-hidden] { display: none; }
.site-announcement__ticker:not(.is-ticking) .site-announcement__group:first-child .site-announcement__sep:last-child { display: none; }
.site-announcement__ticker.is-ticking .site-announcement__group { flex: none; flex-wrap: nowrap; white-space: nowrap; }
.site-announcement__ticker.is-running .site-announcement__track { animation: ann-ticker var(--ann-dur, 30s) linear infinite; will-change: transform; }
.site-announcement__ticker.is-paused .site-announcement__track,
.site-announcement__ticker:focus-within .site-announcement__track { animation-play-state: paused; }
@media (hover: hover) { .site-announcement__ticker:hover .site-announcement__track { animation-play-state: paused; } }
@keyframes ann-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.site-announcement--ticker .site-announcement__inner { flex-wrap: nowrap; justify-content: flex-start; }
.site-announcement--ticker .site-announcement__btn { white-space: nowrap; }
/* Below the home banner: a rounded strip inside the page width */
.site-announcement--home { margin: 18px 0; border-radius: var(--radius-lg); overflow: hidden; }


/* ---------- Information pages & Contact ---------- */
/* ---------- Information pages (About, Contact, policies, own pages) ----------
   Header, picture and text all sit in one container: same left and right edges. */
:root { --page-width: 880px; }
.container--page { max-width: calc(var(--page-width) + 2 * var(--gutter)); }
.page-hero { background: linear-gradient(180deg, var(--primary-50), var(--bg)); border-bottom: 1px solid var(--border); }
.page-hero__inner { display: grid; gap: 16px; padding-top: 18px; padding-bottom: 22px; align-items: center; }
.page-hero__text { min-width: 0; }
.page-hero .breadcrumb { margin-bottom: 8px; }
.page-hero__title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1.25; margin: 0; }
.page-hero__subtitle { margin: 8px 0 0; color: var(--text-2); font-size: 1.05rem; line-height: 1.6; max-width: 48ch; }
.page-hero__media { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); aspect-ratio: 12 / 5; }
.page-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) {
    .page-hero__inner { padding-top: 26px; padding-bottom: 28px; gap: 28px; }
    .page-hero__inner.has-image { grid-template-columns: minmax(0, 1fr) 300px; }
    .page-hero__media { aspect-ratio: 16 / 10; }
}
@media (min-width: 1000px) { .page-hero__inner.has-image { grid-template-columns: minmax(0, 1fr) 340px; } }
.info-page__body { padding-top: 28px; padding-bottom: 48px; }

/* Text of the pages */
.prose { color: var(--text-2); font-size: 1.04rem; line-height: 1.8; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.35; margin: 1.6em 0 .6em; padding-bottom: .35em; border-bottom: 1px solid var(--border); color: var(--text); }
.prose h3 { font-size: 1.15rem; line-height: 1.4; margin: 1.5em 0 .5em; padding-left: 12px; border-left: 4px solid var(--primary); color: var(--text); }
.prose h4 { font-size: 1.02rem; margin: 1.3em 0 .4em; color: var(--text); }
.prose strong, .prose b { color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.prose li { position: relative; margin: .45em 0; padding-left: 1.7em; }
.prose ul:not(.cards) > li::before { content: ""; position: absolute; left: .45em; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.prose ol { counter-reset: item; }
.prose ol > li { counter-increment: item; padding-left: 2.1em; }
.prose ol > li::before { content: counter(item); position: absolute; left: 0; top: .2em; display: grid; place-items: center; width: 1.55em; height: 1.55em; border-radius: 50%; background: var(--primary-50); color: var(--primary-700); font-size: .85em; font-weight: 700; }
.prose a { color: var(--primary-700); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--primary); }
.prose img { border-radius: var(--radius); margin: 1em 0; height: auto; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--primary-200); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 1.8em 0; }
.prose--intro { margin-bottom: 24px; }

/* A list shown as cards ("Cards" button in the page editor): the bold start is the card's title */
.prose ul.cards, .prose ol.cards { display: grid; gap: 14px; margin: 1.2em 0 1.6em; }
@media (min-width: 480px) { .prose ul.cards, .prose ol.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .prose ul.cards:not(:has(> li:nth-child(5))), .prose ol.cards:not(:has(> li:nth-child(5))) { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .prose ul.cards:has(> li:nth-child(5)), .prose ol.cards:has(> li:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prose ul.cards > li, .prose ol.cards > li { margin: 0; padding: 18px 16px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.04)); line-height: 1.6; font-size: .97rem; }
.prose ul.cards > li::before { content: ""; position: static; display: block; width: 26px; height: 26px; margin-bottom: 10px; padding: 0; border-radius: 0; background: var(--primary);
    -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.prose ol.cards > li { padding-top: 54px; }
.prose ol.cards > li::before { top: 16px; left: 16px; }
.prose .cards > li > strong:first-child, .prose .cards > li > b:first-child { display: block; margin-bottom: 4px; font-size: 1.05rem; color: var(--text); }
.prose ul.cards > li:nth-child(6n+1)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E"); }
.prose ul.cards > li:nth-child(6n+2)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.prose ul.cards > li:nth-child(6n+3)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 3h15v13H1zM16 8h4l3 3v5h-7z'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 3h15v13H1zM16 8h4l3 3v5h-7z'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E"); }
.prose ul.cards > li:nth-child(6n+4)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z'/%3E%3C/svg%3E"); }
.prose ul.cards > li:nth-child(6n+5)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12v10H4V12M2 7h20v5H2zM12 22V7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7zM12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12v10H4V12M2 7h20v5H2zM12 22V7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7zM12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E"); }
.prose ul.cards > li:nth-child(6n+6)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8-6.2-3.2L5.8 21 7 14.1 2 9.3l6.9-1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8-6.2-3.2L5.8 21 7 14.1 2 9.3l6.9-1z'/%3E%3C/svg%3E"); }

/* "Still have questions?" box at the end of a page */
.page-cta { display: grid; gap: 16px; margin-top: 36px; padding: 22px; border-radius: var(--radius-lg); background: var(--primary-50); border: 1px solid var(--primary-100, var(--border)); }
.page-cta h2 { margin: 0 0 4px; font-size: 1.25rem; }
.page-cta p { margin: 0; color: var(--text-2); }
.page-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.page-cta__actions .btn { flex: 1 1 auto; justify-content: center; }
@media (min-width: 760px) { .page-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 26px 28px; } .page-cta__actions .btn { flex: 0 0 auto; } }

.contact-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: start; } }
.contact-info { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.contact-card h2 { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; margin: 0 0 2px; }
.contact-card p { margin: 0; }
.contact-card a { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-card__big { font-size: var(--fs-xl); }
.contact-card__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--primary-50); color: var(--primary-700); }
.btn-whatsapp { background: #25d366; color: #fff; min-height: 52px; font-size: var(--fs-lg); }
.btn-whatsapp:hover { background: #1ebe5b; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-map { margin-top: 28px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { display: block; width: 100%; height: 360px; border: 0; }
.check-line { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.check-line input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }

/* Payment choice at checkout and payment states on the order page */
.payment-method { border: 0; padding: 0; min-width: 0; }
.payment-method__title { padding: 0; margin-bottom: 10px; font-weight: 700; }
.radio-card__note { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-sm); font-weight: 400; }
.radio-card__icon--online { color: var(--primary-700); }
.order-done--waiting .order-done__icon { background: var(--warning-50, #fffbeb); color: var(--warning, #b45309); }
.pay-actions { display: grid; gap: 10px; }
.pay-actions form { margin: 0; }
.pay-actions__cancel { justify-self: center; margin: 4px auto 0; color: var(--muted); }
.paid-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--success-50); color: var(--success); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Sub-categories: mega menu, phone menu, home grid, category page ---------- */
.chips__label { flex: none; align-self: center; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }

/* Header mega menu (both themes). JS sets its left/width so it lines up with the page container. */
.navitem { position: relative; display: inline-flex; align-items: center; flex: none; }
.navitem__toggle { display: inline-grid; place-items: center; width: 30px; height: 34px; margin-left: -10px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.navitem__toggle .icon { width: 16px; height: 16px; stroke-width: 2.6; transition: transform .2s; }
.navitem__toggle:hover, .navitem__toggle:focus-visible { background: rgba(127,127,127,.16); }
.navitem.is-open .navitem__toggle .icon { transform: rotate(180deg); }
.navsub { display: none; position: absolute; z-index: 60; top: calc(100% - 1px); left: 0; width: max-content; max-width: calc(100vw - 24px); max-height: min(72vh, 540px); overflow-y: auto; overscroll-behavior: contain; padding: 20px 22px 22px; background: var(--surface, #fff); color: var(--text, #111); border: 1px solid var(--border, #e5e7eb); border-radius: 0 0 var(--radius, 10px) var(--radius, 10px); box-shadow: 0 16px 36px rgba(0,0,0,.16); text-align: left; text-transform: none; letter-spacing: 0; }
.navitem.is-open > .navsub, html:not(.has-menu-js) .navitem.has-sub:hover > .navsub { display: block; }
.navitem.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; } /* no gap to lose the hover */
.navsub__inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 28px; }
.navsub__group { min-width: 0; }
.navsub .navsub__head { display: block; padding: 8px 10px; margin-bottom: 4px; border-radius: 8px; border-bottom: 2px solid var(--primary-100, var(--border)); border-radius: 8px 8px 0 0; font-size: 1.05rem; font-weight: 800; line-height: 1.3; color: var(--text, #111); text-decoration: none; white-space: normal; background: none; }
.navsub__list { list-style: none; margin: 0; padding: 0; }
.navsub .navsub__link { display: block; padding: 7px 10px; border-radius: 8px; font-size: .96rem; font-weight: 500; line-height: 1.35; color: var(--text-2, #444); text-decoration: none; white-space: normal; background: none; border-bottom: 0; }
.navsub .navsub__all { color: var(--primary-700); font-weight: 700; }
.navsub .navsub__head:hover, .navsub .navsub__link:hover, .navsub a:focus-visible { background: var(--primary-50); color: var(--primary-700); }
.navsub a:focus-visible { outline: 2px solid var(--primary-700); outline-offset: -2px; }

/* Phone menu: every level opens and closes on its own */
.drawer__row { display: flex; align-items: stretch; }
.drawer__row > a { flex: 1; min-width: 0; }
.drawer__expand { flex: none; display: grid; place-items: center; width: 52px; min-height: 48px; border: 0; background: transparent; color: var(--primary-700); cursor: pointer; border-radius: var(--radius-sm); }
.drawer__expand:hover, .drawer__expand:focus-visible { background: var(--surface-2); }
.drawer__expand .icon { width: 20px; height: 20px; stroke-width: 2.6; transition: transform .2s; }
.drawer__expand[aria-expanded="true"] .icon { transform: rotate(180deg); }
.drawer__nav .drawer__sub { list-style: none; margin: 0 0 6px 20px; padding: 0 0 0 10px; border-left: 2px solid var(--primary-100, var(--border)); }
.drawer__nav .drawer__sub[hidden] { display: none; }
.drawer__nav .drawer__sub ul { list-style: none; }
.drawer__nav .drawer__sub a { display: flex; align-items: center; min-height: 46px; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; line-height: 1.35; }
.drawer__nav .drawer__sub--l2 > li > .drawer__row > a { font-size: .98rem; font-weight: 600; color: var(--text); }
.drawer__nav .drawer__sub--l3 { margin-left: 16px; }
.drawer__nav .drawer__sub--l3 a { min-height: 44px; font-size: .88rem; font-weight: 400; color: var(--text-2); }
.drawer__nav .drawer__sub a:hover { background: var(--surface-2); }

/* Home category grid: one link per card, an optional small "N sub-categories" line */
.cat-grid__item { align-items: stretch; justify-content: flex-start; padding: 0; }
.cat-grid__link { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; flex: 1; width: 100%; padding: 16px 8px; color: inherit; text-decoration: none; border-radius: inherit; }
.cat-grid__link:focus-visible { outline: 2px solid var(--primary-700); outline-offset: -3px; }
.cat-grid__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-grid__count { display: block; margin-top: -4px; color: var(--muted); font-size: .78rem; font-weight: 500; line-height: 1.3; }
.cat-grid--cards .cat-grid__item { padding: 0; }
.cat-grid--cards .cat-grid__link { position: relative; justify-content: flex-end; padding: 20px 12px; }
.cat-grid--cards .cat-grid__count { position: relative; z-index: 1; margin-top: -2px; padding: 3px 12px; border-radius: var(--radius-pill); background: rgba(255,255,255,.94); color: var(--text-2); }
.cat-grid--cards .cat-grid__count.is-empty { visibility: hidden; }

/* Category page: the child categories as small cards */
.subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; margin: 0 0 20px; }
.subcat { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.subcat:hover, .subcat:focus-visible { border-color: var(--primary-200); box-shadow: var(--shadow-sm); }
.subcat__visual { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary-50); color: var(--primary-700); overflow: hidden; }
.subcat__visual img { width: 100%; height: 100%; object-fit: cover; }
.subcat__text { min-width: 0; display: grid; gap: 1px; }
.subcat__name { font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; overflow-wrap: anywhere; }
.subcat__count { color: var(--muted); font-size: .76rem; line-height: 1.3; }
.subcats__label { margin: 0 0 8px; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }

/* Same-size cards: a fixed number of columns, the last row is not stretched */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cat-grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat-grid__item, .cat-grid--cards .cat-grid__item { flex-basis: auto; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cat-grid--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .cat-grid--cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.navsub a { text-transform: none; letter-spacing: 0; }
.drawer__nav .drawer__group > .drawer__row > a { font-size: 1.1rem; font-weight: 700; }
.drawer__nav .drawer__sub--l2 > li > .drawer__row > a { font-size: .96rem; font-weight: 500; }
.drawer__nav .drawer__sub--l3 { margin-left: 22px; }
.drawer__nav .drawer__sub--l3 a { font-size: .86rem; }

/* Short text above the product list ("All products" intro) */
.listing-intro { max-width: 75ch; margin: -4px 0 18px; color: var(--text-2); font-size: var(--fs-base); line-height: 1.65; }
.listing-intro p { margin: 0 0 .7em; }
.listing-intro p:last-child { margin-bottom: 0; }

/* ---------- Size guide (popup with the size chart and "Find my size") ---------- */
.size-guide-link { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 4px 2px; background: none; border: 0; color: var(--primary-700, var(--primary)); font: inherit; font-size: var(--fs-sm); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.size-guide-link:hover, .size-guide-link:focus-visible { color: var(--primary); }
.size-guide-line { margin: 4px 0 10px; }
.size-guide-line .size-guide-link { margin-left: 0; }
.sg { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.sg[hidden] { display: none; }
.sg__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .6); }
.sg__panel { position: relative; display: flex; flex-direction: column; width: min(760px, 100%); max-height: min(92vh, 900px); background: var(--surface, #fff); color: var(--text, #111827); border-radius: var(--radius-lg, 14px); box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden; }
.sg__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border, #e5e7eb); }
.sg__head h2 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.sg__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.sg__close:hover, .sg__close:focus-visible { background: var(--surface-2, #f3f4f6); }
.sg__body { padding: 14px 16px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sg__toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: var(--fs-sm); }
.sg__units { display: inline-flex; border: 1px solid var(--border, #d1d5db); border-radius: var(--radius-pill, 999px); overflow: hidden; }
.sg__unit { min-height: 38px; padding: 6px 16px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.sg__unit[aria-pressed="true"] { background: var(--primary); color: var(--on-primary, #fff); }
.sg__tablewrap { overflow-x: auto; border: 1px solid var(--border, #e5e7eb); border-radius: var(--radius, 10px); }
.sg__table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); white-space: nowrap; }
.sg__table th, .sg__table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border, #e5e7eb); }
.sg__table thead th { background: var(--surface-2, #f3f4f6); font-weight: 700; position: sticky; top: 0; }
.sg__table tbody th { font-weight: 700; }
.sg__table tbody tr:last-child th, .sg__table tbody tr:last-child td { border-bottom: 0; }
.sg__table tr.is-suggested th, .sg__table tr.is-suggested td { background: var(--primary-50, #fff7ed); box-shadow: inset 0 0 0 0 transparent; }
.sg__table tr.is-suggested th:first-child { box-shadow: inset 4px 0 0 var(--primary); }
.sg__tag { font-weight: 500; opacity: .7; }
.sg__finder { margin-top: 18px; padding: 14px; border: 1px solid var(--border, #e5e7eb); border-radius: var(--radius, 10px); background: var(--surface-2, #f9fafb); }
.sg__finder h3, .sg__measure h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.02rem; }
.sg__hint { margin: 0 0 10px; color: var(--muted); font-size: var(--fs-sm); }
.sg__modes { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.sg__mode { min-height: 38px; padding: 6px 14px; border: 1px solid var(--border, #d1d5db); border-radius: var(--radius-pill, 999px); background: var(--surface, #fff); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.sg__mode.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
.sg__inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sg__field { display: block; font-size: var(--fs-sm); font-weight: 600; }
.sg__field input, .sg__field select { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--border, #d1d5db); border-radius: var(--radius-sm, 8px); background: var(--surface, #fff); color: inherit; font: inherit; }
.sg__inputs[hidden], [data-sg-pane][hidden] { display: none; }
.sg__go { margin-top: 12px; }
.sg__result { margin-top: 12px; }
.sg__result[hidden] { display: none; }
.sg__answer { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; color: var(--primary-700, var(--primary)); }
.sg__answer small { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.sg__msg { margin: 0 0 6px; font-size: var(--fs-sm); }
.sg__warn { color: #b45309; font-weight: 700; }
.sg__apply { margin-top: 6px; }
.sg__measure { margin-top: 18px; }
.sg__measure img { display: block; max-width: 100%; height: auto; margin: 8px 0; border-radius: var(--radius, 10px); }
.sg__measure p { margin: 6px 0 0; line-height: 1.6; }
body.sg-open { overflow: hidden; }
@media (max-width: 600px) {
    .sg { padding: 0; place-items: end center; }
    .sg__panel { width: 100%; max-height: 94vh; border-radius: 16px 16px 0 0; }
}

/* ---------- Reviews, stars, product video, specifications, WhatsApp button ---------- */
.stars { display: inline-block; font-size: 1.05rem; letter-spacing: 1px; line-height: 1; white-space: nowrap;
    background: linear-gradient(90deg, #f59e0b calc(var(--r, 0) / 5 * 100%), #d1d5db 0); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stars--lg { font-size: 1.5rem; }
.reviews-empty { margin: 18px 0 6px; font-size: var(--fs-sm); }
.reviews-empty a { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; text-decoration: none; padding: 8px 0; }
.reviews-empty a:hover { text-decoration: underline; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 4px; color: inherit; text-decoration: none; font-size: var(--fs-xs); }
.rating-line .stars { font-size: .95rem; }
.rating-line__n { color: var(--muted); }
.rating-line--big { margin: 4px 0 8px; font-size: var(--fs-sm); }
.rating-line--big .stars { font-size: 1.15rem; }
.rating-line--big .rating-line__n strong { color: var(--text); }
.product-card .rating-line { display: flex; justify-content: center; }
.reviews { scroll-margin-top: 80px; }
.reviews__summary { display: grid; gap: 18px; margin-bottom: 18px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); background: var(--surface); }
@media (min-width: 720px) { .reviews__summary { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 28px; } }
.reviews__avg { display: grid; gap: 4px; justify-items: start; }
.reviews__avg strong { font-size: 2.6rem; line-height: 1; }
.reviews__bars, .reviews__fit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.reviews__bars li, .reviews__fit li { display: grid; grid-template-columns: 74px minmax(0, 1fr) 40px; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.reviews__bar { display: block; height: 8px; border-radius: 999px; background: var(--surface-2, #e5e7eb); overflow: hidden; }
.reviews__bar i { display: block; height: 100%; border-radius: inherit; background: #f59e0b; }
.reviews__bar--fit i { background: var(--primary); }
.reviews__bar-n { color: var(--muted); text-align: right; }
.reviews__fit h3 { margin: 0 0 8px; font-size: 1rem; }
.reviews__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.review { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius, 10px); background: var(--surface); }
.review[hidden] { display: none; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.review__badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 700; color: #15803d; }
.review__meta { margin: 6px 0 0; }
.review__body { margin: 8px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.review__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.review__photos a { display: block; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.review__photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review__reply { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--primary); background: var(--surface-2, #f3f4f6); border-radius: 0 8px 8px 0; font-size: var(--fs-sm); }
.review__reply p { margin: 4px 0 0; }
.rv-lightbox { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.85); cursor: zoom-out; }
.rv-lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; }
.rv-lightbox__close { position: absolute; top: 10px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
/* Review form */
.review-product { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.review-product img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.review-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.review-verified { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 700; color: #15803d; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { display: grid; place-items: center; width: 44px; height: 44px; font-size: 2rem; line-height: 1; color: #d1d5db; cursor: pointer; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f59e0b; }
.star-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.fit-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.fit-choice__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fit-choice__item span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-pill, 999px); background: var(--surface); cursor: pointer; font-weight: 600; }
.fit-choice__item input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
.fit-choice__item input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.review-previews { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.review-previews img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; }
.notice { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: var(--radius, 10px); margin: 0 0 14px; }
.notice-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.review-order-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.review-order-list li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.review-order-list img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.review-order-list li > div { flex: 1; min-width: 140px; }
.review-done { display: inline-flex; align-items: center; gap: 6px; color: #15803d; font-weight: 700; }
/* Product video in the gallery: a picture with a play button; the player loads only when clicked */
.gallery__slide--video { position: relative; }
.gallery__slide--video > img { filter: brightness(.6); }
.video-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; width: 100%; border: 0; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.video-play svg { box-sizing: content-box; padding: 18px 16px 18px 20px; border-radius: 50%; background: rgba(0,0,0,.65); }
.video-play:hover svg, .video-play:focus-visible svg { background: var(--primary); }
.gallery__slide--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.gallery__slide--video.is-playing > img, .gallery__slide--video.is-playing .video-play { display: none; }
.gallery__thumb--video { position: relative; }
.gallery__thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.45); border-radius: inherit; }
/* Specifications */
.specs { margin-top: 22px; }
.specs h2 { font-size: 1.1rem; margin: 0 0 10px; }
.specs__table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius, 10px); overflow: hidden; font-size: var(--fs-sm); }
.specs__table th, .specs__table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.specs__table th { width: 38%; font-weight: 700; background: var(--surface-2, #f3f4f6); }
.specs__table tr:last-child th, .specs__table tr:last-child td { border-bottom: 0; }
/* WhatsApp */
.wa-ask { margin: 10px 0 4px; }

.btn-sm { min-height: 40px; padding: 6px 14px; font-size: var(--fs-sm); }

/* ---------- Quick help box on the floating WhatsApp button ---------- */
.qh { position: fixed; right: 16px; bottom: 148px; z-index: 85; display: flex; flex-direction: column; width: min(360px, calc(100vw - 32px)); max-height: min(560px, calc(100dvh - 164px)); background: var(--surface, #fff); color: var(--text, #111827); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.28); overflow: hidden; }
.qh[hidden] { display: none; }
@media (min-width: 900px) { .qh { bottom: 90px; max-height: min(560px, calc(100dvh - 120px)); } }
.qh__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: #128c7e; color: #fff; }
.qh__avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); }
.qh__who { flex: 1; min-width: 0; line-height: 1.3; }
.qh__who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qh__who small { display: block; opacity: .9; font-size: .78rem; }
.qh__close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.qh__close:hover, .qh__close:focus-visible { background: rgba(255,255,255,.2); }
.qh__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px; background: #efeae2; display: flex; flex-direction: column; gap: 10px; }
.qh__bubble { max-width: 88%; padding: 9px 12px; border-radius: 12px; line-height: 1.5; font-size: var(--fs-sm, .9rem); overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.qh__bubble--them { align-self: flex-start; background: #fff; border-top-left-radius: 4px; color: #111827; }
.qh__bubble--me { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 4px; color: #111827; }
.qh__bubble a { color: #0b6b5f; font-weight: 700; text-decoration: underline; }
.qh__thread { display: flex; flex-direction: column; gap: 10px; }
.qh__list { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.qh__q { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #b9d9d3; border-radius: 12px; background: #fff; color: #0b6b5f; font: inherit; font-size: var(--fs-sm, .9rem); font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.qh__q:hover, .qh__q:focus-visible { background: #e6f5f2; border-color: #128c7e; }
.qh__q--product { background: #e6f5f2; border-color: #128c7e; }
.qh__foot { padding: 10px 12px 12px; background: var(--surface, #fff); border-top: 1px solid var(--border, #e5e7eb); }
.qh__foot .btn { min-height: 46px; }
