/* عطارة الحكمة — online store (mobile first) · v2: clean storefront, horizontal rails, motion */
:root {
    --green: #8dc63f;
    --green-600: #5e8c25;
    --green-700: #4b711c;
    --green-50: #f2f8e8;
    --green-100: #e2f0cc;
    --brown: #5c3a1e;
    --brown-800: #432a15;
    --brown-900: #2a190b;
    --cocoa: #7a5c46;
    --caramel: #c07f3a;
    --caramel-600: #a46a2d;
    --sand: #f3e8da;
    --sand-50: #fbf8f3;
    --bg: #faf7f2;
    --soft: #f4efe8;
    --line: #ece3d6;
    --line-strong: #ddd0bf;
    --text: #2b1d11;
    --ink: #3a2614;
    --muted: #8f7b68;
    --danger: #b3362a;
    --danger-bg: #fbe3df;
    --wa: #1fa855;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(42, 25, 11, .05), 0 10px 30px -18px rgba(42, 25, 11, .35);
    --shadow-lg: 0 2px 4px rgba(42, 25, 11, .04), 0 22px 44px -20px rgba(42, 25, 11, .45);
    --ease: cubic-bezier(.2, .7, .2, 1);
    /* theme tokens (light) — dark values below */
    --surface: #fff;
    --header-bg: rgba(255,255,255,.94);
    --fg-brand: #5c3a1e;
    --link: #4b711c;
    --green-line: #cfe3b0;
    --toast: #3a2614;
    --vf-bg: #fdeceb; --vf-line: #f2c4bd; --vf-text: #7d231a;
    --warn-bg: #fff7e8; --warn-line: #f1dcb4;
    --disabled-bg: #e6ddd1; --disabled-fg: #8a7a6a;
    --photo-filter: none;
    color-scheme: light;
}
/* Dark theme: follows the phone/computer setting, or the choice saved from the menu (data-theme) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #16110c; --surface: #211a13; --soft: #2a2119; --sand: #352a1f; --sand-50: #251d15;
        --line: #3a2e23; --line-strong: #4d3e30; --header-bg: rgba(22,17,12,.92);
        --text: #eee3d5; --ink: #f6ecdf; --muted: #a9937e; --cocoa: #cfb59d; --fg-brand: #ecd0ae;
        --link: #a9d66e; --green-50: rgba(141,198,63,.13); --green-100: rgba(141,198,63,.2); --green-line: rgba(141,198,63,.38);
        --brown: #74492a; --brown-800: #855632; --caramel-600: #e3a867;
        --danger: #ff8c7c; --danger-bg: rgba(179,54,42,.24);
        --vf-bg: rgba(179,54,42,.16); --vf-line: rgba(242,120,105,.35); --vf-text: #ffc2b8;
        --warn-bg: rgba(192,127,58,.15); --warn-line: rgba(192,127,58,.42);
        --disabled-bg: #3a2e23; --disabled-fg: #a9937e; --toast: #3d2c1d;
        --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -18px rgba(0,0,0,.8);
        --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 22px 44px -20px rgba(0,0,0,.9);
        --photo-filter: brightness(.9);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #16110c; --surface: #211a13; --soft: #2a2119; --sand: #352a1f; --sand-50: #251d15;
    --line: #3a2e23; --line-strong: #4d3e30; --header-bg: rgba(22,17,12,.92);
    --text: #eee3d5; --ink: #f6ecdf; --muted: #a9937e; --cocoa: #cfb59d; --fg-brand: #ecd0ae;
    --link: #a9d66e; --green-50: rgba(141,198,63,.13); --green-100: rgba(141,198,63,.2); --green-line: rgba(141,198,63,.38);
    --brown: #74492a; --brown-800: #855632; --caramel-600: #e3a867;
    --danger: #ff8c7c; --danger-bg: rgba(179,54,42,.24);
    --vf-bg: rgba(179,54,42,.16); --vf-line: rgba(242,120,105,.35); --vf-text: #ffc2b8;
    --warn-bg: rgba(192,127,58,.15); --warn-line: rgba(192,127,58,.42);
    --disabled-bg: #3a2e23; --disabled-fg: #a9937e; --toast: #3d2c1d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -18px rgba(0,0,0,.8);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 22px 44px -20px rgba(0,0,0,.9);
    --photo-filter: brightness(.9);
    color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { background-color: var(--surface); }
.card-img img, .pd-img img, .ha img, .ci-thumb img { filter: var(--photo-filter); }
/* the category placeholder tints are light pastels — in dark mode use the dark tile colour instead */
:root[data-theme="dark"] .ph { background-color: var(--soft) !important; background-image: radial-gradient(circle at 30% 25%, rgba(255,255,255,.07), transparent 60%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ph { background-color: var(--soft) !important; background-image: radial-gradient(circle at 30% 25%, rgba(255,255,255,.07), transparent 60%); } }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
h1, h2, h3 { letter-spacing: -.2px; }

/* ---------- Header (white, calm) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(42,25,11,.55); }
.header-row { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg-brand); }
.brand-logo { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line), 0 4px 10px -6px rgba(42,25,11,.4); flex-shrink: 0; transition: transform .4s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
.brand-logo img { width: 36px; height: 36px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 18px; color: var(--fg-brand); }
.brand-latin { font-size: 9.5px; letter-spacing: 3.5px; color: var(--green-600); font-weight: 700; direction: ltr; text-align: right; }
.search { order: 3; flex-basis: 100%; display: flex; align-items: center; background: var(--soft); border: 1px solid transparent; border-radius: 14px; overflow: hidden; transition: border-color .2s, background .2s, box-shadow .2s; }
.search:focus-within { background: var(--surface); border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(141,198,63,.18); }
.search input { flex: 1; border: 0; padding: 11px 14px; outline: none; font-size: 16px; min-width: 0; background: transparent; }
.search button { border: 0; background: var(--green-600); color: #fff; width: 40px; height: 40px; margin: 4px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; font-size: 18px; transition: background .2s; }
.search button:hover { background: var(--green-700); }
.cart-link { margin-inline-start: auto; position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--fg-brand); font-size: 21px; transition: background .2s, transform .2s; }
.cart-link:hover { background: var(--sand); }
.cart-link.bump { animation: bump .5s var(--ease); }
.cart-count { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--green-600); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.cat-nav { background: transparent; border-top: 1px solid var(--line); }
.cat-scroll { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-scroll a { flex-shrink: 0; color: var(--cocoa); padding: 10px 12px; font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.cat-scroll a > [class^="ic-"] { margin-inline-end: 4px; opacity: .7; }
.cat-scroll a:hover { color: var(--fg-brand); }
.cat-scroll a.on { color: var(--fg-brand); border-bottom-color: var(--green-600); }
.cat-scroll a.on > [class^="ic-"] { color: var(--green-600); opacity: 1; }
.closed-banner { background: var(--caramel); color: #fff; text-align: center; padding: 10px 16px; font-weight: 600; }

/* header icon buttons (menu ☰ / cart) */
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--fg-brand); font-size: 21px; border: 0; cursor: pointer; transition: background .2s, transform .2s; flex-shrink: 0; }
.icon-btn:hover { background: var(--sand); }
.menu-btn { gap: 4px; align-content: center; justify-items: center; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.menu-btn span:nth-child(2) { width: 13px; justify-self: center; }
.brand-latin { text-align: right; }
[dir="ltr"] .brand-latin { text-align: left; }

/* ---------- Side menu (drawer) ---------- */
.drawer-shade { position: fixed; inset: 0; background: rgba(20,12,5,.45); z-index: 90; opacity: 0; transition: opacity .3s ease; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
/* opens from the same side as the ☰ button (beside the cart): left in Arabic, right in English */
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 91; width: min(86vw, 340px); background: var(--surface); box-shadow: 0 0 50px -10px rgba(0,0,0,.5);
          display: flex; flex-direction: column; transform: translateX(-105%); transition: transform .35s var(--ease); overflow-y: auto; overscroll-behavior: contain; }
[dir="ltr"] .drawer { transform: translateX(105%); }
html.drawer-open .drawer { transform: none; }   /* html. → beats the English "closed" rule */
html.drawer-open .drawer-shade { opacity: 1; }
.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
/* menu header: language · light/dark · close — three equal buttons */
.drawer-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.drawer-act { width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--soft); color: var(--fg-brand); font-size: 18px; cursor: pointer;
              display: grid; place-items: center; transition: background .2s, color .2s, transform .15s; }
.drawer-act:hover { background: var(--sand); color: var(--fg-brand); }
.drawer-act:active { transform: scale(.94); }
.drawer-act:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }
.lang-act { font-size: 13.5px; font-weight: 700; letter-spacing: .3px; line-height: 1; }
.lang-act[lang="ar"] { font-size: 17px; }
.drawer-head .brand-latin { display: none; }   /* keeps the header calm with three buttons beside it */
.drawer-sec { padding: 12px 10px 6px; border-bottom: 1px solid var(--line); }
.drawer-sec:last-child { border-bottom: 0; }
.drawer-sec h3 { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 8px 6px; letter-spacing: .2px; }
.drawer-link { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; color: var(--text); font-weight: 600; font-size: 15px; transition: background .2s; }
.drawer-link:hover, .drawer-link.on { background: var(--soft); color: var(--fg-brand); }
.drawer-link > [class^="ic-"] { color: var(--link); font-size: 18px; margin-inline: 4px 2px; }   /* icons are CSS masks: colour = currentColor */
.drawer-link small { margin-inline-start: auto; color: var(--muted); font-weight: 500; font-size: 12px; }
.drawer-soon { opacity: .55; pointer-events: none; }
/* sections dropdown */
.drawer-acc > summary { list-style: none; cursor: pointer; user-select: none; }
.drawer-acc > summary::-webkit-details-marker { display: none; }
.drawer-acc > summary .acc-count { margin-inline-start: auto; font-size: 12px; font-weight: 500; color: var(--muted); }
.drawer-acc > summary .ic-chevron-down { color: var(--muted); font-size: 16px; margin: 0; transition: transform .25s var(--ease); }
.drawer-acc[open] > summary .ic-chevron-down { transform: rotate(180deg); }
.drawer-acc[open] > summary { color: var(--fg-brand); }
.acc-body { margin-inline-start: 18px; padding-inline-start: 6px; border-inline-start: 2px solid var(--line); margin-bottom: 6px; animation: fadeUp .25s var(--ease); }
.acc-body .drawer-link { font-size: 14.5px; padding-block: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--soft); border-radius: 12px; padding: 4px; margin: 0 8px 8px; }
.seg a, .seg button { border: 0; background: transparent; border-radius: 9px; padding: 8px 6px; font-weight: 600; font-size: 14px; color: var(--cocoa); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg .on { background: var(--surface); color: var(--fg-brand); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.drawer-foot { padding: 14px 18px 22px; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- English (left-to-right) mirror fixes ---------- */
[dir="ltr"] .ic-chevron-left, [dir="ltr"] .ic-chevron-right, [dir="ltr"] .ic-arrow-left, [dir="ltr"] .ic-arrow-right { transform: scaleX(-1); }
[dir="ltr"] .see-all:hover [class^="ic-"] { transform: scaleX(-1) translateX(-4px); }
[dir="ltr"] .rail-more:hover span { transform: translateX(4px); }
[dir="ltr"] .stepper, [dir="ltr"] .ci-qty { flex-direction: row-reverse; }   /* reads − 1 + in English */
[dir="ltr"] .pd-buy .stepper { justify-content: flex-end; }
[dir="ltr"] body { font-family: 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif; letter-spacing: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; cursor: pointer; text-align: center; transition: background .2s, box-shadow .2s, transform .2s, filter .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 8px 18px -10px rgba(75,113,28,.9); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--fg-brand); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--fg-brand); }
.btn-glass { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.06); color: #fff; }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn.disabled, .btn:disabled { opacity: .5; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(141,198,63,.22), transparent 60%),
        radial-gradient(700px 500px at 0% 110%, rgba(192,127,58,.32), transparent 60%),
        linear-gradient(150deg, #5f3d20 0%, var(--brown-900) 100%);
    color: #fff;
    overflow: hidden;
}
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 28px; padding-top: 36px; padding-bottom: 40px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #d9efb8; background: rgba(141,198,63,.14); border: 1px solid rgba(141,198,63,.35); padding: 4px 12px; border-radius: 20px; }
.hero h1 { font-size: 34px; line-height: 1.3; font-weight: 700; margin: 14px 0 10px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p { color: rgba(243,232,218,.82); max-width: 520px; font-size: 16px; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero-art { position: relative; height: 250px; }
.ha { position: absolute; border-radius: 22px; overflow: hidden; border: 4px solid rgba(255,255,255,.95); box-shadow: 0 24px 40px -18px rgba(0,0,0,.6); background: #fff; }
.ha img { width: 100%; height: 100%; object-fit: cover; }
.ha-1 { right: 0; top: 0; width: 56%; height: 64%; }
.ha-2 { left: 2%; top: 8%; width: 40%; height: 44%; }
.ha-3 { right: 10%; bottom: 0; width: 40%; height: 40%; }
.ha-4 { left: 8%; bottom: 2%; width: 34%; height: 36%; }
.ha-badge { position: absolute; left: 40%; top: 50%; transform: translate(-50%, -50%); background: var(--surface); color: var(--fg-brand); border-radius: 16px; padding: 8px 14px; display: flex; flex-direction: column; align-items: center; line-height: 1.2; box-shadow: 0 18px 34px -16px rgba(0,0,0,.6); z-index: 2; }
.ha-badge b { font-size: 22px; color: var(--green-600); font-weight: 700; }
.ha-badge span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Trust strip ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; padding-top: 16px; padding-bottom: 16px; }
.trust-row > div { display: flex; align-items: center; gap: 10px; }
.trust-row .t-ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--link); font-size: 20px; line-height: 1; }
.trust-row .t-ic > [class^="ic-"] { vertical-align: 0; }   /* centred by the grid, not nudged down like inline text icons */
.trust-row > div > span:not(.t-ic) { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.trust-row b { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.trust-row small { font-size: 12px; color: var(--muted); }

/* ---------- Section heads & rails ---------- */
.block { padding-top: 26px; padding-bottom: 10px; }
.rail-block { padding-top: 30px; }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rail-head h2, .block-head h1, .block-head h2 { font-size: 21px; font-weight: 700; color: var(--ink); }
.rail-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.rail-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.see-all { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 14px; color: var(--link); padding: 6px 4px; }
.see-all [class^="ic-"] { transition: transform .25s var(--ease); }
.see-all:hover [class^="ic-"] { transform: translateX(-4px); }
.rail-arrow { display: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg-brand); cursor: pointer; place-items: center; font-size: 17px; transition: background .2s, border-color .2s, opacity .2s, transform .2s; }
.rail-arrow:hover:not(:disabled) { background: var(--brown); border-color: var(--fg-brand); color: #fff; }
.rail-arrow:disabled { opacity: .35; cursor: default; }
.rail-viewport { position: relative; }
.rail {
    display: flex; gap: 12px; align-items: stretch;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 4px max(16px, calc((100% - 1168px) / 2)) 18px;
    scroll-padding: 0 max(16px, calc((100% - 1168px) / 2));
    scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > .card { flex: 0 0 172px; scroll-snap-align: start; }
.rail-more { flex: 0 0 120px; scroll-snap-align: start; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-weight: 600; color: var(--fg-brand); background: var(--surface); transition: border-color .2s, background .2s; }
.rail-more span { width: 46px; height: 46px; border-radius: 50%; background: var(--brown); color: #fff; display: grid; place-items: center; font-size: 20px; transition: transform .3s var(--ease); }
.rail-more:hover { border-color: var(--green-600); background: var(--surface); }
.rail-more:hover span { transform: translateX(-4px); background: var(--green-600); }

/* ---------- Categories strip ---------- */
.cats-strip { padding-top: 28px; }
.rail-head.flat { margin-bottom: 10px; }
.cats-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: none; }
.cats-scroll::-webkit-scrollbar { display: none; }
.cat-chip { flex: 0 0 auto; width: 112px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 8px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.cat-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cc-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--link); font-size: 25px; margin-bottom: 6px; transition: background .3s, color .3s, transform .4s var(--ease); }
.cat-chip:hover .cc-icon { background: var(--green-600); color: #fff; transform: scale(1.08) rotate(-6deg); }
.cc-name { font-weight: 600; font-size: 13px; color: var(--ink); line-height: 1.35; min-height: 2.7em; display: flex; align-items: center; }
.cc-count { font-size: 11.5px; color: var(--muted); }

/* ---------- Category page ---------- */
.list-hero { background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--line); padding: 14px 0 16px; }
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link); }
.crumbs [class^="ic-"] { font-size: 12px; opacity: .6; }
.list-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.list-head h1 { font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.list-head p { font-size: 13px; }
.lh-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--brown); color: var(--green); font-size: 26px; flex-shrink: 0; box-shadow: 0 10px 20px -12px rgba(42,25,11,.8); }
.filter-box { position: relative; max-width: 520px; }
.filter-box > [class^="ic-"] { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; pointer-events: none; }
.filter-input { width: 100%; padding: 11px 14px; padding-inline-start: 42px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.filter-input:focus { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(141,198,63,.18); }
.empty-page { text-align: center; padding: 40px 16px; background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.ep-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--soft); color: var(--muted); display: grid; place-items: center; font-size: 28px; margin: 0 auto 12px; }
.empty-page p { margin-bottom: 14px; color: var(--muted); }
.no-match { text-align: center; color: var(--muted); padding: 20px; }

/* ---------- How it works ---------- */
.how { padding-top: 40px; }
.how-box { background: linear-gradient(140deg, var(--brown) 0%, var(--brown-900) 100%); color: #fff; border-radius: 24px; padding: 24px 18px; display: grid; gap: 16px; position: relative; overflow: hidden; }
.how-box::before { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(141,198,63,.25), transparent 70%); left: -80px; top: -90px; }
.how-text h2 { font-size: 22px; font-weight: 700; }
.how-text p { color: rgba(243,232,218,.75); font-size: 14px; }
.steps { list-style: none; display: grid; gap: 10px; position: relative; }
.steps li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; }
.steps b { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--brown-900); display: grid; place-items: center; flex-shrink: 0; font-weight: 700; }
.how-box .btn-wa { justify-self: start; position: relative; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 1px 2px rgba(42,25,11,.04); position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-top { display: none; }
.show-cat .card-top { display: flex; }
.card-img { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--soft); }
.card-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .6s ease; }
.card:hover .card-img > img { transform: scale(1.06); }
.js .card-img > img { opacity: 0; }
.js .card-img > img.in { opacity: 1; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; position: relative;
      background-image: radial-gradient(circle at 30% 25%, rgba(255,255,255,.8), transparent 60%); }
.ph-icon { font-size: 40px; color: var(--cocoa); opacity: .45; transition: transform .6s var(--ease); }
.card:hover .ph-icon { transform: scale(1.12) rotate(-6deg); }
.ph-mark { position: absolute; inset-inline-end: 8px; bottom: 8px; width: 24px; height: 24px; border-radius: 50%; background: #fff; opacity: .9; padding: 2px; }
.ph-mark img { width: 100%; border-radius: 50%; }
.badge-out.on-img { position: absolute; top: 8px; inset-inline-start: 8px; }
.card.is-out .card-img { filter: grayscale(.85); }
.card-cat { font-size: 11px; color: var(--muted); font-weight: 600; }
.badge-out { font-size: 11px; font-weight: 700; color: var(--danger); background: var(--danger-bg); padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.card-name { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card-note { font-size: 12px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { line-height: 1.2; }
.card-price strong { font-size: 19px; color: var(--link); font-weight: 700; }
.card-price span { font-size: 12px; color: var(--muted); font-weight: 500; }
.card-price .ask { color: var(--caramel-600); font-size: 13px; font-weight: 600; }
/* limited-time deals: badge on the photo, offer price in red with the old price crossed out, countdown, low stock */
.card-price strong.deal { color: var(--danger); }
.card-price s.was { font-size: 13px; color: var(--muted); font-weight: 500; margin-inline: 2px 4px; text-decoration-thickness: 1.5px; }
.badge-deal { display: inline-flex; align-items: center; gap: 4px; background: var(--danger); color: #fff; font-size: 11.5px; font-weight: 700;
              padding: 3px 9px; border-radius: 20px; white-space: nowrap; box-shadow: 0 4px 10px -4px rgba(179,54,42,.6); }
.badge-deal b { font-weight: 800; }
.card-img .badge-deal { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 1; }
.deal-timer { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--danger); font-weight: 600; margin-top: 4px; white-space: nowrap; }
.deal-timer b { font-variant-numeric: tabular-nums; font-weight: 700; }
.deal-timer b span[dir="ltr"] { unicode-bidi: isolate; }
.deal-timer.ended { color: var(--muted); }
.stock-left { font-size: 12px; font-weight: 700; color: var(--caramel-600); margin-top: 4px; }
.pd-stock.low { color: var(--caramel-600); background: var(--warn-bg); }
.pd-deal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 2px 0 6px; padding: 10px 12px; border-radius: 14px;
           background: var(--danger-bg); }
.pd-deal-txt { font-size: 13.5px; color: var(--ink); }
.pd-deal .deal-timer { margin-top: 0; font-size: 13px; }
.deals-block .rail-block { padding-top: 18px; }
.ci-deal { font-size: 10.5px; padding: 1px 7px; margin-inline-start: 6px; vertical-align: 2px; box-shadow: none; }
.opts { display: flex; flex-wrap: wrap; gap: 4px; }
.opt { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 9px; padding: 3px 8px; font-size: 12.5px; font-weight: 600; color: var(--cocoa); cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.opt:hover { border-color: var(--fg-brand); color: var(--fg-brand); }
.opt:active { transform: scale(.95); }
.opt.on { background: var(--brown); border-color: var(--fg-brand); color: #fff; }
.opt-pack { border-style: dashed; }
.opt-custom { color: var(--link); border-color: var(--green-line); background: var(--green-50); }
.opt-custom.on { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.custom-row { display: flex; align-items: center; gap: 6px; animation: fadeUp .3s var(--ease); }
.custom-in { flex: 1; min-width: 0; height: 38px; padding: 0 10px; border: 1.5px solid var(--green-600); border-radius: 10px; font-size: 16px; font-weight: 700; text-align: center; color: var(--fg-brand); outline: none; }
.custom-in:focus { box-shadow: 0 0 0 4px rgba(141,198,63,.2); }
.custom-unit { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.custom-hint { font-size: 12px; color: var(--link); font-weight: 600; min-height: 1em; }
.stepper { display: flex; align-items: center; gap: 6px; }
.st-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 19px; font-weight: 600; color: var(--link); cursor: pointer; line-height: 1; transition: background .2s, border-color .2s; }
.st-btn:hover { border-color: var(--green-600); background: var(--green-50); }
.st-val { width: 52px; height: 34px; text-align: center; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 700; font-size: 16px; }
.st-val::-webkit-inner-spin-button { -webkit-appearance: none; }
.add-btn { margin-top: auto; border: 0; border-radius: 11px; background: var(--green-600); color: #fff; font-weight: 600; font-size: 14px; padding: 9px 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; cursor: pointer; transition: background .25s, transform .15s, box-shadow .25s; white-space: nowrap; position: relative; overflow: hidden; }
.add-btn:hover { background: var(--green-700); box-shadow: 0 8px 16px -10px rgba(75,113,28,.9); }
.add-btn:active { transform: scale(.97); }
.add-label { display: inline-flex; align-items: center; gap: 4px; }
.add-btn.added { background: var(--brown); animation: pop .45s var(--ease); }
.add-btn.added .add-label [class^="ic-"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L20 7'/%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='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L20 7'/%3E%3C/svg%3E"); }
.add-btn:disabled { background: var(--disabled-bg); color: var(--disabled-fg); cursor: not-allowed; justify-content: center; box-shadow: none; }
.add-price { background: rgba(0,0,0,.14); border-radius: 8px; padding: 0 7px; font-size: 12.5px; white-space: nowrap; }
.add-price:empty { display: none; }
.card.is-out { opacity: .75; }
.card.is-out .card-price strong { color: var(--muted); }

/* ---------- Cart / checkout ---------- */
.cart-list { list-style: none; display: grid; gap: 8px; margin-bottom: 14px; }
.ci { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb main del" "thumb qty total"; gap: 8px 12px; align-items: center; animation: fadeUp .4s var(--ease) both; }
.ci-thumb { grid-area: thumb; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--soft); display: grid; place-items: center; color: var(--cocoa); font-size: 24px; align-self: start; }
.ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ci-name { color: inherit; }
.ci-name:hover b { color: var(--link); }
.ci-out { border-color: var(--danger); }
.ci-main { grid-area: main; display: flex; flex-direction: column; }
.ci-main b { color: var(--ink); font-weight: 600; }
.ci-main .muted { font-size: 13px; }
.ci-qty { grid-area: qty; display: flex; align-items: center; gap: 8px; }
.ci-qty button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 18px; font-weight: 600; color: var(--link); cursor: pointer; transition: background .2s; }
.ci-qty button:hover { background: var(--green-50); }
.ci-qty span { font-weight: 700; min-width: 70px; text-align: center; }
.ci-total { grid-area: total; font-weight: 700; color: var(--fg-brand); }
.ci-del { grid-area: del; width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--danger-bg); color: var(--danger); cursor: pointer; font-weight: 700; }
.summary, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; box-shadow: var(--shadow); margin-bottom: 14px; }
.summary h3, .panel h3 { color: var(--ink); font-size: 17px; font-weight: 700; }
.s-row { display: flex; justify-content: space-between; gap: 10px; }
.s-total { font-size: 18px; font-weight: 700; color: var(--ink); border-top: 1px dashed var(--line-strong); padding-top: 10px; }
.s-total b { color: var(--link); }
.s-note { font-size: 13px; color: var(--caramel-600); font-weight: 600; }
.mini-list { list-style: none; display: grid; gap: 6px; }
.mini-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); padding-bottom: 6px; }
.mini-list small { color: var(--muted); }
.checkout fieldset { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; display: grid; gap: 10px; }
.checkout legend { font-weight: 700; color: var(--ink); padding: 0 8px; font-size: 16px; }
.checkout label { display: grid; gap: 4px; font-weight: 600; color: var(--ink); font-size: 14px; }
.checkout input[type=text], .checkout input[type=tel], .checkout select, .checkout textarea {
    width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); font-size: 16px; font-weight: 500; outline: none; transition: border-color .2s, box-shadow .2s;
}
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(141,198,63,.18); }
.choice { display: grid; gap: 8px; }
.ch { display: flex !important; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.ch input { width: 20px; height: 20px; accent-color: var(--green-600); }
.ch span { display: flex; flex-direction: column; }
.ch small { color: var(--muted); font-weight: 500; }
.ch:has(input:checked) { border-color: var(--green-600); background: var(--green-50); }
.ch-disabled { opacity: .5; cursor: not-allowed; }
.vf-info { background: var(--vf-bg); border: 1px solid var(--vf-line); border-radius: 12px; padding: 10px 12px; color: var(--vf-text); font-size: 14px; }
.hp { position: absolute; right: -9999px; width: 1px; height: 1px; opacity: 0; }
.alert { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--vf-line); border-radius: 12px; padding: 12px 14px; font-weight: 600; margin-bottom: 14px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }

/* ---------- Order page ---------- */
.success-box { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 16px 22px; display: grid; gap: 10px; margin-bottom: 14px; box-shadow: var(--shadow); }
.success-box h1 { color: var(--ink); font-size: 24px; font-weight: 700; }
.tick { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto; background: var(--green-600); color: #fff; font-size: 30px; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(141,198,63,.18); animation: pop .6s var(--ease) both; }
.track { list-style: none; display: grid; gap: 4px; }
.track li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; position: relative; padding: 6px 0; }
.track .dot { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--line-strong); background: var(--surface); flex-shrink: 0; }
.track li.done { color: var(--ink); }
.track li.done .dot { border-color: var(--green-600); background: var(--green-600); }
.track li.now .dot { box-shadow: 0 0 0 5px rgba(141,198,63,.3); animation: pulse 1.8s ease-in-out infinite; }
/* order number + copy button */
.order-no { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-weight: 600; }
.order-no b { color: var(--ink); font-size: 18px; letter-spacing: .5px; user-select: all; -webkit-user-select: all; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--link); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s; }
.copy-btn:hover { border-color: var(--green-600); background: var(--green-50); }
.copy-btn:focus-visible { outline: 3px solid rgba(141,198,63,.5); outline-offset: 2px; }
.copy-btn.done { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.order-keep { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.order-keep .order-no { justify-content: center; }
.order-keep .order-no b { font-size: 26px; }
.order-keep p { color: var(--caramel-600); font-weight: 700; font-size: 14px; }

/* ---------- About the shop (home) and about a section ---------- */
h1.brand-name { letter-spacing: normal; }   /* the name in the header looks the same on every page */
.about { display: grid; gap: 10px; }
.about h2 { font-size: 21px; font-weight: 700; color: var(--ink); }
.about p { color: var(--muted); line-height: 1.85; max-width: 75ch; }
.list-about { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.list-about h2 { font-size: 18px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--muted); transition: transform .2s; }
.faq[open] summary i { transform: rotate(180deg); }
.faq p { padding: 0 14px 14px; }

/* ---------- Footer & floating ---------- */
.site-footer { background: var(--brown-900); color: rgba(243,232,218,.75); margin-top: 48px; padding-top: 32px; }
.footer-grid { display: grid; gap: 18px; padding-bottom: 22px; }
.site-footer h4 { color: #fff; margin-bottom: 4px; font-weight: 600; }
.site-footer a { color: var(--green); }
.f-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.f-brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.f-copy { border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; padding-bottom: 14px; font-size: 13px; }
/* WhatsApp button: bottom-right (the photo side of the cards, away from the add buttons), just above the cart bar when it shows */
.wa-float { position: fixed; inset-inline-start: 14px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 22px -8px rgba(0,0,0,.45); z-index: 40; transition: transform .3s var(--ease), bottom .35s var(--ease); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: ring 2.8s ease-out 3; z-index: -1; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }
.has-cart .wa-float { bottom: 82px; }
body.has-cart { padding-bottom: 92px; }   /* page end (footer) stays clear of the cart bar */
.cart-bar { position: fixed; right: 12px; left: 12px; bottom: 12px; z-index: 45; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--brown); color: #fff; font-weight: 600; box-shadow: 0 16px 34px -12px rgba(42,25,11,.75); animation: slideUp .45s var(--ease) both; }
.cart-bar:hover { color: #fff; background: var(--brown-800); }
.cb-total { background: var(--green-600); padding: 3px 12px; border-radius: 10px; font-weight: 700; }
.toast { position: fixed; top: 150px; left: 50%; transform: translateX(-50%); background: var(--toast); color: #fff; padding: 10px 18px; border-radius: 14px; font-weight: 600; z-index: 60; box-shadow: var(--shadow-lg); max-width: 90vw; text-align: center; display: flex; align-items: center; gap: 8px; animation: toastIn .35s var(--ease) both; }
.toast [class^="ic-"] { color: var(--green); }

/* ---------- Fly-to-cart ---------- */
.fly { position: fixed; z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: var(--green-600) center / cover no-repeat; box-shadow: 0 10px 20px -8px rgba(0,0,0,.5), 0 0 0 3px #fff; pointer-events: none; transition: transform .75s cubic-bezier(.55, -0.2, .35, 1), opacity .75s ease-in; }

/* ---------- Motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.9); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-6deg); } 70% { transform: scale(.94); } }
@keyframes slideUp { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -10px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes floatA { from { transform: translateY(0) rotate(0); } to { transform: translateY(-10px) rotate(-1.2deg); } }
@keyframes floatB { from { transform: translateY(0) rotate(0); } to { transform: translateY(9px) rotate(1.5deg); } }
@keyframes ring { 0% { transform: scale(1); opacity: .45; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(141,198,63,.35); } 50% { box-shadow: 0 0 0 9px rgba(141,198,63,.08); } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }

.hero-text > * { animation: fadeUp .8s var(--ease) both; }
.hero-text > *:nth-child(2) { animation-delay: .08s; }
.hero-text > *:nth-child(3) { animation-delay: .16s; }
.hero-text > *:nth-child(4) { animation-delay: .24s; }
.ha { animation: fadeUp .9s var(--ease) both; }
.ha-1 { animation: fadeUp .9s .15s var(--ease) both, floatA 6s 1.1s ease-in-out infinite alternate; }
.ha-2 { animation: fadeUp .9s .3s var(--ease) both, floatB 7s 1.2s ease-in-out infinite alternate; }
.ha-3 { animation: fadeUp .9s .45s var(--ease) both, floatB 6.5s 1.4s ease-in-out infinite alternate; }
.ha-4 { animation: fadeUp .9s .6s var(--ease) both, floatA 7.5s 1.5s ease-in-out infinite alternate; }
.ha-badge { animation: pop .7s .8s var(--ease) both; }
.js .card-img:not(.loaded) { background-image: linear-gradient(90deg, var(--soft) 0%, var(--sand-50) 50%, var(--soft) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }

/* scroll reveal (only when JS runs — content stays visible otherwise) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .card.rv { opacity: 0; transform: translateY(18px); }
.js .card.rv.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.js .card.rv.in:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js [data-reveal], .js .card.rv, .js .card-img > img { opacity: 1 !important; transform: none !important; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .trust-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rail > .card { flex-basis: 200px; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .hero-art { height: 320px; }
}
@media (min-width: 900px) {
    body { padding-bottom: 0; }
    .search { order: 0; flex: 1; flex-basis: auto; max-width: 540px; margin: 0 auto; }
    .cart-link { margin-inline-start: 0; }
    .hero-grid { grid-template-columns: 1.15fr 1fr; padding-top: 64px; padding-bottom: 70px; }
    .hero h1 { font-size: 48px; }
    .hero-art { height: 400px; }
    .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .rail > .card { flex-basis: 218px; }
    .rail { gap: 16px; }
    .rail-arrow { display: grid; }
    .rail-head h2 { font-size: 24px; }
    /* computer: all sections fit as a neat grid (no cut-off chip at the edge) */
    .cats-scroll { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; overflow: visible; padding-bottom: 0; }
    .cat-chip { width: auto; }
    .how-box { grid-template-columns: 1fr 2fr; align-items: center; padding: 34px; }
    .how-box .btn-wa { grid-column: 2; }
    .footer-grid { grid-template-columns: 2fr 2fr 1fr; }
    .cart-bar { inset-inline-start: auto; inset-inline-end: 24px; bottom: 24px; min-width: 330px; }
    .wa-float, .has-cart .wa-float { bottom: 24px; inset-inline-start: 24px; width: 54px; height: 54px; }
    .wa-float svg { width: 30px; height: 30px; }
    .toast { top: 160px; }
    .list-head h1 { font-size: 28px; }
}
@media (min-width: 1200px) {
    .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- Card layout ----------
   photo → name → price → quantity choices; the add button is pinned to the card's top-left corner
   (same spot on every card) and shows the total of the chosen quantity under "أضف". */
a.card-img { display: block; }
.card-name a { color: inherit; }
.card-name a:hover { color: var(--link); }
.card-body { display: flex; flex-direction: column; gap: 5px; }
.card-body .card-name { min-height: 0; }
.card-buy { display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
/* rails & product page: the add button is the last thing in the card, full width, with the total beside "أضف" */
.card-buy .add-btn { width: 100%; margin-top: 2px; }
/* sold by the piece: the − 1 + control spans the card like the weight choices */
.card .stepper { width: 100%; }
.card .st-val { flex: 1; min-width: 0; }
/* horizontal rails: content stacks from the top (any spare height of a taller neighbour goes to the
   card's bottom, not between the price and the choices); compact choices; no description line */
.rail .card-buy { margin-top: 0; flex: 1; }
.rail .card-buy .add-btn { margin-top: auto; }   /* buttons line up at the bottom of every card in the row */
.rail .opts { gap: 4px; }
.rail .opt { padding: 3px 7px; font-size: 12px; }
.rail-block:not(#offers) .card-note { display: none; }

/* ---------- Category & search pages: compact full-width cards ----------
   Phone: one card per row — photo on the right, name / short line / price beside it, add button in
   the top-left corner, all quantity choices underneath on the full width.
   Tablet: one card per row with everything beside the photo. Computer: two cards per row. */
.grid.list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.list .card {
    display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 12px; row-gap: 0; align-items: stretch;
    grid-template-areas: "img body" "buy buy";
    padding: 10px;
}
.list .card:hover { transform: none; box-shadow: var(--shadow-lg); }
.js .list .card.rv.in:hover { transform: none; }
.list .card-img { grid-area: img; width: 92px; height: 92px; align-self: start; border-radius: 12px; }
.list .card-body { grid-area: body; gap: 3px; min-width: 0; padding-inline-end: 76px; }   /* room for the corner button */
.list .card-name { font-size: 15px; line-height: 1.4; -webkit-line-clamp: 2; }
.list .card-note { font-size: 12px; -webkit-line-clamp: 1; }
.list .card-price { margin-top: auto; padding-top: 2px; }
.list .card-price strong { font-size: 18px; }
.list .card-buy { grid-area: buy; margin-top: 9px; }
.list .opts { gap: 5px; }
.list .opt { padding: 5px 9px; font-size: 13px; }
/* category & search lists: the same button is lifted into the card's top corner (left in Arabic, right in English) */
.list .card-buy .add-btn {
    position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: auto; margin: 0;
    flex-direction: column; justify-content: center; align-items: center; gap: 0;
    min-width: 66px; padding: 6px 10px; border-radius: 12px; font-size: 13px; line-height: 1.25;
    box-shadow: 0 6px 14px -9px rgba(52,82,15,.9);
}
.list .card-buy .add-price { background: none; padding: 0; font-size: 11px; font-weight: 500; opacity: .92; }
.list .card-buy .add-btn:disabled { display: none; }

@media (min-width: 640px) {
    .grid.list { gap: 12px; }
    .list .card {
        grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; padding: 12px;
        grid-template-areas: "img body" "img buy";
    }
    .list .card-img { width: 120px; height: 120px; }
    .list .card-body { gap: 4px; padding-inline-end: 84px; }
    .list .card-note { -webkit-line-clamp: 2; }
    .list .card-price { margin-top: 2px; }
    .list .card-buy { align-self: end; margin-top: 8px; }
    .list .card-buy .add-btn { top: 12px; inset-inline-end: 12px; min-width: 72px; padding: 7px 12px; font-size: 14px; }
}
@media (min-width: 1024px) {
    .grid.list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* ---------- Product page ---------- */
.pd-wrap { padding-top: 14px; }
.card.pd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 0; border: 0; box-shadow: none; background: transparent; }
.card.pd:hover { transform: none; box-shadow: none; }
.pd-img { border-radius: 20px; background: #fff; border: 1px solid var(--line); aspect-ratio: 5 / 4; }
.pd-img > img { object-fit: contain; }
.card.pd:hover .card-img > img { transform: scale(1.03); }
.pd-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pd-cat { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--link); background: var(--green-50); border-radius: 20px; padding: 3px 12px; }
.pd-name { font-size: 24px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.pd-price-row { display: flex; align-items: center; justify-content: flex-start; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pd-price strong { font-size: 30px; }
.pd-price span { font-size: 14px; }
.pd-stock { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; border-radius: 20px; padding: 3px 10px; white-space: nowrap; }
.pd-stock.ok { color: var(--link); background: var(--green-50); }
.pd-stock.out { color: var(--danger); background: var(--danger-bg); }
.pd-pack, .pd-note { font-size: 14px; color: var(--cocoa); display: flex; align-items: center; gap: 6px; }
.pd-pack b { color: var(--link); }
.pd-contents { background: var(--sand-50); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.pd-contents h2 { font-size: 15px; font-weight: 700; color: var(--fg-brand); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.pd-contents ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.pd-contents li { font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.pd-contents li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green-600); flex-shrink: 0; }
.pd-buy { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; gap: 10px; margin-top: 0; }
.pd-buy-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.pd-buy .opts { gap: 6px; }
.pd-buy .opt { padding: 7px 13px; font-size: 14px; }
.pd-buy .st-btn, .pd-buy .st-val { height: 42px; }
.pd-buy .st-btn { width: 42px; }
.pd-buy .stepper { width: auto; }
.pd-buy .st-val { flex: 0 0 76px; }
.pd-buy .add-btn { padding: 13px 16px; font-size: 16px; }
.pd-perks { list-style: none; display: grid; gap: 8px; font-size: 13.5px; color: var(--cocoa); }
.pd-perks li { display: flex; align-items: center; gap: 8px; }
.pd-perks [class^="ic-"] { color: var(--link); font-size: 17px; }
.pd-ask { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--link); }
.pd-ask:hover { text-decoration: underline; }
.pd-details { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.pd-details h2 { font-size: 18px; font-weight: 700; color: var(--fg-brand); margin-bottom: 10px; }
.pd-desc { margin-bottom: 14px; }
.pd-desc p { font-size: 15px; line-height: 1.9; color: var(--ink); margin-bottom: 10px; }
.pd-specs div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.pd-specs div:last-child { border-bottom: 0; }
.pd-specs dt { color: var(--muted); }
.pd-specs dd { color: var(--ink); font-weight: 600; }
.pd-specs dd a { color: var(--link); }
@media (min-width: 900px) {
    .pd-wrap { padding-top: 20px; }
    .card.pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
    .pd-media { position: sticky; top: 150px; }
    .pd-img { aspect-ratio: 1 / 1; }
    .pd-name { font-size: 30px; }
    .pd-details { padding: 24px 28px; }
    .pd-desc { max-width: 760px; }
}

/* ---------- Admin ---------- */
body.admin { padding-bottom: 30px; }
.admin-out { margin-inline-start: auto; color: #fff; border-color: rgba(255,255,255,.3); padding: 8px 14px; }
.pill { background: var(--green); color: var(--brown-900); border-radius: 10px; padding: 0 7px; font-size: 12px; margin-inline-start: 4px; }
.login-box { max-width: 380px; margin: 20px auto; }
.login-box h1 { text-align: center; color: var(--fg-brand); font-size: 21px; }
.login-box label { display: grid; gap: 4px; font-weight: 700; color: var(--fg-brand); }
.login-box input { padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 12px; font-size: 16px; }
.login-logo { width: 74px; height: 74px; margin: 0 auto; border-radius: 50%; box-shadow: 0 0 0 4px rgba(141,198,63,.35); overflow: hidden; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-align: center; }
.stat strong { display: block; font-size: 22px; color: var(--fg-brand); font-weight: 800; }
.stat span { font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 4px; }
.tabs a { flex-shrink: 0; padding: 6px 12px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg-brand); font-weight: 700; font-size: 13px; }
.tabs a.on { background: var(--brown); border-color: var(--fg-brand); color: #fff; }
.order-list { display: grid; gap: 8px; }
.order-row { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--line-strong); border-radius: 14px; padding: 12px; color: var(--text); }
.order-row.st-new { border-inline-start-color: var(--green-600); background: var(--green-50); }
.or-head, .or-foot { display: flex; justify-content: space-between; align-items: center; }
.or-body { display: flex; flex-direction: column; }
.status-badge { font-size: 12px; font-weight: 800; padding: 1px 10px; border-radius: 10px; background: var(--sand); color: var(--cocoa); white-space: nowrap; }
.status-badge.st-new { background: var(--green-600); color: #fff; }
.status-badge.st-confirmed, .status-badge.st-preparing { background: #f8e4cc; color: var(--caramel-600); }
.status-badge.st-delivering { background: #dfe9f5; color: #2f5d8a; }
.status-badge.st-done { background: var(--green-100); color: var(--link); }
.status-badge.st-cancelled { background: var(--danger-bg); color: var(--danger); }
.ok-box { background: var(--green-100); color: var(--link); border-radius: 12px; padding: 10px 14px; font-weight: 800; margin-bottom: 12px; }
.note-box { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 8px 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.btn-row .btn { flex: 1; padding: 10px 12px; }
.items-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.items-table th { text-align: start; background: var(--caramel); color: #fff; padding: 6px 8px; font-size: 12.5px; }
.items-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-in { width: 90px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 800; text-align: center; }
.price-in.need { border-color: var(--caramel); background: var(--warn-bg); }
.status-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.sp input { display: none; }
.sp span { display: inline-block; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-strong); font-weight: 800; font-size: 14px; cursor: pointer; background: var(--surface); }
.sp input:checked + span { background: var(--brown); border-color: var(--fg-brand); color: #fff; }
.prod-admin { display: grid; gap: 6px; }
.pa-row { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "img name name" "img price chk" "img del del"; gap: 6px 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; position: relative; }
.pa-img { grid-area: img; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px dashed var(--line-strong); background: var(--sand-50); display: grid; place-items: center; cursor: pointer; align-self: start; }
.pa-img img { width: 100%; height: 100%; object-fit: cover; }
.pa-img span { display: flex; flex-direction: column; align-items: center; font-size: 22px; line-height: 1.1; }
.pa-img small { font-size: 10px; color: var(--link); font-weight: 800; }
.pa-delimg { grid-area: del; justify-self: start; border: 0; background: none; color: var(--danger); font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }
.bulk-box summary { cursor: pointer; color: var(--fg-brand); }
.bulk-box input[type=file] { margin-top: 6px; }
.bulk-log { display: grid; gap: 2px; font-size: 13px; max-height: 220px; overflow: auto; }
.bulk-log .ok { color: var(--link); }
.bulk-log .bad { color: var(--danger); }
.pa-name { grid-area: name; display: flex; flex-direction: column; }
.pa-name b { color: var(--fg-brand); }
.pa-price { grid-area: price; display: flex; align-items: center; gap: 4px; }
.pa-price input { width: 100px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 800; font-size: 16px; text-align: center; }
.pa-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--fg-brand); }
.pa-chk input { width: 18px; height: 18px; accent-color: var(--green-600); }
.pa-state { position: absolute; inset-inline-end: 10px; top: 8px; font-weight: 800; font-size: 13px; }
.pa-state.ok { color: var(--green-600); }
.pa-state.bad { color: var(--danger); }
.pa-desc-btn { grid-column: 2 / -1; justify-self: start; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; color: var(--cocoa); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.pa-desc-btn.has { border-color: var(--green-line); background: var(--green-50); color: var(--link); }
.pa-desc-btn.has::after { content: '✓'; font-size: 11px; }
.pa-desc { grid-column: 1 / -1; display: grid; gap: 8px; }
.pa-desc label { display: grid; gap: 3px; font-weight: 600; color: var(--cocoa); }
.pa-desc input[type=text] { width: 100%; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.pa-desc input[type=text]:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(141,198,63,.18); }
.pa-desc[hidden] { display: none; }
.pa-desc textarea { width: 100%; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; line-height: 1.7; resize: vertical; }
.pa-desc textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(141,198,63,.18); }
@media (min-width: 760px) {
    .pa-row { grid-template-columns: 64px 1fr 150px 90px 80px 24px; grid-template-areas: none; }
    .pa-name, .pa-price, .pa-img, .pa-delimg { grid-area: auto; }
    .pa-delimg { grid-column: 2; }
    .pa-desc-btn { grid-column: 2; }
    .pa-state { position: static; }
}
@media print {
    .site-header, .btn-row, form.panel button, a { display: none !important; }
    body { background: var(--surface); }
}

/* ---------- Admin dashboard ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dash-head h1 { color: var(--fg-brand); font-size: 24px; }
.store-state { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 20px; font-weight: 800; font-size: 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg-brand); }
.store-state .dot { width: 10px; height: 10px; border-radius: 50%; }
.store-state.is-open .dot { background: var(--green-600); box-shadow: 0 0 0 4px rgba(141,198,63,.25); }
.store-state.is-closed { color: var(--danger); }
.store-state.is-closed .dot { background: var(--danger); }
.new-alert { display: block; background: var(--green-600); color: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 800; margin-bottom: 12px; }
.new-alert b { background: var(--surface); color: var(--link); border-radius: 10px; padding: 0 8px; margin-inline-end: 4px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.kpi-main { background: var(--brown); border-color: var(--fg-brand); color: #fff; }
.k-label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.kpi-main .k-label { color: rgba(243,232,218,.75); }
.k-val { font-size: 24px; font-weight: 800; color: var(--fg-brand); line-height: 1.3; }
.kpi-main .k-val { color: var(--green); }
.k-val small { font-size: 13px; font-weight: 700; color: inherit; opacity: .75; }
.k-sub { font-size: 12.5px; color: var(--muted); }
.kpi-main .k-sub { color: rgba(243,232,218,.8); }
.trend { font-weight: 800; margin-inline-start: 4px; }
.trend.up { color: var(--green); }
.trend.down { color: #f2a19a; }
.kpi:not(.kpi-main) .trend.up { color: var(--link); }
.kpi:not(.kpi-main) .trend.down { color: var(--danger); }
.dash-grid { display: grid; gap: 12px; }
.dash-grid .panel { margin-bottom: 0; }
.p-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chart-empty { padding: 30px 0; }
.bars { position: relative; height: 170px; display: flex; align-items: flex-end; gap: 2px; padding: 22px 0 20px; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; cursor: pointer; outline: none; }
.bar { width: 100%; max-width: 26px; background: var(--green-600); border-radius: 4px 4px 0 0; transition: filter .15s; }
.bar.today { background: var(--brown); }
.bar-col:hover .bar, .bar-col:focus .bar { filter: brightness(1.15); }
.bar-x { position: absolute; bottom: -19px; font-size: 11px; color: var(--muted); }
.bar-tip { position: absolute; top: -6px; background: var(--brown-900); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.table-view { margin-top: 8px; }
.table-view summary { cursor: pointer; color: var(--muted); }
.status-list { list-style: none; display: grid; gap: 6px; }
.status-list a { display: flex; justify-content: space-between; align-items: center; color: var(--text); padding: 4px 0; border-bottom: 1px dotted var(--line); }
.rank { list-style: none; display: grid; gap: 10px; }
.rank-row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.rank-bar { height: 8px; background: var(--sand); border-radius: 4px; overflow: hidden; margin: 3px 0 1px; }
.rank-bar span { display: block; height: 100%; background: var(--green-600); border-radius: 4px; }
.pay-split { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pay-split div { flex: 1; min-width: 110px; background: var(--sand-50); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; display: flex; justify-content: space-between; font-size: 13px; }
.health { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.health a { background: var(--sand-50); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; color: var(--text); }
.health b { font-size: 22px; color: var(--fg-brand); }
.health span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.health a.warn { border-color: var(--warn-line); background: var(--warn-bg); }
.health a.warn b { color: var(--caramel-600); }
.shop-panel { margin-bottom: 12px; border-inline-start: 5px solid var(--caramel); }
.link-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; }
.link-state .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.link-state.ok { color: var(--link); }
.link-state.ok .dot { background: var(--green-600); box-shadow: 0 0 0 3px rgba(141,198,63,.3); }
.link-state.off { color: var(--muted); }
.shop-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.shop-kpis div { background: var(--sand-50); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.shop-kpis span { font-size: 12px; color: var(--muted); font-weight: 700; }
.shop-kpis b { font-size: 19px; color: var(--fg-brand); }
.shop-kpis small { color: var(--muted); }
@media (min-width: 900px) {
    .shop-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .kpis { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
    .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .chart-panel { grid-column: span 2; }
}


/* ---------- Admin on the white header ---------- */
body.admin { background: var(--bg); }
.admin-out { margin-inline-start: auto; color: var(--fg-brand); border-color: var(--line-strong); padding: 8px 14px; background: var(--surface); }
.admin .cat-scroll a > [class^="ic-"] { margin-inline-end: 4px; }
.ok-box > [class^="ic-"] { margin-inline-end: 4px; }.login-box label { min-width: 0; }
.login-box input { width: 100%; min-width: 0; }

/* ---------- Admin: products & offers (v5) ---------- */
.pa-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pa-name { flex: 1 1 calc(100% - 90px); min-width: 0; }
.pa-price, .pa-stock, .pa-chk { order: 2; }
.pa-stock { display: inline-flex; align-items: center; gap: 4px; }
.pa-stock input { width: 86px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 700; font-size: 15px; text-align: center; }
.pa-btns { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pa-btns .pa-desc-btn { grid-column: auto; }
.pa-desc { order: 4; flex-basis: 100%; }
.pa-desc select, .admin-form select, .admin-form input, .admin-form textarea { width: 100%; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; background: var(--surface); color: var(--text); }
.pa-desc input[type=number] { width: 100%; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.pa-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.flag { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: var(--sand); color: var(--cocoa); white-space: nowrap; }
.flag.deal { background: var(--danger-bg); color: var(--danger); }
.flag.wait { background: #dfe9f5; color: #2f5d8a; }
.flag.low { background: var(--warn-bg); color: var(--caramel-600); }
.sync-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; border-radius: 12px; padding: 9px 12px; margin-bottom: 10px; font-size: 13.5px; font-weight: 600; }
.sync-strip.is-ok { background: var(--green-50); color: var(--link); }
.sync-strip.is-wait { background: #e8f0f9; color: #2f5d8a; }
.sync-strip .muted { margin-inline-start: auto; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.admin-tools .btn { display: inline-flex; align-items: center; gap: 6px; }
.admin-form { display: grid; gap: 10px; margin-bottom: 12px; }
.admin-form[hidden] { display: none; }
.admin-form h2 { font-size: 17px; color: var(--fg-brand); display: flex; align-items: center; gap: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-grid label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; color: var(--cocoa); align-content: start; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid label.ch { display: flex; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.form-msg { font-weight: 700; font-size: 13.5px; color: var(--link); }
.tabs-sm a { font-size: 12px; padding: 4px 10px; font-weight: 600; }
.seg-pick { display: flex; gap: 8px; }
.seg-pick label { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 7px 12px; font-weight: 700; color: var(--fg-brand); cursor: pointer; }
.seg-pick label:has(input:checked) { border-color: var(--green-600); background: var(--green-50); }
.seg-pick input { accent-color: var(--green-600); }
.quick-ends { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.quick-ends button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 16px; padding: 3px 12px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--cocoa); cursor: pointer; }
.offer-preview { font-size: 14px; color: var(--ink); min-height: 1.2em; }
.offer-preview b { color: var(--danger); }
.offer-preview .bad { color: var(--danger); font-weight: 700; }
.offer-list { display: grid; gap: 6px; margin-top: 12px; }
.offer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; }
.offer-row.st-live { border-inline-start-color: var(--danger); }
.offer-row.st-soon { border-inline-start-color: #2f5d8a; }
.offer-row.st-ended, .offer-row.st-paused { opacity: .7; }
.or-main { flex: 1 1 260px; display: grid; gap: 2px; min-width: 0; }
.or-main b { color: var(--fg-brand); }
.offer-state { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 10px; background: var(--sand); color: var(--cocoa); }
.st-live .offer-state { background: var(--danger); color: #fff; }
.st-soon .offer-state { background: #dfe9f5; color: #2f5d8a; }
.or-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.or-btns .pa-desc-btn { grid-column: auto; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
/* ==========================================================================
   v6 — swiping posters (home), slim phone header, round sections, offers page
   ========================================================================== */
/* ---------- Posters ---------- */
.promo { padding-top: 12px; }
.promo-wrap { position: relative; }
.promo-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; overscroll-behavior-x: contain; }
.promo-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 89%; scroll-snap-align: center; min-height: 190px; border-radius: 22px; overflow: hidden; color: #fff; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 6px; padding: 16px 16px 16px 10px; isolation: isolate; }
.slide::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; }
.slide::after { content: ''; position: absolute; z-index: -1; width: 220px; height: 220px; border-radius: 50%; inset-inline-end: -70px; bottom: -90px; background: rgba(255,255,255,.08); }
.s-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.s-kicker { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); white-space: nowrap; }
.slide h2 { font-size: 21px; line-height: 1.25; font-weight: 700; margin: 2px 0 0; }
.slide h2 em { font-style: normal; color: #c9ec93; }
.slide p { font-size: 12.5px; line-height: 1.55; opacity: .88; margin: 0; }
.s-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; background: #fff; color: var(--brown-900); font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 20px; box-shadow: 0 8px 18px -10px rgba(0,0,0,.6); }
[dir="ltr"] .s-cta [class^="ic-"] { transform: scaleX(-1); }
.s-art { position: relative; height: 158px; }
/* colours: the shop's palette, one per poster */
.s-brand { background: radial-gradient(260px 160px at 20% 0%, rgba(141,198,63,.25), transparent 60%), linear-gradient(150deg, #6a4524, #2f1d0e); }
.s-deal { background: radial-gradient(240px 160px at 15% 10%, rgba(255,209,102,.28), transparent 60%), linear-gradient(140deg, #c2402f, #6e1d14); }
.s-deal h2 { font-size: 19px; }
.s-deal h2 em, .s-pay h2 em { color: #ffd98a; }
.s-delivery { background: radial-gradient(260px 160px at 15% 0%, rgba(201,236,147,.3), transparent 60%), linear-gradient(150deg, #6a9b2c, #2f4a10); }
.s-bundles { background: radial-gradient(240px 170px at 20% 0%, rgba(192,127,58,.4), transparent 60%), linear-gradient(150deg, #4a2f18, #1c1109); }
.s-bundles h2 em { color: #f0c27f; }
.s-pay { background: radial-gradient(240px 160px at 15% 0%, rgba(255,230,180,.3), transparent 60%), linear-gradient(150deg, #cf8d45, #7d4a1c); }
.s-weight { background: linear-gradient(150deg, #f6ecdf, #e6d3ba); color: var(--brown-900); }
.s-weight::before { background-image: radial-gradient(rgba(92,58,30,.12) 1px, transparent 1px); }
.s-weight::after { background: rgba(141,198,63,.18); }
.s-weight .s-kicker { background: rgba(92,58,30,.08); border-color: rgba(92,58,30,.16); color: var(--brown); }
.s-weight h2 em { color: #4b711c; }
.s-prices { background: radial-gradient(260px 160px at 15% 0%, rgba(141,198,63,.22), transparent 60%), linear-gradient(150deg, #7a5c46, #3b2718); }
/* art: product photos in circles */
.art-photos .ph-c { position: absolute; border-radius: 50%; overflow: hidden; background: #fff; border: 3px solid rgba(255,255,255,.95); box-shadow: 0 14px 24px -12px rgba(0,0,0,.7); }
.art-photos img, .art-deal img, .art-boxes img { width: 100%; height: 100%; object-fit: cover; }
/* phone: one big photo + one small, the count below them (the third photo shows on wider screens) */
.ph-c1 { width: 96px; height: 96px; left: 50%; margin-left: -48px; top: 0; z-index: 1; }
.ph-c2 { width: 54px; height: 54px; left: 0; top: 74px; z-index: 2; }
.ph-c3 { width: 50px; height: 50px; right: 0; top: 10px; display: none; }
.s-count { position: absolute; right: 2px; bottom: 6px; z-index: 3; background: #fff; color: var(--brown); border-radius: 14px; padding: 4px 10px; display: flex; flex-direction: column; align-items: center; font-size: 10.5px; font-weight: 700; line-height: 1.15; box-shadow: 0 10px 20px -10px rgba(0,0,0,.6); }
@media (min-width: 640px) { .ph-c3 { display: block; } }
.s-count b { font-size: 17px; color: var(--green-600); }
/* art: offer — product in a white disc + a burst with the percent */
.art-deal { display: grid; place-items: center; }
.deal-disc { width: 124px; height: 124px; border-radius: 50%; overflow: hidden; background: #fff; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 16px 28px -14px rgba(0,0,0,.75); }
.deal-burst { position: absolute; top: 0; inset-inline-start: 0; width: 62px; height: 62px; border-radius: 50%; background: #ffd166; color: #6e1d14; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; transform: rotate(-12deg); box-shadow: 0 10px 18px -8px rgba(0,0,0,.6), 0 0 0 4px rgba(255,209,102,.35); }
.deal-burst b { font-size: 19px; font-weight: 800; }
.deal-burst small { font-size: 10px; font-weight: 700; }
.s-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.s-price b { font-size: 19px; color: #fff; }
.s-price s { font-size: 13px; opacity: .7; }
.s-price span { font-size: 11.5px; opacity: .8; }
.s-timer { margin-top: 2px; background: rgba(0,0,0,.22); color: #fff; padding: 4px 10px; border-radius: 16px; font-size: 11.5px; white-space: nowrap; }
.s-timer.deal-timer { color: #fff; }
/* art: big icon with a dashed route */
.art-icon .big-ic, .art-store .big-ic { position: absolute; inset-inline-start: 18px; top: 26px; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: #4b711c; font-size: 48px; box-shadow: 0 16px 28px -14px rgba(0,0,0,.6); }
.art-icon .route { position: absolute; inset-inline-start: 0; top: 8px; width: 140px; height: 140px; border: 2px dashed rgba(255,255,255,.45); border-radius: 50%; }
.mini-ic { position: absolute; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #ffd98a; color: #5c3a1e; font-size: 18px; box-shadow: 0 8px 14px -8px rgba(0,0,0,.6); }
.mi-1 { inset-inline-end: 6px; top: 6px; }
.mi-2 { inset-inline-start: 2px; bottom: 4px; background: #fff; color: #c2402f; }
.art-store .big-ic { background: #fff; padding: 10px; }
.art-store .big-ic img { width: 100%; height: 100%; border-radius: 50%; }
.art-store .tag-ic { position: absolute; inset-inline-end: 8px; bottom: 16px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #8dc63f; color: #2f4a10; font-size: 22px; transform: rotate(10deg); box-shadow: 0 10px 18px -10px rgba(0,0,0,.6); }
/* art: bags & boxes */
.art-boxes .bx { position: absolute; width: 84px; height: 84px; border-radius: 16px; overflow: hidden; background: #fff; border: 3px solid rgba(255,255,255,.9); box-shadow: 0 14px 24px -12px rgba(0,0,0,.75); }
.bx1 { inset-inline-start: 4px; top: 6px; transform: rotate(-8deg); z-index: 2; }
.bx2 { inset-inline-end: 0; top: 30px; transform: rotate(7deg); }
.bx3 { inset-inline-start: 30px; bottom: 0; transform: rotate(3deg); z-index: 3; width: 72px; height: 72px; }
/* art: payment cards */
.pay-card { position: absolute; width: 98px; height: 64px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 16px 26px -14px rgba(0,0,0,.7); line-height: 1.1; }
.pay-card small { font-size: 11px; font-weight: 700; }
.pc-cash { background: #f6ecdf; color: #4b711c; inset-inline-start: 6px; top: 18px; transform: rotate(-9deg); }
.pc-vf { background: #e60000; color: #fff; inset-inline-end: 0; bottom: 18px; transform: rotate(7deg); }
.pc-vf b { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
/* art: weights */
.art-weights { display: grid; grid-template-columns: repeat(2, 54px); gap: 8px; align-content: center; justify-content: center; }
.w-chip { height: 46px; border-radius: 14px; background: #fff; color: var(--brown); display: grid; place-items: center; font-weight: 800; font-size: 19px; box-shadow: 0 8px 16px -10px rgba(92,58,30,.55); }
.w-chip.on { background: #5e8c25; color: #fff; transform: scale(1.06); }
.w-money { grid-column: 1 / -1; justify-self: center; background: var(--brown); color: #fff; font-weight: 700; font-size: 12.5px; padding: 5px 12px; border-radius: 16px; }
/* dots + arrows */
.promo-dots { display: flex; justify-content: center; gap: 6px; padding-top: 10px; }
.promo-dots button { width: 7px; height: 7px; border-radius: 4px; border: 0; padding: 0; background: var(--line-strong); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.promo-dots button.on { width: 22px; background: var(--green-600); }
.promo-arrow { display: none; position: absolute; top: calc(50% - 22px); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--brown-900); font-size: 19px; cursor: pointer; place-items: center; box-shadow: 0 10px 22px -10px rgba(0,0,0,.5); }
.pa-prev { inset-inline-start: 4px; }
.pa-next { inset-inline-end: 4px; }
[dir="ltr"] .promo-arrow [class^="ic-"] { transform: scaleX(-1); }
@media (min-width: 640px) {
    .slide { flex-basis: 70%; }
}
@media (min-width: 900px) {
    .promo { padding-top: 20px; }
    .promo-track { gap: 16px; }
    .slide { flex-basis: 100%; min-height: 320px; padding: 34px 56px; border-radius: 28px; gap: 24px; }
    .slide h2 { font-size: 40px; }
    .s-deal h2 { font-size: 34px; }
    .slide p { font-size: 16px; max-width: 420px; }
    .s-kicker { font-size: 13px; padding: 5px 14px; }
    .s-cta { font-size: 15px; padding: 10px 22px; margin-top: 10px; }
    .s-price b { font-size: 30px; } .s-price s { font-size: 18px; } .s-price span { font-size: 14px; }
    .s-timer { font-size: 14px; padding: 6px 14px; }
    .s-art { height: 260px; }
    .promo-arrow { display: grid; }
    /* computer: the art at its own, larger sizes */
    .ph-c1 { width: 180px; height: 180px; margin-left: -90px; top: 0; border-width: 5px; }
    .ph-c2 { width: 104px; height: 104px; top: 140px; left: 4%; }
    .ph-c3 { width: 96px; height: 96px; top: 24px; right: 4%; }
    .s-count { right: 8%; bottom: 0; padding: 8px 16px; font-size: 13px; border-radius: 18px; }
    .s-count b { font-size: 26px; }
    .deal-disc { width: 220px; height: 220px; border-width: 6px; }
    .deal-burst { width: 104px; height: 104px; top: 0; inset-inline-start: 14%; }
    .deal-burst b { font-size: 32px; } .deal-burst small { font-size: 14px; }
    .art-icon .big-ic, .art-store .big-ic { width: 168px; height: 168px; font-size: 84px; inset-inline-start: 22%; top: 44px; }
    .art-icon .route { width: 250px; height: 250px; inset-inline-start: 8%; top: 4px; }
    .mini-ic { width: 60px; height: 60px; font-size: 28px; }
    .mi-1 { inset-inline-end: 14%; top: 10px; } .mi-2 { inset-inline-start: 10%; bottom: 6px; }
    .art-store .tag-ic { width: 78px; height: 78px; font-size: 36px; inset-inline-end: 18%; bottom: 26px; border-radius: 22px; }
    .art-boxes .bx { width: 150px; height: 150px; border-radius: 24px; border-width: 5px; }
    .bx1 { inset-inline-start: 14%; top: 4px; } .bx2 { inset-inline-end: 10%; top: 54px; } .bx3 { inset-inline-start: 34%; width: 130px; height: 130px; }
    .pay-card { width: 176px; height: 112px; font-size: 46px; border-radius: 22px; }
    .pay-card small { font-size: 16px; } .pc-vf b { font-size: 42px; }
    .pc-cash { inset-inline-start: 16%; top: 22px; } .pc-vf { inset-inline-end: 14%; bottom: 22px; }
    .art-weights { grid-template-columns: repeat(2, 96px); gap: 14px; }
    .w-chip { height: 78px; font-size: 32px; border-radius: 22px; }
    .w-money { font-size: 18px; padding: 8px 20px; border-radius: 22px; }
    .slide::after { width: 420px; height: 420px; inset-inline-end: -120px; bottom: -200px; }
}

/* ---------- Phone: slim header that slides away while scrolling down ---------- */
@media (max-width: 899px) {
    body:not(.admin) .cat-nav { display: none; }   /* the admin keeps its menu bar */
    .admin .site-header { position: sticky; transform: none !important; }
    .header-row { padding-top: 7px; padding-bottom: 7px; gap: 8px; }
    .brand-logo { width: 38px; height: 38px; }
    .brand-logo img { width: 32px; height: 32px; }
    .brand-name { font-size: 16.5px; }
    .brand-latin { font-size: 8.5px; letter-spacing: 3px; }
    .icon-btn, .cart-link { width: 40px; height: 40px; font-size: 19px; border-radius: 11px; }
    .search { border-radius: 12px; }
    .search input { padding: 8px 12px; font-size: 16px; }
    .search button { width: 34px; height: 34px; margin: 3px; border-radius: 9px; font-size: 16px; }
    .site-header { transition: transform .32s var(--ease), box-shadow .3s; will-change: transform; }
    html.hdr-hide .site-header { transform: translateY(-100%); box-shadow: none; }
    /* sections: round icons in one swipeable row */
    .cats-strip { padding-top: 14px; }
    .cats-strip .rail-head { margin-bottom: 6px; }
    .cats-strip .rail-head h2 { font-size: 17px; }
    .cats-scroll { gap: 4px; }
    .cat-chip { width: 74px; padding: 4px 0; background: none; border: 0; box-shadow: none; gap: 3px; }
    .cat-chip:hover { transform: none; box-shadow: none; }
    .cc-icon { width: 58px; height: 58px; font-size: 25px; margin-bottom: 2px; box-shadow: inset 0 0 0 1px var(--green-line); }
    .cc-name { font-size: 11.5px; min-height: 2.7em; justify-content: center; text-align: center; line-height: 1.3; }
    .cc-count { display: none; }
}

/* ---------- Offer badges on cards ---------- */
.card-img .deal-badges { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.card-img .deal-badges .badge-deal { position: static; }
.badge-tag { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 12px; white-space: nowrap; box-shadow: 0 4px 10px -6px rgba(0,0,0,.5); }
.bt-ex { background: var(--brown-900); color: #ffd98a; }
.bt-new { background: #ffd166; color: #6e1d14; }

/* ---------- Offers page ---------- */
.offers-hero { background: radial-gradient(500px 220px at 85% 0%, rgba(255,209,102,.25), transparent 60%), linear-gradient(140deg, #c2402f, #6e1d14); color: #fff; padding: 16px 0 18px; }
.offers-hero .crumbs, .offers-hero .crumbs a { color: rgba(255,255,255,.8); }
.oh-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.oh-icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 26px; }
.offers-hero h1 { font-size: 24px; font-weight: 700; line-height: 1.3; }
.offers-hero p { font-size: 13.5px; opacity: .88; }
.oh-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.oh-stats span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 3px 12px; font-size: 12.5px; }
.oh-stats b { color: #ffd98a; font-size: 14px; }
.of-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.of-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 260px; padding-bottom: 2px; }
.of-chips::-webkit-scrollbar { display: none; }
.of-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--fg-brand); border-radius: 20px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.of-chip small { font-size: 11px; color: var(--muted); font-weight: 600; }
.of-chip.on { background: var(--danger); border-color: var(--danger); color: #fff; }
.of-chip.on small { color: rgba(255,255,255,.85); }
.of-sort { display: inline-flex; align-items: center; gap: 6px; }
.of-sort select { border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); }
.of-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.of-follow > [class^="ic-"] { font-size: 30px; color: #25d366; }
.of-follow > div { flex: 1 1 220px; display: grid; gap: 2px; }
@media (min-width: 900px) {
    .offers-hero { padding: 26px 0 28px; }
    .offers-hero h1 { font-size: 32px; }
    .oh-icon { width: 64px; height: 64px; font-size: 32px; }
}
/* ---------- v7: uploaded banners, bundles ---------- */
.slide.s-img { display: block; padding: 0; background: var(--soft); }
.slide.s-img::before, .slide.s-img::after { display: none; }
.slide.s-img picture, .slide.s-img img { display: block; width: 100%; height: 100%; }
.slide.s-img img { object-fit: cover; }
.bt-bundle { background: var(--green-600); color: #fff; display: inline-flex; align-items: center; gap: 3px; box-shadow: none; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pd-bundle ul li { display: flex; justify-content: space-between; gap: 10px; }
.pd-bundle ul li a { color: var(--link); font-weight: 600; }
.bundle-save { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; }
.bundle-save s { color: var(--muted); }
.bundle-save b { color: var(--danger); font-size: 16px; }
/* admin: banners */
.bn-drop { position: relative; }
.bn-drop input[type=file] { font-size: 13px; }
.bn-pv { display: grid; place-items: center; border: 2px dashed var(--line-strong); border-radius: 12px; background: var(--sand-50); color: var(--muted); font-size: 13px; font-weight: 600; overflow: hidden; }
.bn-pv img { width: 100%; height: 100%; object-fit: cover; }
.bn-pv-desk { aspect-ratio: 16 / 5; }
.bn-pv-mob { aspect-ratio: 9 / 5; max-width: 260px; }
.banner-list { display: grid; gap: 8px; margin-top: 12px; }
.bn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--line-strong); border-radius: 12px; padding: 8px 10px; }
.bn-row.st-live { border-inline-start-color: var(--green-600); }
.bn-row.st-ended, .bn-row.st-paused { opacity: .65; }
.bn-thumb { width: 140px; aspect-ratio: 16 / 5; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.bn-main { flex: 1 1 200px; display: grid; gap: 2px; min-width: 0; }
.bn-main b { color: var(--fg-brand); }
.bn-mini { width: 54px; height: 54px; flex-shrink: 0; }
/* admin: bundle items */
.bundle-items { display: grid; gap: 8px; }
.bi-head { display: none; }
.bi-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; background: var(--sand-50); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.bi-row .bi-pick { grid-column: 1 / -1; width: 100%; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; background: var(--surface); }
.bi-qty { display: inline-flex; align-items: center; gap: 6px; }
.bi-qty input { width: 90px; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 7px 8px; font: inherit; font-size: 14px; font-weight: 700; text-align: center; }
.bi-price { justify-self: end; }
.bi-row [data-del-item] { justify-self: end; font-size: 15px; }
.bi-quick { grid-column: 1 / -1; display: flex; gap: 5px; }
.bi-quick:empty { display: none; }
.bi-quick button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 14px; padding: 2px 12px; font: inherit; font-weight: 700; color: var(--cocoa); cursor: pointer; }
@media (min-width: 760px) {
    .bi-head { display: grid; grid-template-columns: minmax(0, 1fr) 150px 90px 30px; gap: 8px; padding: 0 8px; }
    .bi-row { grid-template-columns: minmax(0, 1fr) 150px 90px 30px; }
    .bi-row .bi-pick { grid-column: auto; }
    .bi-quick { grid-column: 1 / -1; }
}

/* ---------- v8: shop reports (admin) ---------- */
.rep-head { margin-bottom: 8px; }
.rep-filters { display: grid; gap: 8px; margin-bottom: 12px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg-brand); font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip.on { background: var(--brown); border-color: var(--fg-brand); color: #fff; }
.chips-sm .chip { padding: 3px 10px; font-size: 12px; }
.rep-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rep-custom label { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.rep-custom input[type=date] { padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; background: var(--surface); }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.rep-dev .chip { font-weight: 600; }
.rep-kpis .k-val-sm { font-size: 14px; display: grid; gap: 1px; }
.pay-line { display: flex; justify-content: space-between; gap: 6px; font-weight: 700; color: var(--text); }
.pay-line b { color: var(--fg-brand); }
.rep-kpis-sm .k-val { font-size: 20px; }
.rep-tabs { margin: 4px 0 12px; }
.rep-grid { margin-top: 12px; }
.rank-list { list-style: none; display: grid; gap: 9px; margin: 8px 0 0; padding: 0; }
.rank-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 14px; }
.rk-name { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-val { font-weight: 800; color: var(--fg-brand); white-space: nowrap; }
.rk-bar { grid-column: 1 / -1; height: 6px; background: var(--sand); border-radius: 3px; overflow: hidden; }
.rk-bar i { display: block; height: 100%; background: var(--green-600); border-radius: 3px; }
.rep-sub { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rep-table td b { color: var(--fg-brand); }
.nowrap { white-space: nowrap; }
.rep-search { width: 100%; margin: 8px 0; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; background: var(--surface); }
.rep-find input { width: 130px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; }
.inv-list { display: grid; gap: 6px; margin-top: 8px; }
.inv { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.inv summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "no time total" "tags tags tags"; gap: 2px 10px; align-items: center; padding: 9px 12px; }
.inv summary::-webkit-details-marker { display: none; }
.inv-no { grid-area: no; font-weight: 800; color: var(--fg-brand); }
.inv-time { grid-area: time; color: var(--muted); font-size: 13px; }
.inv-total { grid-area: total; font-weight: 800; color: var(--fg-brand); font-size: 16px; white-space: nowrap; }
.inv-tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 4px; }
.inv[open] summary { border-bottom: 1px solid var(--line); background: var(--sand-50); border-radius: 12px 12px 0 0; }
.inv-items { font-size: 13.5px; }
.inv-items tfoot td { border-bottom: 0; }
.inv-note { padding: 0 12px 8px; margin: 0; }
.inv.is-void { opacity: .6; }
.inv.is-void .inv-total { text-decoration: line-through; }
.inv.is-ret .inv-total { color: var(--danger); }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: var(--sand-50); border: 1px solid var(--line); color: var(--muted); }
.tag-ret { background: var(--warn-bg); border-color: var(--warn-line); color: var(--caramel-600); }
.tag-void { background: #fdecea; border-color: #f2c1bb; color: var(--danger); }
.tag-dev { background: #eef6e4; border-color: #cfe5b0; color: var(--link); }
tr.is-void td { opacity: .55; }
.safe-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.safe-sum .tag { font-size: 12.5px; padding: 3px 10px; }
.amt-in { color: var(--link); font-weight: 800; }
.amt-out { color: var(--danger); font-weight: 800; }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 12px; }
.rep-foot { margin-top: 14px; }
@media (min-width: 900px) {
    .rep-filters { grid-template-columns: auto 1fr; align-items: center; }
    .rep-dev { grid-column: 1 / -1; }
    .rep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inv summary { grid-template-columns: 70px 110px 1fr auto; grid-template-areas: "no time tags total"; }
}

/* ---------- v8: selling from a phone (admin) ---------- */
.alert-ok { background: var(--green-50); color: var(--link); border-color: var(--green-line); }
.pos-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-inline-start: 5px solid var(--green-600); }
.pos-link > div { flex: 1 1 220px; display: grid; gap: 2px; min-width: 0; }
.pos-link b { color: var(--fg-brand); font-size: 15px; overflow-wrap: anywhere; }
.pos-devs { display: grid; gap: 8px; margin-top: 8px; }
.pos-dev { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); display: grid; gap: 6px; }
.pos-dev.off { opacity: .6; }
.pd-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-top b { color: var(--fg-brand); }
.pd-nums { font-size: 13.5px; }
.pd-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pd-acts form { margin: 0; display: inline-flex; gap: 4px; }
.pd-acts .pa-desc-btn { grid-column: auto; }
.pd-pin input { width: 110px; padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: 12.5px; }
.pa-desc-btn.danger { color: var(--danger); }
.pos-add { display: grid; gap: 10px; margin-top: 8px; }
.pos-add label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pos-add input { padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; color: var(--text); background: var(--surface); }