/* Furry Boss: editorial minimal theme */
:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --sand: #f1ece5;
  --taupe: #b8a99a;
  --taupe-d: #8c7b6b;
  --ink: #1a1a1a;
  --ink-2: #6b645d;
  --line: #e7e1d9;
  --band: #ddd0bf;
  --danger: #9b3b2a;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.005em; margin: 0; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--taupe-d); }
p { margin: 0 0 1em; }
strong, b { font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
svg { stroke-linecap: round; stroke-linejoin: round; }

.eyebrow { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 16px; font-weight: 400; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 44ch; }
.muted { color: var(--ink-2); font-size: 14px; }
.note { font-size: 13px; color: var(--ink-2); margin-top: 16px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 32px;
  border: 1px solid var(--ink); background: transparent; text-decoration: none;
  font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; transition: background .25s, color .25s;
}
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #3a3530; border-color: #3a3530; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-wide { width: 100%; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; text-decoration: none; }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.icon-btn .dot { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 10px; line-height: 16px; text-align: center; }
.link { border: 0; background: none; padding: 0; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }
.link--icon { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link--icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid var(--ink); }
.arrow-link::after { content: '→'; transition: transform .3s var(--ease); }
a:hover > .arrow-link::after, .arrow-link:hover::after { transform: translateX(4px); }

/* ---------- announcement & header ---------- */
.announce { background: var(--sand); text-align: center; padding: 9px var(--gutter); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.announce p { margin: 0; transition: opacity .35s; }
.announce p.fade { opacity: 0; }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--ink); color: var(--bg); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: #34302c; }
.site-header :focus-visible, .catbar-wrap :focus-visible { outline-color: var(--bg); }
.site-header .icon-btn .dot { background: var(--bg); color: var(--ink); }
.hdr-lang { display: flex; align-items: center; gap: 2px; margin-right: 6px; font-size: 11px; letter-spacing: .14em; }
.hdr-lang span { opacity: .4; }
.hdr-lang button { border: 0; background: none; padding: 6px 4px; font-size: inherit; letter-spacing: inherit; opacity: .55; transition: opacity .2s; }
.hdr-lang button:hover, .hdr-lang button[aria-pressed="true"] { opacity: 1; }
.hdr-lang button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }
.hdr-lang--m { margin: 0; font-size: 13px; }
.hdr { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.hdr-nav { display: flex; gap: 28px; }
.hdr-nav a { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .25s; white-space: nowrap; }
.hdr-nav a:hover, .hdr-nav a[aria-current] { border-bottom-color: var(--bg); }
.hdr-burger { display: none; }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: .9; }
.brand span:first-child { font-family: var(--serif); font-style: italic; font-size: 30px; }
.brand span:last-child { font-family: var(--sans); font-size: 10px; letter-spacing: .6em; text-transform: uppercase; padding-left: .6em; margin-top: 4px; }
.brand--sm span:first-child { font-size: 26px; }
.hdr-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.hdr-search { display: flex; align-items: center; border-bottom: 1px solid var(--bg); margin-right: 8px; }
.hdr-search input { width: 150px; border: 0; background: none; padding: 6px 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; outline: none; }
.hdr-search input::placeholder { color: var(--bg); opacity: .85; }
.hdr-search input::-webkit-search-cancel-button { display: none; }
.hdr-search .icon-btn { width: 32px; height: 32px; }

.mnav { position: fixed; inset: 0; z-index: 60; background: rgba(26, 26, 26, .25); }
.mnav-panel { width: min(360px, 88vw); height: 100%; background: var(--bg); padding: 16px var(--gutter) 32px; display: flex; flex-direction: column; gap: 24px; animation: slideL .3s var(--ease); }
@keyframes slideL { from { transform: translateX(-100%); } }
.mnav-search { display: flex; border-bottom: 1px solid var(--ink); }
.mnav-search input { flex: 1; border: 0; background: none; padding: 10px 0; outline: none; font-size: 16px; }
.mnav nav { display: flex; flex-direction: column; }
.mnav nav a { font-family: var(--serif); font-size: 30px; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mnav-ig { margin-top: auto; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- layout ---------- */
main { display: block; }
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--gutter); }

/* ---------- hero ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(56px, 8vw, 112px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(54px, 7.6vw, 112px); margin-bottom: 28px; }
.hero h1 em { display: inline-block; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* ---------- catalog ---------- */
/* ---------- category bar (icons under the header) ---------- */
.catbar-wrap { position: relative; z-index: 25; background: var(--ink); color: var(--bg); border-top: 1px solid #2c2925; }
.catbar { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 16px; }
.catbar-track { flex: 1; min-width: 0; display: flex; gap: clamp(20px, 3vw, 44px); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.catbar-track::-webkit-scrollbar { display: none; }
.catbar-item { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 10px; padding: 14px 0; text-decoration: none; font-size: 14px; letter-spacing: .02em; white-space: nowrap; border-bottom: 1px solid transparent; margin-bottom: -1px; transition: border-color .2s; }
.catbar-item > svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.15; flex: none; }
.catbar-chev svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .2s; }
.catbar-chev { display: inline-grid; margin-left: -4px; opacity: .6; }
.catbar-item:hover, .catbar-item.on { border-bottom-color: var(--bg); }
.catbar-item.on .catbar-chev svg { transform: rotate(180deg); }
.catbar-pager { flex: none; display: flex; align-items: center; gap: 2px; background: rgba(255, 255, 255, .1); border-radius: 20px; padding: 0 4px; font-size: 13px; }
.catbar-pager .icon-btn { width: 30px; height: 34px; }
.catbar-pager .icon-btn svg { width: 16px; height: 16px; stroke-width: 1.5; }
.catbar-pager .icon-btn:disabled { opacity: .3; cursor: default; }
.catbar-drop { position: absolute; left: 0; right: 0; top: 100%; color: var(--ink); background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -32px rgba(26, 26, 26, .35); animation: dropIn .22s var(--ease); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } }
.catbar-drop-in { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 32px; }
.cd-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.cd-head .eyebrow { margin: 0; }
.cd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 180px)); gap: 20px; }
.cd-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.cd-img { display: block; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; margin-bottom: 6px; }
.cd-img svg, .cd-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cd-card:hover .cd-img svg, .cd-card:hover .cd-img img { transform: scale(1.04); }
.cd-name { font-family: var(--serif); font-size: 19px; line-height: 1.15; }
.cd-price { font-size: 13px; color: var(--ink-2); }

/* ---------- catalog: sidebar + grid ---------- */
.cat-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; border-top: 1px solid var(--line); }
.cat-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; padding-top: 8px; }
.cat-side-head, .cat-side-foot { display: none; }
.fgroup { border-bottom: 1px solid var(--line); padding: 4px 0 14px; }
.fgroup summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 0 8px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: '+'; font-size: 18px; font-weight: 300; line-height: 1; }
.fgroup[open] summary::after { content: '−'; transform: none; }
.fgroup--flat { padding-top: 14px; }
.fcheck { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; cursor: pointer; }
.fcheck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fbox { flex: none; width: 18px; height: 18px; border: 1px solid var(--taupe); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.fcheck input:checked + .fbox { background: var(--ink); border-color: var(--ink); }
.fcheck input:checked + .fbox::after { content: ''; width: 9px; height: 5px; border: solid var(--bg); border-width: 0 0 1.5px 1.5px; transform: translateY(-1px) rotate(-45deg); }
.fcheck input:focus-visible + .fbox { outline: 1px solid var(--ink); outline-offset: 2px; }
.fcheck:hover .fbox { border-color: var(--ink); }
.flabel { flex: 1; }
.fcount { font-size: 12px; color: var(--ink-2); }
.fhint { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.fhint b { color: var(--ink); font-weight: 400; }
.fgroup .swatches { gap: 4px; margin-bottom: 8px; }
.fgroup .swatch { --s: 28px; }
.cat-top { display: flex; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cat-count { flex: 1; font-size: 12px; letter-spacing: .1em; color: var(--ink-2); }
.filter-toggle { display: none; align-items: center; gap: 8px; border: 0; background: none; padding: 10px 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.filter-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.sort select { appearance: none; -webkit-appearance: none; border: 0; border-bottom: 1px solid var(--ink); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231a1a1a'/%3E%3C/svg%3E") no-repeat right 2px center; padding: 8px 22px 8px 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border-radius: 0; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 6px 10px 6px 14px; font-size: 13px; }
.chip span { font-size: 16px; line-height: 1; color: var(--ink-2); }
.chip:hover { border-color: var(--ink); }
.cat-main .grid { padding-top: 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.8vw, 28px); }
.grid-empty { grid-column: 1 / -1; text-align: center; padding: 64px 0; color: var(--ink-2); }

.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; aspect-ratio: 3 / 4; background: var(--sand); overflow: hidden; }
.card-link { position: absolute; inset: 0; border: 0; padding: 0; background: none; }
.card-img { position: absolute; inset: 0; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.card-img svg, .card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img--alt { opacity: 0; }
@media (hover: hover) {
  .card-media:hover .card-img--alt { opacity: 1; }
  .card-media:hover .card-img--main { opacity: 0; transform: scale(1.03); }
  .card-quick { opacity: 0; transform: translateY(8px); }
  .card-media:hover .card-quick, .card-quick:focus-visible { opacity: 1; transform: none; }
}
.badge { position: absolute; top: 14px; left: 14px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; background: var(--bg); padding: 5px 10px; pointer-events: none; }
.wish { position: absolute; top: 8px; right: 8px; }
.wish[aria-pressed="true"] svg { fill: var(--ink); }
.card-quick { position: absolute; left: 12px; right: 12px; bottom: 12px; min-height: 44px; border: 0; background: var(--bg); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; transition: opacity .3s, transform .3s var(--ease), background .2s; }
.card-quick:hover { background: var(--ink); color: var(--bg); }
.card-body { padding-top: 16px; }
.card-body h3 { font-size: 22px; line-height: 1.15; }
.card-body h3 button { border: 0; background: none; padding: 0; text-align: left; font: inherit; }
.card-price { margin: 6px 0 12px; font-size: 14px; letter-spacing: .04em; }
.card-sub { font-size: 13px; color: var(--ink-2); margin: 0; }
.card-swatches { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-color { font-size: 12px; color: var(--ink-2); }

/* ---------- swatches ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { --s: 30px; width: var(--s); height: var(--s); padding: 3px; border: 1px solid transparent; border-radius: 9px; background: none; transition: border-color .2s; }
/* a piece of HEXA biothane: embossed honeycomb (dark groove + light ridge), glossy coating, rounded strap edges */
.swatch span {
  display: block; width: 100%; height: 100%; border-radius: 6px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .08) 32%, transparent 48%, rgba(0, 0, 0, .14) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5.196 9'%3E%3Cpath d='M2.598,1.5L5.196,3V6L2.598,7.5L0,6V3ZM2.598,0V1.5M2.598,7.5V9' fill='none' stroke='rgba%28255,255,255,.32%29' stroke-width='.5'/%3E%3C/svg%3E") .6px .7px / 7px 12.12px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5.196 9'%3E%3Cpath d='M2.598,1.5L5.196,3V6L2.598,7.5L0,6V3ZM2.598,0V1.5M2.598,7.5V9' fill='none' stroke='rgba%280,0,0,.34%29' stroke-width='.5'/%3E%3C/svg%3E") 0 0 / 7px 12.12px,
    var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2), inset 0 1.5px 1px rgba(255, 255, 255, .35), inset 0 -2px 3px rgba(0, 0, 0, .22);
}
.swatch:hover { border-color: var(--taupe); }
.swatch[aria-checked="true"] { border-color: var(--ink); }
.swatches--sm { gap: 4px; }
.swatches--sm .swatch { --s: 22px; padding: 2px; }
.swatch-more { font-size: 11px; color: var(--ink-2); margin-left: 2px; }
.swatch-name { font-weight: 400; color: var(--ink-2); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.field > label, .field > span, .field-top { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.field label em, .mfield label em { text-transform: none; letter-spacing: 0; font-style: normal; color: var(--ink-2); }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-top .link--icon { text-transform: none; letter-spacing: 0; font-size: 13px; }
.field input, .field select {
  appearance: none; -webkit-appearance: none; width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 0;
  padding: 14px 16px; font-size: 15px; font-weight: 300; outline: none; transition: border-color .2s;
}
.field select { background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231a1a1a'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus { border-color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--line); width: fit-content; }
.seg button { border: 0; background: none; padding: 10px 22px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.check { display: flex; align-items: center; gap: 12px; font-size: 14px; margin: 0 0 16px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; border: 1px solid var(--ink); margin: 0; display: grid; place-items: center; }
.check input:checked { background: var(--ink); }
.check input:checked::after { content: ''; width: 5px; height: 9px; border: solid var(--bg); border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg); }
.check em { font-style: normal; color: var(--ink-2); margin-left: auto; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 50px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; }
.qty--sm { height: 32px; }
.qty--sm button { width: 30px; }
.form-error { color: var(--danger); font-size: 13px; margin: 10px 0 0; min-height: 1em; }

/* ---------- faq ---------- */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-family: var(--serif); font-size: 23px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--sans); font-weight: 300; font-size: 22px; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); padding-bottom: 22px; max-width: 64ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--sand); margin-top: 32px; }
.ft { max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter) 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ft-brand .brand { align-items: flex-start; }
.ft-brand .brand span:last-child { padding-left: 0; }
.ft-brand p { margin-top: 16px; font-size: 14px; color: var(--ink-2); max-width: 32ch; }
.ft-col h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; margin-bottom: 16px; }
.ft-col a { display: block; text-decoration: none; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; overflow-wrap: anywhere; }
.ft-col a:hover { color: var(--ink); }
.ft-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; font-size: 12px; letter-spacing: .06em; color: var(--ink-2); }

/* ---------- product dialog ---------- */
dialog { color: var(--ink); }
/* ---------- shop (home) + product page ---------- */
.shop { max-width: var(--max); margin: 0 auto; padding: clamp(20px, 3vw, 36px) var(--gutter) clamp(64px, 8vw, 112px); }
.shop-title { font-size: clamp(34px, 4vw, 52px); margin: 0 0 4px; }
.cat-layout { border-top: 0 !important; }
.pp { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) clamp(64px, 8vw, 112px); }
.pp-loading { padding: 80px 0; text-align: center; }
.pp-crumbs { margin-bottom: 20px; }
.pp-crumbs span { color: var(--ink); }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pp-media { position: sticky; top: 88px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
.pp-img { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.pp-img svg, .pp-img img { width: 100%; height: 100%; object-fit: cover; }
.pp-thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 8px; }
.pp-thumbs button { width: 72px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid transparent; background: var(--sand); overflow: hidden; }
.pp-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.pp-thumbs svg, .pp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pp-info { padding-top: 8px; }
.pp-title { font-size: clamp(38px, 4.2vw, 60px); }
.pp-price { font-size: 20px; letter-spacing: .04em; margin: 12px 0 20px; }
.pp-desc { color: var(--ink-2); font-size: 15px; margin-bottom: 28px; max-width: 52ch; }
.pp-try { margin-top: 18px; font-size: 13px; }
.pp-more { margin-top: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); padding-top: 32px; }
.pp-more h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 24px; }
.pp-more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.pp-missing { text-align: center; padding: 96px 0; display: grid; gap: 24px; justify-items: center; }
.card-body h3 a, .card-quick { text-decoration: none; }
.card-quick { display: grid; place-items: center; }
.pdp-dog { display: flex; gap: 12px; align-items: flex-start; background: var(--sand); padding: 14px 16px; margin-bottom: 24px; font-size: 14px; }
.pdp-dog p { margin: 0; }
.pdp-dog svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; margin-top: 2px; }
.pdp-buy { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.pdp-buy .btn { flex: 1; padding: 0 16px; white-space: nowrap; letter-spacing: .16em; }
.pdp-buy .wish { position: static; width: 50px; height: 50px; border: 1px solid var(--line); }
.pdp-facts { list-style: none; padding: 24px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); display: grid; gap: 8px; }
.pdp-facts li::before { content: '—'; margin-right: 10px; color: var(--taupe); }

/* ---------- drawers (cart aside + size dialog) ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(26, 26, 26, .35); opacity: 0; transition: opacity .3s; }
.scrim.on { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 51; width: min(460px, 100vw); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
.drawer.open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 28px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 24px; }
.ship-meter:not(:empty) { padding: 14px 24px; border-bottom: 1px solid var(--line); }
.ship-meter p { margin: 0 0 8px; font-size: 13px; }
.bar { height: 2px; background: var(--line); }
.bar i { display: block; height: 100%; background: var(--ink); transition: width .5s var(--ease); }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line-art { width: 76px; height: 96px; background: var(--sand); overflow: hidden; }
.line-art svg, .line-art img { width: 100%; height: 100%; object-fit: cover; }
.line-info strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.1; }
.line-info small { display: block; color: var(--ink-2); font-size: 12px; line-height: 1.5; margin: 4px 0 10px; }
.line-ctrl { display: flex; gap: 16px; align-items: center; }
.line-price { font-size: 14px; white-space: nowrap; }
.empty { text-align: center; padding: 72px 0; color: var(--ink-2); }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer-foot .row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.drawer-foot .row strong { font-family: var(--serif); font-size: 26px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.drawer-foot .muted { margin: 4px 0 16px; font-size: 13px; }
.pay-note { text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 14px 0 0; }

.side { border: 0; padding: 0; margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(560px, 100vw); max-width: 100vw; background: var(--bg); display: none; flex-direction: column; }
.side::backdrop { background: rgba(26, 26, 26, .35); }
.side[open] { display: flex; animation: slideR .35s var(--ease); }
@keyframes slideR { from { transform: translateX(100%); } }
.side-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.side-link { display: block; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 16px); background: var(--ink); color: var(--bg); padding: 12px 22px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: .3s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- size constructor ---------- */
.sc-step { padding: 32px 0; border-bottom: 1px solid var(--line); }
.sc-step:last-child { border-bottom: 0; }
.sc-step > header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.sc-n { font-size: 11px; letter-spacing: .2em; color: var(--taupe-d); }
.sc-step h3 { font-size: clamp(28px, 3vw, 40px); }
.sc-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; }
.sc-row .field { margin-bottom: 0; }
.sc-hint { font-size: 14px; color: var(--ink-2); margin: 16px 0 0; }
.combo { position: relative; }
.combo-list { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; max-height: 280px; overflow-y: auto; margin: 0; padding: 4px 0; list-style: none; background: var(--surface); border: 1px solid var(--ink); border-top: 0; }
.combo-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; font-size: 15px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.combo-list li small { color: var(--ink-2); font-size: 12px; }
.combo-list li:hover, .combo-list li[aria-selected="true"] { background: var(--sand); }
.combo-list .none { color: var(--ink-2); cursor: default; }

.sc-measure { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.sc-figure { margin: 0; background: var(--surface); padding: 20px; position: sticky; top: 100px; }
.sc-figure figcaption { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); min-height: 72px; }
.sc-figure figcaption svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.3; margin-top: 3px; }
.sc-figure figcaption b { color: var(--ink); }
.dog-diagram { width: 100%; height: auto; }
.dd-ground { stroke: var(--line); stroke-width: 1; }
.dd-body { fill: var(--sand); stroke: var(--taupe); stroke-width: 1.2; }
.dd-ear { fill: #e3d9cd; stroke: var(--taupe); stroke-width: 1.2; }
.dd-eye { fill: var(--ink); }
.dd-zone { cursor: pointer; }
.dd-zone ellipse, .dd-zone path { fill: none; stroke: var(--taupe); stroke-width: 1.4; stroke-dasharray: 4 4; transition: stroke .25s, stroke-width .25s; }
.dd-zone text { font: 400 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; fill: var(--ink-2); }
.dd-zone.filled ellipse, .dd-zone.filled path { stroke: var(--taupe-d); stroke-dasharray: none; }
.dd-zone.on ellipse, .dd-zone.on path { stroke: var(--ink); stroke-width: 2.2; stroke-dasharray: none; }
.dd-zone.on text { fill: var(--ink); }
.dd-values text { font: 500 13px var(--sans); fill: var(--ink); }

.mfield { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); transition: background .25s; }
.mfield:first-child { border-top: 1px solid var(--line); }
.mfield label { font-size: 15px; }
.mfield label small { display: block; font-size: 12px; color: var(--ink-2); }
.mfield.on label { font-weight: 400; }
.mfield.on { box-shadow: inset 2px 0 0 var(--ink); padding-left: 12px; }
.num { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface); height: 44px; }
.num button { width: 34px; height: 100%; border: 0; background: none; font-size: 16px; }
.num input { width: 58px; border: 0; background: none; text-align: center; font-size: 16px; outline: none; -moz-appearance: textfield; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num span { font-size: 12px; color: var(--ink-2); padding-right: 6px; min-width: 24px; }
.sc-fields .check { margin-top: 18px; }
.sc-fields .check + .check { margin-top: 0; }

.sc-size { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; background: var(--surface); padding: clamp(20px, 3vw, 32px); }
.sc-letter { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 132px; aspect-ratio: 1; border: 1px solid var(--ink); }
.sc-letter span { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.sc-letter strong { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; }
.sc-notes p { font-size: 15px; margin-bottom: .6em; }
.sc-notes p:last-child { margin-bottom: 0; }
.sc-color { margin-top: 32px; }
.sc-color .field-top { margin-bottom: 12px; }
.sc-products h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; margin: 36px 0 18px; }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 14px; }
.mini { display: flex; flex-direction: column; text-align: left; border: 0; padding: 0; background: none; }
.mini-art { aspect-ratio: 3 / 4; background: var(--sand); overflow: hidden; display: block; }
.mini-art svg { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.mini:hover .mini-art svg { transform: scale(1.04); }
.mini-name { font-family: var(--serif); font-size: 19px; margin-top: 10px; line-height: 1.15; }
.mini-meta { font-size: 12px; color: var(--ink-2); margin-top: 4px; }

/* ---------- page heroes (size guide / fit builder) ---------- */
.page-hero { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(24px, 3vw, 40px); text-align: center; }
.page-hero h1 { font-size: clamp(48px, 7vw, 96px); margin-bottom: 20px; }
.page-hero .lead { margin: 0 auto; }
.crumbs { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.sg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 8vw, 112px); }

.chart { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.chart th, .chart td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.chart th { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; color: var(--ink-2); }
.chart td:first-child { font-family: var(--serif); font-size: 22px; }
.table-scroll { overflow-x: auto; }

/* ---------- 3D fitting room ---------- */
.page-hero--tight { padding-bottom: clamp(16px, 2vw, 28px); }
.fr { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.fr-stage { position: sticky; top: 84px; height: min(78vh, 760px); background: #ece6de; overflow: hidden; }
.fr-canvas, .fr-canvas canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.fr-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); text-align: center; padding: 24px; }
.fr-views { position: absolute; top: 14px; left: 14px; display: flex; background: color-mix(in srgb, var(--bg) 92%, transparent); border: 1px solid var(--line); }
.fr-views button { border: 0; background: none; padding: 8px 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.fr-views button + button { border-left: 1px solid var(--line); }
.fr-views button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.fr-badge { position: absolute; top: 14px; right: 14px; padding: 8px 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; background: var(--bg); border: 1px solid var(--line); }
.fr-badge::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: #4d7c57; vertical-align: 1px; }
.fr-badge[data-status="loose"]::before { background: #c08a2e; }
.fr-badge[data-status="tight"]::before { background: var(--danger); }
.fr-hint { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; margin: 0; font-size: 11px; letter-spacing: .1em; color: var(--ink-2); pointer-events: none; }
.fr-panel { background: var(--surface); padding: clamp(20px, 2.4vw, 32px); }
.fr-block { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.fr-h { display: flex; align-items: baseline; gap: 12px; font-size: 28px; margin-bottom: 16px; }
.fr-h span { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--taupe-d); }
.fr-h-row { display: flex; justify-content: space-between; align-items: baseline; }
.prod-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.prod-chips button { border: 1px solid var(--line); background: none; padding: 8px 12px; font-size: 13px; transition: border-color .2s, background .2s; }
.prod-chips button:hover { border-color: var(--ink); }
.prod-chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.prod-chips { margin-bottom: 20px; }
.slider { margin-bottom: 14px; }
.slider-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.slider-top output { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.slider-src { font-size: 11px; letter-spacing: .08em; color: var(--taupe-d); margin-left: 6px; }
.slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: none; margin: 0; }
/* track: thin line + a soft band for the typical range + a tick at typical (vars set by fit-builder.js) */
.slider input[type=range] { --th: 16px; --lo: 0; --hi: 0; --tp: -1; }
.slider input[type=range]::-webkit-slider-runnable-track {
  height: 12px;
  background:
    linear-gradient(to right, transparent calc(var(--th) / 2 + var(--tp) * (100% - var(--th)) - 1px), var(--ink) 0, var(--ink) calc(var(--th) / 2 + var(--tp) * (100% - var(--th)) + 1px), transparent 0) center / 100% 12px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat,
    linear-gradient(to right, transparent calc(var(--th) / 2 + var(--lo) * (100% - var(--th))), var(--band) 0, var(--band) calc(var(--th) / 2 + var(--hi) * (100% - var(--th))), transparent 0) center / 100% 6px no-repeat;
}
.slider input[type=range]::-moz-range-track { height: 1px; background: var(--ink); }
.slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -2px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--ink); }
.slider input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); }
.fr-fit p { font-size: 14px; margin: 12px 0 0; }
.fitbar { position: relative; height: 6px; background: var(--sand); margin: 6px 0 4px; }
.fitbar-range { position: absolute; top: 0; bottom: 0; background: #b9cdb9; }
.fitbar--loose .fitbar-range { background: #e8d2a6; }
.fitbar--tight .fitbar-range { background: #e7b8ae; }
.fitbar-dot { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); transform: translate(-50%, -50%); }
.fr-actions { display: grid; gap: 10px; }
.fr-actions .note { margin-top: 6px; }
@media (max-width: 960px) {
  .fr { grid-template-columns: 1fr; }
  .fr-stage { position: relative; top: 0; height: 62vh; min-height: 360px; }
}
@media (max-width: 640px) {
  .fr { padding: 0 0 64px; }
  .fr-panel { padding: 20px 16px; }
  .fr-views button { padding: 7px 10px; }
  .fr-badge { top: auto; bottom: 34px; right: 50%; transform: translateX(50%); white-space: nowrap; }
}

/* fitting room: measurement controls (desktop shows all sliders, phones one at a time) */
.m-chips, .fr-tabs, .fr-bar { display: none; }
.slider-row { display: flex; align-items: center; gap: 8px; }
.slider-row input { flex: 1; }
.step { flex: none; width: 30px; height: 30px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; line-height: 1; }
.step:active { background: var(--sand); }
.fr-readout { position: absolute; left: 50%; bottom: 40px; transform: translate(-50%, 8px); display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: var(--ink); color: var(--bg); font-size: 13px; letter-spacing: .06em; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.fr-readout.on { opacity: 1; transform: translate(-50%, 0); }
.fr-readout b { font-weight: 500; font-size: 15px; }
.fr-readout span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.fr-readout span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: #8fc59a; vertical-align: 1px; }
.fr-readout span[data-status="loose"]::before { background: #e3b45c; }
.fr-readout span[data-status="tight"]::before { background: #e8766a; }
.fr-h--m { display: none; }

/* phones (portrait) and short landscape screens: pinned 3D view + tabs */
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) {
  body:has(.fr) .catbar-wrap { display: none; } /* the 3D room needs the whole phone screen */
  .page-hero--tight { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fr { --hdr: 57px; display: block; padding: 0; }
  .fr-stage { position: sticky; top: var(--hdr); z-index: 6; height: 38vh; height: 38svh; min-height: 0; }
  .fr-hint { display: none; }
  .fr-views { top: 8px; left: 8px; }
  .fr-views button { padding: 7px 9px; font-size: 10px; }
  .fr-badge { top: 8px; right: 8px; bottom: auto; transform: none; padding: 6px 10px; font-size: 10px; }
  .fr-readout { bottom: 12px; }
  .fr-tabs { display: flex; position: sticky; z-index: 6; top: calc(var(--hdr) + 38vh); top: calc(var(--hdr) + 38svh); background: var(--bg); border-bottom: 1px solid var(--line); }
  .fr-tabs button { flex: 1; border: 0; background: none; padding: 13px 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
  .fr-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
  .fr-panel { padding: 12px 16px calc(96px + env(safe-area-inset-bottom)); min-height: 50vh; }
  .fr-panel[data-active="breed"] [data-tab]:not([data-tab="breed"]),
  .fr-panel[data-active="size"] [data-tab]:not([data-tab="size"]),
  .fr-panel[data-active="product"] [data-tab]:not([data-tab="product"]),
  .fr-panel[data-active="fit"] [data-tab]:not([data-tab="fit"]) { display: none; }
  .fr-block { border: 0; margin: 0; padding: 0; }
  .fr-h { display: none; }
  .fr-h-row { display: none; }
  .prod-chips button { padding: 9px 11px; font-size: 13px; }
  .prod-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 16px; padding: 0 16px; }
  .prod-chips::-webkit-scrollbar { display: none; }
  .prod-chips button { flex: none; }

  .m-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .m-chips::-webkit-scrollbar { display: none; }
  .m-chip { flex: none; display: flex; align-items: baseline; gap: 6px; border: 1px solid var(--line); background: none; padding: 9px 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
  .m-chip--reset { color: var(--ink-2); }
  .m-chip small { font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .m-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .m-chip[aria-pressed="true"] small { color: var(--bg); opacity: .8; }
  .slider { display: none; margin: 0; }
  .slider.on { display: block; }
  .slider-top { font-size: 15px; margin-bottom: 4px; }
  .slider-top output { color: var(--ink); font-size: 17px; }
  .slider-row { gap: 12px; }
  .step { width: 44px; height: 44px; font-size: 20px; }
  .slider input[type=range] { height: 44px; }
  .slider input[type=range]::-webkit-slider-runnable-track { height: 2px; }
  .slider input[type=range] { --th: 28px; }
  .slider input[type=range]::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -8px; }
  .slider input[type=range]::-moz-range-thumb { width: 22px; height: 22px; }

  .fr-fit-wrap .fr-actions { margin-top: 20px; }
  .fr-fit-wrap #frAdd { display: none; } /* the bottom bar already has it */
  .fr-bar { display: flex; position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .fr-bar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .fr-bar-info span { font-family: var(--serif); font-size: 18px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fr-bar-info b { font-weight: 400; font-size: 13px; color: var(--ink-2); }
  .fr-bar .btn { min-height: 46px; padding: 0 22px; }
  body:has(.fr-bar) .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
/* landscape phone: view and controls side by side */
@media (max-height: 500px) and (orientation: landscape) {
  .fr { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .fr-stage { grid-row: 1 / 3; height: calc(100vh - var(--hdr)); height: calc(100svh - var(--hdr)); }
  .fr-tabs { top: var(--hdr); }
  .fr-bar { left: auto; width: 44%; }
  .announce { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hdr-search input { width: 110px; }
  .hdr-nav { gap: 18px; }
}
@media (max-width: 960px) {
  .hdr-nav, .hdr-search, .hdr-actions .hdr-lang { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-layout { display: block; }
  .filter-toggle { display: inline-flex; }
  .cat-side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 51; width: min(380px, 88vw); max-height: none; padding: 0; background: var(--bg); display: flex; flex-direction: column; transform: translateX(-100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
  .cat-side.open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .cat-side-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line); }
  .cat-side-head h3 { font-size: 28px; }
  .cat-side-body { flex: 1; overflow-y: auto; padding: 0 24px; }
  .cat-side-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .cat-side-foot .btn { flex: 1; padding: 0 16px; }
  .fcheck { padding: 10px 0; font-size: 15px; }
  .catbar-item { padding: 10px 0; font-size: 13px; gap: 8px; }
  .catbar-item > svg { width: 24px; height: 24px; }
  .catbar-chev { display: none; }
  .catbar-drop { display: none; }
  .hdr-burger { display: inline-grid; justify-self: start; }
  .hdr { grid-template-columns: 1fr auto 1fr; padding-block: 10px; }
  .hero { grid-template-columns: 1fr; }
  .pp-grid { grid-template-columns: 1fr; }
  .pp-media { position: static; grid-template-columns: 1fr; }
  .pp-img { grid-column: 1; }
  .pp-thumbs { grid-column: 1; grid-row: 2; flex-direction: row; }
  .pp-thumbs button { width: 64px; }
  .pp-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-measure { grid-template-columns: 1fr; }
  .sc-figure { position: static; }
  .mini-grid { grid-template-columns: repeat(3, 1fr); }
  .ft { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .card-body h3 { font-size: 19px; }
  .card-quick { display: none; }
  .wish { top: 2px; right: 2px; }
  .card-swatches .swatch:nth-of-type(n + 6), .card-swatches .swatch-more { display: none; }
  .card-color { width: 100%; }
  .hero h1 { font-size: 52px; }
  .cta-row .btn { flex: 1 1 100%; }
  .shop-title { font-size: 32px; }
  .sc-row { grid-template-columns: 1fr; }
  .sc-size { grid-template-columns: 1fr; justify-items: start; }
  .sc-letter { width: 96px; }
  .sc-letter strong { font-size: 48px; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .mfield { gap: 8px; }
  .mfield label { font-size: 14px; }
  .num input { width: 48px; }
  .sc-figure { padding: 12px; }
  .sc-figure figcaption { min-height: 0; font-size: 13px; }
  .side-body { padding: 4px 16px 24px; }
  .ft { grid-template-columns: 1fr 1fr; gap: 28px; }
  .brand span:first-child { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* product photos (e.g. from Stripe) are cut-outs on white: show them whole, on white */
.card-img img, .cd-img img, .pp-img img, .pp-thumbs img { object-fit: contain; padding: 8%; background: #fff; box-sizing: border-box; }

/* language: flags in the header on every screen size */
.hdr-lang { gap: 6px; }
.hdr-lang button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; opacity: .5; text-decoration: none !important; }
.hdr-lang button span { opacity: 1; }
.hdr-lang button svg { width: 20px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.hdr-lang button[aria-pressed="true"] { opacity: 1; }
.hdr-lang button[aria-pressed="true"] svg { box-shadow: 0 0 0 1.5px #fff; }
@media (max-width: 1100px) { .hdr-lang button span { display: none; } }
@media (max-width: 760px) {
  .hdr-actions .hdr-lang { display: flex; margin-right: 0; gap: 2px; }
  .hdr-lang--m { display: none; }
}

/* catalog card: "Zaprojektuj" top-left, badge moves under it */
.card-design { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; background: var(--ink); color: var(--bg); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; transition: background .2s; }
.card-design:hover { background: #3a3530; }
.card-design svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.badge--low { top: 52px; }
.pp-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }

/* big swatches (designer) */
.swatches--lg { gap: 10px; }
.swatches--lg .swatch { --s: 56px; padding: 4px; border-radius: 12px; }
.swatches--lg .swatch span { border-radius: 8px; }

/* ---------- designer (/projektuj) ---------- */
.dz { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); min-height: calc(100vh - var(--top, 120px)); background: var(--bg); }
.dz-stage { position: sticky; top: var(--hdr, 0px); height: calc(100vh - var(--top, 120px)); height: calc(100svh - var(--top, 120px)); background: #ece6de; }
.dz-canvas { position: absolute; inset: 0; }
.dz-canvas canvas { display: block; width: 100%; height: 100%; }
.dz-back { position: absolute; top: 16px; left: 16px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); text-decoration: none; background: var(--surface); padding: 8px 12px; }
.dz-dog { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); border: 1px solid var(--ink); background: var(--surface); padding: 9px 16px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.dz-dog[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.dz-panel { display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--surface); min-height: 0; }
.dz-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.dz-steps button { width: 100%; height: 100%; border: 0; border-bottom: 2px solid transparent; background: none; padding: 14px 8px 12px; text-align: left; font-size: 12px; letter-spacing: .04em; color: var(--ink); display: grid; gap: 2px; }
.dz-steps button span { font-size: 10px; letter-spacing: .2em; color: var(--taupe-d); }
.dz-steps button small { color: var(--ink-2); font-size: 11px; min-height: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-steps button[aria-current="step"] { border-bottom-color: var(--ink); }
.dz-steps button:disabled { opacity: .4; }
.dz-body { flex: 1; padding: 32px clamp(20px, 3vw, 40px); overflow: auto; }
.dz-title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); margin: 0 0 8px; line-height: 1.05; }
.dz-body > .muted { margin: 0 0 26px; }
.dz-pick { display: flex; justify-content: space-between; font-size: 13px; margin: 0 0 12px; color: var(--ink-2); }
.dz-pick b { font-weight: 400; color: var(--ink); }
.dz-same { margin-top: 18px; }
.dz-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dz-card { border: 1px solid var(--line); background: var(--surface); padding: 22px 12px 16px; display: grid; justify-items: center; gap: 12px; font-size: 14px; }
.dz-card b { font-weight: 400; }
.dz-card[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.dz-stud { --m: #c9ced4; width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 3px 6px rgba(0, 0, 0, .22), inset 0 -3px 5px rgba(0, 0, 0, .25);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85) 0, transparent 38%), radial-gradient(circle at 50% 55%, var(--m) 40%, color-mix(in srgb, var(--m) 70%, #000) 100%); }
.dz-card[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.dz-card small { font-size: 11px; color: var(--ink-2); }
.dz-zones { display: grid; gap: 14px; margin-top: 8px; }
.dz-zone .dz-pick { margin-bottom: 6px; }
.dz-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.dz-summary { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--line); }
.dz-summary li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dz-summary span { color: var(--ink-2); }
.dz-summary b { font-weight: 400; }
.dz-foot { position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px clamp(20px, 3vw, 40px); border-top: 1px solid var(--line); background: var(--surface); }
.dz-price { margin: 0; display: grid; text-align: center; font-size: 12px; color: var(--ink-2); }
.dz-price b { font-weight: 400; font-size: 18px; color: var(--ink); }
.dz-foot .btn:disabled { opacity: .35; pointer-events: none; }
body:has(.dz) .catbar-wrap, body:has(.dz) .site-footer, body:has(.dz) footer { display: none; }
@media (max-width: 900px) {
  .dz { grid-template-columns: 1fr; }
  .dz-stage { position: sticky; top: var(--hdr, 57px); height: 46vh; height: 46svh; z-index: 1; }
  .dz-panel { border-left: 0; }
  .dz-steps button { padding: 12px 6px 10px; font-size: 11px; }
  .dz-body { padding: 22px 16px 28px; overflow: visible; }
  .dz-foot { padding: 12px 16px; }
  .dz-price span { display: none; }
  .swatches--lg .swatch { --s: 48px; }
}

/* quick size check (slide-over): picture, small recommendation, sliders */
.side--narrow { width: min(440px, 100vw); }
.qs { display: grid; gap: 18px; padding: 8px 0 12px; }
.qs-fig { margin: 0; background: var(--surface); padding: 14px 16px 6px; }
.qs-fig .dog-diagram { display: block; width: 100%; height: auto; }
.qs-rec { justify-self: center; display: flex; align-items: center; gap: 14px; max-width: 300px; width: 100%; padding: 12px 16px; border: 1px solid var(--ink); background: var(--surface); }
.qs-rec:empty { display: none; }
.qs-size { flex: none; font-family: var(--serif); font-size: 40px; line-height: 1; min-width: 44px; text-align: center; }
.qs-info { display: grid; gap: 2px; font-size: 13px; min-width: 0; }
.qs-info b { font-weight: 400; }
.qs-info small { font-size: 12px; color: var(--ink-2); }
.qs-info em { font-style: normal; font-size: 12px; color: var(--taupe-d); }
.qs-sliders .slider { display: block; margin-bottom: 12px; }
.qs .btn-wide { margin-top: 4px; }
.qs .dd-zone[data-zone="back"], .qs [data-val="back"] { display: none; } /* no back slider in the quick check */

/* ---------- product options (options.js): chips, greyed-out choices, checks, summary ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 64px; padding: 10px 14px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 14px; text-align: left; transition: border-color .15s; }
.chip b { font-weight: 400; }
.chip small { font-size: 11px; color: var(--ink-2); }
.chip em { font-style: normal; font-size: 11px; color: var(--taupe-d); }
.chip:hover { border-color: var(--taupe); }
.chip[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-disabled="true"] { cursor: not-allowed; color: var(--ink-2); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0, 0, 0, .035) 6px 7px), var(--surface); border-style: dashed; }
.chip[aria-disabled="true"]:hover { border-color: var(--line); }
.chip .chip-off { color: var(--taupe-d); }
.chip--metal { flex-direction: row; align-items: center; gap: 8px; }
.chip--metal i { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .8), transparent 45%), var(--m); box-shadow: inset 0 -1px 2px rgba(0, 0, 0, .3); }
.chip .chip-text { display: contents; }
/* hardware picker: a real photo of each carabiner (placeholder until it has one) */
.chip--photo { flex-direction: row; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; }
.chip--photo .chip-text { display: flex; flex-direction: column; gap: 2px; }
.chip--photo .chip-text b { display: flex; align-items: center; gap: 6px; }
.chip-photo { width: 52px; height: 52px; object-fit: cover; background: var(--sand); flex: none; display: block; }
.chip-photo--none { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(0, 0, 0, .05) 5px 6px), var(--sand); position: relative; }
.chip-photo--none::after { content: ''; position: absolute; inset: 14px; border: 2px solid var(--taupe); border-radius: 50% 50% 40% 40%; border-bottom-color: transparent; }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--m); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); display: inline-block; flex: none; }
.swatch[aria-disabled="true"] { cursor: not-allowed; opacity: .35; position: relative; }
.swatch[aria-disabled="true"]::after { content: ''; position: absolute; inset: 45% 2px auto; height: 1.5px; background: var(--ink); transform: rotate(-45deg); }
.swatch[aria-disabled="true"]:hover { border-color: transparent; }
.field-err { margin: -2px 0 0; font-size: 13px; color: var(--danger); min-height: 0; }
.field-err:empty { display: none; }
.field .req { color: var(--taupe-d); }
.unit-input { display: flex; align-items: center; gap: 10px; }
.unit-input input { flex: 1; min-width: 0; }
.unit-input span { font-size: 13px; color: var(--ink-2); }
.pp-stock { font-size: 13px; color: var(--ink-2); margin: -6px 0 18px; }
.pp-stock .out { font-weight: 400; color: var(--danger); }
.pp-sum { margin: 4px 0 20px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); }
.pp-sum:empty { display: none; }
.pp-sum .eyebrow { margin: 0 0 8px; }
.pp-sum dl { margin: 0; display: grid; gap: 4px; font-size: 13px; }
.pp-sum dl div { display: flex; justify-content: space-between; gap: 16px; }
.pp-sum dt { color: var(--ink-2); }
.pp-sum dd { margin: 0; text-align: right; }
.pp-more-info { margin: 28px 0 8px; }
.pp-more-info summary { font-size: 19px; padding: 16px 0; }
.pp-more-info details p { padding-bottom: 16px; font-size: 14px; }
.pp-specs { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 18px; }
.pp-specs th, .pp-specs td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pp-specs th { font-weight: 400; color: var(--ink-2); width: 42%; padding-right: 12px; }
.cd-card--add { gap: 6px; }
.cd-card--add a { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 11px; margin-top: 4px; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.badge--out { background: var(--ink); color: var(--bg); }
.field-top small, .field > label small { text-transform: none; letter-spacing: 0; font-size: 12px; }
