/*
 * Storefront theme.
 *
 * Colours come from palette tokens (--c-*): the defaults below are the
 * "sand" palette, and the layout overrides them per brand. Never hard-code
 * a palette colour here — add a token to App\Support\StorefrontPalette.
 * Mobile first; the header switches to its dark desktop form at 833px.
 * No build step and no slider library: rows scroll with CSS scroll-snap,
 * and storefront.js only adds arrows, dots and hero autoplay on top.
 */

:root {
    /* Palette tokens. These are the "sand" defaults; the layout overrides
       them per brand from App\Support\StorefrontPalette. */
    --c-bg: #F8F7F4;
    --c-surface-alt: #F1EEE8;
    --c-border: #DED9D0;
    --c-ink: #242424;
    --c-muted: #6B665E;
    --c-accent: #C9A45C;
    --c-accent-strong: #7E5F28;
    --c-sale: #A9432F;
    --c-header: #292929;
    --c-header-end: #242424;
    --c-header-accent: #C9A45C;
    --c-ticker: #7E5F28;
    --c-ticker-text: #FFFFFF;

    /* Fixed across palettes. */
    --c-white: #FFFFFF;
    --c-whatsapp: #1FA855;
    --c-whatsapp-dark: #178A45;

    --container-w: 1240px;
    --radius-sm: 3px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --shadow-card: 0 1px 2px rgba(36, 36, 36, .05), 0 2px 8px rgba(36, 36, 36, .04);
    --shadow-pop: 0 12px 32px rgba(36, 36, 36, .10);
    --ease: cubic-bezier(.4, 0, .2, 1);

    --font-body: 'Noto Sans Arabic', 'Manrope', system-ui, sans-serif;
    --font-heading: 'Noto Kufi Arabic', 'Noto Sans Arabic', system-ui, sans-serif;
}

/* ── Base ────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-ink);
    background: var(--c-bg);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; margin: 0; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 16px; }
@media (min-width: 480px) { .container { padding: 0 24px; } }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Announcement ticker ─────────────────────────────────────── */

.top-ticker { background: var(--c-ticker); color: var(--c-ticker-text); font-size: 12px; font-weight: 600; padding: 7px 0; }
.top-ticker[hidden] { display: none; }
.top-ticker__container { position: relative; padding-left: 30px; }
.top-ticker__viewport { overflow: hidden; white-space: nowrap; }
.top-ticker__track { display: inline-flex; animation: ticker-scroll 24s linear infinite; }
.top-ticker__item { display: inline-block; flex-shrink: 0; padding: 0 20px; unicode-bidi: isolate; }
.top-ticker__close {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; color: var(--c-ticker-text); opacity: .85;
    background: none; border: none; padding: 0;
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .top-ticker__track { animation: none; } }
@media (min-width: 833px) {
    .top-ticker { font-size: 12.5px; padding: 9px 0; }
    .top-ticker__container { padding-left: 40px; }
    .top-ticker__item { padding: 0 36px; }
}

/* ── Header ──────────────────────────────────────────────────── */

.site-header-group { position: sticky; top: 0; z-index: 40; }
.site-header { background: var(--c-white); border-bottom: 1px solid var(--c-border); padding: 10px 0; }
.site-header__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand .brand__avatar {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--c-header); color: var(--c-header-accent);
    font-family: var(--font-heading); font-weight: 700; font-size: 18px; line-height: 1;
}
/* Uploaded logos keep their proportions: capped by height, never cropped. */
.brand__logo { height: 40px; width: auto; max-width: 150px; object-fit: contain; flex-shrink: 0; }
.brand__name {
    font-family: var(--font-heading); font-weight: 700; font-size: 14px;
    color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.search-bar { display: none; position: relative; margin: 0; }
.search-bar.is-open { display: block; flex: 1 1 100%; order: 10; margin-top: 6px; }
.search-bar input {
    width: 100%; padding: 10px 42px 10px 14px; border-radius: 999px;
    border: 1px solid var(--c-border); background: var(--c-bg);
    color: var(--c-ink); font: inherit; font-size: 13.5px;
}
.search-bar input::placeholder { color: var(--c-muted); }
.search-bar input:focus { outline: 2px solid var(--c-accent); background: var(--c-white); }
.search-bar__icon {
    position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
    color: var(--c-muted); pointer-events: none; display: flex;
}

.header-actions { display: flex; align-items: center; gap: 6px; }
.header-action {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    color: var(--c-ink); background: none; border: none; padding: 0;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.header-action:hover { background: var(--c-bg); color: var(--c-accent-strong); }
.header-action__label { display: none; }
.header-action--whatsapp { color: var(--c-whatsapp); }
.header-action--search .icon-close { display: none; }
.header-action--search.is-active { background: var(--c-bg); color: var(--c-accent-strong); }
.header-action--search.is-active .icon-search { display: none; }
.header-action--search.is-active .icon-close { display: flex; }

@media (min-width: 833px) {
    .site-header { background: linear-gradient(180deg, var(--c-header) 0%, var(--c-header-end) 100%); color: var(--c-white); border-bottom: none; padding: 14px 0; }
    .site-header__row { justify-content: flex-start; gap: 24px; flex-wrap: nowrap; }
    .brand .brand__avatar { width: 48px; height: 48px; font-size: 22px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
    /* A light plate keeps a logo drawn for white backgrounds legible on the dark header. */
    .site-header .brand__logo { height: 48px; max-width: 220px; background: var(--c-white); padding: 4px 10px; border-radius: var(--radius-md); }
    .brand__name { font-size: 18px; color: var(--c-white); }
    .search-bar { display: block; flex: 1 1 auto; max-width: 560px; }
    .search-bar input { border: none; background: rgba(255, 255, 255, .12); color: var(--c-white); }
    .search-bar input::placeholder { color: rgba(255, 255, 255, .6); }
    .search-bar input:focus { background: rgba(255, 255, 255, .18); outline-color: var(--c-header-accent); }
    .search-bar__icon { color: rgba(255, 255, 255, .7); }
    .header-actions { margin-inline-start: auto; gap: 22px; }
    .header-action--search { display: none; }
    .header-action { width: auto; height: auto; border-radius: 0; gap: 8px; color: var(--c-white); }
    .header-action:hover { background: none; color: var(--c-header-accent); }
    .header-action--whatsapp { color: var(--c-white); }
    .header-action__label { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; line-height: 1.3; }
    .header-action__label small { display: block; font-size: 11px; font-weight: 400; opacity: .7; }
}

/* ── Category nav ────────────────────────────────────────────── */

.category-nav { background: var(--c-white); border-bottom: 1px solid var(--c-border); }
.category-nav__list {
    display: flex; gap: 20px; overflow-x: auto; margin: 0; padding: 0 2px; list-style: none;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.category-nav__list::-webkit-scrollbar { display: none; }
.category-nav__item {
    display: flex; align-items: center; gap: 7px; padding: 10px 2px;
    font-weight: 700; font-size: 12px; white-space: nowrap;
    border-bottom: 2px solid transparent; transition: all .25s var(--ease);
}
.category-nav__item:hover, .category-nav__item.is-active { color: var(--c-accent-strong); border-bottom-color: var(--c-accent); }
.category-nav__icon { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
@media (min-width: 833px) {
    .category-nav__list { gap: 36px; padding: 0; }
    .category-nav__item { padding: 14px 4px; font-size: 13.5px; gap: 10px; }
    .category-nav__icon { width: 30px; height: 30px; }
}

/* ── Sliders (scroll-snap) ───────────────────────────────────── */

.slider-wrap { position: relative; }
.slider-track {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; flex-shrink: 0; }

.slider-nav-btn {
    position: absolute; top: 40%; transform: translateY(-50%); z-index: 5;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--c-white); border: 1px solid var(--c-border); box-shadow: var(--shadow-card);
    display: none; align-items: center; justify-content: center;
    color: var(--c-ink); transition: all .25s var(--ease); padding: 0;
}
.slider-nav-btn:hover { border-color: var(--c-accent); color: var(--c-accent-strong); }
.slider-nav-btn:disabled { opacity: 0; pointer-events: none; }
.slider-nav-btn.prev { right: -8px; }
.slider-nav-btn.next { left: -8px; }
@media (hover: hover) and (min-width: 833px) { .slider-nav-btn { display: flex; } }

/* ── Hero slider ─────────────────────────────────────────────── */

.hero-slider { aspect-ratio: 1335 / 450; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-surface-alt); }
.hero-slider .slider-track { gap: 0; height: 100%; }
.hero-slide { width: 100%; height: 100%; }
.hero-slide a, .hero-slide > div { display: block; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider .slider-nav-btn { top: 50%; }
.hero-slider .slider-nav-btn.prev { right: 12px; }
.hero-slider .slider-nav-btn.next { left: 12px; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 5; }
.slider-dot { width: 8px; height: 8px; border-radius: 999px; border: none; padding: 0; background: var(--c-white); opacity: .6; transition: all .25s var(--ease); }
.slider-dot.is-active { opacity: 1; background: var(--c-accent); width: 20px; }

/* ── Category circles ────────────────────────────────────────── */

.cat-circles .slider-track { gap: 14px; padding: 4px 2px; }
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; width: 84px; }
.cat-circle__img {
    width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
    border: 2px solid var(--c-border); background: var(--c-surface-alt);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--c-accent-strong);
    transition: border-color .25s var(--ease);
}
.cat-circle__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle:hover .cat-circle__img, .cat-circle.is-active .cat-circle__img { border-color: var(--c-accent); }
.cat-circle span { font-size: 12px; font-weight: 700; line-height: 1.35; max-width: 92px; }
@media (min-width: 833px) {
    .cat-circle { width: 100px; }
    .cat-circle__img { width: 84px; height: 84px; }
    .cat-circle span { font-size: 12.5px; }
}

/* ── Wide banner ─────────────────────────────────────────────── */

.banner-single { aspect-ratio: 1335 / 450; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-surface-alt); }
.banner-single a, .banner-single > div { display: block; width: 100%; height: 100%; }
.banner-single img { width: 100%; height: 100%; object-fit: cover; }

/* ── Sections ────────────────────────────────────────────────── */

.section { padding: 36px 0; }
.section + .section { padding-top: 8px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-header h2 { font-size: 20px; }
.section-header a { font-size: 13px; font-weight: 700; color: var(--c-accent-strong); display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.section-header__meta { font-size: 13px; color: var(--c-muted); }
@media (min-width: 833px) {
    .section { padding: 56px 0; }
    .section-header { margin-bottom: 28px; }
    .section-header h2 { font-size: 28px; }
}

/* ── Product rows and grids ──────────────────────────────────── */

.product-row .slider-track { padding: 4px 2px 12px; }
.product-row .product-card { width: calc((100% - 14px) / 2); }
@media (min-width: 640px) { .product-row .product-card { width: calc((100% - 28px) / 3); } }
@media (min-width: 992px) { .product-row .product-card { width: calc((100% - 42px) / 4); } }
@media (min-width: 1200px) { .product-row .product-card { width: calc((100% - 56px) / 5); } }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ── Product card ────────────────────────────────────────────── */

.product-card {
    display: flex; flex-direction: column; background: var(--c-white);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden;
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow-pop); transform: translateY(-3px); }
.product-card__media { position: relative; aspect-ratio: 1 / 1; background: var(--c-surface-alt); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--c-border); }
.product-card__badge {
    position: absolute; top: 10px; right: 10px; max-width: calc(100% - 20px);
    background: var(--c-ink); color: var(--c-white);
    font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-sm);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card__off-tag {
    position: absolute; top: 10px; left: 10px;
    background: var(--c-sale); color: var(--c-white);
    font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: var(--radius-sm);
    direction: ltr;
}
.product-card__body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
@media (min-width: 640px) { .product-card__body { padding: 16px 16px 18px; } }
.product-card__name {
    margin: 0; font-family: var(--font-body); font-size: 14px; font-weight: 700; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px;
}
.product-card__desc {
    margin: 0; font-size: 12px; color: var(--c-muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__price-row { margin-top: auto; padding-top: 4px; }
.product-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-card__price .now { font-weight: 700; font-size: 16px; color: var(--c-accent-strong); font-family: var(--font-heading); }
.product-card__price .now small { font-size: 11px; font-weight: 600; }
.product-card__price .old { font-size: 12px; color: var(--c-muted); text-decoration: line-through; }
.product-card__price .off { font-size: 11px; font-weight: 800; color: var(--c-sale); direction: ltr; }
@media (min-width: 640px) { .product-card__price .now { font-size: 17px; } }

.product-card__order {
    margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 9px 10px; border-radius: var(--radius-md);
    background: var(--c-accent-strong); color: var(--c-white);
    font-size: 13px; font-weight: 700; transition: background .2s var(--ease);
}
.product-card__order { white-space: nowrap; }
.product-card__order:hover { background: var(--c-ink); }
/* Two cards per row on a phone leave ~150px for the label; keep it on one line. */
@media (max-width: 479px) {
    .product-card__order { font-size: 12px; padding: 8px 6px; gap: 4px; }
}
.product-card__order:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ── Empty / notices ─────────────────────────────────────────── */

.empty-state {
    background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
    padding: 48px 20px; text-align: center; color: var(--c-muted);
}
.empty-state a { color: var(--c-accent-strong); font-weight: 700; }

/* ── Buttons and labels ──────────────────────────────────────── */

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .5px; color: var(--c-accent-strong); margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--c-accent); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 24px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-weight: 700; font-size: 14px; white-space: nowrap; transition: all .25s var(--ease);
}
.btn-sm { height: 38px; padding: 0 18px; font-size: 13px; }
.btn-whatsapp { background: var(--c-whatsapp); color: var(--c-white); }
.btn-whatsapp:hover { background: var(--c-whatsapp-dark); }
.btn-order { background: var(--c-accent-strong); color: var(--c-white); }
.btn-order:hover { background: var(--c-ink); }
.btn-outline { background: transparent; border-color: var(--c-ink); color: var(--c-ink); }
.btn-outline:hover { background: var(--c-ink); color: var(--c-white); }
.btn-ghost { display: inline-block; font-weight: 700; font-size: 14px; color: var(--c-ink); padding-bottom: 3px; border-bottom: 1px solid var(--c-accent); transition: color .25s var(--ease); }
.btn-ghost:hover { color: var(--c-accent-strong); }

/* ── Brand story (about) ─────────────────────────────────────── */

.section.brand-story { background: var(--c-surface-alt); padding: 44px 0; }
.brand-story .container { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.brand-story .container > * { min-width: 0; }
.brand-story__image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-border); }
.brand-story__image img { width: 100%; height: 100%; object-fit: cover; }
.brand-story__content h1, .brand-story__content h2 { font-size: 26px; margin-bottom: 16px; }
.brand-story__content p { color: var(--c-muted); font-size: 15px; line-height: 1.9; margin: 0 0 14px; overflow-wrap: anywhere; }
.brand-story__content .btn-ghost { margin-top: 6px; }
@media (min-width: 833px) {
    .section.brand-story { padding: 72px 0; }
    .brand-story .container { grid-template-columns: 1fr 1fr; gap: 60px; }
    .brand-story--text .container { grid-template-columns: minmax(0, 760px); }
    .brand-story__content h1, .brand-story__content h2 { font-size: 34px; }
}

/* ── Why choose us ───────────────────────────────────────────── */

.section-tight { padding: 32px 0; }
@media (min-width: 833px) { .section-tight { padding: 48px 0; } }
.why-choose { display: grid; grid-template-columns: 1fr; gap: 16px; }
.why-choose > * { min-width: 0; }
@media (min-width: 560px) { .why-choose { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .why-choose { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.why-choose__item { background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px 20px; }
.why-choose__number { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--c-accent-strong); line-height: 1; margin-bottom: 14px; }
.why-choose__title { font-family: var(--font-heading); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.why-choose__text { font-size: 13.5px; color: var(--c-muted); line-height: 1.8; }

.cta-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--c-header); color: var(--c-white); border-radius: var(--radius-lg); padding: 24px;
}
.cta-band h2 { color: var(--c-white); font-size: 20px; margin-bottom: 4px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 14px; }
@media (min-width: 833px) { .cta-band { padding: 32px 40px; } .cta-band h2 { font-size: 24px; } }

/* ── Content pages (contact) ─────────────────────────────────── */

.page-body { padding-top: 28px; padding-bottom: 56px; }
.breadcrumbs { font-size: 13px; color: var(--c-muted); margin-bottom: 16px; }
.breadcrumbs a:hover { color: var(--c-accent-strong); }
.page-title { font-size: 28px; margin-bottom: 12px; }
.page-lead { color: var(--c-muted); font-size: 15px; max-width: 520px; margin: 0 0 32px; }
@media (min-width: 833px) { .page-title { font-size: 36px; } }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact-grid > * { min-width: 0; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .contact-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; } }
.contact-card {
    background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
    padding: 28px 20px; text-align: center; display: flex; flex-direction: column; align-items: center;
}
.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card p { color: var(--c-muted); font-size: 13.5px; margin: 0 0 16px; overflow-wrap: anywhere; }
.contact-card .btn { margin-top: auto; }
.icon-circle { width: 56px; height: 56px; border-radius: 50%; background: var(--c-surface-alt); color: var(--c-accent-strong); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.icon-circle--whatsapp { background: rgba(31, 168, 85, .12); color: var(--c-whatsapp); }
.contact-social { margin-top: 40px; text-align: center; }
.contact-social h2 { font-size: 18px; margin-bottom: 4px; }
.contact-social .footer-social { justify-content: center; margin-top: 12px; }

/* ── Footer ──────────────────────────────────────────────────── */

.site-footer { background: var(--c-header); color: rgba(255, 255, 255, .7); padding: 44px 0 20px; font-size: 13.5px; }
.site-footer .brand .brand__avatar { width: 52px; height: 52px; font-size: 24px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.site-footer .brand__logo { height: 60px; max-width: 220px; background: var(--c-white); padding: 6px 12px; border-radius: var(--radius-md); }
.site-footer .brand__name { color: var(--c-white); font-size: 18px; }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-grid > * { min-width: 0; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) {
    .site-footer { padding: 72px 0 24px; }
    .footer-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 32px; }
}
.footer-grid h4 { color: var(--c-white); font-family: var(--font-heading); font-size: 14px; margin: 0 0 14px; }
.footer-grid a, .footer-grid .footer-line {
    display: flex; align-items: center; gap: 8px; padding: 6px 0;
    font-size: 13.5px; color: rgba(255, 255, 255, .72); transition: color .25s var(--ease); overflow-wrap: anywhere;
}
.footer-grid a:hover { color: var(--c-header-accent); }
.footer-grid a svg, .footer-grid .footer-line svg { flex-shrink: 0; }
.footer-grid .brand { padding: 0; }
.footer-tagline { font-size: 13.5px; color: rgba(255, 255, 255, .72); max-width: 260px; line-height: 1.8; margin: 14px 0 0; }

/* Social icons wear each platform's own colours, on dark and light grounds alike. */
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 38px; height: 38px; padding: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: none; color: #FFFFFF; background: var(--c-ink);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
/* Re-states the glyph colour so the footer's generic gold link hover can't recolour it. */
.footer-social a:hover { color: #FFFFFF; transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.footer-social a:focus-visible { outline: 2px solid var(--c-accent-strong); outline-offset: 2px; }
.site-footer .footer-social a:focus-visible { outline-color: var(--c-header-accent); }

.footer-social .social-facebook { background: #1877F2; }
.footer-social .social-instagram {
    background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
}
/* Black marks get a hairline ring so they don't vanish into the dark footer. */
.footer-social .social-tiktok,
.footer-social .social-x { background: #000000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 2px 6px rgba(0, 0, 0, .18); }
.footer-social .social-tiktok svg { filter: drop-shadow(-1px -1px 0 #25F4EE) drop-shadow(1px 1px 0 #FE2C55); }
.footer-social .social-youtube { background: #FF0000; }
.footer-social .social-snapchat,
.footer-social .social-snapchat:hover { background: #FFFC00; color: #111111; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 20px; font-size: 12.5px; color: rgba(255, 255, 255, .55); text-align: center; }

/* ── Product page ────────────────────────────────────────────── */

.product-card__media { display: block; }
.product-card__name a:hover { color: var(--c-accent-strong); }

.product-page { display: grid; grid-template-columns: 1fr; gap: 24px; }
.product-page > * { min-width: 0; }
@media (min-width: 900px) {
    .product-page { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
}

.product-gallery__main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-surface-alt); }
.product-gallery__track { gap: 0; height: 100%; }
.product-gallery__slide { width: 100%; height: 100%; }
.product-gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.product-gallery__thumb {
    padding: 0; aspect-ratio: 1 / 1; overflow: hidden;
    border: 2px solid transparent; border-radius: var(--radius-md); background: var(--c-surface-alt);
    opacity: .65; transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb:hover, .product-gallery__thumb.is-active { opacity: 1; border-color: var(--c-accent); }
.product-gallery__thumb:focus-visible { outline: 2px solid var(--c-accent-strong); outline-offset: 2px; }

.product-info__title { font-size: 24px; margin: 0 0 12px; overflow-wrap: anywhere; }
@media (min-width: 833px) { .product-info__title { font-size: 32px; } }
.product-info .product-card__price { margin-bottom: 20px; }
.product-info .product-card__price .now { font-size: 26px; }
.product-info .product-card__price .old { font-size: 15px; }
.product-info .product-card__price .off { font-size: 13px; }
.product-info__order { width: 100%; height: 52px; font-size: 16px; }
@media (min-width: 640px) { .product-info__order { width: auto; min-width: 280px; } }
.product-info__note { font-size: 12.5px; color: var(--c-muted); margin: 10px 0 0; }
.product-info__description { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--c-border); }
.product-info__description h2 { font-size: 17px; margin-bottom: 10px; }
.product-info__description p { color: var(--c-muted); font-size: 15px; line-height: 1.9; margin: 0 0 12px; overflow-wrap: anywhere; }

/* ── Order form ──────────────────────────────────────────────── */

.order-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.order-layout > * { min-width: 0; }
@media (min-width: 900px) { .order-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; } }

.order-form { background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 20px; }
@media (min-width: 640px) { .order-form { padding: 28px; } }
.order-form .page-title { font-size: 22px; margin-bottom: 6px; }
.order-form .page-lead { font-size: 14px; margin-bottom: 20px; }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.form-field__hint { font-weight: 400; color: var(--c-muted); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 11px 14px; font: inherit; font-size: 15px;
    border: 1px solid var(--c-border); border-radius: var(--radius-md);
    background: var(--c-white); color: var(--c-ink);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}
.form-field textarea { resize: vertical; }
/* A select with no arrow reads as a text box. The page is RTL, so the arrow
   and the room it needs sit on the left. */
.form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 11px auto;
    padding-inline-end: 36px;
}
/* Nothing picked yet is a prompt, not an answer, so it reads like one. */
.form-field select:has(option[value=""]:checked) { color: var(--c-muted); }

/* The address, one part per box ---------------------------------- */

.addr { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.addr legend { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; padding: 0; }

.addr__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
/* Building, floor and flat are short, so three fit across even on a phone. */
.addr__cell { grid-column: span 2; min-width: 0; }
.addr__cell--half { grid-column: span 3; }
.addr__cell--full { grid-column: span 6; }
.addr__cell label { font-size: 12.5px; font-weight: 600; color: var(--c-muted); margin-bottom: 4px; }

@media (max-width: 520px) {
    .addr__grid { gap: 10px; }
    .addr__cell--half { grid-column: span 6; }
    .addr__cell input { padding-inline: 10px; }
}

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--c-border); border-radius: 999px; overflow: hidden; background: var(--c-white); }
.qty-stepper button {
    width: 44px; height: 44px; border: none; background: var(--c-surface-alt);
    font-size: 20px; font-weight: 700; color: var(--c-ink); line-height: 1;
}
.qty-stepper button:hover { background: var(--c-border); }
.qty-stepper input {
    width: 64px; height: 44px; border: none; text-align: center;
    font: inherit; font-size: 16px; font-weight: 700; background: transparent; color: var(--c-ink);
    -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; }

.order-form__submit { width: 100%; height: 52px; font-size: 16px; margin-top: 4px; }
/* Sent: stays readable, stops taking taps until the next page loads. */
.btn.is-sending { opacity: .7; cursor: progress; }
.order-form__note { font-size: 12.5px; color: var(--c-muted); margin: 12px 0 0; }

/* Clipped, not display:none — bots skip hidden fields but fill this one.
   Never position it off-screen: in RTL a negative offset extends the
   scrollable area and the whole page scrolls sideways. */
.hp {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.form-errors {
    background: #FDECEA; border: 1px solid #F5C6C0; color: #8A2318;
    border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 18px; font-size: 14px;
}
.form-errors ul { margin: 0; padding-inline-start: 18px; }

.order-summary { background: var(--c-surface-alt); border-radius: var(--radius-lg); padding: 20px; }
.order-summary h2 { font-size: 16px; margin-bottom: 14px; }
.order-summary__product { display: flex; gap: 12px; align-items: center; }
.order-summary__product img, .order-summary__placeholder {
    width: 64px; height: 64px; border-radius: var(--radius-md); object-fit: cover;
    background: var(--c-white); display: grid; place-items: center; font-size: 26px; flex-shrink: 0;
}
.order-summary__title { font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.order-summary__unit { font-size: 12.5px; color: var(--c-muted); margin-top: 2px; }
.order-summary__lines { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--c-border); }
.order-summary__lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.order-summary__lines dt { font-size: 13.5px; color: var(--c-muted); }
.order-summary__lines dd { margin: 0; font-weight: 700; }
.order-summary__total dt { color: var(--c-ink); font-weight: 700; }
.order-summary__total dd { font-family: var(--font-heading); font-size: 20px; color: var(--c-accent-strong); }
.order-summary__note { font-size: 12px; color: var(--c-muted); margin: 10px 0 0; }

/* ── Order confirmation ──────────────────────────────────────── */

.thanks { max-width: 560px; margin: 0 auto; text-align: center; padding: 8px 0 48px; }
.thanks__mark {
    width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
    background: rgba(31, 168, 85, .12); color: var(--c-whatsapp);
    display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700;
}
.thanks__title { font-size: 26px; margin-bottom: 10px; }
.thanks__lead { color: var(--c-muted, #666); line-height: 1.8; margin-bottom: 28px; }
.thanks__lines {
    text-align: start; border: 1px solid var(--c-border); border-radius: var(--radius-md);
    padding: 16px 18px; margin-bottom: 24px;
}
.thanks__lines > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.thanks__lines > div + div { border-top: 1px solid var(--c-border); }
.thanks__lines dt { color: var(--c-muted, #666); font-size: 14px; }
.thanks__lines dd { font-weight: 700; font-size: 14px; }
.thanks__total dd { font-size: 17px; }

.thanks__actions { display: flex; flex-direction: column; gap: 12px; }
.thanks__action { width: 100%; }

/* The brand's own payment page — set apart from the WhatsApp action so the
   two are never mistaken for each other. */
.btn-pay { background: var(--c-ink); color: var(--c-white); }
.btn-pay:hover { background: var(--c-accent-strong); }
.btn-pay__amount {
    background: rgba(255, 255, 255, .18); border-radius: 100px;
    padding: 3px 10px; font-size: 13px; font-weight: 700;
}

.thanks__note { color: var(--c-muted, #666); font-size: 13.5px; line-height: 1.8; margin-top: 20px; }
.thanks__back { display: inline-block; margin-top: 22px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--c-accent); }

@media (min-width: 560px) {
    .thanks__actions { flex-direction: row; }
    .thanks__action { flex: 1; }
}

/* Payment choice on the order form ───────────────────────────── */

.pay-choice { border: 0; padding: 0; margin: 0 0 18px; }
.pay-choice legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.pay-choice__option {
    display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center;
    border: 1px solid var(--c-border); border-radius: var(--radius-md);
    padding: 12px 14px; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.pay-choice__option + .pay-choice__option { margin-top: 8px; }
.pay-choice__option:hover { border-color: var(--c-ink); }
.pay-choice__option:has(input:checked) { border-color: var(--c-ink); background: var(--c-surface-alt); }
.pay-choice__option input { width: 18px; height: 18px; accent-color: var(--c-ink); grid-row: span 2; }
.pay-choice__label { font-weight: 700; font-size: 14.5px; }
.pay-choice__hint { grid-column: 2; color: var(--c-muted, #666); font-size: 13px; }

/* Payment step on the confirmation page -------------------------- */

.pay-step {
    text-align: start; border: 1px solid var(--c-border); border-radius: var(--radius-md);
    padding: 18px; margin-bottom: 20px; background: var(--c-white);
}
.pay-step__title { font-size: 17px; margin: 0 0 6px; }
.pay-step__lead { color: var(--c-muted, #666); font-size: 14px; line-height: 1.8; margin: 0 0 14px; }
.pay-step__lead strong { color: var(--c-ink); }

.pay-step__target {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--c-surface-alt); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px;
}
.pay-step__target-label { color: var(--c-muted, #666); font-size: 12px; }
.pay-step__target-value { font-weight: 700; font-size: 16px; letter-spacing: .02em; margin-inline-end: auto; }
.pay-step__copy {
    border: 1px solid var(--c-border); background: var(--c-white); border-radius: 100px;
    padding: 5px 14px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.pay-step__copy:hover { border-color: var(--c-ink); }

.pay-step__instructions {
    color: var(--c-muted, #666); font-size: 13.5px; line-height: 1.8; margin: 0 0 14px; white-space: pre-line;
}
.pay-step__form { display: flex; flex-direction: column; gap: 6px; }
.pay-step__form label { font-size: 13px; font-weight: 700; }
.pay-step__form input {
    border: 1px solid var(--c-border); border-radius: var(--radius-sm);
    padding: 11px 12px; font: inherit; font-size: 15px; width: 100%;
}
.pay-step__form input:focus { outline: 2px solid var(--c-accent); border-color: transparent; }
.pay-step__submit { margin-top: 8px; width: 100%; }
.pay-step__error { color: #b42318; font-size: 12.5px; font-weight: 700; }
.pay-step__note { color: var(--c-muted, #666); font-size: 12.5px; margin: 10px 0 0; }

.pay-step__sent {
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-sm);
    padding: 12px 14px; font-size: 14px;
}
.pay-step__sent p { color: var(--c-muted, #666); font-size: 13px; margin: 6px 0 0; }

.thanks__flash {
    background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
    border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; font-weight: 700; margin-bottom: 18px;
}

/* A storefront that is closed for now ------------------------------ */

.closed {
    min-height: 100vh; min-height: 100dvh; display: grid; place-items: center;
    padding: 32px 16px; background: var(--c-surface-alt, #f6f5f2);
}
.closed__card {
    width: 100%; max-width: 440px; text-align: center; background: var(--c-white);
    border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 36px 24px 32px;
}
.closed__mark { display: flex; justify-content: center; margin-bottom: 14px; }
.closed__logo { max-height: 64px; max-width: 180px; object-fit: contain; }
.closed__avatar { width: 64px; height: 64px; font-size: 28px; }
.closed__brand { color: var(--c-muted); font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.closed__title { font-size: 24px; margin: 0 0 12px; }
.closed__lead { color: var(--c-muted); line-height: 1.8; margin: 0 0 24px; }
.closed__action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }

/* Basket ------------------------------------------------------------ */

.header-action--cart { position: relative; }
@media (min-width: 833px) {
    /* On the wide header the icon has no fixed box, so the badge sits off its corner. */
    .header-action--cart .header-action__badge { top: -8px; inset-inline-end: auto; inset-inline-start: 12px; }
}
.header-action__badge {
    position: absolute; top: 1px; inset-inline-end: -2px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--c-accent-strong); color: var(--c-white);
    font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}

/* Card: the wide "order now" plus a square add-to-basket beside it. */
.product-card__actions { display: flex; gap: 6px; margin-top: 8px; }
.product-card__actions .product-card__order { margin-top: 0; flex: 1; min-width: 0; }
.product-card__actions form { display: flex; }
.product-card__add {
    display: flex; align-items: center; justify-content: center; gap: 1px;
    min-width: 40px; min-height: 36px; padding: 0 6px; border-radius: var(--radius-md);
    border: 1px solid var(--c-border); background: var(--c-white); color: var(--c-ink);
    font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; transition: border-color .2s var(--ease);
}
.product-card__add:hover { border-color: var(--c-ink); }
.product-card__add:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.product-info__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.product-info__actions .product-info__order { flex: 1 1 220px; }
.product-info__cart { display: flex; flex: 1 1 160px; }
.product-info__add { width: 100%; height: 52px; font-size: 16px; }
@media (min-width: 640px) {
    .product-info__actions .product-info__order { flex: 0 1 280px; }
    .product-info__cart { flex: 0 1 200px; }
}

.cart-flash, .cart-empty p { color: var(--c-muted); }
.cart-flash { background: var(--c-surface-alt); border-radius: var(--radius-md); padding: 10px 14px; margin: 0 0 16px; }
.cart-empty { text-align: center; padding: 40px 0 56px; }
.cart-empty p { margin: 0 0 18px; font-size: 16px; }

.cart-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.cart-layout > * { min-width: 0; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 340px; gap: 32px; } }

.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-border); }
.cart-line {
    display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start;
    padding: 16px 0; border-bottom: 1px solid var(--c-border);
}
.cart-line__media { width: 72px; height: 72px; border-radius: var(--radius-md); overflow: hidden; background: var(--c-surface-alt); display: grid; place-items: center; }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__placeholder { font-size: 26px; }
.cart-line__title { display: block; font-weight: 700; color: var(--c-ink); line-height: 1.5; }
.cart-line__unit { color: var(--c-muted); font-size: 13px; margin-top: 2px; }
.cart-line__controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.cart-line__subtotal { font-weight: 800; white-space: nowrap; }
.cart-line__subtotal small { font-weight: 600; color: var(--c-muted); }
.cart-line__remove { background: none; border: none; padding: 6px 0; color: var(--c-muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.cart-line__remove:hover { color: var(--c-sale, #b42318); }

.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--c-border); border-radius: 999px; overflow: hidden; }
.cart-qty button {
    width: 36px; height: 36px; border: none; background: var(--c-surface-alt); color: var(--c-ink);
    font: inherit; font-size: 18px; font-weight: 700; cursor: pointer;
}
.cart-qty button:disabled { opacity: .35; cursor: default; }
.cart-qty__value { min-width: 34px; text-align: center; font-weight: 700; }

.cart-summary__checkout { display: flex; width: 100%; margin-top: 14px; }
.cart-summary__continue { display: block; text-align: center; margin-top: 12px; color: var(--c-muted); font-size: 14px; text-decoration: underline; }

.checkout-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.checkout-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.checkout-lines__title { min-width: 0; }
.checkout-lines__qty { color: var(--c-muted); white-space: nowrap; }
.checkout-lines__price { white-space: nowrap; font-weight: 700; }

.cart-toast {
    position: fixed; inset-inline: 16px; bottom: 16px; z-index: 60; margin: 0 auto; max-width: 480px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--c-ink); color: var(--c-white); border-radius: var(--radius-md); padding: 12px 16px;
    font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.cart-toast span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-toast a { color: var(--c-white); font-weight: 800; text-decoration: underline; white-space: nowrap; }

/* Several products on the confirmation page. */
.thanks__items { list-style: none; margin: 0; padding: 0; }
.thanks__items li { display: flex; justify-content: space-between; gap: 12px; }
.thanks__items li + li { margin-top: 4px; }

/* Card gateways on the confirmation page. */
.pay-step__cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.pay-step__cards form { margin: 0; }
.pay-step__cards + .pay-step__title { margin-top: 8px; }
.thanks__flash--error { background: #fef3f2; border-color: #fecdca; color: #b42318; }

/* A brief tick on the button that was just added from. */
.product-card__add.is-added, .product-info__add.is-added { border-color: var(--c-accent-strong); color: var(--c-accent-strong); }
.product-info__add.is-added { background: var(--c-surface-alt); }
.cart-toast[hidden] { display: none; }

/* Coupon box and the price breakdown -------------------------------- */
.coupon__row { display: flex; gap: 8px; }
.coupon__row input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon__apply { flex-shrink: 0; padding-inline: 18px; }
.coupon__message { margin: 6px 0 0; font-size: 13px; min-height: 1em; }
.coupon__message[data-state="ok"] { color: #067647; font-weight: 700; }
.coupon__message[data-state="error"] { color: #b42318; font-weight: 700; }
.addr__hint { display: block; margin-top: 4px; font-size: 12px; color: var(--c-muted); }
.order-summary__discount { color: #067647; font-weight: 700; }
.order-summary__code { font-size: 12px; color: var(--c-muted); font-weight: 600; }
.order-summary__lines [hidden] { display: none; }


/* ── Catalogue pages: all products, a category, offers, search ────── */
.catalog-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.catalog-count { color: var(--c-muted); font-size: 14px; margin-top: 4px; }
.catalog-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c-muted); }
.catalog-sort select {
    font: inherit;
    color: var(--c-ink);
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 8px 12px;
    min-height: 40px;
}
.catalog-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 18px;
    scrollbar-width: none;
}
.catalog-filters::-webkit-scrollbar { display: none; }
.catalog-chip {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--c-border);
    background: #fff;
    color: var(--c-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.catalog-chip:hover { border-color: var(--c-accent); }
.catalog-chip.is-active { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.catalog-empty { color: var(--c-muted); margin: 28px 0 14px; }

/* Pagination */
.catalog-pages { margin-top: 28px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; padding: 0; }
.pager__item { border-radius: 10px; }
.pager__item a,
.pager__item.is-current,
.pager__item.is-disabled,
.pager__item.is-dots {
    display: block;
    min-width: 40px;
    padding: 9px 12px;
    text-align: center;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: #fff;
    color: var(--c-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.pager__item a:hover { border-color: var(--c-accent); }
.pager__item.is-current { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.pager__item.is-disabled,
.pager__item.is-dots { color: var(--c-muted); opacity: .6; }

/* A missing page inside a shop */
.store-404 { text-align: center; padding: 48px 0 64px; }
.store-404__code { font-size: 48px; font-weight: 800; color: var(--c-accent); margin-bottom: 8px; }
.store-404__text { color: var(--c-muted); max-width: 460px; margin: 10px auto 24px; line-height: 1.8; }
.store-404__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store-404__actions .btn { width: auto; padding-inline: 28px; }

/* Standing pages: policies and the questions list */
.policy-body { max-width: 760px; line-height: 2; color: var(--c-ink); }
.policy-body p { margin-bottom: 16px; }
.policy-contact { margin-top: 28px; color: var(--c-muted); font-size: 14px; }
.faq-list { max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--c-border); border-radius: 14px; padding: 14px 18px; }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: left; color: var(--c-accent); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 10px; color: var(--c-muted); line-height: 1.9; }

/* Tracking an order */
.track-lead { color: var(--c-muted); margin-bottom: 20px; }
.track-form { background: #fff; border: 1px solid var(--c-border); border-radius: 16px; padding: 20px; max-width: 460px; }
.track-form__row { margin-bottom: 14px; }
.track-form__row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.track-form__row input {
    width: 100%;
    font: inherit;
    padding: 12px 14px;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    background: var(--c-bg);
    min-height: 48px;
}
.track-form__row input:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; }

/* ══ Storefront templates ═══════════════════════════════════════════
   The shape of a shop. Colours come from its palette; these rules only
   change arrangement, so any template works with any palette.          */

/* ── Hero variants ─────────────────────────────────────────────── */
.hero-single img,
.hero-full img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }
.hero-full { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.hero-full img { border-radius: 0; aspect-ratio: 21 / 9; object-fit: cover; }
.hero-full__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 28px 24px 22px;
    background: linear-gradient(to top, rgba(0, 0, 0, .62), transparent);
    color: #fff;
    text-align: center;
}
.hero-full__name { display: block; font-size: clamp(22px, 4vw, 40px); font-weight: 800; letter-spacing: -.5px; }
.hero-full__tagline { display: block; margin-top: 6px; font-size: clamp(13px, 2vw, 17px); opacity: .92; }

/* ── Category variants ─────────────────────────────────────────── */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cat-chip {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--c-border);
    background: #fff;
    color: var(--c-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.cat-chip:hover { border-color: var(--c-accent); color: var(--c-accent-strong); }

.cat-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
@media (min-width: 640px) { .cat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .cat-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.cat-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-surface-alt);
    text-decoration: none;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card__name {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 26px 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent);
    color: #fff;
    font-weight: 700;
    text-align: center;
}

/* ── Product cards: with a panel, or bare ──────────────────────── */
[data-card="plain"] .product-card {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
[data-card="plain"] .product-card:hover { box-shadow: none; transform: none; }
[data-card="plain"] .product-card__media { border-radius: var(--radius-lg); }
[data-card="plain"] .product-card:hover .product-card__media img { transform: scale(1.04); }
[data-card="plain"] .product-card__body { padding-inline: 2px; }

/* ── Product image shape ───────────────────────────────────────── */
[data-ratio="portrait"] .product-card__media { aspect-ratio: 3 / 4; }

/* ── How many products sit in a row ────────────────────────────── */
[data-template="boutique"] .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (min-width: 640px) { [data-template="boutique"] .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 992px) { [data-template="boutique"] .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
@media (min-width: 1200px) { [data-template="boutique"] .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (min-width: 992px) { [data-template="catalog"] .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1200px) { [data-template="catalog"] .product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

[data-template="minimal"] .product-grid { gap: 20px; }
@media (min-width: 992px) { [data-template="minimal"] .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
@media (min-width: 1200px) { [data-template="minimal"] .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── Breathing room, per template ──────────────────────────────── */
[data-template="boutique"] .section { padding-block: 40px; }
[data-template="boutique"] .section-header h2 { font-size: clamp(20px, 3vw, 30px); letter-spacing: -.5px; }
[data-template="minimal"] .section-header h2 { font-weight: 700; }
[data-template="catalog"] .section { padding-block: 22px; }
