/* Silvarora storefront: monochrome, quiet luxury, built for easy reading. */

:root {
  --black: #111111;
  --ink: #1c1c1c;          /* body text */
  --muted: #666666;        /* secondary text (passes WCAG AA on white) */
  --line: #e6e6e6;
  --soft: #f5f5f3;         /* image backgrounds, subtle panels */
  --banner: #e9e7e2;
  --nav-band: #f3f2ef;     /* header menu row */       /* collection banners: a clearly visible warm grey */
  --white: #ffffff;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, system-ui, sans-serif;

  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 10px;           /* soft corners on cards, buttons and panels */
  --radius-sm: 6px;         /* small elements: thumbnails, tags */
  --ease: cubic-bezier(.2, .6, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: .005em; margin: 0 0 .5em; color: var(--black); }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--black); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
main { min-height: 50vh; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 40px 0; }

/* Small uppercase label above headings */
.eyebrow { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }

/* ---------- Buttons & links ---------- */
.button, button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 32px;
  background: var(--black); color: var(--white); border: 1px solid var(--black); border-radius: var(--radius);
  font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease);
}
.button:hover { background: var(--white); color: var(--black); }
.button-outline { background: transparent; color: var(--black); }
.button-outline:hover { background: var(--black); color: var(--white); }
.button-block { width: 100%; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.link-arrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--black); text-decoration: none; position: relative; }

/* ---------- Announcement + header ---------- */
/* Announcement: one short line at a time, cross-fading (cart.js rotates them). */
.announcement { background: var(--black); color: var(--white); height: 38px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.announcement-track { position: relative; width: 100%; max-width: 640px; height: 100%; }
.announcement p { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter);
  font-size: .8rem; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.announcement p.is-active { opacity: 1; transform: none; }

/* Header: two tiers on desktop (utility row + centered menu), one row on smaller screens. */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.site-header.is-condensed { box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.header-top { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 80px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; transition: height .3s var(--ease); }
.header-right.header-mobile-actions { display: none; }
.header-left { display: flex; align-items: center; gap: 4px; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.brand { line-height: 0; }
.brand img { height: 40px; width: auto; transition: height .3s var(--ease); }

.header-link { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; color: var(--black); text-decoration: none;
  font-size: .84rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.header-link-label { position: relative; padding: 2px 0; }
.header-link-label::after, .main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.header-link:hover .header-link-label::after, .main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.cart-icon { position: relative; display: inline-flex; }
.cart-count { position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--black); color: var(--white); font-size: .64rem; letter-spacing: 0; line-height: 17px; text-align: center; font-weight: 500; }
.cart-count[data-zero] { display: none; }
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu-toggle { display: none; }

/* Menu band: Search | centered menu | Cart on one line, on a soft band. */
.nav-band { background: var(--nav-band); border-top: 1px solid #e4e2dd; }
.nav-band-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 54px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; transition: height .3s var(--ease); }
/* Search sits at the end of the menu, styled like a menu item */
.nav-search { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 0 0 clamp(18px, 2vw, 28px); margin-left: -4px; border: 0; border-left: 1px solid #d9d7d2; background: none; cursor: pointer; color: var(--black); font-size: .86rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.nav-search:hover span { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.nav-band-inner > .cart-btn { justify-self: end; margin-right: -10px; }
.main-nav { display: flex; justify-content: center; gap: clamp(20px, 2.6vw, 44px); align-items: center; white-space: nowrap; }
.main-nav a { position: relative; font-size: .86rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--black); padding: 4px 0; }
.main-nav a::after { height: 1.5px; }
.main-nav a[aria-current] { color: var(--black); }

/* Condensed after scrolling: shorter bars, smaller logo. */
.site-header.is-condensed .header-top { height: 58px; }
.site-header.is-condensed .brand img { height: 28px; }
.site-header.is-condensed .nav-band-inner { height: 46px; }

/* Search: full-width bar under the header. */
.search-bar { border-top: 1px solid var(--line); background: var(--white); animation: fade .2s var(--ease); }
.search-inner { max-width: 760px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px; }
.search-inner input { flex: 1; height: 48px; border: 0; border-bottom: 1px solid var(--black); border-radius: 0; background: transparent; font-size: 1.05rem; padding: 0 4px; outline: none; }
.search-inner input:focus-visible { border-bottom-width: 2px; }

/* ---------- Drawers (menu + cart) ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; animation: fade .2s var(--ease); }
.menu-drawer, .cart-drawer { position: fixed; top: 0; bottom: 0; z-index: 50; width: min(420px, 92vw); background: var(--white); display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0,0,0,.08); }
.menu-drawer { left: 0; animation: slide-left .3s var(--ease); }
.cart-drawer { right: 0; animation: slide-right .3s var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.menu-drawer nav { display: grid; padding: 12px 20px; }
.menu-drawer nav a { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 20px; display: flex; flex-direction: column; }
.drawer-lines { list-style: none; margin: 0; padding: 0; flex: 1; }
.drawer-lines li { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.drawer-lines img { width: 84px; height: 84px; object-fit: cover; background: var(--soft); }
.drawer-lines a { text-decoration: none; font-size: .95rem; line-height: 1.4; display: block; }
.drawer-lines .line-meta { color: var(--muted); font-size: .85rem; margin: 2px 0 8px; }
.line-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-foot { position: sticky; bottom: 0; background: var(--white); border-top: 1px solid var(--line); padding: 18px 0 22px; display: grid; gap: 10px; }
.drawer-foot .subtotal-row { display: flex; justify-content: space-between; font-size: 1rem; }
.drawer-foot small { color: var(--muted); }
.drawer-empty { text-align: center; padding: 60px 0; display: grid; gap: 18px; justify-items: center; }
@keyframes slide-right { from { transform: translateX(100%); } }
@keyframes slide-left { from { transform: translateX(-100%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(78vh, 760px); border-bottom: 1px solid var(--line); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px var(--gutter) 64px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.hero-copy h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 400; margin-bottom: 22px; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 30em; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

.section { padding-top: clamp(56px, 8vw, 104px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-title { margin: 0; }

.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { display: block; text-decoration: none; }
.tile-media { aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-family: var(--serif); font-size: 1.5rem; }
.tile-label small { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.values { margin-top: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.values li { padding: 34px 24px; display: grid; gap: 6px; text-align: center; border-left: 1px solid var(--line); }
.values li:first-child { border-left: 0; }
.values strong { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
.values span { color: var(--muted); font-size: .95rem; }

/* ---------- Tabs and accordions ---------- */
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
@media (max-width: 640px) { .tab-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); } }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list [role=tab] { flex: none; height: 42px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.tab-list [role=tab]:hover { border-color: var(--black); }
.tab-list [role=tab][aria-selected=true] { background: var(--black); border-color: var(--black); color: var(--white); }
.tabs.is-ready .tab-panel-title { display: none; }
.tabs:not(.is-ready) .tab-panel + .tab-panel { margin-top: 40px; }
.tab-panel-title { font-size: 1.7rem; }
.tab-more { margin: 28px 0 0; text-align: center; }

.acc-list { display: grid; gap: 10px; }
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s var(--ease); }
.acc:hover, .acc[open] { border-color: #d3d0c9; }
.acc > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.3; color: var(--black); }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 14px no-repeat;
  transition: background-size .25s var(--ease); }
.acc[open] > summary::after { background-size: 14px 1px, 1px 0; }
.acc > .acc-body { padding: 0 22px 20px; }
.acc-body > :first-child { margin-top: 0; }
.page-intro { margin-bottom: 24px; }
.page-body .acc-body h2, .page-body .acc-body h3 { font-size: 1.25rem; margin: 1em 0 .4em; }

/* ---------- Subtle frames around containers ---------- */
.tile { padding: 12px 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.tile:hover { border-color: #cfcdc8; box-shadow: 0 6px 20px rgba(0,0,0,.04); }
.tile-label { padding: 0 4px; }
.values { border: 0; }
.values ul { width: min(calc(100% - 2 * var(--gutter)), calc(var(--max) - 2 * var(--gutter))); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.post-card a { padding: 12px 12px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .25s var(--ease); }
.post-card a:hover { border-color: #cfcdc8; }
.post-card a > :not(.post-cover) { padding: 0 6px; }
.cart-summary { border: 1px solid #e3e1dc; }
.local-notes { padding: 4px 24px; border: 1px solid #d6d3cc; border-radius: var(--radius); background: rgba(255,255,255,.55); }
.local-notes li:first-child { border-top: 0; }
.local-notes li:last-child { border-bottom: 0; }
.contact-card, .review-form { border-radius: var(--radius); }

/* Vancouver band: mountain line over the harbour, copy and three notes */
.local { margin-top: clamp(56px, 8vw, 104px); background: var(--banner); padding-bottom: clamp(56px, 7vw, 96px); }
.local-skyline { display: block; width: 100%; height: clamp(56px, 8vw, 110px); fill: none; stroke: #9a978f; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.local-skyline .water { stroke: #b9b6ae; }
.local-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: clamp(24px, 4vw, 48px); }
.local-copy h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; }
.local-copy p:not(.eyebrow) { color: #4a4a4a; font-size: 1.05rem; max-width: 34em; margin: 0 0 24px; }
.local .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.local-notes { list-style: none; margin: 0; padding: 0; display: grid; }
.local-notes li { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid #d6d3cc; }
.local-notes li:last-child { border-bottom: 1px solid #d6d3cc; }
.local-notes strong { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.local-notes span { color: var(--muted); }
.maple { flex: none; vertical-align: -3px; color: #d52b1e; }   /* Canadian flag red */
.footer-home { display: inline-flex; align-items: center; gap: 6px; }
/* Canadian owned & operated marks */
.announcement p { gap: 8px; }
.announcement .maple { color: #ff5a4d; }   /* lighter red so the leaf reads on the black bar */
.values-maple { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.origin-note { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .95rem; margin: -14px 0 26px; }
.footer-brand .footer-origin { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .95rem; margin: 0 0 14px; }
@media (max-width: 900px) { .local-inner { grid-template-columns: 1fr; } }

.statement { background: var(--black); color: var(--white); text-align: center; padding: clamp(72px, 10vw, 128px) 0; margin-top: clamp(56px, 8vw, 104px); }
.statement .eyebrow { color: #a8a8a8; }
.statement-text { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.3; margin-bottom: 30px; }
.statement .link-arrow { color: var(--white); }

/* ---------- Page heroes, collections ---------- */
/* Collection banner: full-width tinted band; copy left, featured piece right. */
.collection-hero { background: var(--banner); margin-bottom: clamp(28px, 4vw, 44px); }
.collection-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; min-height: clamp(320px, 34vw, 460px); }
.collection-hero-copy { max-width: 520px; padding: 48px 0; }
.collection-hero-copy .eyebrow { color: #5a5a55; }
.collection-hero-copy h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 400; margin-bottom: 18px; }
.collection-intro { font-size: 1.1rem; line-height: 1.7; color: #3a3a37; margin: 0; }
.collection-hero-media { align-self: stretch; display: flex; align-items: center; justify-content: center; padding: 28px 0; }
.collection-hero-media img { max-height: clamp(260px, 30vw, 400px); width: auto; object-fit: contain; mix-blend-mode: multiply; }
.page-hero { text-align: center; padding: clamp(44px, 7vw, 84px) var(--gutter) clamp(28px, 4vw, 44px); }
.page-hero h1 { margin-bottom: 8px; }
.page-hero p:last-child { color: var(--muted); margin: 0; }
.toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0; margin-bottom: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); }
.chips a:hover { border-color: var(--black); }
.chips a.active { background: var(--black); color: var(--white); border-color: var(--black); }
.sort { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.sort label { color: var(--muted); }
.sort select { height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white) 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='%23111' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; cursor: pointer; }

/* ---------- Product grid ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
/* Each product card sits in a subtle bordered frame */
.card { display: flex; flex-direction: column; padding: 12px 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { border-color: #cfcdc8; box-shadow: 0 6px 20px rgba(0,0,0,.04); }
.card-link { display: block; text-decoration: none; flex: 1; }
.card-media { position: relative; aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.card-media .hover-img { opacity: 0; }
.card-link:hover .card-media.has-hover .hover-img { opacity: 1; }
.card-link:hover .card-media.has-hover img:first-child { opacity: 0; }
.card-link:hover .card-media:not(.has-hover) img { transform: scale(1.04); }
/* Card buttons: outlined Add to cart (secondary), solid Buy now (primary) */
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.card-btn { height: 42px; padding: 0 8px; border: 1px solid var(--black); border-radius: var(--radius); cursor: pointer; font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease); }
.card-btn-secondary { background: var(--white); color: var(--black); }
.card-btn-secondary:hover { background: var(--black); color: var(--white); }
.card-btn-primary { background: var(--black); color: var(--white); }
.card-btn-primary:hover { background: #333; border-color: #333; }
.card-btn:disabled { opacity: .5; cursor: progress; }

/* Quick-choose window for pieces with sizes / colours */
.quick { border: 0; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--white); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.quick::backdrop { background: rgba(0,0,0,.4); }
.quick-inner { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; padding: 24px; position: relative; }
.quick-media { background: var(--soft); aspect-ratio: 1; }
.quick-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.quick-body { display: grid; gap: 16px; align-content: start; min-width: 0; }
.quick-body h2 { font-size: 1.35rem; margin: 0 28px 0 0; line-height: 1.25; }
.quick-close { position: absolute; top: 10px; right: 10px; }
.quick .option legend { margin-bottom: 8px; }
.quick .pill span { min-width: 44px; min-height: 38px; padding: 0 12px; font-size: .9rem; }
.quick-go { height: 48px; }
.quick-link { font-size: .85rem; color: var(--muted); }
.card-info { padding: 14px 4px 0; }
.card h3 { font-family: var(--sans); font-size: .98rem; font-weight: 400; line-height: 1.45; margin: 0 0 6px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-note { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 4px 0 0; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 1rem; }
.price s { color: var(--muted); font-size: .9em; }
.price-lg { font-size: 1.3rem; margin-bottom: 4px; }
.tag { display: inline-block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; padding: 4px 9px; line-height: 1.4; }
.tag-sale { background: var(--black); color: var(--white); }
.card-media .tag { position: absolute; top: 12px; left: 12px; }
.no-image { width: 100%; height: 100%; background: var(--soft); }

.pagination { display: flex; justify-content: space-between; align-items: center; margin: 56px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; }
.pagination a { text-decoration: none; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }

/* ---------- Product page ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--muted); padding-top: 22px; padding-bottom: 22px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.gallery { min-width: 0; }
.gallery-stage { position: relative; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--black); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.08); opacity: 0; transition: opacity .25s var(--ease), background .2s; z-index: 2; }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-stage:hover .gallery-nav, .gallery-nav:focus-visible { opacity: 1; }
.gallery-nav:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.gallery-stage:hover .gallery-nav:disabled { opacity: .25; }
.gallery-nav:disabled { cursor: default; pointer-events: none; }
.gallery-count { position: absolute; right: 14px; bottom: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(17,17,17,.75); color: var(--white); font-size: .78rem; letter-spacing: .08em; z-index: 2; }
.gallery-track:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--soft); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs button { padding: 0; border: 1px solid transparent; background: var(--soft); cursor: pointer; aspect-ratio: 1; opacity: .6; transition: opacity .2s, border-color .2s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.thumbs button:hover, .thumbs button.active { opacity: 1; border-color: var(--black); }
/* Product info card: framed like the other cards */
.details-sticky { position: sticky; top: 150px; padding: clamp(24px, 2.6vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.details-sticky .accordions details:last-child { border-bottom: 0; }
.details-sticky .accordions details:last-child summary { min-height: 56px; }
.details h1 { font-size: clamp(1.65rem, 2.3vw, 2.15rem); line-height: 1.22; margin-bottom: 16px; text-wrap: balance; }
.details .price-lg { align-items: center; }
.tax-note { color: var(--muted); font-size: .88rem; margin: 0 0 26px; }

.buy { display: grid; gap: 22px; padding: 24px 0 0; border-top: 1px solid var(--line); }
.option { border: 0; margin: 0; padding: 0; min-width: 0; }
.option legend { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; padding: 0; }
.option legend span { text-transform: none; letter-spacing: 0; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); font-size: .95rem; transition: border-color .2s, background .2s; }
.pill:hover span { border-color: var(--black); }
.pill input:checked + span { background: var(--black); color: var(--white); border-color: var(--black); }
.pill input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 50px; }
.qty button { width: 44px; height: 100%; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.qty input { width: 44px; height: 100%; border: 0; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 38px; }
.qty-sm button { width: 34px; }
.qty-sm input { width: 34px; font-size: .9rem; }
.notice { margin: -8px 0 0; color: var(--muted); font-size: .92rem; }
.notice:empty { display: none; }

.assurances { list-style: none; margin: 24px 0 28px; padding: 18px 20px; border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; color: var(--ink); font-size: .9rem; line-height: 1.35; }
.assurances li { display: flex; align-items: center; gap: 10px; }
.assurances svg { flex: none; }
.accordions { border-top: 1px solid var(--line); margin-top: 28px; }
.accordions details { border-bottom: 1px solid var(--line); }
.accordions summary { list-style: none; cursor: pointer; min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .8rem; line-height: 1; letter-spacing: .18em; text-transform: uppercase; }
.accordions summary::-webkit-details-marker { display: none; }
/* Plus sign drawn from two 1px bars so it sits exactly centered; the vertical bar folds away when open. */
.accordions summary::after { content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 14px no-repeat;
  transition: background-size .25s var(--ease); }
.accordions details[open] summary::after { background-size: 14px 1px, 1px 0; }
.accordions summary:hover { color: var(--black); }
.accordions .rte { padding: 0 32px 22px 0; }
.rte { padding: 0 0 20px; color: #333; }
.rte p:last-child { margin-bottom: 0; }

/* ---------- Stars & reviews ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--black); vertical-align: middle; }
.star { position: relative; display: inline-block; }
.star svg { position: absolute; inset: 0; }
.rating-link { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: .85rem; color: var(--muted); text-decoration: none; }
.rating-link:hover span { color: var(--black); text-decoration: underline; }

.reviews { padding-top: clamp(56px, 7vw, 88px); scroll-margin-top: 140px; }
.reviews-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: 32px; border-top: 1px solid var(--black); }

/* Left: summary panel */
.reviews-aside { position: sticky; top: 140px; display: grid; gap: 22px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.reviews-aside .section-title { font-size: 1.9rem; }
.reviews-score { display: flex; align-items: center; gap: 16px; }
.reviews-average { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--black); }
.reviews-score p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.reviews-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reviews-bars li { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 10px; font-size: .85rem; color: #444; }
.bar-track { height: 6px; border-radius: 3px; background: #ecebe7; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--black); border-radius: 3px; }
.bar-count { text-align: right; color: var(--muted); }

/* No reviews yet: a single compact row (title + stars left, button right), form below */
.reviews-layout.is-empty { grid-template-columns: 1fr; gap: 20px; }
.reviews-layout.is-empty .reviews-aside { position: static; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 20px 24px; }
.reviews-layout.is-empty .reviews-aside .section-title { font-size: 1.6rem; margin: 0; }
.reviews-layout.is-empty .reviews-score { margin-right: auto; }
.reviews-layout.is-empty .reviews-score p { margin: 2px 0 0; }
.reviews-layout.is-empty .reviews-main:not(:has(.review-form-wrap[open])) { display: none; }

/* Right: reviews and form */
.reviews-main { display: grid; gap: 24px; min-width: 0; }
.review-flash { margin: 0; padding: 14px 18px; border: 1px solid var(--line); background: var(--soft); }
.reviews-empty { margin: 0; color: var(--muted); }
.review-list { list-style: none; margin: 0; padding: 0; }
.review { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.review-top time { color: var(--muted); font-size: .85rem; }
.review h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 500; margin: 0 0 6px; }
.review-text { margin: 0 0 10px; white-space: pre-line; color: #333; }
.review-author { margin: 0; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.review-form-wrap > summary { display: none; }
.review-form { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--line); scroll-margin-top: 140px; }
.review-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 28px; align-items: end; }
.review-form-title { font-size: 1.5rem; margin: 0; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.review-grid .field-wide { grid-column: 1 / -1; }
.review-form .field { display: grid; gap: 6px; }
.review-form .field > span { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.review-form input:not([type=radio]), .review-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font-size: 1rem; }
.review-form input::placeholder, .review-form textarea::placeholder { color: #9a9a9a; }
.review-form input:focus, .review-form textarea:focus { outline: none; border-color: var(--black); }
.review-form textarea { resize: vertical; min-height: 92px; }
.review-error { margin: 0; padding: 12px 16px; border: 1px solid var(--black); font-weight: 500; }
.review-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.review-submit .button { min-height: 44px; padding: 0 26px; }
.review-submit .muted { margin: 0; font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rating-input { border: 0; padding: 0; margin: 0; }
.rating-input legend { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; padding: 0; }
.rating-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rating-text { font-size: .9rem; color: var(--muted); }
/* Star picker: radios in reverse order so "this star and the ones before it" can be styled with ~ */
.rating-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-stars label { cursor: pointer; color: #bdbdbd; line-height: 0; }
.rating-stars label svg { transition: fill .15s, color .15s; }
.rating-stars input:checked ~ label, .rating-stars label:hover, .rating-stars label:hover ~ label { color: var(--black); }
.rating-stars input:checked ~ label svg, .rating-stars label:hover svg, .rating-stars label:hover ~ label svg { fill: currentColor; }
.rating-stars input:focus-visible + label { outline: 2px solid var(--black); outline-offset: 2px; }

/* ---------- Cart page: items left, order summary right ---------- */
.cart { padding-top: 44px; }
.cart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--black); }
.cart-head h1 { margin: 0; }
.cart-count-label { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 4vw, 64px); align-items: start; }
.cart-cols { display: grid; grid-template-columns: minmax(0, 1fr) 150px 120px; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cart-cols span:nth-child(2) { text-align: center; }
.cart-cols span:last-child { text-align: right; }
.cart-rows { list-style: none; margin: 0; padding: 0; }
.cart-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 150px 120px; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cart-row-media { display: block; aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.cart-row-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.cart-row-info { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.cart-row-title { text-decoration: none; font-size: 1rem; line-height: 1.45; }
.cart-row-title:hover { text-decoration: underline; }
.cart-row-meta { margin: 0; color: var(--muted); font-size: .9rem; }
.cart-row-info .link-btn { margin-top: 6px; }
.cart-row-qty { display: flex; justify-content: center; }
.cart-row-qty .qty { height: 44px; }
.cart-row-qty .qty button { width: 40px; font-size: 1.1rem; }
.cart-row-total { text-align: right; font-size: 1rem; font-weight: 500; }
.cart-empty { text-align: center; padding: 80px 0; display: grid; gap: 20px; justify-items: center; }

.cart-summary { position: sticky; top: 140px; background: var(--soft); padding: 32px; display: grid; gap: 18px; margin-top: 16px; }
.cart-summary h2 { font-size: 1.6rem; margin: 0; }
.summary-rows { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; margin: 0; padding-bottom: 18px; border-bottom: 1px solid #dcdad5; font-size: .95rem; }
.summary-rows dd { margin: 0; text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-total span { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.summary-total strong { font-size: 1.45rem; font-weight: 500; }
.summary-total small { font-size: .75rem; color: var(--muted); letter-spacing: .08em; }
.summary-notes { list-style: none; margin: 4px 0 0; padding: 18px 0 0; border-top: 1px solid #dcdad5; display: grid; gap: 10px; font-size: .88rem; color: #444; }
.summary-notes li { display: flex; align-items: center; gap: 10px; }
.cart-summary .checkout-error:empty { display: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .85rem; }
.link-btn:hover { color: var(--black); }
.checkout-error { color: var(--black); font-weight: 500; margin: 0; }
/* Order confirmation reuses this simple list */
.cart-lines { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line); }
.cart-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-lines a { text-decoration: none; }
.cart-lines p { margin: 2px 0 0; }

/* ---------- Order confirmation ---------- */
.confirmation { padding-top: 56px; padding-bottom: 20px; }
.confirmation .cart-lines li { grid-template-columns: 1fr auto auto; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; margin: 20px 0 30px; }
.totals dd { margin: 0; text-align: right; }
.ship-to { margin-bottom: 30px; }
.ship-to h2 { font-size: 1.3rem; }

/* ---------- Search ---------- */
.search-large { display: flex; gap: 8px; max-width: 560px; margin: 20px auto 12px; }
.search-large input { flex: 1; height: 50px; padding: 0 16px; border: 1px solid var(--black); border-radius: var(--radius); }

/* ---------- Blog ---------- */
.post-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 44px 24px; grid-template-columns: repeat(3, 1fr); }
.post-card a { text-decoration: none; display: grid; gap: 8px; }
.post-cover { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card a:hover img { transform: scale(1.04); }
.post-card time, .post-meta { color: var(--muted); font-size: .85rem; letter-spacing: .06em; }
.post-card h2, .post-card h3 { font-size: 1.5rem; margin: 4px 0 0; }
.post-card p { margin: 0; color: var(--muted); }
.post { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 0; }
.post h1 { margin: 10px 0 26px; }
.post-hero { width: 100%; margin-bottom: 32px; }
.post-body { font-size: 1.1rem; line-height: 1.8; color: #2a2a2a; }
.post-body img { margin: 22px 0; }
.post-body h2, .post-body h3 { margin-top: 1.6em; }
.post-body blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--black); font-family: var(--serif); font-size: 1.35rem; color: var(--black); }
.post-body .ql-align-center { text-align: center; }
.post-body .ql-align-right { text-align: right; }
.post-cta { margin-top: 44px; }

/* ---------- Utility pages ---------- */
.page-body { padding-bottom: 20px; font-size: 1.05rem; line-height: 1.8; }
.page-body h2 { margin-top: 1.4em; font-size: 1.7rem; }
.page-body ul, .page-body ol { padding-left: 1.2em; }
.contact-card { border: 1px solid var(--line); padding: 32px; margin: 8px 0 32px; display: grid; gap: 14px; justify-items: start; }
.contact-card .contact-email { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.footer-grid { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 28px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 32em; font-size: .95rem; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: .95rem; }
.footer-mail:hover { text-decoration: underline; }
.site-footer .social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 20px 0 0; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--black); transition: background .2s var(--ease), color .2s var(--ease), border-color .2s; }
.social a:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.social-soon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: #8a8a8a; cursor: default; }
.site-footer h2 { font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.site-footer ul a:hover { color: var(--black); text-decoration: underline; }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }

/* ---------- Chat bubble ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 35; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-launcher { width: 58px; height: 58px; border-radius: 50%; background: var(--black); color: var(--white); border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: transform .2s var(--ease); }
.chat-launcher:hover { transform: translateY(-2px); }
.chat-panel { width: min(340px, calc(100vw - 40px)); background: var(--white); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.12); animation: fade .2s var(--ease); }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 18px; background: var(--black); color: var(--white); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.chat-head .icon-btn { color: var(--white); }
.chat-body { padding: 18px; display: grid; gap: 14px; }
.chat-bubble { margin: 0; background: var(--soft); padding: 14px 16px; font-size: .95rem; line-height: 1.55; }
.chat-note { margin: 0; text-align: center; color: var(--muted); font-size: .82rem; }

/* ---------- Responsive ---------- */
/* ---------- Rounded corners (cards, buttons, panels) ---------- */
.tile-media, .post-cover, .gallery-track, .cart-row-media, .quick-media,
.cart-summary, .contact-card, .assurances, .review-form, .review-flash, .review-error,
.pill span, .qty, .search-large input, .sort select, .chat-bubble { border-radius: var(--radius); }
.gallery-slide { border-radius: var(--radius); overflow: hidden; }
.card-media { border-radius: var(--radius-sm); }
.quick, .chat-panel { border-radius: var(--radius); overflow: hidden; }
.drawer-lines img, .thumbs button, .thumbs button img { border-radius: var(--radius-sm); }
.tag { border-radius: 4px; }
.card-media .tag { top: 12px; left: 12px; }
.drawer-head .icon-btn, .chat-launcher { border-radius: 50%; }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .values ul { grid-template-columns: repeat(2, 1fr); }
  .values li:nth-child(3) { border-left: 0; }
  .values li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 1180px) {
  .nav-band { display: none; }
  .menu-toggle { display: inline-flex; margin-left: -10px; }
  .header-right.header-mobile-actions { display: flex; margin-right: -10px; }
  .header-top { height: 68px; }
  .brand img { height: 32px; }
  .site-header.is-condensed .header-top { height: 58px; }
  .site-header.is-condensed .brand img { height: 26px; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; aspect-ratio: 4 / 3; }
  .hero-copy { padding: 40px var(--gutter) 48px; }
  .product { grid-template-columns: 1fr; }
  .details-sticky { position: static; padding: 20px; }
  .gallery { margin: 0 calc(var(--gutter) * -1); }
  .gallery-nav { opacity: 1; width: 38px; height: 38px; }
  .gallery-nav:disabled { opacity: .3; }
  .gallery-prev { left: calc(var(--gutter) / 2 + 4px); }
  .gallery-next { right: calc(var(--gutter) / 2 + 4px); }
  .thumbs { padding: 0 var(--gutter); grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .tiles { gap: 10px; }
  .tile-label { font-size: 1.15rem; flex-direction: column; gap: 2px; }
}
@media (max-width: 960px) {
  .reviews-layout { grid-template-columns: 1fr; }
  .reviews-aside { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; margin-top: 8px; }
}
@media (max-width: 760px) {
  .cart-cols { display: none; }
  .cart-row { grid-template-columns: 88px minmax(0, 1fr) auto; grid-template-areas: "media info total" "media qty qty"; gap: 10px 16px; align-items: start; padding: 20px 0; }
  .cart-row-media { grid-area: media; }
  .cart-row-info { grid-area: info; }
  .cart-row-total { grid-area: total; }
  .cart-row-qty { grid-area: qty; justify-content: flex-start; }
  .cart-row-qty .qty { height: 40px; }
  .cart-head { align-items: center; }
  .cart-summary { padding: 24px; }
}
@media (max-width: 760px) {
  .collection-hero-inner { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .collection-hero-media { order: -1; padding: 24px 0 0; }
  .collection-hero-media img { max-height: 220px; }
  .collection-hero-copy { max-width: none; padding: 20px 0 32px; }
}
@media (max-width: 640px) {
  .card-actions { grid-template-columns: 1fr; gap: 6px; margin-top: 12px; }
  .card-btn { height: 38px; font-size: .68rem; letter-spacing: .12em; }
  .quick-inner { grid-template-columns: 1fr; }
  .quick-media { max-width: 200px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { padding: 8px 8px 10px; }
  .card-info { padding: 10px 2px 0; }
  .card h3 { font-size: .9rem; }
  .tiles { grid-template-columns: 1fr; gap: 24px; }
  .tile-media { aspect-ratio: 16 / 10; }
  .tile-label { flex-direction: row; }
  .values ul { grid-template-columns: 1fr; }
  .values li { border-left: 0; border-top: 1px solid var(--line); }
  .values li:first-child { border-top: 0; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .sort { justify-content: space-between; }
  .post-grid { grid-template-columns: 1fr; }
  .confirmation .cart-lines li { grid-template-columns: 1fr auto; }
  .assurances { grid-template-columns: 1fr; }
  .review-grid, .review-row { grid-template-columns: 1fr; }
  .review-form { padding: 20px; }
  .reviews-aside { padding: 22px; }
  .breadcrumb [aria-current], .breadcrumb span:nth-last-child(2) { display: none; }
  .announcement { height: 34px; }
  .announcement p { font-size: .74rem; letter-spacing: .04em; }
  .chat { right: 14px; bottom: 14px; }
  .chat-launcher { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
