/* =========================================================
   Hem Lifestyle — storefront
   Black theme: brass-gold and warm ivory on a black ground. Flat colours only.
   Cormorant Garamond carries the headlines, Manrope does the work.
   ========================================================= */
:root {
    color-scheme: dark;
    --white: #000000;       /* page background (black theme) */
    --ink: #ece8df;         /* main text: warm ivory */
    --noir: #0b0b0b;        /* header, footer, raised dark sections */
    --muted: #8f8a81;
    --rule: #242424;
    --stone: #121212;       /* cards, image wells, panels */
    --sale: #e5675e;
    --gold: #f5cd58;        /* Hem gold: light, bright (secondary colour) */
    --gold-dark: #f8d97c;   /* gold for small text on black */
    --accent: var(--gold);
    --accent-soft: #261d04;
    --ok: #4cb983;
    --wrap: 1440px;
    --gut: clamp(16px, 3vw, 40px);
    --font: "Manrope", Arial, Helvetica, sans-serif;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    background: var(--white);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* The brand voice: Cormorant Garamond headlines */
.display, h1, h2 {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.08;
}
h1 { font-size: clamp(36px, 5.4vw, 66px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 17px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Announcement + header ---------- */
.announce {
    background: var(--noir); color: var(--ink); text-align: center;
    font-size: 13px; padding: 8px var(--gut);
}
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; gap: 24px; height: 58px; }
.logo {
    font-size: 30px; font-weight: 900; 
    letter-spacing: -0.02em; line-height: 1;
}
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { font-size: 14px; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 40px; height: 40px; padding: 0 8px; border: 0; background: none; cursor: pointer; position: relative;
    font-size: 14px; font-weight: 600;
}
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
    position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--ink); color: #000; border-radius: 9px; font-size: 11px; line-height: 18px; text-align: center;
}
.menu-toggle { display: none; }
.search-bar { display: none; border-top: 1px solid var(--rule); padding: 12px 0; }
.search-bar.open { display: block; }
.search-bar form { display: flex; gap: 8px; }
.search-bar input { flex: 1; }

/* ---------- Buttons & forms ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 50px; padding: 0 28px; border: 1.5px solid var(--ink); border-radius: 2px;
    background: var(--ink); color: #000; font-weight: 700; font-size: 15px; cursor: pointer;
    transition: background .15s, color .15s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #000; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #000; }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .35; cursor: not-allowed; pointer-events: none; }
.link-btn { background: none; border: 0; text-decoration: underline; cursor: pointer; font-size: 13px; color: var(--muted); }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input, .field input, .field select, .field textarea, .search-bar input {
    width: 100%; height: 48px; padding: 0 14px; border: 1px solid #333; border-radius: 2px; background: #0f0f0f;
}
.field textarea { height: auto; min-height: 90px; padding: 12px 14px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field .err { color: var(--sale); font-size: 13px; margin-top: 4px; display: block; font-weight: 400; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }

.alert { padding: 12px 16px; margin: 16px 0; border-left: 3px solid var(--ink); background: var(--stone); font-size: 14px; }
.alert-error { border-color: var(--sale); color: #f2a7a0; background: #1f0d0c; }
.alert-success { border-color: var(--ok); color: #9bdcb9; background: #0b1a12; }

/* ---------- Banner (same proportions as the launch page) ---------- */
.banner { width: 100%; max-width: 1920px; margin: 0 auto; aspect-ratio: 1920 / 700; background: var(--stone); overflow: hidden; position: relative; }
.banner-track { display: flex; height: 100%; transition: transform .6s ease; }
.banner-slide { flex: 0 0 100%; height: 100%; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.banner-dots button { width: 28px; height: 3px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; }
.banner-dots button.on { background: #fff; }
@media (max-width: 640px) { .banner.has-mobile { aspect-ratio: 4 / 5; } }

/* Statement below the banner, centred like the launch page */
.statement { text-align: center; padding: clamp(48px, 7vw, 90px) var(--gut); }
.statement h1 { margin-bottom: 14px; }
.statement p { color: var(--muted); max-width: 52ch; margin: 0 auto 26px; }

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head a { font-size: 14px; font-weight: 600; border-bottom: 1.5px solid var(--ink); }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-tile { position: relative; background: var(--stone); aspect-ratio: 4 / 5; overflow: hidden; display: flex; align-items: end; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-tile span {
    position: relative; width: 100%; padding: 16px; font-weight: 800; font-size: 18px;
     line-height: 1.1;
}
.cat-tile.has-img span { color: #fff; background: rgba(0,0,0,.42); }

/* ---------- Product grid ---------- */
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 16px; }
.p-card { display: block; }
.p-card .ph { position: relative; aspect-ratio: 1 / 1; background: var(--stone); overflow: hidden; margin-bottom: 12px; }
.p-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.p-card .ph .alt { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.p-card:hover .ph .alt { opacity: 1; }
.p-card .tag {
    position: absolute; top: 10px; left: 10px; background: #fff; padding: 3px 8px; font-size: 12px; font-weight: 700;
}
.p-card .tag.sold { background: var(--ink); color: #000; }
.p-card h3 { font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.p-card .cols { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-weight: 700; }
.price s { color: var(--muted); font-weight: 400; font-size: .9em; }
.price .off { color: var(--sale); font-size: .85em; }

/* ---------- Category / listing ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs a:hover { color: var(--ink); }
.list-head { padding: 22px 0 26px; }
.list-head p { color: var(--muted); max-width: 70ch; margin-top: 10px; }
.listing { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-bottom: 72px; }
.filters h3 { font-size: 14px; margin: 0 0 12px; }
.filter-group { border-top: 1px solid var(--rule); padding: 18px 0; }
.filter-group:first-child { border-top: 0; padding-top: 0; }
.chk { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 4px 0; cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--ink); }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); flex: none; }
.size-filter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.size-filter label { position: relative; }
.size-filter input { position: absolute; opacity: 0; }
.size-filter span { display: block; text-align: center; border: 1px solid #333; padding: 8px 0; font-size: 13px; cursor: pointer; }
.size-filter input:checked + span { background: var(--ink); color: #000; border-color: var(--ink); }
.size-filter input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.price-row { display: flex; gap: 8px; }
.price-row input { height: 40px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 14px; }
.toolbar select { height: 40px; width: auto; padding: 0 10px; border: 1px solid #333; background: #0f0f0f; }
.filter-toggle { display: none; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 44px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); font-size: 14px; }
.pager .on { background: var(--ink); color: #000; border-color: var(--ink); }
.empty { text-align: center; padding: 70px 20px; }
.empty p { color: var(--muted); margin: 10px 0 24px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding: 24px 0 64px; }
.gallery { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-self: start; position: sticky; top: 78px; }
.thumbs { display: flex; flex-direction: column; gap: 8px; }
.thumbs button { border: 1px solid transparent; background: var(--stone); padding: 0; cursor: pointer; aspect-ratio: 5 / 7; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.main-img { background: var(--stone); aspect-ratio: 5 / 7; overflow: hidden; }
.main-img img { width: 100%; height: 100%; object-fit: cover; }
.buy h1 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 12px; }
.buy .price { font-size: 22px; margin-bottom: 4px; }
.buy .tax { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.opt { margin-bottom: 24px; }
.opt-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.opt-head b { font-weight: 700; }
.color-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.color-opts label { position: relative; cursor: pointer; }
.color-opts input { position: absolute; opacity: 0; }
.color-opts .swatch { width: 38px; height: 38px; display: block; box-shadow: 0 0 0 3px #000; }
.color-opts input:checked + .swatch { box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--ink); }
.color-opts input:focus-visible + .swatch { outline: 2px dashed var(--ink); outline-offset: 5px; }

/* Size boxes: the shoebox grid */
.size-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.size-opts label { position: relative; }
.size-opts input { position: absolute; opacity: 0; }
.size-opts span {
    display: flex; align-items: center; justify-content: center; height: 52px;
    border: 1px solid #333; font-weight: 600; font-size: 14px; cursor: pointer; background: var(--stone);
}
.size-opts span:hover { border-color: var(--ink); }
.size-opts input:checked + span { background: var(--ink); color: #000; border-color: var(--ink); }
.size-opts input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.size-opts input:disabled + span { color: #555; cursor: not-allowed; background: #0b0b0b; text-decoration: line-through; }
.stock-note { font-size: 13px; margin-top: 10px; min-height: 20px; color: var(--sale); }
.qty { display: inline-flex; border: 1px solid #333; height: 50px; }
.qty button { width: 42px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.qty input { width: 44px; border: 0; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 10px; margin-bottom: 12px; }
.buy-row .btn { flex: 1; }
.perks { border-top: 1px solid var(--rule); margin-top: 26px; padding-top: 18px; display: grid; gap: 8px; font-size: 14px; }
.perks div { display: flex; gap: 10px; align-items: center; }
.perks svg { width: 18px; height: 18px; flex: none; }
.desc { border-top: 1px solid var(--rule); margin-top: 22px; }
.desc details { border-bottom: 1px solid var(--rule); }
.desc summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.desc summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; }
.desc details[open] summary::after { content: "−"; }
.desc .body { padding-bottom: 18px; font-size: 14px; }
.desc .body ul { padding-left: 18px; margin-top: 8px; }
.desc .body p + p { margin-top: 10px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.size-table th, .size-table td { border: 1px solid var(--rule); padding: 6px; text-align: center; }

/* ---------- Cart & checkout ---------- */
.page-title { padding: 32px 0 24px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); padding-bottom: 72px; align-items: start; }
.line { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 20px 0; border-top: 1px solid var(--rule); }
.line:last-child { border-bottom: 1px solid var(--rule); }
.line .ph { background: var(--stone); aspect-ratio: 1; }
.line .ph img { width: 100%; height: 100%; object-fit: cover; }
.line h3 { font-size: 15px; margin-bottom: 4px; }
.line .meta { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.line .acts { display: flex; align-items: center; gap: 14px; }
.line .qty { height: 40px; }
.line .qty button { width: 34px; }
.line .amt { text-align: right; font-weight: 700; }
.summary { background: var(--stone); padding: 24px; position: sticky; top: 88px; }
.summary h2 { font-size: 22px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; }
.sum-row.total { border-top: 1px solid #2e2e2e; margin-top: 10px; padding-top: 14px; font-size: 18px; font-weight: 800; }
.sum-row .neg { color: var(--ok); }
.coupon-form { display: flex; gap: 8px; margin: 16px 0 8px; }
.coupon-form input { flex: 1; height: 44px; text-transform: uppercase; }
.coupon-form .btn { height: 44px; padding: 0 18px; }
.coupon-on { display: flex; justify-content: space-between; align-items: center; background: #1a1a1a; padding: 10px 12px; font-size: 14px; margin: 16px 0 8px; }
.offers { margin-top: 10px; font-size: 13px; }
.offers button { display: block; width: 100%; text-align: left; background: #141414; border: 1px dashed #3a3a3a; padding: 8px 10px; margin-top: 6px; cursor: pointer; }
.offers b { font-weight: 800; letter-spacing: .02em; }
.ship-hint { font-size: 13px; margin: 6px 0 12px; }
.ship-meter { height: 4px; background: #2a2a2a; margin-top: 6px; }
.ship-meter i { display: block; height: 100%; background: var(--gold); }

.co-block { border-top: 1px solid var(--rule); padding: 24px 0; }
.co-block:first-child { border-top: 0; padding-top: 0; }
.co-block h2 { font-size: 20px; margin-bottom: 18px; }
.pay-opt { display: block; border: 1px solid #333; padding: 16px 18px; margin-bottom: 10px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-opt .top { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.pay-opt input { width: 18px; height: 18px; accent-color: var(--ink); }
.pay-opt .note { font-size: 13px; color: var(--muted); margin: 4px 0 0 30px; }
.pay-opt .badge { margin-left: auto; font-size: 12px; background: var(--ink); color: #000; padding: 2px 8px; }
.pay-opt.off { opacity: .45; cursor: not-allowed; }
.mini { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; font-size: 13px; margin-bottom: 12px; align-items: center; }
.mini .ph { background: var(--stone); aspect-ratio: 1; position: relative; }
.mini .ph img { width: 100%; height: 100%; object-fit: cover; }
.mini .ph i { position: absolute; top: -6px; right: -6px; background: var(--ink); color: #000; font-style: normal; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; text-align: center; line-height: 18px; }

/* ---------- Order pages ---------- */
.done { max-width: 720px; margin: 0 auto; padding: 56px 0 72px; }
.done .check { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: #000; display: grid; place-items: center; margin-bottom: 20px; }
.done h1 { margin-bottom: 10px; }
.box { border: 1px solid var(--rule); padding: 20px; margin-top: 24px; }
.box h3 { margin-bottom: 10px; }
.steps { display: flex; margin: 26px 0 8px; }
.steps div { flex: 1; text-align: center; font-size: 12px; color: var(--muted); position: relative; padding-top: 22px; }
.steps div::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--rule); }
.steps div::after { content: ""; position: absolute; top: 1px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: #333; }
.steps div.on { color: var(--ink); font-weight: 700; }
.steps div.on::before, .steps div.on::after { background: var(--gold); }
.status-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; background: var(--stone); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--rule); }
.table th { font-size: 13px; color: var(--muted); font-weight: 600; }
.auth { max-width: 440px; margin: 0 auto; padding: 56px 0 80px; }
.auth h1 { font-size: 34px; margin-bottom: 8px; }
.auth > p { color: var(--muted); margin-bottom: 26px; }
.prose { max-width: 72ch; padding-bottom: 72px; }
.prose p, .prose ul, .prose ol { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose h2, .prose h3 { margin: 26px 0 10px; }
.acc-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding-bottom: 72px; }
.acc-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 14px; }

/* ---------- Launch countdown (from the reference page) ---------- */
.coming-soon { min-height: 450px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 60px 20px; }
.coming-soon h1 { font-size: clamp(32px, 7vw, 64px); margin-bottom: 35px; }
.countdown { display: flex; justify-content: center; align-items: center; gap: 15px; }
.time-box { min-width: 90px; }
.time-box .number { display: block; font-size: clamp(32px, 7vw, 52px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.time-box .label { display: block; margin-top: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }
.separator { font-size: 40px; font-weight: 700; color: #444; margin-bottom: 20px; }
.notify { display: flex; gap: 8px; max-width: 420px; width: 100%; margin-top: 40px; }
.notify input { flex: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--noir); color: #cfcfcf; padding: 56px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; display: inline-block; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer li { list-style: none; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.foot-sub { display: flex; gap: 6px; margin-top: 10px; }
.foot-sub input { flex: 1; height: 42px; border: 1px solid #444; background: transparent; color: #fff; padding: 0 12px; }
.foot-sub .btn { height: 42px; background: #fff; color: #000; border-color: #fff; padding: 0 16px; }
.foot-base { border-top: 1px solid #2c2c2c; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8d8d8d; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .p-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--noir); flex-direction: column; gap: 0; padding: 8px var(--gut) 16px; border-bottom: 1px solid var(--rule); }
    .nav.open { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
    .menu-toggle { display: inline-flex; }
    .listing { grid-template-columns: 1fr; }
    .filters { display: none; }
    .filters.open { display: block; }
    .filter-toggle { display: inline-flex; }
    .pdp, .two-col, .acc-grid { grid-template-columns: 1fr; }
    .gallery { position: static; grid-template-columns: 1fr; }
    .thumbs { flex-direction: row; order: 2; overflow-x: auto; }
    .thumbs button { width: 64px; flex: none; }
    .summary { position: static; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .p-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .line { grid-template-columns: 80px 1fr; }
    .line .amt { grid-column: 2; text-align: left; }
    .header-row { gap: 10px; }
    .logo { font-size: 24px; }
    .acct-label { display: none; }
    .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
    .coming-soon { min-height: 350px; padding: 40px 15px; }
    .countdown { gap: 7px; }
    .time-box { min-width: 62px; }
    .separator { font-size: 28px; margin-bottom: 18px; }
    .time-box .label { font-size: 9px; letter-spacing: 1px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* =========================================================
   Update: secondary colour, product page, more photos,
   footer social, checkout
   ========================================================= */
.p-card .tag { background: var(--accent); color: var(--ink); }
.p-card .tag.sold { background: var(--ink); color: #000; }

/* Product page: name + category above the photos */
.pdp-head { padding: 22px 0 0; }
.pdp-cat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pdp-cat:hover { color: var(--ink); }
.pdp-head h1 { font-size: clamp(26px, 3.4vw, 40px); }
.pdp { padding-top: 18px; }

/* Colour picker: first photo of each colour in a sliding row */
.cbox-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; scrollbar-width: thin; }
.cbox { flex: 0 0 auto; width: 82px; cursor: pointer; scroll-snap-align: start; position: relative; text-align: center; }
.cbox input { position: absolute; opacity: 0; pointer-events: none; }
.cbox-img { display: block; aspect-ratio: 5 / 7; background: var(--stone); border: 1.5px solid var(--rule); overflow: hidden; transition: border-color .15s; }
.cbox-img img { width: 100%; height: 100%; object-fit: cover; }
.cbox-img .swatch-fill { display: block; width: 100%; height: 100%; }
.cbox-name { display: block; font-size: 12px; font-weight: 600; margin-top: 6px; line-height: 1.2; }
.cbox:hover .cbox-img { border-color: #9a9a9a; }
.cbox input:checked + .cbox-img { border: 2px solid var(--ink); box-shadow: inset 0 -4px 0 var(--accent); }
.cbox input:checked ~ .cbox-name { font-weight: 800; }
.cbox input:focus-visible + .cbox-img { outline: 2px solid var(--ink); outline-offset: 2px; }

/* More photos below the description */
.more-photos { padding: 8px 0 56px; }
.more-photos h2 { margin-bottom: 22px; }
.mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
.mp-item img { width: 100%; height: auto; background: var(--stone); }
.mp-item p { font-size: 14px; color: #a9a49a; margin-top: 10px; line-height: 1.5; }
@media (max-width: 900px) { .mp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mp-grid { grid-template-columns: 1fr; } }

/* Footer social icons */
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border: 1px solid #3a3a3a; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: background .15s, color .15s, border-color .15s; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.social svg { width: 18px; height: 18px; }

/* ---------- Checkout ---------- */
.ck-page { background: var(--white); padding: 8px 0 72px; }
.ck-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 0 22px; }
.ck-top h1 { font-size: clamp(26px, 3.4vw, 38px); }
.ck-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #bdb8ae; }
.ck-steps { display: flex; gap: 8px; list-style: none; font-size: 13px; font-weight: 700; flex-wrap: wrap; }
.ck-steps li { display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--stone); border: 1px solid var(--rule); color: var(--muted); }
.ck-steps li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--stone); color: var(--ink); }
.ck-steps li.on { color: var(--ink); border-color: var(--ink); }
.ck-steps li.on i, .ck-steps li.done i { background: var(--accent); }
.ck-steps li.done { color: var(--ink); }
.ck-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.ck-card { background: var(--stone); border: 1px solid var(--rule); border-radius: 14px; padding: 24px; margin-bottom: 16px; }
.ck-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ck-card-head .num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 800; display: grid; place-items: center; font-size: 14px; flex: none; }
.ck-card-head h2 { font-size: 19px; font-family: var(--serif); font-size: 24px; }
.ck-card-head .side { margin-left: auto; font-size: 13px; color: var(--muted); }
.ck-card-head .side a { text-decoration: underline; color: var(--ink); }
.ck-card .field input, .ck-card .field select, .ck-card .field textarea { border-radius: 10px; border-color: #333; background: #0f0f0f; height: 50px; }
.ck-card .field textarea { height: auto; }
.ck-card .field input:focus, .ck-card .field select:focus, .ck-card .field textarea:focus { border-color: var(--gold); background: #0f0f0f; box-shadow: 0 0 0 3px var(--accent-soft); }
.ck-pay { display: grid; gap: 10px; }
.ck-opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 12px; align-items: center; border: 1.5px solid #333; border-radius: 12px; padding: 16px 18px; cursor: pointer; background: var(--stone); transition: border-color .15s, background .15s; }
.ck-opt input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.ck-opt .t { font-weight: 800; font-size: 15px; }
.ck-opt .d { grid-column: 2 / 4; font-size: 13px; color: var(--muted); }
.ck-opt .tag { background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ck-opt .icons { display: flex; gap: 6px; margin-top: 4px; grid-column: 2 / 4; flex-wrap: wrap; }
.ck-opt .icons span { font-size: 11px; font-weight: 700; border: 1px solid var(--rule); border-radius: 6px; padding: 2px 7px; color: #bdb8ae; background: transparent; }
.ck-opt:has(input:checked) { border-color: var(--ink); background: var(--accent-soft); }
.ck-opt.off { opacity: .45; cursor: not-allowed; }
.ck-cta { width: 100%; height: 58px; border: 0; border-radius: 12px; background: var(--accent); color: var(--ink); font-size: 17px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 2px 0 var(--gold-dark); transition: transform .1s, filter .15s; }
.ck-cta:hover { filter: brightness(.97); }
.ck-cta:active { transform: translateY(1px); }
.ck-cta[disabled] { opacity: .4; cursor: not-allowed; }
.ck-legal { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
.ck-legal a { text-decoration: underline; color: var(--ink); }
.ck-trust { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; font-weight: 600; color: #a9a49a; }
.ck-trust span { display: inline-flex; align-items: center; gap: 5px; }

.ck-sum { background: var(--stone); border: 1px solid var(--rule); color: var(--ink); border-radius: 14px; padding: 24px; position: sticky; top: 78px; }
.ck-sum h2 { font-size: 20px; margin-bottom: 18px; font-family: var(--serif); font-size: 24px; }
.ck-sum .mini .ph { background: #262626; border-radius: 8px; overflow: visible; }
.ck-sum .mini .ph img { border-radius: 8px; }
.ck-sum .mini .ph i { background: var(--accent); color: var(--ink); font-weight: 800; }
.ck-sum .muted { color: #9d9d9d; }
.ck-sum .sum-row { color: #dcdcdc; }
.ck-sum .sum-row .neg { color: var(--accent); }
.ck-sum .sum-row.total { border-top: 1px solid #333; color: #fff; font-size: 20px; }
.ck-sum .sum-row.total > span:last-child { color: var(--accent); }
.ck-sum .coupon-form input { border-radius: 10px; border: 0; height: 46px; }
.ck-sum .coupon-form .btn { background: var(--accent); color: var(--ink); border-color: var(--accent); border-radius: 10px; height: 46px; }
.ck-sum .coupon-on { border-radius: 10px; color: var(--ink); }
.ck-sum .offers .muted { color: #9d9d9d; }
.ck-sum .offers button { border-radius: 8px; color: var(--ink); }
.ck-sum .ck-items { max-height: 320px; overflow-y: auto; margin-bottom: 6px; padding-top: 6px; }
@media (max-width: 960px) {
  .ck-grid { grid-template-columns: 1fr; }
  .ck-sum { position: static; order: -1; }
}
@media (max-width: 600px) {
  .ck-card, .ck-sum { padding: 18px; border-radius: 12px; }
  .ck-steps { display: none; }
}


/* =========================================================
   Hem Lifestyle theme layer
   ========================================================= */
.announce { background: var(--gold); color: var(--noir); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; padding: 7px var(--gut); }
.site-header { background: rgba(0,0,0,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid #1c1c1c; }
.header-row { height: 72px; }
.site-header .logo { color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 30px; letter-spacing: .06em; }
.nav a { color: #e9e6df; font-weight: 600; font-size: 13.5px; letter-spacing: .02em; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-color: var(--gold); }
.icon-btn { color: #fff; }
.icon-btn:hover { color: var(--gold); }
.cart-count { background: var(--gold); color: var(--noir); font-weight: 700; }
.search-bar { border-top: 1px solid #262626; background: var(--noir); }
.search-bar .btn { background: var(--gold); border-color: var(--gold); color: var(--noir); }
@media (max-width: 900px) {
  .nav { background: var(--noir); border-bottom: 1px solid #262626; }
  .nav a { border-bottom-color: #222; }
}

/* Buttons: black by default, brass gold on hover */
.btn { border-radius: 0; letter-spacing: .02em; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--noir); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #000; border-color: var(--ink); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--noir); }
.btn-gold:hover { background: #fff; border-color: #fff; color: var(--noir); }
.btn-light { background: transparent; border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--noir); border-color: #fff; }

.section-head h2 { font-size: clamp(30px, 3.4vw, 44px); }
.section-head a { border-color: var(--gold); }
.cat-tile span { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: .01em; }
.cat-tile.has-img span { background: rgba(0,0,0,.42); }
.p-card h3 { font-weight: 600; }
.p-card .tag { background: var(--gold); color: var(--noir); }
.price .off { color: var(--gold-dark); }
.page-title { font-size: clamp(32px, 4vw, 52px); }
:focus-visible { outline-color: var(--gold-dark); }

/* =========================================================
   Black theme — finishing touches
   ========================================================= */
html { background: var(--white); }
::selection { background: var(--gold); color: #000; }
input::placeholder, textarea::placeholder { color: #6b675f; }
select option { background: #111; color: var(--ink); }
.btn { background: var(--ink); border-color: var(--ink); color: #000; }
.chk input, .pay-opt input, .ck-opt input { accent-color: var(--gold); }
.thumbs button.on { border-color: var(--gold); }
.cbox input:checked + .cbox-img { border-color: var(--gold); }
.cbox:hover .cbox-img { border-color: #555; }
.pay-opt:has(input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.ck-opt:has(input:checked), .ck-steps li.on { border-color: var(--gold); }
.status-pill { background: #1c1c1c; color: var(--ink); }
.p-card .ph { background: var(--stone); }
.p-card:hover h3 { color: var(--gold); }
.p-card h3 { transition: color .15s; }
.price s { color: #6b675f; }

/* Top announcement bar removed */
.announce { display: none !important; }
