@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');

/* ═══════════════════════════════════════
   E-commerce Storefront - HTML/CSS Kit v1.0.0 — Kiln & Co. storefront design system
   © 2026 Ashlar Studio · https://ohgotit.com/creator/ashlar-studio
   Support: seller-ashlar@ohgotit.com
   ═══════════════════════════════════════ */

/* ── Tokens (light theme is the default) ── */
:root {
  color-scheme: light;
  --accent: #b4532a;
  --accent-strong: #9a4521;
  --accent-text: #9a4521;
  --accent-soft: #f4e2d6;
  --success: #3f7a4a;
  --success-soft: #e3efe3;
  --danger: #b42318;
  --star: #b7791f;

  --bg: #faf6f0;
  --bg-alt: #f3ece2;
  --surface: #ffffff;
  --surface-2: #f6f0e8;
  --text: #221d18;
  --text-2: #4f473f;
  --text-muted: #6b6259;
  --border: #e6ddd1;
  --border-strong: #cfc3b3;
  --overlay: rgba(34, 29, 24, 0.45);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow: 0 1px 2px rgba(34, 29, 24, 0.05), 0 8px 24px rgba(34, 29, 24, 0.06);
  --shadow-lg: 0 24px 60px rgba(34, 29, 24, 0.18);
  --max: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --accent: #e58a5f;
  --accent-strong: #c2410c;
  --accent-text: #f0a37e;
  --accent-soft: rgba(229, 138, 95, 0.14);
  --success: #7cc58a;
  --success-soft: rgba(124, 197, 138, 0.14);
  --danger: #f38b82;
  --star: #e8b04a;

  --bg: #16130f;
  --bg-alt: #1d1914;
  --surface: #211c17;
  --surface-2: #2a241e;
  --text: #f4eee6;
  --text-2: #cdc3b7;
  --text-muted: #a89d90;
  --border: #372f27;
  --border-strong: #4a4036;
  --overlay: rgba(0, 0, 0, 0.6);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .product-card__media img, [data-theme="dark"] .media img { filter: brightness(0.92); }

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }

/* ── Accessibility ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--text); color: var(--bg); padding: 0.5rem 1rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 0.75rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
[data-theme="dark"] .icon--moon, [data-theme="light"] .icon--sun { display: none; }

/* ── Layout ── */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.5rem; }
.section__title { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.section__text { color: var(--text-2); max-width: 560px; margin-top: 0.5rem; }
.link-arrow { font-weight: 600; color: var(--accent-text); text-decoration: none; display: inline-flex; gap: 0.35rem; align-items: center; }
.link-arrow:hover { text-decoration: underline; }
.muted { color: var(--text-muted); }

/* ── Announcement & header ── */
.announce { background: var(--text); color: var(--bg); text-align: center; font-size: 0.82rem; padding: 0.5rem 1rem; }
.announce a { color: inherit; font-weight: 600; }
[data-theme="dark"] .announce { background: #0d0b09; color: var(--text); border-bottom: 1px solid var(--border); }
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; text-decoration: none; letter-spacing: -0.02em; }
.brand__mark { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-strong); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.brand__mark .icon { width: 18px; height: 18px; }
.nav { display: flex; gap: 0.25rem; margin-right: auto; }
.nav__link { padding: 0.5rem 0.8rem; border-radius: var(--radius-full); font-size: 0.92rem; font-weight: 500; color: var(--text-2); text-decoration: none; }
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header__search { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem; min-width: 220px; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface); color: var(--text-muted); }
.header__search:focus-within { border-color: var(--accent); }
.header__search input { border: none; background: none; outline: none; width: 100%; font-size: 0.88rem; color: var(--text); }
.header__actions { display: flex; align-items: center; gap: 0.25rem; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: none; background: none; color: var(--text); text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--radius-full); background: var(--accent-strong); color: #fff; font-size: 0.68rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.menu-btn { display: none; }

/* ── Buttons & forms ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.5rem; border-radius: var(--radius-full); border: 1px solid transparent; font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: background 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-strong); color: #fff; }
.btn--primary:hover { background: #7f3717; }
.btn--dark { background: var(--text); color: var(--bg); }
.btn--dark:hover { opacity: 0.9; }
.btn--outline { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--text); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.35rem; color: var(--text-2); }
.form-input { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 0.95rem; outline: none; transition: border-color 150ms; }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-input::placeholder { color: var(--text-muted); }
select.form-input { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6259' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row--3 { grid-template-columns: 2fr 1fr 1fr; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-status { font-size: 0.9rem; color: var(--success); margin-top: 0.75rem; }
.form-status--error { color: var(--danger); }
.check-label { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--text-2); cursor: pointer; padding: 0.3rem 0; }
.check-label input { width: 18px; height: 18px; accent-color: var(--accent-strong); }
.inline-form { display: flex; gap: 0.5rem; }
.inline-form .form-input { flex: 1; }

/* ── Hero ── */
.hero { padding: 3.5rem 0 4.5rem; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.hero__title { font-size: clamp(2.5rem, 5.4vw, 4.4rem); margin-bottom: 1.25rem; }
.hero__title em { font-style: italic; color: var(--accent-text); }
.hero__text { font-size: 1.12rem; color: var(--text-2); max-width: 480px; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero__meta strong { display: block; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500; }
.hero__meta span { font-size: 0.85rem; color: var(--text-muted); }
.media { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media { aspect-ratio: 1 / 1; box-shadow: var(--shadow); }

/* ── Category tiles ── */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.category { text-decoration: none; text-align: center; }
.category .media { aspect-ratio: 1; margin-bottom: 0.75rem; transition: transform 200ms var(--ease); }
.category:hover .media { transform: translateY(-3px); }
.category__name { font-weight: 600; font-size: 0.95rem; }
.category__count { font-size: 0.8rem; color: var(--text-muted); }

/* ── Product cards ── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.25rem; }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
.product-card { position: relative; display: flex; flex-direction: column; }
.product-card__media { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); margin-bottom: 0.9rem; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__link { text-decoration: none; }
.product-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.product-card__name { font-weight: 600; font-size: 0.98rem; }
.product-card__meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.1rem; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.4rem; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.price--sale { color: var(--accent-text); }
.price__was { font-weight: 400; color: var(--text-muted); text-decoration: line-through; margin-left: 0.4rem; font-size: 0.9em; }
.badge { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2; padding: 0.25rem 0.65rem; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.badge--sale { background: var(--accent-strong); color: #fff; }
.badge--soldout { background: var(--text); color: var(--bg); }
.quick-add { position: relative; z-index: 2; border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-full); padding: 0.35rem 0.8rem; font-size: 0.8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.3rem; }
.quick-add:hover { border-color: var(--text); }
.quick-add .icon { width: 14px; height: 14px; }
.quick-add[disabled] { opacity: 0.5; cursor: not-allowed; }
.stars { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--text-muted); }
.stars__icons { display: inline-flex; color: var(--star); }
.stars__icons .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }

/* ── Story / features ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split .media { aspect-ratio: 4 / 3.4; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature__title { font-weight: 600; font-size: 0.95rem; }
.feature__text { font-size: 0.85rem; color: var(--text-muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.value h3 { font-size: 1.25rem; margin: 0.75rem 0 0.4rem; }
.value p { color: var(--text-2); font-size: 0.95rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { border-top: 2px solid var(--border-strong); padding-top: 1rem; counter-increment: step; }
.step::before { content: '0' counter(step); font-family: var(--font-serif); font-size: 1.5rem; color: var(--accent-text); }
.step h3 { font-size: 1.1rem; margin: 0.25rem 0; font-family: var(--font-sans); font-weight: 600; }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Reviews ── */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.review__text { color: var(--text-2); }
.review__author { font-weight: 600; font-size: 0.9rem; }
.review__product { font-size: 0.8rem; color: var(--text-muted); }

/* ── Newsletter ── */
.newsletter { background: var(--accent-soft); border-radius: var(--radius-lg); padding: 3rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.newsletter .form-input { background: var(--surface); border-radius: var(--radius-full); }

/* ── Footer ── */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.footer__about { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.75rem; max-width: 300px; }
.footer__heading { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer__links li + li { margin-top: 0.45rem; }
.footer__links a { color: var(--text-2); text-decoration: none; font-size: 0.9rem; }
.footer__links a:hover { color: var(--text); text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 1.5rem; font-size: 0.82rem; color: var(--text-muted); }
.pay-icons { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pay-icons span { border: 1px solid var(--border-strong); border-radius: 4px; padding: 0.1rem 0.45rem; font-size: 0.7rem; font-weight: 700; color: var(--text-2); }

/* ── Breadcrumb & page header ── */
.breadcrumb { display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); padding: 1.25rem 0; }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-head { padding: 1rem 0 2rem; }
.page-head__title { font-size: clamp(2rem, 4vw, 3rem); }
.page-head__text { color: var(--text-2); margin-top: 0.5rem; max-width: 600px; }

.shop > *, .pdp > *, .cart > *, .checkout > *, .account > *, .help > *, .split > *, .hero__grid > * { min-width: 0; }

/* ── Shop (collection) ── */
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 2.5rem; align-items: start; padding-bottom: 4rem; }
.filters { position: sticky; top: calc(var(--header-h) + 1rem); }
.filters__group { border-top: 1px solid var(--border); padding: 1rem 0; }
.filters__group:first-child { border-top: none; padding-top: 0; }
.filters__title { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; font-family: var(--font-sans); }
.filters__count { margin-left: auto; font-size: 0.8rem; color: var(--text-muted); }
.range-row { display: flex; align-items: center; gap: 0.75rem; }
.range-row input { flex: 1; accent-color: var(--accent-strong); }
.range-row output { min-width: 3.5ch; font-weight: 600; font-variant-numeric: tabular-nums; }
.shop__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.shop__count { color: var(--text-muted); font-size: 0.9rem; }
.shop__sort { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.shop__sort .form-input { width: auto; padding-block: 0.5rem; border-radius: var(--radius-full); }
.filters-btn { display: none; }
.empty-note { padding: 3rem 1rem; text-align: center; color: var(--text-muted); }

/* ── Swatches & options ── */
.swatches { display: flex; gap: 0.6rem; flex-wrap: wrap; border: none; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch__dot { display: block; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); }
.swatch input:checked + .swatch__dot { box-shadow: 0 0 0 2px var(--text); }
.swatch input:focus-visible + .swatch__dot { outline: 2px solid var(--accent); outline-offset: 3px; }
.swatch--sm .swatch__dot { width: 22px; height: 22px; }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; border: none; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 0.5rem 1rem; border: 1px solid var(--border-strong); border-radius: var(--radius-full); font-size: 0.88rem; font-weight: 500; }
.chip input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Product page ── */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: start; padding-bottom: 4rem; }
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.gallery__thumbs { display: flex; flex-direction: column; gap: 0.75rem; }
.gallery__thumb { border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; padding: 0; background: var(--surface-2); aspect-ratio: 1; }
.gallery__thumb[aria-pressed="true"] { border-color: var(--text); }
.gallery__main { aspect-ratio: 1; }
.pdp__title { font-size: clamp(2rem, 3.5vw, 2.75rem); margin: 0.25rem 0 0.5rem; }
.pdp__price { font-size: 1.4rem; margin: 1rem 0; }
.pdp__text { color: var(--text-2); margin-bottom: 1.5rem; }
.option { margin-bottom: 1.5rem; border: none; }
.option__label { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.6rem; display: block; }
.option__label span { font-weight: 400; color: var(--text-muted); }
.buy-row { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-full); overflow: hidden; }
.qty button { width: 40px; height: 46px; border: none; background: none; font-size: 1.1rem; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 44px; text-align: center; border: none; background: none; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 32px; height: 36px; }
.qty--sm input { width: 34px; }
.wish-btn { width: 50px; height: 50px; border: 1px solid var(--border-strong); border-radius: 50%; }
.wish-btn[aria-pressed="true"] { color: var(--accent-strong); border-color: var(--accent-strong); }
.wish-btn[aria-pressed="true"] .icon { fill: currentColor; }
.perks { display: grid; gap: 0.6rem; padding: 1.25rem; background: var(--surface-2); border-radius: var(--radius); margin: 1.5rem 0; font-size: 0.9rem; }
.perks li { display: flex; gap: 0.6rem; align-items: center; color: var(--text-2); }
.perks .icon { width: 18px; height: 18px; color: var(--accent-text); }
.accordion details { border-top: 1px solid var(--border); }
.accordion details:last-child { border-bottom: 1px solid var(--border); }
.accordion summary { list-style: none; cursor: pointer; padding: 1rem 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--text-muted); }
.accordion details[open] summary::after { content: '−'; }
.accordion__body { padding-bottom: 1.25rem; color: var(--text-2); font-size: 0.95rem; }
.accordion__body ul { list-style: disc; padding-left: 1.2rem; }
.rating-summary { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
.rating-big { font-family: var(--font-serif); font-size: 3.5rem; line-height: 1; }
.rating-bars li { display: grid; grid-template-columns: 52px 1fr 40px; gap: 0.75rem; align-items: center; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.bar { height: 8px; border-radius: var(--radius-full); background: var(--surface-2); overflow: hidden; }
.bar__fill { display: block; height: 100%; background: var(--star); }

/* ── Cart ── */
.cart { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; padding-bottom: 4rem; }
.line { display: grid; grid-template-columns: 110px 1fr auto; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.line:first-child { border-top: 1px solid var(--border); }
.line .media { aspect-ratio: 1; border-radius: var(--radius); }
.line__name { font-weight: 600; text-decoration: none; }
.line__name:hover { text-decoration: underline; }
.line__variant { font-size: 0.85rem; color: var(--text-muted); }
.line__controls { display: flex; align-items: center; gap: 1rem; margin-top: 0.75rem; }
.line__remove { border: none; background: none; font-size: 0.85rem; color: var(--text-muted); text-decoration: underline; padding: 0; }
.line__remove:hover { color: var(--danger); }
.line__total { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.summary__title { font-size: 1.4rem; margin-bottom: 1.25rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; font-size: 0.95rem; color: var(--text-2); }
.summary__row span:last-child { font-variant-numeric: tabular-nums; }
.summary__row--total { border-top: 1px solid var(--border); margin-top: 0.6rem; padding-top: 1rem; font-size: 1.15rem; font-weight: 700; color: var(--text); }
.summary__discount { color: var(--success); }
.ship-meter { margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: var(--surface-2); border-radius: var(--radius); font-size: 0.9rem; }
.ship-meter .bar { margin-top: 0.6rem; }
.ship-meter .bar__fill { background: var(--success); transition: width 300ms var(--ease); }
.summary__items { max-height: 320px; overflow-y: auto; margin-bottom: 1rem; }
.summary-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.9rem; align-items: center; padding: 0.6rem 0; }
.summary-item .media { aspect-ratio: 1; border-radius: var(--radius-sm); position: relative; overflow: visible; }
.summary-item .media img { border-radius: var(--radius-sm); }
.summary-item__qty { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: var(--radius-full); background: var(--text-muted); color: var(--bg); font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.summary-item__name { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.summary-item__variant { font-size: 0.8rem; color: var(--text-muted); }

/* ── Checkout ── */
.checkout { display: grid; grid-template-columns: 1fr 420px; gap: 3rem; align-items: start; padding-bottom: 4rem; }
.checkout__section { margin-bottom: 2rem; border: none; }
.checkout__section > legend, .checkout__heading { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; margin-bottom: 1rem; }
.radio-card { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.1rem; border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; margin-bottom: 0.6rem; background: var(--surface); }
.radio-card:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.radio-card input { width: 18px; height: 18px; accent-color: var(--accent-strong); }
.radio-card__body { flex: 1; }
.radio-card__title { font-weight: 600; font-size: 0.95rem; }
.radio-card__desc { font-size: 0.82rem; color: var(--text-muted); }
.radio-card__price { font-weight: 600; }
.secure-note { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-muted); margin-top: 0.75rem; justify-content: center; }
.secure-note .icon { width: 16px; height: 16px; }

/* ── Order confirmation & account ── */
.confirm { max-width: 760px; margin: 0 auto; padding: 2rem 0 4rem; }
.confirm__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.confirm__icon .icon { width: 30px; height: 30px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.card + .card { margin-top: 1.25rem; }
.card__title { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.timeline li { position: relative; padding-top: 1.5rem; font-size: 0.85rem; color: var(--text-muted); }
.timeline li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--border); }
.timeline li.is-done::before, .timeline li.is-current::before { background: var(--success); }
.timeline li.is-done, .timeline li.is-current { color: var(--text); }
.timeline strong { display: block; font-size: 0.9rem; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; font-size: 0.92rem; color: var(--text-2); }
.info-grid h3 { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); margin-bottom: 0.4rem; }
.account { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; padding-bottom: 4rem; }
.side-tabs { display: flex; flex-direction: column; gap: 0.25rem; }
.side-tab { text-align: left; padding: 0.7rem 1rem; border: none; background: none; border-radius: var(--radius-sm); font-weight: 500; color: var(--text-2); }
.side-tab:hover { background: var(--surface-2); color: var(--text); }
.side-tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent-strong); }
.side-tab--link { text-decoration: none; display: block; }
.data-table th { text-align: left; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.data-table td { padding: 1rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.data-table tr:last-child td { border-bottom: none; }
.table-scroll { position: relative; overflow-x: auto; }
.status { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.65rem; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.status--shipped { background: var(--accent-soft); color: var(--accent-text); }
.status--delivered { background: var(--success-soft); color: var(--success); }
.address-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.address { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; font-size: 0.92rem; color: var(--text-2); font-style: normal; background: var(--surface); }
.address strong { color: var(--text); display: block; margin-bottom: 0.25rem; }
.address__tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-text); margin-bottom: 0.5rem; }

/* ── Auth ── */
.auth { max-width: 460px; margin: 0 auto; padding: 3rem 0 5rem; }
.auth .card { padding: 2rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: var(--radius-full); padding: 4px; margin-bottom: 1.5rem; }
.tab { border: none; background: none; padding: 0.6rem; border-radius: var(--radius-full); font-weight: 600; color: var(--text-muted); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.auth__reset { display: none; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.auth__reset:target { display: block; }
.auth__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; font-size: 0.88rem; }

/* ── FAQ / help ── */
.help { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; padding-bottom: 4rem; }
.faq-group { margin-bottom: 2.5rem; }
.faq-group h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }

/* ── Cart drawer ── */
.drawer-overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 100%); background: var(--bg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide-in 250ms var(--ease); }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.drawer__title { font-size: 1.35rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.drawer__foot { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); display: grid; gap: 0.6rem; }
.drawer .line { grid-template-columns: 80px 1fr; gap: 1rem; padding: 1.1rem 0; }
.drawer .line:first-child { border-top: none; }
.drawer__added { display: flex; align-items: center; gap: 0.5rem; color: var(--success); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.75rem; }
.mobile-nav { display: none; }

/* ── 404 ── */
.error { text-align: center; padding: 5rem 0 6rem; max-width: 520px; margin: 0 auto; }
.error .media { width: 220px; margin: 0 auto 2rem; aspect-ratio: 1; border-radius: 50%; }
.error h1 { font-size: 2.6rem; margin-bottom: 0.75rem; }
.error p { color: var(--text-2); margin-bottom: 2rem; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .header__search { display: none; }
  .cart, .checkout, .help { grid-template-columns: 1fr 340px; gap: 2rem; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .brand { margin-right: auto; }
  .mobile-nav:not([hidden]) { display: block; position: fixed; inset: 0 auto 0 0; z-index: 100; width: min(320px, 85vw); background: var(--bg); box-shadow: var(--shadow-lg); padding: 1.25rem; overflow-y: auto; animation: slide-left 250ms var(--ease); }
  @keyframes slide-left { from { transform: translateX(-100%); } to { transform: none; } }
  .mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
  .mobile-nav a { display: block; padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--border); text-decoration: none; font-weight: 500; }
  .hero__grid, .split, .pdp, .cart, .checkout, .help, .newsletter, .rating-summary { grid-template-columns: 1fr; }
  .hero__grid { gap: 2rem; }
  .hero__media { order: -1; aspect-ratio: 4 / 3; }
  .shop { grid-template-columns: 1fr; }
  .filters-btn { display: inline-flex; }
  .filters { position: static; display: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
  .filters.is-open { display: block; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery__thumbs { flex-direction: row; order: 2; }
  .gallery__thumb { width: 72px; }
  .summary { position: static; }
  .values, .review-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .account { grid-template-columns: 1fr; }
  .side-tabs { flex-direction: row; overflow-x: auto; }
  .side-tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--accent-strong); }
}
@media (max-width: 600px) {
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .product-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0.75rem; }
  .features { grid-template-columns: 1fr; }
  .form-row, .form-row--3 { grid-template-columns: 1fr; }
  .newsletter { padding: 2rem 1.5rem; }
  .line { grid-template-columns: 80px 1fr; }
  .line__total { grid-column: 2; text-align: left; }
  .timeline, .info-grid, .address-grid { grid-template-columns: 1fr; }
  .timeline { gap: 1rem; }
  .data-table { min-width: 560px; }
  .quick-add span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header__inner { gap: 0.5rem; }
  .brand { font-size: 1.2rem; }
  .icon-btn { width: 38px; height: 38px; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
