/* =====================================================================
 * VITRÉ — redesign prototype. Calm, spacious, product-first.
 * Light + dark (follows the device, with a manual switch), EN + AR (RTL).
 * ===================================================================== */
:root {
    --bg: #fbf9f7;            /* warm ivory */
    --bg-alt: #f3efea;        /* section band */
    --surface: #ffffff;
    --tile: #f1ece6;          /* product image ground */
    --text: #1c1917;
    --text-2: #6b625c;
    --line: rgba(28, 25, 23, 0.09);
    --accent: #72383d;        /* burgundy */
    --accent-hover: #5e2d32;
    --accent-ink: #ffffff;
    --link: #8a3f46;
    --ok: #2f7d4f;
    --warn: #a86b16;
    --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 8px 28px rgba(28, 25, 23, .06);
    --nav-bg: rgba(251, 249, 247, 0.78);
    --illus: #72383d;
    --illus-2: #ac9c8d;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #12100f; --bg-alt: #1a1716; --surface: #1d1a18; --tile: #24201e;
        --text: #f3eee8; --text-2: #a89d94; --line: rgba(243, 238, 232, 0.1);
        --accent: #9a4a52; --accent-hover: #ad5760; --accent-ink: #fff; --link: #d99aa0;
        --ok: #6fbf8f; --warn: #e0a85a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
        --nav-bg: rgba(18, 16, 15, 0.72); --illus: #d99aa0; --illus-2: #8c7f75;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #12100f; --bg-alt: #1a1716; --surface: #1d1a18; --tile: #24201e;
    --text: #f3eee8; --text-2: #a89d94; --line: rgba(243, 238, 232, 0.1);
    --accent: #9a4a52; --accent-hover: #ad5760; --accent-ink: #fff; --link: #d99aa0;
    --ok: #6fbf8f; --warn: #e0a85a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    --nav-bg: rgba(18, 16, 15, 0.72); --illus: #d99aa0; --illus-2: #8c7f75;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 17px/1.5 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased; letter-spacing: -0.005em;
}
html[dir="rtl"] body { font-family: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif; letter-spacing: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 22px; }
.muted { color: var(--text-2); }
[hidden] { display: none !important; }

/* ---------- navigation ---------- */
.nav {
    position: sticky; top: 0; z-index: 50; background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .28em; font-size: 15px; }
.brand small { font-weight: 500; letter-spacing: .18em; font-size: 10.5px; color: var(--text-2); }
html[dir="rtl"] .brand { letter-spacing: .18em; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 26px; font-size: 14px; }
.nav-links a { color: var(--text); opacity: .82; }
.nav-links a:hover, .nav-links a.on { opacity: 1; text-decoration: none; }
.nav-links a.on { font-weight: 600; }
.nav-tools { margin-inline-start: auto; display: flex; gap: 4px; align-items: center; }
.icon-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center;
    color: var(--text); position: relative; font-size: 13px; font-weight: 600;
}
.icon-btn:hover { background: var(--line); }
.icon-btn svg { width: 19px; height: 19px; }
.bag-count {
    position: absolute; top: 3px; inset-inline-end: 1px; min-width: 17px; height: 17px; border-radius: 9px; padding: 0 4px;
    background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
}

/* ---------- type ---------- */
.eyebrow { font-size: 14px; font-weight: 600; color: var(--link); letter-spacing: .02em; margin: 0 0 10px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; font-weight: 700; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; }
.display { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; }
.headline { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.title { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--text-2); margin: 14px 0 0; max-width: 34em; line-height: 1.45; }
.serif { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-style: italic; letter-spacing: -0.01em; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
    border-radius: 980px; border: 1px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none !important;
    transition: background .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-2); }
.btn-link { color: var(--link); padding: 0; min-height: 0; font-weight: 600; }
.btn-link::after { content: '›'; font-size: 1.2em; line-height: 1; margin-inline-start: 2px; }
html[dir="rtl"] .btn-link::after { content: '‹'; }
.btn-row { display: flex; gap: 14px 22px; align-items: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.band { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }

/* hero: lab and store as equals */
.hero { padding: 26px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-tile {
    position: relative; overflow: hidden; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow);
    padding: 54px 48px 0; min-height: 620px; display: flex; flex-direction: column;
}
.hero-tile .art { margin-top: auto; align-self: center; width: min(78%, 400px); color: var(--illus); padding-bottom: 18px; }
.hero-tile.store { background: linear-gradient(160deg, var(--surface) 30%, var(--tile)); }
.hero-tile .meta { margin-top: 22px; font-size: 14px; color: var(--text-2); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-tile .meta b { color: var(--text); font-weight: 700; }
.hero-tile.has-bg { background: #111; color: #fff; }
.hero-tile.has-bg::before { content: ''; position: absolute; inset: 0; background: var(--hero-img) center / cover no-repeat; z-index: 0; }
.hero-tile.has-bg::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,calc(var(--hero-dim) + .12)) 0%, rgba(0,0,0,var(--hero-dim)) 45%, rgba(0,0,0,calc(var(--hero-dim) - .1)) 100%); }
.hero-tile.has-bg > * { position: relative; z-index: 1; }
.hero-tile.has-bg .art { visibility: hidden; }
.hero-tile.has-bg .eyebrow, .hero-tile.has-bg .meta, .hero-tile.has-bg .lede { color: rgba(255,255,255,.86); }
.hero-tile.has-bg .display, .hero-tile.has-bg .meta b { color: #fff; } .hero-tile.has-bg .btn-link { color: #fff; }
.hero-bg-btn { display: none; position: absolute !important; top: 16px; inset-inline-end: 16px; z-index: 3 !important; border: 0; border-radius: 980px; padding: 8px 14px; font-size: 13px; font-weight: 600; background: #0a84ff; color: #fff; }
body.v-editing .hero-bg-btn { display: inline-flex; }

/* department rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.rail::-webkit-scrollbar { height: 6px; } .rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.dept-tile {
    scroll-snap-align: start; border-radius: 22px; background: var(--surface); padding: 22px 22px 18px; color: var(--text);
    box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 250px; text-decoration: none !important;
    transition: transform .2s;
}
.dept-tile:hover { transform: translateY(-3px); }
.dept-tile .art { width: 112px; height: 112px; margin: auto auto 18px; color: var(--illus); }
.dept-tile .art img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.dept-tile b { font-size: 17px; letter-spacing: -0.01em; }
.dept-tile span { font-size: 13px; color: var(--text-2); }
/* department with its own picture: the picture fills the tile, text on a soft dark fade */
.dept-tile { position: relative; overflow: hidden; }
.dept-tile.has-img { color: #fff; justify-content: flex-end; background: #111; }
.dept-tile.has-img .art { position: absolute; inset: 0; width: auto; height: auto; margin: 0; z-index: 0; }
.dept-tile.has-img .art img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .4s; }
.dept-tile.has-img:hover .art img { transform: scale(1.04); }
.dept-tile.has-img::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.dept-tile.has-img b, .dept-tile.has-img span { position: relative; z-index: 1; } .dept-tile.has-img span { color: rgba(255,255,255,.82); }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 18px; }
.card { color: var(--text); text-decoration: none !important; display: flex; flex-direction: column; position: relative; }
.card .pic {
    aspect-ratio: 1; border-radius: 20px; background: var(--tile); display: grid; place-items: center; overflow: hidden; position: relative;
    transition: transform .25s;
}
.card:hover .pic { transform: scale(1.012); }
.card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .pic .art { width: 46%; color: var(--illus); opacity: .9; }
.card .tag {
    position: absolute; top: 12px; inset-inline-start: 12px; font-size: 12px; font-weight: 700; color: var(--accent);
    background: var(--surface); padding: 3px 9px; border-radius: 980px;
}
.card .brandline { font-size: 12.5px; color: var(--text-2); margin: 14px 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .name { font-size: 15.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.price { font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.price s { font-weight: 500; color: var(--text-2); font-size: 13.5px; margin-inline-start: 8px; }
.price.quote { color: var(--text-2); font-weight: 600; font-size: 14px; }
/* card price: new + old price wrap onto two lines when the column is narrow (phones) */
.card .foot { min-width: 0; } .card .price { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; white-space: normal; }
.card .price > * { white-space: nowrap; } .card .price s { margin-inline-start: 0; }
.add-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center;
    color: var(--text); flex: none; transition: background .15s, color .15s, border-color .15s;
}
.add-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.add-btn svg { width: 16px; height: 16px; }
.stockline { font-size: 12.5px; margin-top: 4px; }
.stockline.low { color: var(--warn); } .stockline.out { color: var(--text-2); }

/* steps + facts */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--surface); border-radius: 24px; padding: 34px 30px; box-shadow: var(--shadow); }
.step .num { font-size: 15px; font-weight: 700; color: var(--link); }
.step h3 { font-size: 22px; margin: 10px 0 8px; }
.step p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.fact .ic { width: 34px; height: 34px; color: var(--link); margin-bottom: 14px; }
.fact h3 { font-size: 19px; margin-bottom: 6px; }
.fact p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* store page */
.store-head { padding: 54px 0 6px; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 26px 0 8px; }
.search {
    flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; padding: 0 16px; height: 48px;
}
.search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); outline: none; min-width: 0; }
.search svg { width: 18px; color: var(--text-2); }
.select {
    height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
    padding: 0 14px; font: inherit; font-size: 15px;
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    white-space: nowrap; border: 1px solid var(--line); background: transparent; border-radius: 980px; padding: 8px 16px; font-size: 14px; color: var(--text);
}
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.count-line { font-size: 14px; color: var(--text-2); margin: 18px 0 22px; }
.more { display: flex; justify-content: center; margin-top: 44px; }

/* sheet (filters / bag) */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
    position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%); background: var(--bg); z-index: 90;
    transform: translateX(100%); transition: transform .28s ease, visibility 0s .28s; visibility: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
html[dir="rtl"] .sheet { transform: translateX(-100%); }
.sheet.on { transform: none !important; visibility: visible; transition: transform .28s ease, visibility 0s; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { font-size: 21px; }
.sheet-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.sheet-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); }
.field { margin: 22px 0 0; }
.field label, .field .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; padding: 5px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.range { display: flex; gap: 10px; }
.range input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0 12px; font: inherit; }
.bag-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.bag-item .pic { width: 64px; height: 64px; border-radius: 12px; background: var(--tile); display: grid; place-items: center; overflow: hidden; position: relative; }
.bag-item .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bag-item .pic .art { width: 60%; color: var(--illus); }
.bag-item .nm { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 980px; margin-top: 6px; }
.qty button { width: 30px; height: 30px; border: 0; background: transparent; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; margin: 6px 0; }
.sum-row.total { font-size: 19px; font-weight: 700; margin-top: 10px; }
.ship-bar { height: 4px; border-radius: 4px; background: var(--line); margin: 10px 0 6px; overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: var(--ok); border-radius: 4px; transition: width .3s; }
.ship-note { font-size: 13.5px; color: var(--text-2); }
.ship-note.ok { color: var(--ok); font-weight: 600; }

/* product page */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; padding: 40px 0 70px; align-items: start; }
.pdp .gallery { position: sticky; top: 80px; aspect-ratio: 1; border-radius: 30px; background: var(--tile); display: grid; place-items: center; overflow: hidden; }
.pdp .gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp .gallery .art { width: 44%; color: var(--illus); }
.crumbs { font-size: 13.5px; color: var(--text-2); margin-bottom: 14px; }
.crumbs a { color: var(--text-2); }
.pdp h1 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; }
.pdp .alt-name { font-family: 'Cairo', sans-serif; color: var(--text-2); font-size: 19px; margin-top: 8px; }
.pdp .big-price { font-size: 26px; font-weight: 700; margin: 26px 0 4px; }
.pdp .big-price s { font-size: 18px; font-weight: 500; color: var(--text-2); margin-inline-start: 12px; }
.pdp .save { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); margin-inline-start: 12px; vertical-align: 3px; }
.buy { display: flex; gap: 12px; margin: 26px 0 10px; }
.buy .qty { margin: 0; height: 50px; }
.buy .qty button { width: 42px; height: 48px; }
.buy .btn { flex: 1; min-height: 50px; font-size: 16px; }
.spec { margin: 34px 0 0; border-top: 1px solid var(--line); }
.spec div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec dt { color: var(--text-2); } .spec dd { margin: 0; text-align: end; }
.about { max-width: 760px; }
.about p { color: var(--text-2); font-size: 17px; }

/* lab page */
/* price sheet: two wide cards per row on computers, one on phones; tier names once as column headings */
.lab-cats { columns: 2; column-gap: 20px; }
.lab-cats > .lab-card { break-inside: avoid; margin-bottom: 20px; }
.lab-card { background: var(--surface); border-radius: 22px; padding: 26px 28px 12px; box-shadow: var(--shadow); }
.lab-card h3 { font-size: 20px; margin-bottom: 14px; }
.lab-head, .lab-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 66px); column-gap: 14px; align-items: baseline; }
.lab-head { padding-bottom: 10px; font-size: 11.5px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.lab-head span, .lab-row .tiers > div { text-align: end; }
.lab-row { padding: 15px 0; border-top: 1px solid var(--line); }
.lab-row .nm { font-weight: 500; font-size: 15px; line-height: 1.4; }
.lab-row .tiers { display: contents; }
.lab-row .tiers > div { font-size: 15.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[dir="rtl"] .lab-head { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
@media (max-width: 900px) {
    .lab-cats { columns: 1; }
}
@media (max-width: 560px) {
    .lab-card { padding: 22px 18px 8px; }
    /* name on its own line, the three prices under the headings */
    .lab-head, .lab-row .tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; }
    .lab-head > span:first-child { display: none; }
    .lab-row { display: block; padding: 14px 0; }
    .lab-row .tiers { margin-top: 6px; }
    .lab-head span, .lab-row .tiers > div { text-align: start; }
}

/* footer */
footer { background: var(--bg-alt); padding: 44px 0 60px; font-size: 13px; color: var(--text-2); }
footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 26px; }
footer h4 { font-size: 13px; color: var(--text); margin: 0 0 10px; }
footer a { display: block; color: var(--text-2); padding: 3px 0; }
footer .legal { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.toast {
    position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 12px 20px;
    border-radius: 14px; font-size: 14.5px; font-weight: 600; opacity: 0; transition: .25s; pointer-events: none; z-index: 120;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.skeleton { background: linear-gradient(90deg, var(--tile), var(--bg-alt), var(--tile)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 20px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- skeleton loading (page-shaped placeholders + photo placeholders) ---------- */
.sk { display:block; background: linear-gradient(90deg, var(--tile), var(--bg-alt), var(--tile)); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: 12px; }
.sk-line { height: 14px; margin: 10px 0; } .sk-line.lg { height: 44px; width: 60%; border-radius: 14px; } .sk-line.md { height: 22px; width: 40%; } .sk-line.sm { width: 30%; }
.sk-card { background: var(--surface); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); } .sk-card .sk-pic { aspect-ratio: 1; border-radius: 16px; margin-bottom: 12px; }
.sk-row { display: grid; grid-template-columns: 44px 1fr 1fr 90px; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.sk-row .sk { height: 14px; } .sk-row .sk:first-child { height: 44px; border-radius: 10px; }
.sk-panel { background: var(--surface); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
[aria-busy=true] { cursor: progress; }
/* photos: shimmer until loaded, then fade in (shown anyway after 4 s) */
.card .pic img, .pdp .gallery img, .thumb img, .gal-stage > img, .cat-imgs .pic img { transition: opacity .35s; }
.card .pic img:not(.ok), .pdp .gallery img:not(.ok), .thumb img:not(.ok), .gal-stage > img:not(.ok), .cat-imgs .pic img:not(.ok) { opacity: 0; animation: imgshow 0s 4s forwards; }
@keyframes imgshow { to { opacity: 1; } }
.card .pic:has(> img:not(.ok)), .pdp .gallery:has(> img:not(.ok)), .thumb:has(> img:not(.ok)) { background: linear-gradient(90deg, var(--tile), var(--bg-alt), var(--tile)); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@media (prefers-reduced-motion: reduce) { .sk, .skeleton { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-tile { min-height: 540px; padding: 44px 34px 0; }
    .pdp { gap: 36px; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    section { padding: 64px 0; }
    .nav .wrap { gap: 14px; }
    .nav-links { display: none; }
    .wrap { padding-inline: 18px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-tile { min-height: 0; padding: 40px 26px 0; border-radius: 24px; }
    .hero-tile .art { width: 72%; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
    .card .name { font-size: 14.5px; }
    .steps, .facts { grid-template-columns: 1fr; }
    .facts { gap: 30px; }
    .pdp { grid-template-columns: 1fr; padding-top: 18px; }
    .pdp .gallery { position: relative; top: 0; border-radius: 24px; }
    footer .cols { grid-template-columns: 1fr 1fr; }
    .mobile-tabs { display: flex !important; }
    body { padding-bottom: 64px; }
}
.mobile-tabs {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55; background: var(--nav-bg); border-top: 1px solid var(--line);
    backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); padding-bottom: env(safe-area-inset-bottom);
}
.mobile-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: 11px; color: var(--text-2); text-decoration: none; }
.mobile-tabs a.on { color: var(--text); font-weight: 700; }
.mobile-tabs svg { width: 21px; height: 21px; }

/* =====================================================================
 * Forms, account, checkout, order + lab pages
 * ===================================================================== */
.page { padding-block: 54px 100px; }
.narrow { max-width: 560px; margin: 0 auto; }
.mid { max-width: 860px; margin: 0 auto; }
.form-card { background: var(--surface); border-radius: 26px; padding: 34px; box-shadow: var(--shadow); }
.f { display: block; margin-bottom: 18px; }
.f > span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.f > span em { font-style: normal; font-weight: 400; color: var(--text-2); }
.f input, .f select, .f textarea {
    width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
    font: inherit; font-size: 16px; padding: 12px 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.f textarea { min-height: 96px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 18%, transparent); }
.f small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-2); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.err { color: #c0392b; font-size: 14px; font-weight: 600; margin: 4px 0 14px; }
:root[data-theme="dark"] .err { color: #f0857a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #f0857a; } }
.ok-msg { color: var(--ok); font-size: 14px; font-weight: 600; }
/* review stars, statement summary */
.stars-pick { display: flex; gap: 4px; margin: 0 0 14px; direction: ltr; }
.stars-pick button { background: none; border: 0; padding: 2px; font-size: 30px; line-height: 1; color: var(--line); cursor: pointer; }
.stars-pick button.on { color: #e0a85a; }
html[dir=rtl] .stars-pick { justify-content: flex-end; }
.st-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 16px; }
.st-sum > div { background: var(--surface); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); }
.st-sum span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.st-sum b { font-size: 20px; font-variant-numeric: tabular-nums; }
.st-sum .due b { color: #c0392b; }
@media (max-width: 760px) { .st-sum { grid-template-columns: 1fr 1fr; } }
/* order page: payment / refund state */
.pay-banner { border-radius: 16px; padding: 14px 18px; margin: 0 0 18px; background: var(--bg-alt); border-inline-start: 4px solid var(--link); }
.pay-banner b { display: block; font-size: 16px; }
.pay-banner p { margin: 4px 0 0; color: var(--text-2); font-size: 14.5px; }
.pay-banner.ok { border-color: var(--ok); } .pay-banner.ok b { color: var(--ok); }
.pay-banner.bad { border-color: #c0392b; }
/* login notices + Account → Security */
.note-box { background: var(--bg-alt); border-radius: 14px; padding: 12px 16px; font-size: 14.5px; margin: 0 0 18px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:disabled { color: var(--text-2); cursor: default; text-decoration: none; }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.sec-grid .form-card h3 { font-size: 19px; margin: 0 0 16px; }
.sec-grid .btn-row { margin-top: 6px; }
.form-card.danger { box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, #c0392b 35%, transparent); }
.btn-danger { background: #c0392b; border-color: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; border-color: #a93226; }
@media (max-width: 760px) { .sec-grid { grid-template-columns: 1fr; } }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: var(--bg-alt); margin-bottom: 22px; }
.seg button { border: 0; background: transparent; border-radius: 12px; padding: 12px 8px; font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.choice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; cursor: pointer; background: var(--bg); }
.choice.on { border-color: var(--link); box-shadow: 0 0 0 1px var(--link) inset; }
.choice input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; }
.choice b { display: block; font-size: 15.5px; } .choice small { color: var(--text-2); font-size: 13.5px; }
.center-note { text-align: center; color: var(--text-2); font-size: 14.5px; margin-top: 18px; }

.co-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.summary { position: sticky; top: 80px; }
.sum-line { display: flex; justify-content: space-between; gap: 14px; font-size: 15px; padding: 5px 0; }
.sum-line.total { font-size: 21px; font-weight: 700; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }
.sum-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sum-item .pic { width: 52px; height: 52px; border-radius: 10px; background: var(--tile); display: grid; place-items: center; overflow: hidden; }
.sum-item .pic .art { width: 60%; color: var(--illus); }
.sum-item .pic { position: relative; overflow: hidden; } .sum-item .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo { display: flex; gap: 8px; margin: 16px 0 6px; }
.promo input { flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 14px; font: inherit; text-transform: uppercase; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 980px; background: var(--bg-alt); color: var(--text); }
.status.wait { color: var(--warn); } .status.ok { color: var(--ok); } .status.bad { color: #c0392b; } .status.info { color: var(--link); }
.timeline { display: flex; margin: 26px 0 8px; }
.timeline div { flex: 1; text-align: center; font-size: 12.5px; color: var(--text-2); position: relative; padding-top: 22px; }
.timeline div::before { content: ''; position: absolute; top: 4px; left: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translateX(-50%); background: var(--bg); border: 2px solid var(--line); z-index: 1; }
.timeline div::after { content: ''; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: var(--line); }
html[dir="rtl"] .timeline div::after { left: auto; right: -50%; }
.timeline div:first-child::after { display: none; }
.timeline div.done::before { background: var(--accent); border-color: var(--accent); } .timeline div.done::after { background: var(--accent); }
.timeline div.now { color: var(--text); font-weight: 700; }
.timeline div.now::before { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.panel { background: var(--surface); border-radius: 22px; padding: 26px 28px; box-shadow: var(--shadow); margin-bottom: 16px; }
.panel h3 { font-size: 18px; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 16px; align-items: center; font-size: 15px; }
.kv b { font-weight: 700; }
.drop { display: block; border: 1.5px dashed var(--line); border-radius: 18px; padding: 26px; text-align: center; cursor: pointer; color: var(--text-2); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--link); background: var(--bg-alt); }
.drop input { display: none; }
.drop b { color: var(--text); display: block; margin-bottom: 4px; }
.file-list { list-style: none; padding: 0; margin: 12px 0 0; font-size: 14px; }
.file-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.file-list button { border: 0; background: transparent; color: var(--text-2); }
.teeth { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; margin-top: 4px; }
.teeth button { aspect-ratio: 1; min-width: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 11.5px; font-weight: 600; color: var(--text-2); padding: 0; }
.teeth button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.teeth-gap { grid-column: 1 / -1; height: 6px; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
.list-row b { font-size: 15.5px; } .list-row small { display: block; color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 26px 0 24px; scrollbar-width: none; }
.tabs a { padding: 12px 14px; font-size: 15px; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none !important; }
.tabs a.on { color: var(--text); border-color: var(--text); font-weight: 600; }
.empty { text-align: center; color: var(--text-2); padding: 40px 0; }
@media (max-width: 760px) {
    .form-card { padding: 24px 20px; border-radius: 22px; }
    .f2 { grid-template-columns: 1fr; }
    .co-grid { grid-template-columns: 1fr; }
    .summary { position: static; }
    .teeth { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .panel { padding: 22px 20px; }
}

@media (max-width: 420px) { .brand small { display: none; } .nav-tools { gap: 0; } .icon-btn { width: 36px; } }

@media (max-width: 760px) { .co-grid .summary { order: -1; } }

/* favorites + 3D CAD stage + Rx options */
.fav-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); display: grid; place-items: center; flex: none; transition: color .15s, border-color .15s; }
.fav-btn svg { width: 17px; height: 17px; }
.fav-btn:hover, .fav-btn.on { color: #c2414b; border-color: color-mix(in srgb, #c2414b 40%, transparent); }
.card .pic .fav-btn { position: absolute; top: 10px; inset-inline-end: 10px; }
.buy .fav-btn { width: 50px; height: 50px; }
.cad-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: #0e0c0b; margin: 24px 0 14px; box-shadow: var(--shadow); }
.cad-stage canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.roles { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.roles button { border: 1px solid var(--line); background: transparent; border-radius: 980px; padding: 7px 14px; font-size: 13.5px; color: var(--text); display: inline-flex; gap: 7px; align-items: center; }
.roles button i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.roles button.on { border-color: var(--text); font-weight: 600; }
.teeth button[data-role="Abutment"] { background: #a8927f; border-color: #a8927f; color: #fff; }
.teeth button[data-role="Pontic"] { background: #72383d; border-color: #72383d; color: #fff; }
.teeth button[data-role="Veneer"] { background: #2f9e6b; border-color: #2f9e6b; color: #fff; }
.teeth button[data-role="Implant"] { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.opts-head { font-size: 15px; font-weight: 700; margin: 8px 0 12px; }
@media (max-width: 760px) { .cad-stage { aspect-ratio: 4 / 3; border-radius: 20px; } }

/* =====================================================================
 * Admin portal
 * ===================================================================== */
.adm { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; padding: 30px 0 90px; align-items: start; }
.adm-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px;
    /* taller than the screen (many sections): keep it in view and let it scroll by itself */
    max-height: calc(100vh - 176px);   /* 76px top bar + the page's 90px bottom space: it never has to move */ overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 12px; }
.adm-side a.on { scroll-margin: 60px; }
.adm-side a { padding: 10px 14px; border-radius: 12px; color: var(--text-2); font-size: 14.5px; text-decoration: none !important; display: flex; justify-content: space-between; gap: 8px; }
.adm-side a.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.adm-side a .n { font-size: 12px; background: var(--accent); color: var(--accent-ink); border-radius: 980px; padding: 1px 8px; font-weight: 700; }
.adm-side .who { padding: 0 14px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.adm-side .who b { display: block; color: var(--text); font-size: 15px; }
.adm h1 { font-size: 30px; }
.adm-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0 16px; }
.adm-bar .search { min-width: 220px; height: 44px; }
.adm-bar .select { height: 44px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.tbl-wrap { overflow-x: auto; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: start; font-size: 12px; color: var(--text-2); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--bg-alt); }
.tbl .thumb { width: 40px; height: 40px; border-radius: 9px; background: var(--tile); display: grid; place-items: center; overflow: hidden; }
.tbl .thumb { position: relative; overflow: hidden; } .tbl .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tbl .thumb .art { width: 70%; color: var(--illus); }
.tbl .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; color: var(--text-2); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--text-2); }
.sheet.wide { width: min(640px, 100%); }
.adm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adm-card { background: var(--surface); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.adm-card h3 { font-size: 17px; margin-bottom: 10px; }
.img-edit { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.img-edit .pic { width: 96px; height: 96px; border-radius: 16px; background: var(--tile); display: grid; place-items: center; overflow: hidden; flex: none; }
.img-edit .pic { position: relative; overflow: hidden; } .img-edit .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-edit .pic .art { width: 60%; color: var(--illus); }
.json-area { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; min-height: 220px !important; }
.cat-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cat-imgs .adm-card { text-align: center; padding: 16px; }
.cat-imgs .pic { width: 100%; aspect-ratio: 1; border-radius: 14px; background: var(--tile); display: grid; place-items: center; overflow: hidden; margin-bottom: 10px; }
.cat-imgs .pic img { width: 100%; height: 100%; object-fit: cover; }
.cat-imgs .pic .art { width: 55%; color: var(--illus); }
.adm-note { font-size: 13.5px; color: var(--text-2); margin: 6px 0 0; }
@media (max-width: 900px) {
    .adm { grid-template-columns: 1fr; gap: 14px; }
    .adm-side { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    .adm-side { display: none; }
    .adm-grid2 { grid-template-columns: 1fr; }
    .adm-pick { display: flex !important; }
}
.adm-pick { display: none; gap: 10px; align-items: center; padding: 6px 0 2px; }
.adm-pick select { flex: 1; min-height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; padding: 0 14px; }
.adm-pick a { font-size: 14px; white-space: nowrap; }
/* admin tables become stacked cards on phones (no sideways scrolling) */
@media (max-width: 760px) {
    .adm h1 { font-size: 26px; }
    .adm .tbl-wrap { background: none; box-shadow: none; overflow: visible; }
    .adm .tbl, .adm .tbl tbody { display: block; }
    .adm .tbl thead { display: none; }
    .adm .tbl tr { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 10px; }
    .adm .tbl td { display: block; padding: 0; border: 0 !important; font-size: 14.5px; }
    .adm .tbl td:empty { display: none; }
    .adm .tbl td:has(> .thumb) { order: -1; }
    .adm .tbl td[style*="text-align:end"], .adm .tbl td[style*="text-align: end"] { margin-inline-start: auto; }
    .adm .tbl td.empty { width: 100%; text-align: center; }
    .adm .adm-bar .search { min-width: 0; width: 100%; flex-basis: 100%; }
    .adm .adm-bar .select { flex: 1; }
    .adm .pager { flex-direction: column; gap: 10px; align-items: stretch; text-align: center; }
    .sheet.wide { width: 100%; }
    .sw-row { grid-template-columns: 38px 1fr 84px; }
    .w-form .btn { width: 100%; }
}

/* ---------- store filter sheet ---------- */
.f-btn { display: inline-flex; align-items: center; gap: 8px; }
.f-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 980px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.active-f { padding-top: 0; flex-wrap: wrap; overflow: visible; } .active-f .chip span { margin-inline-start: 4px; opacity: .7; }
.f-sec { padding: 18px 0; border-bottom: 1px solid var(--line); } .f-sec:first-child { padding-top: 4px; } .f-sec:last-child { border-bottom: 0; }
.f-sec h4 { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); margin: 0 0 10px; }
.f-opt { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-radius: 10px; cursor: pointer; color: var(--text); text-decoration: none !important; font-size: 15.5px; }
.f-opt:hover { background: var(--bg-alt); } .f-opt span { flex: 1; display: flex; align-items: center; gap: 8px; } .f-opt em { font-style: normal; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.f-opt input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
.f-opt .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } .dot.in { background: var(--ok); } .dot.low { background: var(--warn); } .dot.out { background: #c0392b; }
.f-search { width: 100%; min-height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 14px; font: inherit; font-size: 15px; margin-bottom: 8px; }
.f-brands { max-height: 340px; overflow-y: auto; } .f-more { margin-top: 8px; font-size: 14.5px; background: none; border: 0; padding: 4px; }

/* lab page: how a case moves (five stages, fully shown; v2-motion.js lights them while scrolling) */
.flow { padding: 6px 0 56px; }
.flow-steps { list-style: none; margin: 26px 0 0; padding: 0; position: relative; display: grid; gap: 22px; max-width: 760px; }
.flow-steps::before, .flow-steps::after { content: ""; position: absolute; inset-inline-start: 19px; top: 20px; bottom: 20px; width: 2px; border-radius: 2px; background: var(--line); }
.flow-steps::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--flow, 1)); transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.flow-step { display: flex; gap: 18px; align-items: flex-start; position: relative; z-index: 1; }
.flow-dot { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; transition: background .4s, color .4s, box-shadow .4s, transform .4s; }
.flow-step > div { padding-top: 8px; transition: opacity .4s; }
.flow-step b { display: block; font-size: 17px; color: var(--text); }
.flow-step .muted { display: block; font-size: 14px; margin-top: 2px; }

/* ==================== MOTION (with v2-motion.js — delete both to remove) ==================== */
@keyframes pgin { from { opacity: 0; } }
@keyframes rvup { from { opacity: 0; transform: translateY(18px); } }
@keyframes bump { 40% { transform: scale(1.35); } }
#app.pg-in { animation: pgin .26s ease-out backwards; }
/* lab timeline while scrolling: steps not reached yet are quiet; the line fills as you go */
.flow.flow-anim .flow-step:not(.lit) .flow-dot { background: var(--surface); color: var(--text-2); box-shadow: inset 0 0 0 2px var(--line); }
.flow.flow-anim .flow-step:not(.lit) > div { opacity: .45; }
.flow.flow-anim .flow-step.lit .flow-dot { transform: scale(1.06); }
/* big pictures open through a soft shape when they come into view (the picture itself stays still) */
/* (only transform + opacity: the graphics chip animates them, so it stays smooth on phones) */
@keyframes tilein { from { opacity: 0; transform: scale(.955); } }
@keyframes picin { from { transform: scale(1.12); } }
.shape-wait { opacity: 0; }
.shape-go { animation: tilein 1.1s cubic-bezier(.16, 1, .3, 1) backwards; }
.shape-go .art { animation: picin 1.1s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: inherit; }
/* main headlines: words rise in one after another (first view only) */
@keyframes wrise { from { opacity: 0; transform: translateY(.4em); } }
.w-rise { display: inline-block; animation: wrise .9s cubic-bezier(.16, 1, .3, 1) backwards; }
/* language switch: a soft cross-fade, pictures stay put (see switchLang in v2.js) */
::view-transition { pointer-events: none; }   /* clicks during the fade reach the page, not the snapshot */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
html.lang-swap .sheet:not(.on), html.lang-swap .scrim { transition: none !important; }
html.lang-swap img { transition: none !important; animation: none !important; opacity: 1 !important; }
html.lang-swap #app.pg-in, html.lang-swap .rv-go { animation: none; }
.rv { opacity: 0; }
.rv-go { animation: rvup .55s cubic-bezier(.2, .7, .2, 1) backwards; }
.bag-count.bump { animation: bump .4s ease; }
.btn:active, .icon-btn:active, .chip:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
    #app.pg-in, .rv-go, .bag-count.bump, .shape-go, .shape-go.has-bg::before, .shape-go > img, .shape-go .art, .w-rise { animation: none; }
    .shape-wait { opacity: 1; }
    .rv { opacity: 1; }
    .btn:active, .icon-btn:active, .chip:active { transform: none; }
}

/* ==================== GRILLZ + DESIGN SERVICE (v2-services.js) ==================== */
:root { --gz-bg: #0e0c0b; --gold: #d4ad55; }
.btn-gold { background: var(--gold); color: #1a1406; }
.btn-gold:hover { filter: brightness(1.08); }
.gz-pic { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; display: grid; place-items: center;
    background: radial-gradient(120% 90% at 50% 20%, #2a2420 0%, #0b0908 70%); }
.gz-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gz-art { width: 72%; height: auto; filter: drop-shadow(0 10px 24px rgba(212, 173, 85, .28)); }
/* home banner */
.gz-band { padding: 10px 0 0; }
.gz-promo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; background: var(--gz-bg); color: #f5efe6; border-radius: 30px;
    padding: 34px 40px; text-decoration: none !important; overflow: hidden; }
.gz-promo .eyebrow { color: var(--gold); }
.gz-promo .lede { color: #c9bfb3; margin: 10px 0 20px; }
.gz-promo .gz-pic { aspect-ratio: 16 / 10; }
/* page */
.gz { background: var(--gz-bg); color: #f5efe6; margin-bottom: -1px; }
.gz .eyebrow { color: var(--gold); }
.gz .lede, .gz p { color: #c9bfb3; }
.gz .btn-link { color: var(--gold); }
.gz-hero { padding: 70px 0 40px; }
.gz-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.gz-hero .gz-pic { aspect-ratio: 5 / 4; border-radius: 30px; }
.gz-body { padding-bottom: 80px; }
.gz-body > .title { margin: 64px 0 22px; color: #f5efe6; }
.gz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.gz-card { background: #171412; border: 1px solid #2a2420; border-radius: 24px; overflow: hidden; }
.gz-card .gz-pic { border-radius: 0; }
.gz-card-b { padding: 18px 20px 22px; }
.gz-card h3 { font-size: 19px; margin: 0 0 6px; color: #f5efe6; }
.gz-card p { font-size: 14.5px; margin: 0 0 12px; }
.gz-price { color: var(--gold); font-weight: 700; font-size: 15px; }
.gz-metals { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.gz-metal { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: #171412; border: 1px solid #2a2420; border-radius: 18px; padding: 16px 18px; }
.gz-metal b { color: #f5efe6; }
.gz-metal p { margin: 2px 0 0; font-size: 14px; }
.gz-dot { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .35); }
.gz-dot-0 { background: linear-gradient(135deg, #f4f4f4, #9a9a9a); }
.gz-dot-1 { background: linear-gradient(135deg, #fbe6a6, #c08d2c); }
.gz-dot-2 { background: linear-gradient(135deg, #fff1b8, #b88a1c); }
.gz-dot-3 { background: conic-gradient(from 30deg, #fff, #c9c9c9, #fff, #a8a8a8, #fff); }
.gz-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gz-gal figure { margin: 0; }
.gz-gal .gz-pic { aspect-ratio: 1; }
.gz-gal figcaption { font-size: 14px; color: #c9bfb3; margin-top: 8px; }
.gz-steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gz .step { background: #171412; border: 1px solid #2a2420; }
.gz .step h3 { color: #f5efe6; }
.gz .step .num { color: var(--gold); }
.gz-end { margin-top: 70px; }
.gz-end .title { color: #f5efe6; }
.gz .form-card { background: #171412; border: 1px solid #2a2420; box-shadow: none; color: #f5efe6; }
.gz .form-card input, .gz .form-card select, .gz .form-card textarea { background: #0e0c0b; color: #f5efe6; border-color: #3a322c; }
.gz .f > span, .gz .check { color: #c9bfb3; }
.gz .chip { background: transparent; color: #e8dfd3; border-color: #3a322c; }
.gz .chip.on { background: var(--gold); color: #1a1406; border-color: var(--gold); }
.gz details.faq { border-color: #2a2420; }
.gz details.faq summary { color: #f5efe6; }
.gz-done h3 { color: var(--gold); margin: 0 0 8px; }
/* design service */
.ds-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; padding: 64px 22px 30px; }
.ds-turn { margin-top: 22px; font-weight: 600; color: var(--ok); }
.ds-clock { background: var(--surface); border-radius: 26px; padding: 24px 26px; box-shadow: var(--shadow); }
.ds-clock-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin-bottom: 10px; }
.ds-zone { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ds-zone b { font-variant-numeric: tabular-nums; }
.ds-zone.us b, .ds-zone.us span { color: var(--link); }
.ds-zone small { color: var(--text-2); font-weight: 400; }
.ds-clock-f { font-size: 14px; color: var(--text-2); margin-top: 14px; line-height: 1.5; }
.ds > .wrap > .title, .ds .ds-prices, .ds .ds-end { margin-top: 64px; }
.ds > .wrap > .title { margin-bottom: 20px; }
.ds-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ds-perk { background: var(--surface); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.ds-perk h3 { font-size: 18px; margin: 0 0 6px; }
.ds-perk p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.ds-tbl td { vertical-align: top; }
.ds-tbl .muted { font-size: 12.5px; }
.ds-usd { text-align: end; font-weight: 700; font-size: 17px; white-space: nowrap; }
.ds-trial { background: var(--accent); color: var(--accent-ink); border-radius: 24px; padding: 26px; }
.ds-trial h3 { margin: 0 0 6px; color: inherit; }
.ds-trial p { margin: 0 0 16px; opacity: .9; }
.ds-trial .btn-primary { background: var(--accent-ink); color: var(--accent); }
.ds-end { padding-bottom: 80px; }
@media (max-width: 860px) {
    .gz-hero-grid, .ds-hero, .gz-promo { grid-template-columns: 1fr; }
    .gz-promo { padding: 26px 22px; }
    .gz-hero { padding-top: 40px; }
    .ds-hero { padding-top: 40px; }
    .gz-metals { grid-template-columns: 1fr; }
    .gz-metal { grid-template-columns: auto 1fr; }
    .gz-metal .gz-price { grid-column: 2; }
}
.gz-end > *, .ds-end > *, .ds-prices > *, .gz-hero-grid > *, .ds-hero > * { min-width: 0; }
.gz-teeth { flex-wrap: wrap; overflow: visible; }
.ds .steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gz-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.gz-metals { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 860px) { .gz-metals { grid-template-columns: 1fr; } }
.ds-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.ds-offer { border: 1.5px dashed var(--link); border-radius: 18px; padding: 16px 18px; }
.ds-offer-tag { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--link); margin-bottom: 4px; }
.ds-offer b { display: block; font-size: 17px; }
.ds-offer p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); }

/* ==================== ADMIN OVERVIEW (v2-admin-dashboard.js) ==================== */
.dash-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.dash-head h1 { margin: 0; }
.dash-head .btn { margin-inline-start: auto; }
.dash-h { margin: 26px 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.dash-h small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.dash-todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.dash-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; border: 1.5px solid transparent; }
.dash-tile b { font-size: 26px; line-height: 1.1; color: var(--text-2); }
.dash-tile.hot { border-color: var(--accent); }
.dash-tile.hot b { color: var(--text); }
.dash-tile span { font-weight: 600; font-size: 14.5px; }
.dash-tile small { color: var(--text-2); font-size: 12.5px; }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.dash-kpi { background: var(--surface); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.dash-kpi span { color: var(--text-2); font-size: 13.5px; }
.dash-kpi b { font-size: 24px; font-variant-numeric: tabular-nums; }
.dash-kpi small { color: var(--text-2); font-size: 12.5px; }
.dash-chg { font-weight: 700; color: var(--text-2); }
.dash-chg.up { color: var(--ok); }
.dash-chg.down { color: var(--warn); }
.dash-chart-card { margin-top: 14px; }
.dash-chart-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dash-chart-top h3 { margin: 0; }
.dash-chart { position: relative; margin-top: 14px; }
.dash-ymax { font-size: 12px; color: var(--text-2); border-bottom: 1px dashed var(--line); padding-bottom: 2px; }
.dash-bars { display: flex; align-items: flex-end; height: 170px; gap: 2px; border-bottom: 1px solid var(--line); }
.dash-col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; outline: none; border-radius: 4px 4px 0 0; }
.dash-col i { display: block; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 0; }
.dash-col.on, .dash-col:focus-visible { background: var(--bg-alt); }
.dash-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-top: 6px; }
.dash-tip { position: absolute; top: 18px; display: flex; flex-direction: column; gap: 1px; background: var(--surface); box-shadow: var(--shadow); border-radius: 12px; padding: 8px 12px; font-size: 13px; pointer-events: none; white-space: nowrap; z-index: 2; }
.dash-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.dash-two > * { min-width: 0; }
.dash-two .adm-card { margin: 0; }
.dash-mini { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-mini > div { flex: 1; min-width: 90px; background: var(--bg-alt); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.dash-mini b { font-size: 21px; }
.dash-mini span { font-size: 12.5px; color: var(--text-2); }
.dash-stages { margin-top: 12px; }
.dash-stages > div, .dash-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dash-share { display: grid; grid-template-columns: 130px 1fr 44px; gap: 10px; align-items: center; font-size: 14px; padding: 3px 0; }
.dash-share i { display: block; height: 8px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.dash-share em { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.dash-share b { text-align: end; }
@media (max-width: 760px) { .dash-two { grid-template-columns: 1fr; } .dash-share { grid-template-columns: 110px 1fr 40px; } }
.dash-chart-top .btn-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--link); font-weight: 600; }
