/* babies — white, minimal storefront */
:root {
  color-scheme: only light;  /* opt out of browsers' automatic dark mode */
  --bg: #ffffff;
  --surface: #f5f3f0;      /* soft card background, like the reference grey tiles */
  --surface-2: #faf9f7;
  --line: #e7e3de;
  --ink: #141414;
  --muted: #77716b;
  --warm: #cdb59b;         /* promo band */
  --accent: #c9a98a;
  --ok: #2f7a4f;
  --bad: #b3412f;
  /* Overridden from Admin → Site content & settings (see base.html) */
  --text-soft: #4a4540;
  --hero-card: #ebe5dd;
  --header-bg: #ffffff;
  --footer-bg: #ffffff;
  --footer-text: #141414;
  --newsletter-bg: #f5f3f0;
  --btn-bg: #141414;
  --btn-text: #ffffff;
  --promo-text: #ffffff;
  --tag-bg: #ffffff;
  --toast-bg: #141414;
  --star: #c58a2b;
  --low: #9a5b00;
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, .logo, .big-rating { font-family: var(--font-heading); }
html {
  color-scheme: only light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.grow { flex: 1; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 820px; }
.section { padding-top: 72px; padding-bottom: 24px; }
.section-tight { padding-top: 8px; padding-bottom: 80px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--header-bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
}
.header-inner { display: flex; align-items: center; height: 72px; gap: 32px; }
.logo { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.logo-lg { font-size: 40px; }
.main-nav { display: flex; gap: 40px; margin-left: auto; }
.main-nav a {
  font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500;
  position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--ink); transform: scaleX(0); transition: transform .25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-icons { display: flex; align-items: center; gap: 6px; margin-left: 24px; }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 36px; height: 36px;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg, .quick-bag svg, .socials svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.bag-count {
  position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 600;
  display: grid; place-items: center;
}
.menu-btn { display: none; }
.search-bar { display: none; border-top: 1px solid var(--line); padding: 14px 0; }
.search-open .search-bar { display: block; }
.search-bar input {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0; outline: none;
  font-size: 18px; background: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px; border-radius: 4px; border: 1px solid var(--ink);
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em;
  cursor: pointer; transition: background .2s, color .2s, transform .2s; background: transparent;
}
.btn-dark { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.btn-dark:hover { background: color-mix(in srgb, var(--btn-bg) 82%, var(--btn-text)); }
.btn-outline:hover { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.btn-light { border-color: var(--promo-text); color: var(--promo-text); }
.btn-light:hover { background: var(--promo-text); color: var(--warm); }
.btn-block { width: 100%; }
.btn-lg { height: 54px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn-row.end { justify-content: flex-end; }
.btn-row.center { justify-content: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 560px; gap: 40px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 7vw, 92px); font-weight: 600; text-transform: uppercase; line-height: .98; letter-spacing: -0.03em; }
.lead { font-size: 18px; color: var(--muted); margin-top: 24px; font-weight: 300; }
.hero-art { position: relative; height: 500px; }
.hero-blob { position: absolute; inset: 40px 10px 20px 40px; background: var(--surface); border-radius: 50% 50% 46% 54% / 55% 48% 52% 45%; }
.hero-main { position: absolute; inset: 60px 50px 30px 70px; animation: float 7s ease-in-out infinite; }
.hero-float { position: absolute; width: 150px; padding: 14px; background: var(--hero-card); border: 1px solid rgba(120,95,70,.08); border-radius: 20px; box-shadow: 0 18px 40px rgba(40,30,20,.10); }
.hero-float.f1 { top: 10px; right: 0; animation: float 6s ease-in-out infinite reverse; }
.hero-float.f2 { bottom: 0; left: 0; animation: float 8s ease-in-out infinite; }
.illus { width: 100%; height: 100%; }
.hero-main img { width: 100%; height: 100%; object-fit: contain; }
.hero-float.has-photo { aspect-ratio: 1; padding: 10px; }
.hero-float.has-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }  /* white photo backgrounds take on the card tone */
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Category tiles ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.category-tile { display: block; }
.category-frame {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / .95;
  border-radius: var(--radius); overflow: hidden;
  background: color-mix(in srgb, var(--tint) 35%, var(--surface));
}
.category-frame .illus { width: 70%; height: auto; transition: transform .5s ease; }
.category-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-tile:hover .illus, .category-tile:hover img { transform: scale(1.05); }
.category-label { display: grid; line-height: 1.3; padding: 14px 4px 0; }
.category-label strong { font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.category-label small { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.category-tile:hover .category-label small { color: var(--ink); }

/* ---------- Section headings ---------- */
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2, .page-head h1 { font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; letter-spacing: .01em; }
.section-head p, .page-head p { color: var(--muted); margin: 10px 0 0; font-weight: 300; }
.page-head { text-align: center; padding-top: 72px; padding-bottom: 40px; }

/* ---------- Filter tabs ---------- */
.filter-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 34px; margin-bottom: 40px; }
.filter-tabs a { font-size: 14px; font-weight: 500; color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s; }
.filter-tabs a:hover { color: var(--ink); }
.filter-tabs a.active { color: var(--ink); border-color: var(--ink); }

/* ---------- Product grid & card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; }
.product-media {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / .95;
  border-radius: var(--radius); overflow: hidden;
  background: color-mix(in srgb, var(--tint) 25%, var(--surface));
}
.product-media .illus { width: 68%; height: auto; transition: transform .5s ease; }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-media .illus, .product-card:hover .product-media img { transform: scale(1.05); }
.tag {
  position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 20px;
  background: var(--tag-bg); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
}
.tag-dark { background: var(--btn-bg); color: var(--btn-text); }
.product-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 14px 4px 0; }
.product-info h3 { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.price { margin: 2px 0 0; font-size: 14px; font-weight: 500; }
.price s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.quick-bag {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 8px; transition: all .2s;
}
.quick-bag svg { width: 16px; height: 16px; }
.quick-bag:hover { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }

.empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--muted); }

/* ---------- Feature band ---------- */
.feature-band { background: var(--surface-2); margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; min-height: 420px; }
.feature-inner h2 { font-size: clamp(30px, 3.6vw, 44px); text-transform: uppercase; }
.feature-inner p { font-size: 20px; font-weight: 300; margin: 18px 0 28px; color: var(--muted); }
.feature-art { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-art > div { background: var(--bg); border-radius: var(--radius); padding: 24px; }
.feature-art > div:last-child { transform: translateY(30px); }
.feature-art > div.has-photo { aspect-ratio: 4 / 5; padding: 16px; }
.feature-art > div.has-photo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Promo band (like "BIG UNION") ---------- */
.promo { background: var(--warm); color: var(--promo-text); overflow: hidden; }
.promo-inner { display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; min-height: 420px; padding-top: 56px; padding-bottom: 56px; }
.promo-copy { text-align: center; }
.promo-copy .eyebrow { color: var(--promo-text); opacity: .9; }
.promo h2 { font-size: clamp(48px, 6.4vw, 96px); white-space: nowrap; text-transform: uppercase; font-weight: 700; letter-spacing: -0.03em; line-height: .9; color: #fff; }
.promo-copy p { margin: 22px 0 26px; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }
.promo-art .illus { width: 100%; max-width: 260px; opacity: .9; }
.promo-art .illus path, .promo-art .illus rect, .promo-art .illus circle { stroke: rgba(120,90,65,.4); }
.promo-art img { width: 100%; max-width: 280px; max-height: 340px; object-fit: contain; }
.promo-art.left .illus { transform: rotate(-10deg); }
.promo-art.right { justify-self: end; }
.promo-art.right .illus { transform: rotate(8deg); }

/* ---------- Newsletter ---------- */
.newsletter { padding: 80px 0; background: var(--newsletter-bg); margin-top: 72px; }
.newsletter h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; }
.newsletter p { color: var(--muted); margin: 8px 0 20px; }
.newsletter-form { display: flex; max-width: 460px; border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--bg); }
.newsletter-form input { flex: 1; border: 0; padding: 0 16px; height: 50px; outline: none; background: transparent; min-width: 0; }
.newsletter-form .btn { height: 50px; border-radius: 0; border: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 32px; border-top: 1px solid var(--line); background: var(--footer-bg); color: var(--footer-text); }
.newsletter + .site-footer, main:has(> .newsletter:last-child) + .site-footer { border-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin-top: 14px; font-size: 14px; }
.site-footer h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-grid > div:not(.footer-brand) a { display: block; color: var(--muted); font-size: 13px; padding: 3px 0; }
.footer-grid a:hover { color: var(--ink); }
.socials { display: flex; gap: 14px; margin-top: 18px; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; justify-content: center; text-align: center;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}
.socials a { color: var(--ink); transition: opacity .2s; }
.socials a:hover { opacity: .55; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; padding-top: 48px; align-items: start; }
.detail-media {
  position: sticky; top: 96px; display: grid; place-items: center; aspect-ratio: 1;
  border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--tint) 25%, var(--surface));
}
.detail-media .illus { width: 64%; height: auto; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); }
.detail-info h1 { font-size: clamp(30px, 3.4vw, 42px); }
.price-lg { font-size: 22px; margin: 12px 0 24px; }
.detail-desc { color: var(--text-soft); font-weight: 300; font-size: 17px; }
.sizes { border: 0; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sizes legend { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; margin-bottom: 12px; padding: 0; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 14px; cursor: pointer; transition: all .15s;
}
.size:hover span { border-color: var(--ink); }
.size input:checked + span { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.size input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.size.disabled span { color: #bbb; text-decoration: line-through; cursor: not-allowed; border-color: var(--line); background: var(--surface-2); }
.add-row { display: flex; gap: 12px; margin-top: 24px; }
.qty input { width: 76px; height: 46px; text-align: center; border: 1px solid var(--line); border-radius: 4px; }
.low-stock { color: var(--bad); font-size: 13px; margin-top: 10px; }
.detail-points { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.detail-points li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.detail-points strong { width: 90px; flex: none; color: var(--ink); font-weight: 500; }

/* ---------- Cart ---------- */
.cart-lines { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto auto; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-thumb, .summary-thumb { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--tint) 25%, var(--surface)); }
.cart-thumb img, .summary-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .illus { width: 74%; height: auto; }
.cart-meta { display: grid; gap: 2px; font-size: 15px; }
.cart-meta .muted { font-size: 13px; }
.warn { color: var(--bad); font-size: 13px; }
.cart-qty { display: flex; align-items: center; gap: 14px; }
.cart-qty input { width: 64px; height: 40px; text-align: center; border: 1px solid var(--line); border-radius: 4px; }
.cart-total { min-width: 80px; text-align: right; }
.cart-summary { margin: 28px 0 80px auto; max-width: 420px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 15px; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 18px; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; padding-bottom: 96px; }
.form-title { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 18px; }
.form-title:not(:first-child) { margin-top: 40px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: grid; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; background: var(--bg); color: var(--ink);
  outline: none; transition: border-color .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.error { color: var(--bad); font-size: 12px; }
.pay-options { display: grid; gap: 12px; }
.pay-option {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s;
}
.pay-option:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.pay-option input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.pay-body { flex: 1; display: grid; }
.pay-body small { color: var(--muted); font-size: 13px; }
.pay-logo.ecocash { font-weight: 700; font-size: 13px; color: #fff; background: #0b5cab; padding: 4px 10px; border-radius: 4px; letter-spacing: .02em; }
.pay-logo.card { display: flex; }
.pay-logo.card i { width: 26px; height: 26px; border-radius: 50%; background: #eb001b; }
.pay-logo.card i + i { background: #f79e1b; margin-left: -10px; mix-blend-mode: multiply; }
.ecocash-field { margin: 18px 0 0; }
.ecocash-field[hidden] { display: none; }
.checkout-form .btn-lg { margin-top: 32px; }
.checkout-form .muted.small { margin-top: 12px; }
.notice { padding: 12px 16px; border-radius: 8px; background: #fff7e8; border: 1px solid #f2dfb5; font-size: 14px; margin-bottom: 24px; }
.notice-error { background: #fdeeea; border-color: #f2c7bd; }
.notice ul { margin: 0; padding-left: 18px; }
.order-summary { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.order-summary ul { list-style: none; padding: 0; margin: 0 0 8px; }
.order-summary li { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 14px; }
.order-summary li .grow { display: grid; }
.summary-thumb { position: relative; width: 56px; flex: none; overflow: visible; }
.summary-thumb .illus { width: 76%; height: auto; }
.summary-thumb b { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; }

/* ---------- Order status ---------- */
.order-status { text-align: center; padding-top: 72px; padding-bottom: 96px; }
.order-status h1 { font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; }
.order-status .lead { margin: 14px auto 8px; max-width: 520px; }
.status-icon { width: 72px; height: 72px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; }
.status-icon svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.status-icon.ok { background: var(--ok); }
.status-icon.bad { background: var(--bad); }
.status-icon.wait { background: var(--surface); }
.spinner { width: 30px; height: 30px; border: 2.5px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.receipt { text-align: left; max-width: 460px; margin: 40px auto 0; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Static pages ---------- */
.prose { font-size: 18px; font-weight: 300; color: var(--text-soft); padding-bottom: 96px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 96px; }
.contact-grid h4 { text-transform: uppercase; font-size: 14px; letter-spacing: .1em; margin-bottom: 10px; }
.contact-grid p { color: var(--muted); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 60; top: 84px; right: 24px; display: grid; gap: 10px; }
.toast { background: var(--toast-bg); color: #fff; padding: 12px 18px; border-radius: 8px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.12); transition: opacity .4s, transform .4s; }
.toast-error { background: var(--bad); }
.toast-link { margin-left: 14px; color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.toast.hide { opacity: 0; transform: translateY(-8px); pointer-events: none; }


/* ---------- Accounts ---------- */
.signed-in::after { content: ""; position: absolute; bottom: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); border: 1.5px solid #fff; }
.auth { display: grid; place-items: center; padding-top: 64px; padding-bottom: 96px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 32px; text-transform: uppercase; }
.auth-card > .muted { margin: 10px 0 28px; }
.auth-card form { display: grid; gap: 16px; }
.auth-card .field-grid { gap: 16px; }
.auth-card .btn-lg { margin-top: 8px; }
.auth-switch { margin-top: 24px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-switch a, .notice a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.notice-soft { background: var(--surface-2); border-color: var(--line); }
.account { padding-bottom: 96px; }
.account-bar { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; margin-bottom: 48px; }
.account-tile { display: grid; align-content: center; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
a.account-tile:hover { border-color: var(--ink); }
.account-tile strong { font-size: 26px; font-weight: 600; line-height: 1.1; }
.account-tile span { font-size: 13px; color: var(--muted); }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.order-card header, .order-card footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-card header div { display: grid; }
.order-card header .muted { font-size: 13px; }
.order-card footer { border-top: 1px solid var(--line); padding-top: 14px; }
.order-items { list-style: none; padding: 0; margin: 14px 0; }
.order-items li { display: flex; align-items: center; gap: 14px; padding: 8px 0; font-size: 14px; }
.order-items .grow { display: grid; }
.order-items .summary-thumb { width: 48px; }
.status-pill { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 20px; background: var(--surface); white-space: nowrap; }
.status-paid { background: #e6f2ea; color: var(--ok); }
.status-shipped { background: #e8eefb; color: #175cd3; }
.status-pending { background: #fff4e0; color: #9a5b00; }
.status-cancelled { background: var(--surface); color: var(--muted); }

/* ---------- Ratings & reviews ---------- */
.stars {
  display: inline-block; font-size: 12px; letter-spacing: 1px; line-height: 1;
  background: linear-gradient(90deg, var(--star) var(--pct), #d9d4cd var(--pct));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stars.lg { font-size: 22px; letter-spacing: 3px; }
.card-rating { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.detail-rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.detail-rating:hover span { color: var(--ink); text-decoration: underline; }
.reviews { padding-top: 80px; scroll-margin-top: 80px; }
.reviews-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.reviews-summary { position: sticky; top: 96px; }
.big-rating { font-size: 56px; font-weight: 600; line-height: 1; margin-bottom: 8px; }
.reviews-summary > .muted { margin-top: 8px; font-size: 14px; }
.breakdown { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; }
.breakdown li { display: grid; grid-template-columns: 28px 1fr 24px; align-items: center; gap: 10px; font-size: 13px; }
.breakdown .bar { height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.breakdown .bar i { display: block; height: 100%; background: var(--star); border-radius: 3px; }
.review-form-box { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.review-form-box h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.review-form { display: grid; gap: 12px; }
.underline { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* clickable stars: radios are in 5→1 order, laid out right-to-left so hover fills to the left */
.star-input { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 30px; line-height: 1; padding: 0 3px; color: #d9d4cd; cursor: pointer; transition: color .12s; }
.star-input input:checked ~ label,
.star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.review-list { display: grid; }
.review { padding: 24px 0; border-bottom: 1px solid var(--line); }
.review:first-child { padding-top: 0; }
.review header { display: grid; gap: 8px; }
.review h4 { font-size: 16px; font-weight: 600; }
.review p { margin: 10px 0 0; color: var(--text-soft); font-weight: 300; }
.review footer { margin-top: 12px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.verified { color: var(--ok); font-weight: 500; }

/* ---------- Review photos ---------- */
.field-label { font-size: 13px; color: var(--muted); }
.photo-field input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-pick {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer;
  border: 1px dashed #cfc8bf; border-radius: 8px; font-size: 14px; transition: border-color .15s, background .15s;
}
.photo-pick:hover, .photo-field input[type=file]:focus-visible + .photo-previews, .photo-field:focus-within .photo-pick { border-color: var(--ink); background: var(--surface-2); }
.photo-pick svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.photo-previews { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-previews:empty { display: none; }
.photo-previews img, .photo-remove img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.photo-hint.error { color: var(--bad); }
.photo-edit { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-remove { display: grid; justify-items: center; gap: 4px; font-size: 12px; color: var(--muted); cursor: pointer; }
.photo-remove input { margin: 0; accent-color: var(--bad); }
.photo-remove span { display: none; }
.photo-remove:has(input:checked) img { opacity: .35; outline: 2px solid var(--bad); outline-offset: 2px; }
.review-photos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.review-photo { display: block; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--surface); }
.review-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.review-photo:hover img { transform: scale(1.06); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 20, 20, .82); }
.lightbox img { display: block; max-width: min(92vw, 900px); max-height: 86vh; border-radius: 12px; object-fit: contain; background: #fff; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
@media (max-width: 540px) { .review-photo { width: 76px; height: 76px; } .lightbox-close { top: 8px; right: 8px; } }

/* ---------- Stock per size ---------- */
.size span { display: inline-grid; justify-items: center; gap: 1px; line-height: 1.2; }
.size-stock { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.size-stock.low { color: var(--low); }
.size input:checked + span .size-stock { color: rgba(255,255,255,.75); }
.size.disabled .size-stock { text-decoration: none; }
.stock-status { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.stock-status.low { color: var(--low); }
.qty input:disabled { background: var(--surface-2); color: var(--muted); }
.stock-note { font-size: 12px; color: var(--muted); }
.stock-note.low { color: var(--low); }
.toast-warning { background: #7a4a00; }

/* ---------- Responsive ----------
   ≤1100 small laptop · ≤1000 tablet landscape · ≤820 tablet portrait · ≤640 large phone · ≤540 phone · ≤380 small phone */
@media (max-width: 1100px) {
  .main-nav { gap: 28px; }
  .header-inner { gap: 24px; }
}
@media (max-width: 1000px) {
  .product-grid, .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promo-inner { grid-template-columns: 1fr 2fr 1fr; }
  .product-detail { gap: 40px; }
  .checkout { gap: 32px; }
  .reviews-grid { grid-template-columns: 280px 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
}
@media (max-width: 820px) {
  /* header → menu button */
  .menu-btn { display: grid; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--header-bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.04);
  }
  .menu-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 14px; }
  .main-nav a::after { display: none; }
  .header-icons { margin-left: auto; }

  /* hero: text on top, picture centred below as a square stage (keeps the circle round) */
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 40px; min-height: 0; gap: 24px; }
  .hero-art { height: auto; width: 100%; max-width: 480px; aspect-ratio: 1 / .9; margin: 0 auto; }
  .hero-blob { inset: 8% 4% 4% 8%; }
  .hero-main { inset: 12% 12% 6% 16%; }
  .hero-float { width: 27%; padding: 10px; border-radius: 16px; }

  .feature-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .feature-art > div:last-child { transform: none; }

  /* product page stays side by side on tablets */
  .product-detail { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 32px; }
  .detail-media { top: 88px; }
  .checkout { grid-template-columns: 1fr; }
  .order-summary { position: static; order: -1; }
  .reviews-grid { grid-template-columns: 1fr; gap: 40px; }
  .reviews-summary { position: static; }

  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .filter-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 26px; padding-bottom: 6px;
                 margin-bottom: 28px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tabs a { white-space: nowrap; flex: none; }

  .promo-inner { grid-template-columns: 1fr; padding: 64px 24px; }
  .promo-art { display: none; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .newsletter-form { max-width: none; }
}
@media (max-width: 640px) {
  .product-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
  .detail-media { position: static; }
  .hero-copy .btn-row .btn { flex: 1 1 160px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 56px; }
  .page-head { padding-top: 40px; padding-bottom: 24px; }
  .header-inner { gap: 8px; height: 64px; }
  .main-nav { top: 64px; padding-left: 16px; padding-right: 16px; }
  .icon-btn { width: 40px; height: 40px; }
  .logo { font-size: 24px; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 56px); }
  .lead { font-size: 16px; }
  .lead br { display: none; }
  .btn-row { margin-top: 24px; gap: 10px; }
  .feature-art { gap: 12px; }
  .feature-art > div { padding: 14px; }
  .field-grid, .contact-grid { grid-template-columns: 1fr; }
  .product-info { gap: 6px; }
  .product-info h3 { font-size: 14px; }
  .price { font-size: 13px; }
  .price.price-lg { font-size: 20px; margin: 10px 0 18px; }
  .quick-bag { width: 32px; height: 32px; }
  .tag { top: 8px; left: 8px; font-size: 10px; padding: 2px 8px; }
  .detail-info h1 { font-size: 28px; }
  .add-row .btn { flex: 1; }
  .detail-points li { flex-direction: column; gap: 2px; }

  /* bag: picture | details, then qty + line total underneath */
  .cart-line { grid-template-columns: 72px 1fr auto; gap: 8px 14px; align-items: start; }
  .cart-thumb { grid-row: span 2; }
  .cart-meta { grid-column: 2 / 4; }
  .cart-qty { grid-column: 2; }
  .cart-total { grid-column: 3; align-self: center; }
  .cart-summary { max-width: none; margin-bottom: 56px; }
  .cart-summary .btn-row { flex-direction: column-reverse; }
  .cart-summary .btn-row .btn { width: 100%; }

  .order-summary { padding: 20px; }
  .pay-option { padding: 14px; gap: 12px; }
  .account-bar { grid-template-columns: 1fr 1fr; }
  .account-bar .signout { grid-column: 1 / -1; justify-items: center; }
  .order-card { padding: 16px; }
  .order-card header { flex-wrap: wrap; }
  .newsletter { padding: 56px 0; }
  .newsletter-form .btn { padding: 0 18px; }
  .site-footer { padding-top: 56px; }
  .footer-bottom { margin-top: 40px; }
  .toasts { left: 16px; right: 16px; top: 72px; }
  .toast-link { display: inline-block; margin: 4px 0 0; }
  .auth { padding-top: 40px; padding-bottom: 64px; }
  .auth-card .field-grid { grid-template-columns: 1fr 1fr; }
  .big-rating { font-size: 46px; }
  .reviews { padding-top: 56px; }
}
@media (max-width: 380px) {
  .product-grid { gap: 24px 10px; }
  .category-grid { gap: 12px; }
  .header-icons { gap: 0; }
  .auth-card .field-grid { grid-template-columns: 1fr; }
  .hero-float { width: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
