/* =========================================================================
   KOVA — E-commerce website template (Premium)
   -------------------------------------------------------------------------
   1. Design tokens  ← colours, fonts, spacing, grid, shapes and shadows
   2. Fonts
   3. Base
   4. Layout helpers and type styles
   5. Buttons, links, form controls
   6. Announcement bar and header
   7. Phone menu, search panel, cart drawer
   8. Product cards and grids
   9. Home page sections
   10. Shop page (filters)
   11. Product page
   12. Cart page
   13. About, help, legal and 404 pages
   14. Footer
   15. Motion and reduced motion
   ========================================================================= */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Brand colours */
  --color-ink: #1C1B19;            /* headings, primary buttons, announcement bar */
  --color-accent: #9A4A2C;         /* clay: sale prices, small highlights (AA on all backgrounds) */
  --color-accent-soft: #F1E3DA;

  /* Backgrounds */
  --color-bg: #F4F1EC;             /* page */
  --color-surface: #FBFAF7;        /* cards, drawers, form fields */
  --color-surface-2: #ECE7DF;      /* alternate sections, image backgrounds */
  --color-dark: #24221F;           /* dark sections */

  /* Text and lines */
  --color-text: #3B3833;
  --color-muted: #6B655C;          /* 5:1 on the page background */
  --color-on-dark: #F4F1EC;
  --color-on-dark-muted: #BDB6AA;
  --color-line: #DCD5CA;
  --color-line-strong: #BDB4A6;
  --color-success: #2F6B47;
  --color-error: #A3261E;

  /* Typography */
  --font-display: 'Inter Display', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text-xs: .75rem;      /* 12px labels */
  --text-sm: .875rem;     /* 14px */
  --text-md: 1rem;        /* 16px body */
  --text-lg: 1.125rem;
  --text-h3: 1.375rem;
  --text-h2: clamp(1.875rem, 1.3rem + 2.2vw, 3rem);
  --text-h1: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  --tracking-label: .12em;

  /* Spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --section-y: clamp(64px, 8vw, 120px);

  /* Containers and grid */
  --container: 1320px;
  --container-narrow: 760px;
  --gutter: clamp(16px, 3.5vw, 40px);
  --grid-gap: clamp(12px, 2vw, 24px);
  --grid-cols: 4;                  /* product grid columns on desktop */
  --card-ratio: 4 / 5;             /* product image shape */

  /* Shape and depth */
  --radius: 2px;                   /* buttons and fields: almost square, editorial */
  --radius-img: 0px;               /* product images */
  --radius-panel: 4px;
  --shadow: 0 1px 2px rgba(28, 27, 25, .05), 0 12px 32px rgba(28, 27, 25, .08);
  --shadow-drawer: -24px 0 60px rgba(28, 27, 25, .16);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .22s;

  --header-h: 72px;
}

/* 2. FONTS (Inter and Inter Display, SIL Open Font License — assets/fonts/OFL-Inter.txt) */
@font-face { font-family: 'Inter Display'; src: url('../assets/fonts/inter-display-300.woff') format('woff'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('../assets/fonts/inter-display-400.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-400.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-500.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-600.woff') format('woff'); font-weight: 600 700; font-display: swap; }

/* 3. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 300; color: var(--color-ink); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--text-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--text-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--text-h3); font-weight: 400; line-height: 1.25; }
p { margin: 0; }
p + p { margin-top: var(--space-4); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--color-ink); color: #fff; text-decoration: none; transition: top var(--dur); }
.skip-link:focus { top: 12px; }
.ph { width: 1em; height: 1em; flex: none; }
[hidden] { display: none !important; }

/* 4. LAYOUT HELPERS AND TYPE STYLES -------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--color-surface-2); }
.label { display: block; font-size: var(--text-xs); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-muted); }
.lead { font-size: var(--text-lg); color: var(--color-muted); line-height: 1.6; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .label { margin-bottom: var(--space-3); }
.demo-note { display: flex; gap: 8px; align-items: flex-start; font-size: var(--text-xs); color: var(--color-muted); line-height: 1.5; }
.demo-note .ph { font-size: 15px; margin-top: 1px; }

/* 5. BUTTONS, LINKS, FORM CONTROLS --------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 1px solid var(--color-ink); border-radius: var(--radius); background: var(--color-ink); color: #fff; font-size: var(--text-sm); font-weight: 500; letter-spacing: .02em; text-decoration: none; white-space: nowrap; transition: background-color var(--dur), color var(--dur), border-color var(--dur); }
.btn:hover { background: #3A3733; border-color: #3A3733; }
.btn .ph { font-size: 18px; }
.btn-outline { background: transparent; color: var(--color-ink); }
.btn-outline:hover { background: var(--color-ink); color: #fff; }
.btn-light { background: #fff; color: var(--color-ink); border-color: #fff; }
.btn-light:hover { background: var(--color-bg); border-color: var(--color-bg); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-size: var(--text-sm); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-line-strong); }
.link:hover { text-decoration-color: currentColor; }
.icon-btn { display: inline-grid; place-items: center; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--color-ink); font-size: 22px; text-decoration: none; transition: background-color var(--dur); }
.icon-btn:hover { background: var(--color-surface-2); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--color-line-strong); border-radius: var(--radius); background: var(--color-surface); color: var(--color-ink); font-size: 16px; transition: border-color var(--dur); }
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%231C1B19'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--color-ink); box-shadow: 0 0 0 1px var(--color-ink); }
[aria-invalid="true"] { border-color: var(--color-error) !important; }
.field-error { font-size: var(--text-xs); font-weight: 500; color: var(--color-error); }
.field-error:empty { display: none; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: var(--text-sm); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--color-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 12px 14px; border-radius: var(--radius); font-size: var(--text-sm); }
.form-status:empty { display: none; }
.form-status.is-demo { background: #F6EBD5; color: #5E4310; border: 1px solid #E8D3A6; }
.form-status.is-success { background: #E5F0E8; color: #1F5034; border: 1px solid #BCD8C4; }
.form-status.is-error { background: #F8E3E1; color: var(--color-error); border: 1px solid #ECC0BB; }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--color-line-strong); border-radius: var(--radius); background: var(--color-surface); }
.qty button { display: grid; place-items: center; width: 44px; height: 46px; border: 0; background: transparent; color: var(--color-ink); font-size: 16px; }
.qty button:hover:not([disabled]) { background: var(--color-surface-2); }
.qty button[disabled] { color: var(--color-line-strong); cursor: not-allowed; }
.qty input { width: 44px; height: 46px; border: 0; background: transparent; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: 2px solid var(--color-ink); outline-offset: -2px; }
.qty--sm button { width: 36px; height: 38px; }
.qty--sm input { width: 36px; height: 38px; font-size: 15px; }

/* 6. ANNOUNCEMENT BAR AND HEADER ----------------------------------------- */
.announce { background: var(--color-ink); color: var(--color-on-dark); font-size: var(--text-xs); letter-spacing: .04em; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; text-align: center; }
.announce a { color: #fff; padding: 4px 0; }
.site-header { position: sticky; top: 0; z-index: 60; background: var(--color-bg); border-bottom: 1px solid var(--color-line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--header-h); gap: 16px; }
.nav-main ul { display: flex; gap: 2px; }
.nav-main a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: var(--text-sm); text-decoration: none; color: var(--color-text); }
.nav-main a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav-main a:hover { color: var(--color-ink); }
.nav-main a:hover::after, .nav-main a[aria-current]::after { transform: scaleX(1); }
.nav-main a[aria-current] { color: var(--color-ink); font-weight: 500; }
.logo { justify-self: center; display: inline-flex; align-items: center; padding: 8px; color: var(--color-ink); text-decoration: none; }
.logo img { width: 92px; height: auto; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 2px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--color-accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; font-family: var(--font-body); }
.cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .nav-main { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-start { display: flex; align-items: center; }
  .header-actions .account-link { display: none; }
}
/* Without JavaScript the phone menu cannot open: show the category links in a row instead */
@media (max-width: 960px) {
  html:not(.js) .nav-main { display: block; grid-column: 1 / -1; order: 3; overflow-x: auto; }
  html:not(.js) .header-inner { grid-template-columns: 1fr auto; }
  html:not(.js) .menu-toggle, html:not(.js) .search-toggle { display: none; }
}

/* 7. PHONE MENU, SEARCH PANEL, CART DRAWER ------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(28, 27, 25, .38); opacity: 0; transition: opacity var(--dur); }
.overlay.is-open { opacity: 1; }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 100; display: flex; flex-direction: column; width: min(420px, 100%); background: var(--color-surface); box-shadow: var(--shadow-drawer); transition: transform .32s var(--ease), visibility 0s linear .32s; visibility: hidden; }
.drawer.is-open { visibility: visible; transform: none; transition: transform .32s var(--ease); }
.drawer--right { right: 0; transform: translateX(100%); }
.drawer--left { left: 0; transform: translateX(-100%); box-shadow: 24px 0 60px rgba(28, 27, 25, .16); width: min(360px, 88%); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--color-line); min-height: 64px; }
.drawer-head h2 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--color-line); background: var(--color-surface); }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--color-line); text-decoration: none; font-size: var(--text-lg); color: var(--color-ink); }
.mobile-nav .ph { font-size: 16px; color: var(--color-muted); }
.mobile-nav-secondary { margin-top: 24px; }
.mobile-nav-secondary a { min-height: 44px; font-size: var(--text-md); border: 0; color: var(--color-text); }

.search-panel { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--color-surface); box-shadow: var(--shadow); transform: translateY(-100%); visibility: hidden; transition: transform .28s var(--ease), visibility 0s linear .28s; }
.search-panel.is-open { transform: none; visibility: visible; transition: transform .28s var(--ease); }
.search-form { display: flex; align-items: center; gap: 12px; min-height: 84px; border-bottom: 1px solid var(--color-line); }
.search-form .ph-magnifying-glass { font-size: 22px; color: var(--color-muted); }
.search-form input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 300; color: var(--color-ink); }
.search-form input:focus { outline: none; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-results { padding: 20px 0 28px; }
.search-results ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 24px; }
.search-hit { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 6px; text-decoration: none; border-radius: var(--radius); }
.search-hit:hover, .search-hit:focus-visible { background: var(--color-surface-2); }
.search-hit img { width: 56px; height: 70px; object-fit: cover; background: var(--color-surface-2); }
.search-hit strong { display: block; font-weight: 500; color: var(--color-ink); font-size: var(--text-sm); }
.search-hit span { font-size: var(--text-sm); color: var(--color-muted); }
.search-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: var(--text-sm); color: var(--color-muted); }
.search-suggest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--text-sm); color: var(--color-muted); }
.search-suggest a { padding: 6px 12px; border: 1px solid var(--color-line-strong); border-radius: 999px; text-decoration: none; color: var(--color-ink); }
.search-suggest a:hover { border-color: var(--color-ink); }

.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--color-line); }
.cart-line img { width: 84px; height: 105px; object-fit: cover; background: var(--color-surface-2); }
.cart-line-top { display: flex; justify-content: space-between; gap: 12px; }
.cart-line-name { font-weight: 500; color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); }
.cart-line-name:hover { text-decoration: underline; }
.cart-line-meta { margin-top: 2px; font-size: var(--text-xs); color: var(--color-muted); }
.cart-line-price { font-size: var(--text-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-line-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.remove-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 4px; border: 0; background: none; font-size: var(--text-xs); color: var(--color-muted); text-decoration: underline; }
.remove-btn:hover { color: var(--color-ink); }
.cart-empty { padding: 48px 0; text-align: center; }
.cart-empty .ph { margin: 0 auto 16px; font-size: 40px; color: var(--color-line-strong); }
.cart-empty p { color: var(--color-muted); margin-bottom: 20px; }
.totals { display: grid; gap: 8px; font-size: var(--text-sm); }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals .total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--color-line); font-size: var(--text-md); font-weight: 600; color: var(--color-ink); }
.totals dd, .totals dt { margin: 0; }
.ship-meter { margin-bottom: 16px; font-size: var(--text-xs); color: var(--color-text); }
.ship-meter-bar { height: 4px; margin-top: 8px; background: var(--color-surface-2); border-radius: 2px; overflow: hidden; }
.ship-meter-bar span { display: block; height: 100%; background: var(--color-success); transition: width .4s var(--ease); }
.drawer-foot .btn + .btn { margin-top: 8px; }
.checkout-note { margin-top: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: var(--radius-panel); background: var(--color-ink); color: #fff; font-size: var(--text-sm); box-shadow: var(--shadow); transition: opacity var(--dur), transform var(--dur); pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 8. PRODUCT CARDS AND GRIDS --------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) var(--grid-gap); }
@media (max-width: 1100px) { .product-grid { --grid-cols: 3; } }
@media (max-width: 760px) { .product-grid { --grid-cols: 2; } }
.card { position: relative; display: flex; flex-direction: column; }
.card-media { position: relative; display: block; aspect-ratio: var(--card-ratio); overflow: hidden; background: var(--color-surface-2); border-radius: var(--radius-img); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.card-media .img-alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media .img-alt { opacity: 1; }
.card:hover .card-media img { transform: scale(1.025); }
.card-badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 8px; background: var(--color-surface); color: var(--color-ink); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.card-badge--sale { background: var(--color-accent); color: #fff; }
.card-body { display: grid; gap: 4px; padding-top: 14px; }
.card-title { display: inline-block; padding: 2px 0; font-size: var(--text-md); font-weight: 400; color: var(--color-ink); text-decoration: none; line-height: 1.35; }
.card-title::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* whole card is clickable */
.card-title:hover { text-decoration: underline; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: var(--text-sm); color: var(--color-text); font-variant-numeric: tabular-nums; }
.price-was { color: var(--color-muted); text-decoration: line-through; }
.price-now--sale { color: var(--color-accent); font-weight: 500; }
.card-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; min-height: 44px; }
.swatches { display: flex; flex-wrap: wrap; gap: 2px; }
.swatch-btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.swatch-btn span { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(28, 27, 25, .2); }
.swatch-btn[aria-pressed="true"] span { box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 3px var(--color-ink); }
.quick-add { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--color-line-strong); border-radius: var(--radius); background: var(--color-surface); font-size: var(--text-xs); font-weight: 500; letter-spacing: .04em; text-decoration: none; color: var(--color-ink); white-space: nowrap; transition: background-color var(--dur), border-color var(--dur), color var(--dur); }
.quick-add:hover { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.quick-add .ph { font-size: 15px; }
@media (max-width: 520px) {
  .card-foot { flex-direction: column; align-items: flex-start; }
  .quick-add { width: 100%; justify-content: center; }
}
.grid-empty { grid-column: 1 / -1; padding: 64px 24px; text-align: center; border: 1px dashed var(--color-line-strong); }
.grid-empty h2 { font-size: 1.75rem; }
.grid-empty p { margin: 12px auto 24px; max-width: 420px; color: var(--color-muted); }
.img-missing { background: var(--color-surface-2) url('../assets/images/placeholder.svg') center / cover no-repeat; }
/* Space kept for content drawn by JavaScript, so the page does not jump when it appears */
.js [data-grid="shop"]:empty, .js [data-product-root]:empty { min-height: 100vh; }
.js [data-grid="featured"]:empty { min-height: 520px; }
.js [data-cart-page-lines]:empty { min-height: 320px; }
html:not(.js) [data-filters] { display: none; }
.noscript-note { padding: 24px; border: 1px dashed var(--color-line-strong); text-align: center; color: var(--color-muted); }

/* 9. HOME PAGE SECTIONS -------------------------------------------------- */
.hero { padding-block: clamp(24px, 4vw, 48px) var(--section-y); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy .label { margin-bottom: var(--space-5); }
.hero-copy .lead { max-width: 460px; margin-top: var(--space-5); }
.hero-copy .btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: var(--space-6); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 1000 / 1150; object-fit: cover; }
.hero-caption { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: var(--text-xs); color: var(--color-muted); }
.hero-caption a { padding: 4px 0; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; margin-inline: calc(-1 * var(--gutter)); }
  .hero-media img { aspect-ratio: 4 / 3.6; }
  .hero-caption { padding-inline: var(--gutter); }
}
.categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
.category { position: relative; display: block; text-decoration: none; color: var(--color-ink); }
.category-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-surface-2); }
.category-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.category:hover .category-img img { transform: scale(1.03); }
.category-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; font-family: var(--font-display); font-size: 1.375rem; font-weight: 300; }
.category-name .ph { font-size: 18px; transition: transform var(--dur) var(--ease); }
.category:hover .category-name .ph { transform: translateX(4px); }
.category-count { font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 860px) { .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.editorial { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
.editorial-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.editorial-copy { position: relative; margin-left: clamp(-120px, -8vw, -40px); margin-bottom: clamp(-40px, -3vw, -16px); padding: clamp(28px, 4vw, 56px); background: var(--color-surface); }
.editorial-copy .label { margin-bottom: 16px; }
.editorial-copy p.body { margin-top: 20px; color: var(--color-text); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--color-line); }
.facts strong { display: block; font-family: var(--font-display); font-weight: 300; font-size: 1.75rem; color: var(--color-ink); line-height: 1.1; }
.facts span { font-size: var(--text-xs); color: var(--color-muted); }
@media (max-width: 960px) {
  .editorial { grid-template-columns: minmax(0, 1fr); }
  .editorial-copy { margin: -48px var(--gutter) 0; }
}
@media (max-width: 520px) { .editorial-copy { margin: 0; } .facts { grid-template-columns: minmax(0, 1fr); } }

.collections { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: var(--grid-gap); }
.collection { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; background: var(--color-dark); }
.collection--large { grid-row: span 2; }
.collection img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.collection:hover img { transform: scale(1.03); }
.collection-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(48px, 6vw, 80px) clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px); background: linear-gradient(rgba(20, 18, 16, 0), rgba(20, 18, 16, .62) 40%, rgba(20, 18, 16, .86)); }
.collection-copy h3 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); font-weight: 300; }
.collection-copy p { margin-top: 6px; color: #EEE8DE; font-size: var(--text-sm); max-width: 380px; }
.collection-copy span.link { margin-top: 10px; color: #fff; text-decoration-color: rgba(255, 255, 255, .6); }
.collection--large img { aspect-ratio: auto; min-height: 520px; }
.collection:not(.collection--large) img { aspect-ratio: 16 / 9; }
@media (max-width: 860px) { .collections { grid-template-columns: minmax(0, 1fr); } .collection--large { grid-row: auto; } .collection--large img { min-height: 0; aspect-ratio: 4 / 3; } }

.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.benefit { padding: 32px 24px 32px 0; }
.benefit + .benefit { padding-left: 24px; border-left: 1px solid var(--color-line); }
.benefit .ph { font-size: 26px; color: var(--color-ink); margin-bottom: 16px; }
.benefit h3 { font-family: var(--font-body); font-size: var(--text-md); font-weight: 500; letter-spacing: 0; }
.benefit p { margin-top: 6px; font-size: var(--text-sm); color: var(--color-muted); }
.benefits-note { margin-top: 16px; }
@media (max-width: 960px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit:nth-child(3) { padding-left: 0; border-left: 0; }
  .benefit:nth-child(n+3) { border-top: 1px solid var(--color-line); }
}
@media (max-width: 520px) { .benefits { grid-template-columns: minmax(0, 1fr); } .benefit + .benefit { padding-left: 0; border-left: 0; border-top: 1px solid var(--color-line); } .benefit { padding: 24px 0; } }

.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.review { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: clamp(24px, 3vw, 36px); background: var(--color-surface); }
.review blockquote { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 300; line-height: 1.45; color: var(--color-ink); }
.review figcaption { margin-top: auto; font-size: var(--text-sm); color: var(--color-muted); }
.review figcaption strong { display: block; color: var(--color-ink); font-weight: 500; }
.review-product { font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); }
@media (max-width: 960px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(32px, 5vw, 72px); background: var(--color-dark); color: var(--color-on-dark); }
.newsletter h2 { color: #fff; }
.newsletter .lead { color: var(--color-on-dark-muted); margin-top: 12px; }
.newsletter-row { display: flex; gap: 8px; }
.newsletter .input { background: transparent; border-color: rgba(244, 241, 236, .4); color: #fff; }
.newsletter .input::placeholder { color: var(--color-on-dark-muted); }
.newsletter .input:focus { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.newsletter label { color: #fff; }
.newsletter .field-error { color: #F3B8B0; }
.newsletter .small { margin-top: 12px; font-size: var(--text-xs); color: var(--color-on-dark-muted); }
.newsletter .small a { color: #fff; }
.newsletter :focus-visible { outline-color: #fff; }
.newsletter .form-status { margin-top: 12px; }
@media (max-width: 860px) { .newsletter { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .newsletter-row { flex-direction: column; } }

.faq { border-top: 1px solid var(--color-line-strong); }
.faq details { border-bottom: 1px solid var(--color-line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font-size: var(--text-lg); color: var(--color-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ph { font-size: 18px; transition: transform var(--dur) var(--ease); }
.faq details[open] summary .ph { transform: rotate(45deg); }
.faq .answer { padding: 0 48px 24px 0; color: var(--color-text); }
.faq .answer a { color: var(--color-ink); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.faq-layout .lead { margin-top: 16px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } .faq .answer { padding-right: 0; } }

/* 10. SHOP PAGE ---------------------------------------------------------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
.page-head .lead { margin-top: 16px; max-width: 560px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; font-size: var(--text-xs); color: var(--color-muted); }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--color-line-strong); }
.crumbs [aria-current] { display: inline-block; padding: 6px 0; color: var(--color-text); }
.crumbs a { display: inline-block; padding: 6px 0; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.filters { position: sticky; top: var(--header-h); z-index: 20; display: grid; gap: 14px; margin-bottom: 32px; padding: 16px 0; background: var(--color-bg); border-bottom: 1px solid var(--color-line); }
.filters-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.filter-search { position: relative; flex: 1 1 260px; max-width: 360px; }
.filter-search .ph { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-muted); font-size: 18px; pointer-events: none; }
.filter-search .input { padding-left: 42px; min-height: 46px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--color-line-strong); border-radius: 999px; background: transparent; font-size: var(--text-sm); color: var(--color-ink); transition: background-color var(--dur), color var(--dur), border-color var(--dur); }
.chip:hover { border-color: var(--color-ink); }
.chip[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.filter-selects { display: flex; flex-wrap: wrap; gap: 12px; margin-left: auto; }
.filter-selects label { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--color-muted); }
.filter-selects .select { width: auto; min-height: 44px; padding-top: 8px; padding-bottom: 8px; font-size: var(--text-sm); }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: var(--text-sm); color: var(--color-muted); }
.reset-btn { min-height: 40px; padding: 0 4px; border: 0; background: none; text-decoration: underline; font-size: var(--text-sm); color: var(--color-ink); }
@media (max-width: 760px) {
  .filters { position: static; }
  .filter-search { max-width: none; flex-basis: 100%; }
  .filter-selects { margin-left: 0; width: 100%; }
  .filter-selects label { flex: 1 1 160px; }
  .filter-selects .select { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .chip { flex: none; }
}

/* 11. PRODUCT PAGE ------------------------------------------------------- */
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: var(--section-y); }
.gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
.gallery-main { position: relative; grid-column: 2; grid-row: 1; aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-surface-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { grid-column: 1; grid-row: 1; display: grid; gap: 12px; align-content: start; }
.thumb { display: block; padding: 0; border: 1px solid transparent; background: var(--color-surface-2); aspect-ratio: 4 / 5; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity var(--dur); }
.thumb:hover img, .thumb[aria-current="true"] img { opacity: 1; }
.thumb[aria-current="true"] { border-color: var(--color-ink); }
.gallery-nav { position: absolute; bottom: 16px; right: 16px; display: flex; gap: 8px; }
.gallery-nav button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--color-surface); color: var(--color-ink); font-size: 18px; box-shadow: var(--shadow); }
.gallery-count { position: absolute; left: 16px; bottom: 24px; padding: 2px 10px; background: var(--color-surface); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
@media (max-width: 960px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); margin-inline: calc(-1 * var(--gutter)); }
  .gallery-main { grid-column: 1; }
  .gallery-thumbs { grid-column: 1; grid-row: 2; grid-template-columns: repeat(3, 72px); padding-inline: var(--gutter); }
}
.product-info { position: sticky; top: calc(var(--header-h) + 24px); }
.product-info h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.product-info .price { margin-top: 12px; font-size: var(--text-lg); }
.product-info .summary { margin-top: 16px; color: var(--color-muted); }
@media (max-width: 960px) { .product-info { position: static; } }
.option { margin: 28px 0 0; padding: 0; border: 0; }
.option legend { padding: 0; margin-bottom: 12px; font-size: var(--text-sm); color: var(--color-muted); }
.option legend strong { color: var(--color-ink); font-weight: 500; }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-swatch { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.opt-swatch span { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(28, 27, 25, .2); }
.opt input:checked + .opt-swatch span { box-shadow: 0 0 0 3px var(--color-bg), 0 0 0 4px var(--color-ink); }
.opt input:focus-visible + .opt-swatch, .opt input:focus-visible + .opt-pill { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.opt-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--color-line-strong); border-radius: var(--radius); cursor: pointer; font-size: var(--text-sm); }
.opt input:checked + .opt-pill { border-color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-ink); color: var(--color-ink); font-weight: 500; }
.buy-row { display: flex; gap: 12px; margin-top: 28px; }
.buy-row .btn { flex: 1; }
.buy-status { min-height: 1.6em; margin-top: 12px; font-size: var(--text-sm); color: var(--color-success); }
.buy-notes { display: grid; gap: 10px; margin-top: 24px; padding: 20px 0; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); font-size: var(--text-sm); }
.buy-notes li { display: flex; gap: 10px; align-items: center; }
.buy-notes .ph { font-size: 18px; }
.product-details { margin-top: 8px; }
.product-details details { border-bottom: 1px solid var(--color-line); }
.product-details summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; list-style: none; font-weight: 500; color: var(--color-ink); }
.product-details summary::-webkit-details-marker { display: none; }
.product-details summary .ph { transition: transform var(--dur); }
.product-details details[open] summary .ph { transform: rotate(45deg); }
.product-details .answer { padding-bottom: 20px; font-size: var(--text-sm); }
.product-details ul { margin: 0; padding-left: 18px; }
.not-found { padding: 80px 0 120px; text-align: center; }
.not-found p { margin: 16px auto 28px; max-width: 460px; color: var(--color-muted); }
.mobile-buy { display: none; }
@media (max-width: 960px) {
  .mobile-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter); background: var(--color-surface); border-top: 1px solid var(--color-line); box-shadow: 0 -8px 24px rgba(28, 27, 25, .08); transform: translateY(110%); transition: transform var(--dur); }
  .mobile-buy.is-visible { transform: none; }
  .mobile-buy strong { flex: 1; font-weight: 500; font-size: var(--text-sm); color: var(--color-ink); }
}

@media (max-width: 960px) { body:has([data-mobile-buy]) .site-footer { padding-bottom: 104px; } } /* room for the sticky "Add to cart" bar */

/* 12. CART PAGE ---------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: var(--section-y); }
.cart-page .cart-line { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 24px 0; }
.cart-page .cart-line img { width: 120px; height: 150px; }
.cart-page .cart-line-name { font-size: var(--text-md); }
.cart-page .cart-list { border-top: 1px solid var(--color-line); }
.summary-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; background: var(--color-surface); }
.summary-card h2 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 500; letter-spacing: 0; margin-bottom: 20px; }
.summary-card .btn { margin-top: 20px; }
.summary-card .link { margin-top: 8px; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: minmax(0, 1fr); } .summary-card { position: static; } .cart-page .cart-line { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; } .cart-page .cart-line img { width: 88px; height: 110px; } }

/* 13. ABOUT, HELP, LEGAL, 404 -------------------------------------------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.story img { width: 100%; }
.story .body { margin-top: 20px; }
.story--flip .story-media { order: 2; }
@media (max-width: 860px) { .story { grid-template-columns: minmax(0, 1fr); } .story--flip .story-media { order: 0; } }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); counter-reset: v; }
.value { padding-top: 24px; border-top: 1px solid var(--color-ink); }
.value::before { counter-increment: v; content: "0" counter(v); display: block; margin-bottom: 20px; font-size: var(--text-xs); letter-spacing: var(--tracking-label); color: var(--color-muted); }
.value p { margin-top: 10px; color: var(--color-muted); font-size: var(--text-sm); }
@media (max-width: 860px) { .values { grid-template-columns: minmax(0, 1fr); } }
.help-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: var(--section-y); }
.help-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; }
.help-nav a { padding: 8px 0; font-size: var(--text-sm); color: var(--color-muted); text-decoration: none; }
.help-nav a:hover { color: var(--color-ink); }
.help-section + .help-section { margin-top: 64px; }
.help-section h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); margin-bottom: 20px; }
.policy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.policy div { padding: 20px; background: var(--color-surface); }
.policy h3 { font-family: var(--font-body); font-size: var(--text-md); font-weight: 500; letter-spacing: 0; }
.policy p { margin-top: 6px; font-size: var(--text-sm); color: var(--color-muted); }
.template-note { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--color-line-strong); font-size: var(--text-sm); color: var(--color-muted); }
.template-note .ph { margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 860px) { .help-layout { grid-template-columns: minmax(0, 1fr); } .help-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; } .policy { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 720px; }
.prose h2 { font-size: 2rem; margin-top: 56px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-body); font-size: var(--text-md); font-weight: 600; letter-spacing: 0; margin-top: 24px; }
.prose p, .prose ul { margin-top: 10px; }
.prose ul { padding-left: 20px; }
.error-page { padding: clamp(64px, 10vw, 140px) 0; text-align: center; }
.error-page img { width: min(320px, 70%); margin: 0 auto 32px; }
.error-page p { margin: 16px auto 28px; max-width: 460px; color: var(--color-muted); }
.error-page .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* 14. FOOTER ------------------------------------------------------------- */
.site-footer { margin-top: var(--section-y); padding: clamp(48px, 6vw, 80px) 0 28px; background: var(--color-dark); color: var(--color-on-dark-muted); font-size: var(--text-sm); }
.footer-top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(244, 241, 236, .14); }
.footer-brand img { width: 100px; }
.footer-brand p { margin-top: 18px; max-width: 320px; }
.footer-brand .link { margin-top: 14px; color: #fff; }
.footer-col h2 { margin-bottom: 14px; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; color: #fff; }
.footer-col a { display: inline-block; padding: 5px 0; color: var(--color-on-dark-muted); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col address { font-style: normal; line-height: 1.8; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-size: var(--text-xs); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-bottom a { display: inline-block; padding: 4px 0; color: var(--color-on-dark-muted); }
.footer-bottom a:hover { color: #fff; }
.social { display: flex; gap: 6px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(244, 241, 236, .2); border-radius: 50%; color: #fff; font-size: 17px; }
.social a:hover { border-color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* 15. MOTION AND REDUCED MOTION ------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover .card-media img, .category:hover .category-img img, .collection:hover img { transform: none; }
}
