/* 3DCoolCut. Light graphite ramp from the logo's charcoal, brand orange as the one accent. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --raised: #e7e7e4;
  --text: #26272b;
  --text-2: #55565c;
  --muted: #6b6c72;
  --line: rgba(38, 39, 43, 0.1);
  --accent: #f26b21;      /* logo orange, for marks and small fills */
  --accent-ink: #b8460d;  /* darker shade for text on light */
  --cut: #e2570f;         /* the hero cut line, logo orange deep enough to read on the page */

  /* Gradients, all taken from the logo: orange, amber and teal.
     Deep shades wherever white text sits on them, so it stays readable. */
  --grad-brand: linear-gradient(90deg, #c2410c 0%, #b45309 48%, #0e7490 100%);
  --grad-cta: linear-gradient(135deg, #cc4a12 0%, #b8460d 50%, #9a3412 100%);
  --grad-cta-hover: linear-gradient(135deg, #c44410 0%, #b23c0c 50%, #8f2f10 100%);
  --grad-teal: linear-gradient(135deg, #1593ae 0%, #0e7490 100%);
  --grad-hero:
    radial-gradient(55% 75% at 82% 42%, rgba(42, 157, 184, 0.18), transparent 70%),
    radial-gradient(45% 65% at 8% 95%, rgba(242, 107, 33, 0.16), transparent 70%),
    radial-gradient(40% 50% at 45% 0%, rgba(245, 168, 58, 0.14), transparent 70%),
    linear-gradient(180deg, #f7f0e9 0%, #f1f1ef 100%);

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-control: 10px;
  --r-card: 14px;
  --r-panel: 20px;
  --page: 1280px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--text); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: var(--r-control);
  font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-dark {
  color: var(--text); border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad-brand) border-box;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.btn-dark:hover { background: linear-gradient(#fff7f1, #fff7f1) padding-box, var(--grad-brand) border-box; }
.btn-quiet { background: transparent; color: var(--text); border-color: rgba(38, 39, 43, 0.18); }
.btn-quiet:hover { background: var(--raised); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* Nav */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Message bar */
.announce { background: var(--grad-brand); color: #fff; font-size: 13px; font-weight: 500; }
.announce-inner { height: 36px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.announce-text { margin: 0; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce-text.in { animation: msg-in 320ms var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(4px); } }
.announce-arrow {
  flex: none; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: rgba(255, 255, 255, 0.75); transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.announce-arrow:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.announce-arrow:focus-visible { outline-color: #fff; }

.announce-arrow svg, .search svg, .menu-btn svg, .nav-item svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.nav-top { height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { height: 40px; width: auto; }
.brand-word { height: 22px; width: auto; }

.search {
  flex: 1; max-width: 520px; margin-inline: auto; height: 40px; display: flex; align-items: center;
  background: var(--surface); border: 1px solid rgba(38, 39, 43, 0.16); border-radius: 10px;
  transition: border-color 160ms var(--ease);
}
.search:focus-within { border-color: var(--text); }
.search input {
  flex: 1; min-width: 0; height: 100%; padding: 0 16px; border: 0; background: transparent;
  font: 400 15px var(--font); color: var(--text); outline: none;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search button {
  flex: none; width: 32px; height: 32px; margin-right: 3px; border: 0; border-radius: 7px; cursor: pointer;
  display: grid; place-items: center; background: var(--grad-teal); color: #fff; transition: filter 160ms var(--ease);
}
.search button:hover { filter: brightness(1.08); }
.menu-btn { display: none; }

.nav-bottom { border-top: 1px solid var(--line); }
.nav-bottom-inner { height: 48px; display: flex; align-items: stretch; gap: 8px; }
.nav-item {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; margin-bottom: -1px;
  font: 500 15px var(--font); color: var(--text-2); text-decoration: none; background: none; cursor: pointer;
  border: 0; border-bottom: 2px solid transparent; transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.nav-bottom-inner > :first-child .nav-item { padding-left: 0; }
.nav-item:hover, .mega.open .nav-item { color: var(--text); border-bottom-color: var(--text); }
.nav-item svg { transition: transform 200ms var(--ease); }
.mega.open .nav-item svg { transform: rotate(180deg); }

.mega { position: relative; display: flex; }
.mega-panel {
  position: absolute; top: 100%; left: 0; z-index: 30; width: min(620px, calc(100vw - 64px)); margin-top: 1px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
}
.mega.open .mega-panel { opacity: 1; visibility: visible; transform: none; }
.mega-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.mega-head .text-link { font-size: 14px; }
.mega-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mega-tile { display: block; text-decoration: none; color: inherit; border-radius: 10px; }
.mega-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--raised); }
.mega-name { display: block; margin-top: 10px; font-size: 15px; font-weight: 500; }
.mega-tile:hover .mega-name { text-decoration: underline; text-underline-offset: 3px; }
.mega-count { display: block; font-size: 13px; color: var(--muted); }

.empty { display: grid; justify-items: center; gap: 16px; padding: 48px 0 16px; text-align: center; color: var(--text-2); }
.empty[hidden] { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; }
.hero::before { content: none; }
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 48px;
  min-height: min(calc(100svh - 153px), 800px); padding-block: 40px 56px;
}
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.03em; max-width: 13ch; font-variation-settings: "opsz" 96; }
/* "cutting" sits on an orange dashed cut line with scissors, like the cut lines in the logo */
.cut-word { position: relative; display: inline-block; white-space: nowrap; padding-right: 0.5em; }
.cut-word::after {
  content: ""; position: absolute; left: 0; right: 0.5em; bottom: -0.08em; height: 0.07em; min-height: 3px;
  background: repeating-linear-gradient(90deg, var(--cut) 0 0.32em, transparent 0.32em 0.5em);
  border-radius: 2px;
}
.cut-scissors {
  position: absolute; right: -0.04em; bottom: -0.3em; width: 0.5em; height: 0.5em; transform: rotate(-90deg);
  fill: none; stroke: var(--cut); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.lede { margin-top: 36px; font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-visual { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.stage { width: min(100%, 600px); aspect-ratio: 1; perspective: 1800px; perspective-origin: 50% 30%; container-type: inline-size; }
.stack {
  --t: 0;
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--t) * 54deg)) rotateZ(calc(var(--t) * -34deg)) translateY(calc(var(--t) * 8%)) scale(calc(1 - var(--t) * 0.22));
}
.layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* gap between layers scales with the stage, so a full spread stays inside its column */
  transform: translateZ(calc(var(--i) * (0.5cqi + var(--t) * 4.5cqi)));
  filter: drop-shadow(0 calc(2px + var(--t) * 6px) calc(4px + var(--t) * 8px) rgba(30, 30, 34, calc(0.32 - var(--t) * 0.1)));
  pointer-events: none; user-select: none;
}

.stage-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; font-size: 14px; color: var(--text-2); }
.stage-name { color: var(--text); font-weight: 500; }
.spread { display: inline-flex; align-items: center; gap: 12px; }
.spread input { width: 180px; accent-color: var(--accent); height: 44px; cursor: pointer; }

/* Designs */
.designs { padding-block: 96px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.count { margin-top: 8px; color: var(--muted); font-size: 15px; }

.filters { display: inline-flex; padding: 4px; gap: 4px; background: var(--raised); border-radius: 12px; }
.filters button {
  height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent;
  font: 500 14px/1 var(--font); color: var(--text-2); cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 20px; }
.card a { display: block; text-decoration: none; color: inherit; border-radius: var(--r-card); }
.card a:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.card-media { position: relative; aspect-ratio: 1; border-radius: var(--r-card); overflow: hidden; background: var(--raised); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 300ms var(--ease); }
.card-media .alt { opacity: 0; }
.card a:hover .alt { opacity: 1; }
.card-name { display: block; padding: 16px 2px 0; font-size: 17px; font-weight: 500; line-height: 1.3; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; padding: 4px 2px 0; font-size: 14px; color: var(--muted); }
.layers { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.layers svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.grid li[hidden] { display: none; }

/* How it works */
.how { background: var(--surface); border-block: 1px solid var(--line); padding-block: 96px; }
.how-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
/* Steps: a round icon per step with its number on a badge, joined by a dashed cut line */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; }
.steps li { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding-bottom: 36px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 31px; top: 76px; bottom: 12px;
  border-left: 1.5px dashed rgba(38, 39, 43, 0.28);
}
.step-icon {
  position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.step-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step-num {
  position: absolute; top: -4px; right: -6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-cta); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px #fff;
}
.step-text { padding-top: 8px; }
.steps h3 { font-size: 20px; line-height: 1.3; }
.steps p { margin-top: 6px; color: var(--text-2); max-width: 32rem; }
.how-visual { margin: 0; }
.how-visual img { border-radius: var(--r-panel); }
.how-visual figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

.formats { margin-top: 80px; }
.formats h3 { font-size: 20px; margin-bottom: 20px; }
.format-list { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.format-list div { padding: 20px 20px 0 0; }
.format-list dt { font-weight: 600; font-size: 15px; }
.format-list dd { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }

/* Questions */
.questions { padding-block: 96px 112px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding-block: 16px; font-size: 18px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq details p { padding-bottom: 20px; color: var(--text-2); max-width: 40rem; }

/* Footer */
.footer { position: relative; padding-block: 32px; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-brand); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 14px; color: var(--text-2); }
.footer-logo img { height: 56px; width: auto; }
.footer .muted { margin-left: auto; color: var(--muted); }

/* Product page */
.btn[aria-disabled="true"] { background: var(--raised); color: var(--muted); box-shadow: none; pointer-events: none; }
.btn-lg { height: 52px; font-size: 17px; }
.text-link { font-size: 15px; font-weight: 500; color: var(--text); text-underline-offset: 4px; text-decoration-color: rgba(38, 39, 43, 0.3); }
.text-link:hover { text-decoration-color: currentColor; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 20px 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(38, 39, 43, 0.25); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--text); }

.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; padding-bottom: 96px; }

.gallery { position: sticky; top: 140px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 8px; max-height: min(calc(100svh - 120px), 720px); overflow-y: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs button {
  flex: none; width: 76px; height: 76px; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--raised); opacity: 0.72;
  transition: border-color 160ms var(--ease), opacity 160ms var(--ease);
}
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--text); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.gallery-main { position: relative; border-radius: var(--r-panel); overflow: hidden; background: var(--raised); aspect-ratio: 1; }
.gallery-main > img { width: 100%; height: 100%; object-fit: cover; }
.gallery-arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: background-color 160ms var(--ease), transform 120ms var(--ease);
}
.gallery-arrow:hover { background: #fff; }
.gallery-arrow:active { transform: scale(0.96); }
.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }
.gallery-arrow svg, .perks svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gallery-count {
  position: absolute; left: 16px; bottom: 16px; margin: 0; padding: 4px 10px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.92); font-size: 13px; color: var(--text-2);
}

.buy h1 { font-size: clamp(34px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; }
.buy-sub { margin-top: 8px; font-size: 16px; color: var(--muted); }
.buy-intro { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.buy .btn-block { margin-top: 28px; }

.perks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.perks svg { flex: none; color: var(--muted); }

.about { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.about h2 { font-size: 18px; letter-spacing: 0; line-height: 1.4; }
.about p { margin-top: 12px; color: var(--text-2); line-height: 1.65; }

.acc { margin-top: 32px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; font-size: 16px; font-weight: 500;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  background:
    linear-gradient(var(--muted), var(--muted)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 1.5px 12px no-repeat;
  transition: transform 200ms var(--ease);
}
.acc details[open] summary::after { transform: rotate(45deg); }
.acc-body { padding-bottom: 20px; color: var(--text-2); font-size: 15px; }
.ticks, .mini-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.mini-specs { margin: 0; }
.mini-specs div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding-block: 8px; }
.mini-specs div + div { border-top: 1px solid var(--line); }
.mini-specs dt { color: var(--text); font-weight: 500; }
.mini-specs dd { margin: 0; }

.pdp-faq { padding-block: 96px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
.more { background: var(--surface); border-block: 1px solid var(--line); padding-block: 80px 96px; }
.more .section-head { align-items: baseline; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.see-all { display: flex; justify-content: center; margin-top: 48px; }

/* Search results page */
.results { padding: 16px 0 72px; }
.results[hidden] { display: none; }
.page-search .crumbs { margin-bottom: 0; }
.results h1 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.results-empty { padding: 32px 0 8px; color: var(--text-2); max-width: 36rem; }
.results-empty[hidden], .more[hidden], .filters[hidden] { display: none; }
.results-empty-title { font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.results-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* Favorites */
.icon-link {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  color: var(--text); transition: background-color 160ms var(--ease);
}
.icon-link:hover { background: var(--raised); }
.icon-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-top .icon-link { margin-right: -28px; }
.nav-top #cart-link { margin-right: -16px; }
.fav-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: grid; place-items: center; background: var(--accent-ink); color: #fff; font-size: 11px; font-weight: 600; line-height: 1;
}
.fav-count[hidden] { display: none; }

.card { position: relative; }
.fav-btn {
  position: absolute; z-index: 2; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.fav-btn:hover { background: #fff; }
.fav-btn:active { transform: scale(0.94); }
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: fill 160ms var(--ease); }
.fav-btn[aria-pressed="true"] { color: var(--accent-ink); }
.fav-btn[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent-ink); }
.fav-btn.pop svg { animation: fav-pop 280ms var(--ease); }
@keyframes fav-pop { 40% { transform: scale(1.2); } }
.fav-btn-lg { top: 16px; right: 16px; width: 44px; height: 44px; }
.fav-btn-lg svg { width: 18px; height: 18px; }

/* Sign in / Create account */
.auth { padding: 48px 32px 96px; display: grid; place-items: start center; }
.auth-shell {
  width: 100%; max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.auth-visual { position: relative; min-height: 600px; background: var(--raised); }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* a dark shade at the bottom so the white text stays readable on the photo */
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 20, 22, 0.82) 0%, rgba(20, 20, 22, 0.55) 38%, rgba(20, 20, 22, 0) 62%); }
.auth-visual-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 40px; color: #fff; }
.auth-kicker { font-size: 14px; font-weight: 500; color: #ffb47e; }
.auth-visual-title { margin-top: 8px; font-size: 30px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; max-width: 16ch; }
.auth-perks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, 0.88); }
.auth-perks li { display: flex; align-items: center; gap: 10px; }
.auth-perks svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #ffb47e; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.auth-panel { padding: 40px 48px 44px; display: flex; flex-direction: column; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tab {
  height: 48px; border: 0; background: none; cursor: pointer; margin-bottom: -1px;
  font: 500 15px var(--font); color: var(--muted); border-bottom: 2px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.auth-tab:hover { color: var(--text); }
.auth-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.auth-form-wrap { padding-top: 32px; }
.auth-form-wrap[hidden] { display: none; }
.auth-title { font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.auth-sub { margin-top: 6px; color: var(--text-2); }

.btn-google {
  width: 100%; margin-top: 24px; height: 48px; background: var(--surface); color: var(--text);
  border: 1px solid rgba(38, 39, 43, 0.2); font-weight: 500; gap: 10px;
}
.btn-google:hover { background: var(--bg); border-color: rgba(38, 39, 43, 0.35); }
.btn-google svg { width: 18px; height: 18px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 13px; color: var(--muted); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }
.field input {
  width: 100%; height: 48px; padding: 0 16px; border: 1px solid rgba(38, 39, 43, 0.2); border-radius: 10px;
  background: var(--surface); font: 400 16px var(--font); color: var(--text);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field input:hover { border-color: rgba(38, 39, 43, 0.35); }
.field input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(38, 39, 43, 0.1); }
.field input[aria-invalid="true"] { border-color: #c2410c; }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15); }
.field-help { font-size: 13px; color: var(--muted); }
.field-error { font-size: 14px; color: #b42318; }
.field-error[hidden] { display: none; }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw-toggle {
  position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent;
  display: grid; place-items: center; color: var(--muted); cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.pw-toggle:hover { background: var(--raised); color: var(--text); }
.pw-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pw-toggle .eye-closed, .pw-toggle[aria-pressed="true"] .eye-open { display: none; }
.pw-toggle[aria-pressed="true"] .eye-closed { display: block; }

.text-btn {
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--text);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(38, 39, 43, 0.35);
}
.text-btn:hover { text-decoration-color: currentColor; }
.auth-forgot { margin-top: -6px; text-align: right; font-size: 14px; }
.auth-alt { margin-top: 20px; text-align: center; font-size: 14px; color: var(--text-2); }
.auth-note { margin-top: 20px; padding: 16px; border-radius: 10px; background: var(--raised); color: var(--text-2); font-size: 14px; line-height: 1.5; }
.auth-note strong { color: var(--text); font-weight: 600; }
.auth-note[hidden] { display: none; }

@media (max-width: 860px) {
  .auth { padding: 24px 16px 64px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 260px; }
  .auth-visual-text { padding: 24px; }
  .auth-visual-title { font-size: 24px; }
  .auth-perks { display: none; }
  .auth-panel { padding: 24px 20px 28px; }
  .auth-title { font-size: 26px; }
}

/* Search with no results: short message on top, All products right below */
.no-results .results { padding-bottom: 32px; }
.no-results .results .section-head { margin-bottom: 16px; }
.no-results .results-empty { padding: 0; }
.no-results .results-suggest { margin-top: 0; }
.no-results #results-more { padding-top: 40px; }
@media (max-width: 860px) {
  .no-results .results { padding-bottom: 24px; }
  .no-results #results-more { padding-top: 24px; }
  .no-results .catalog { gap: 16px; }
}

/* Prices */
.card-price { display: block; padding: 2px 2px 0; font-size: 15px; font-weight: 500; }
.buy-price { margin-top: 24px; font-size: 28px; font-weight: 500; letter-spacing: -0.01em; }
.buy .buy-price + .btn-block { margin-top: 12px; }
.btn-cart svg, .cart .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-cart.in-cart { color: #0e7490; }
#buy-alt { margin-top: 8px; }
/* Reassurance under Add to cart: teal check, plain words */
.trust { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--text); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #0e7490; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#buy-alt[hidden] { display: none; }

/* Cart panel, slides in from the right */
.cart {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  padding: 0; border: 0; background: #fff; color: var(--text); display: none; flex-direction: column;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.12);
}
.cart[open] { display: flex; animation: cart-in 260ms var(--ease); }
.cart.closing { animation: cart-out 200ms var(--ease) forwards; }
.cart::backdrop { background: rgba(30, 30, 34, 0.45); }
@keyframes cart-in { from { transform: translateX(32px); opacity: 0; } }
@keyframes cart-out { to { transform: translateX(32px); opacity: 0; } }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 22px; letter-spacing: -0.01em; }
.cart-head-count { margin-left: 6px; font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.cart-close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.cart-close:hover { background: var(--raised); }
.cart-close svg, .cart-remove svg, .cart-empty-icon svg, .cart-item-dl svg, .cart-perks svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-close svg { width: 20px; height: 20px; }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }

.cart-empty { display: grid; justify-items: center; text-align: center; padding: 32px 0 24px; }
.cart-empty-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #fff3ea; color: var(--accent-ink); }
.cart-empty-icon svg { width: 28px; height: 28px; }
.cart-empty-title { margin-top: 16px; font-size: 20px; font-weight: 500; }
.cart-empty-sub { margin-top: 4px; color: var(--text-2); font-size: 15px; }

.cart-label { margin: 24px 0 12px; font-size: 14px; font-weight: 500; color: var(--muted); }
.cart-sugs { list-style: none; margin: 0 -24px; padding: 0 24px 4px; display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; scrollbar-width: thin; }
.cart-sug { scroll-snap-align: start; display: grid; gap: 4px; align-content: start; }
.cart-sug-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--raised); }
.cart-sug-name { margin-top: 6px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--text); line-height: 1.3; }
.cart-sug-price { font-size: 14px; color: var(--text-2); }
.cart-sug .btn { margin-top: 4px; width: 100%; }

.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item-media img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.cart-item-name { font-size: 16px; font-weight: 500; text-decoration: none; color: var(--text); }
.cart-item-sub { margin-top: 2px; font-size: 14px; color: var(--muted); }
.cart-item-dl { margin-top: 6px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #0e7490; }
.cart-item-dl svg { width: 14px; height: 14px; }
.cart-item-side { display: grid; justify-items: end; align-content: space-between; }
.cart-item-price { font-size: 16px; font-weight: 500; }
.cart-remove { width: 36px; height: 36px; margin-right: -8px; border: 0; border-radius: 8px; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.cart-remove:hover { background: var(--raised); color: #b42318; }
.cart-remove svg { width: 18px; height: 18px; }

.cart-foot { padding: 16px 24px 20px; border-top: 1px solid var(--line); background: #fff; }
.cart-sum, .cart-total { display: flex; justify-content: space-between; gap: 16px; }
.cart-sum { font-size: 15px; color: var(--text-2); padding-bottom: 12px; border-bottom: 1px dashed rgba(38, 39, 43, 0.2); }
.cart-total { padding: 12px 0 16px; font-size: 22px; font-weight: 600; }
.cart-note { margin-top: 12px; padding: 12px 16px; border-radius: 10px; background: var(--raised); font-size: 14px; color: var(--text-2); line-height: 1.5; }
.cart-note strong { color: var(--text); font-weight: 600; }
.cart-note[hidden] { display: none; }
.cart-perks { list-style: none; margin: 16px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.cart-perks li { display: flex; align-items: center; gap: 6px; }
.cart-perks svg { width: 14px; height: 14px; }

/* Checkout and owned products */
.paypal-box { margin-top: 4px; min-height: 48px; }
.paypal-box[hidden] { display: none; }
.cart-note a { color: var(--text); font-weight: 500; text-underline-offset: 3px; }
.cart-paid .cart-empty-icon { background: #e6f4f7; color: #0e7490; }
.owned-note { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.owned-note a { color: var(--text); text-underline-offset: 3px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Account page */
.account { padding: 16px 0 96px; }
.account[hidden], .account-offline[hidden] { display: none; }
.account-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.account-head h1 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.account-who { margin-top: 8px; color: var(--text-2); }
.library { padding-top: 40px; }
.library .section-head { margin-bottom: 8px; }
.library-help { color: var(--text-2); max-width: 40rem; }
.library-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.library-item { display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.library-media img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
.library-name { font-size: 18px; font-weight: 500; color: var(--text); text-decoration: none; }
.library-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.library-meta { margin-top: 2px; font-size: 14px; color: var(--muted); }
.library-formats { margin-top: 4px; font-size: 14px; color: var(--text-2); }
.library-dl svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.account-offline { padding: 48px 0 96px; }
@media (max-width: 560px) {
  .library-item { grid-template-columns: 64px 1fr; }
  .library-media img { width: 64px; height: 64px; }
  .library-dl { grid-column: 1 / -1; width: 100%; }
}

/* ---------- Dashboard (admin.html) ---------- */
.page-admin { background: #f6f6f4; }
.adm-bar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.adm-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad-brand); }
.adm-bar-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 32px; }
.adm-brand-text { font-size: 17px; font-weight: 600; color: var(--text); }
.adm-nav { display: flex; gap: 4px; }
.adm-nav a { padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--text-2); text-decoration: none; }
.adm-nav a:hover { background: var(--raised); color: var(--text); }
.adm-who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.adm { max-width: 1280px; margin: 0 auto; padding: 32px 24px 96px; }
.adm-view[hidden], .adm-gate[hidden] { display: none; }
.adm-gate { max-width: 34rem; margin: 10vh auto; text-align: center; color: var(--text-2); }
.adm-gate-title { font-size: 24px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.adm-gate .results-suggest { justify-content: center; }
.adm-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.adm-head h1 { font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.adm-back { display: inline-block; margin-bottom: 12px; font-size: 14px; color: var(--text-2); text-decoration: none; }
.adm-back:hover { color: var(--text); }

.adm-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.adm-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.adm-tabs button { height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: none; font: 500 14px var(--font); color: var(--text-2); cursor: pointer; }
.adm-tabs button[aria-selected="true"] { background: var(--text); color: #fff; }
.adm-tabs button span { margin-left: 4px; opacity: 0.7; }
.adm-search input { width: 280px; max-width: 100%; height: 44px; padding: 0 16px; border: 1px solid rgba(38, 39, 43, 0.16); border-radius: 10px; background: #fff; font: 15px var(--font); color: var(--text); }
.adm-search input:focus { outline: none; border-color: var(--text); }

.adm-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.adm-table th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tbody tr { cursor: pointer; transition: background-color 120ms var(--ease); }
.adm-table tbody tr:hover, .adm-table tbody tr:focus-visible { background: #fafaf8; outline: none; }
.adm-table .r { text-align: right; }
.adm-table .muted { color: var(--muted); white-space: nowrap; }
.adm-prod { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.adm-prod img, .adm-noimg { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--raised); flex: none; }
.adm-noimg { display: block; }
.adm-prod-name { display: block; font-weight: 500; color: var(--text); text-decoration: none; }
.adm-prod-cat { display: block; font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 13px; font-weight: 500; background: var(--raised); color: var(--text-2); white-space: nowrap; }
.chip.published { background: #e6f4f7; color: #0e7490; }
.chip.draft { background: #f3f3f1; color: var(--text-2); }

.adm-edit { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.adm-main, .adm-side { display: grid; gap: 24px; }
.adm-side { position: sticky; top: 84px; }
.adm-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 16px; }
.adm-card h2 { font-size: 18px; letter-spacing: 0; line-height: 1.3; }
.adm-card-head { display: grid; gap: 4px; }
.adm-card textarea {
  width: 100%; padding: 12px 16px; border: 1px solid rgba(38, 39, 43, 0.2); border-radius: 10px; resize: vertical;
  font: 400 16px/1.55 var(--font); color: var(--text); background: #fff;
}
.adm-card textarea:focus, .adm-card select:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(38, 39, 43, 0.1); }
.adm-card select {
  width: 100%; height: 48px; padding: 0 12px; border: 1px solid rgba(38, 39, 43, 0.2); border-radius: 10px;
  background: #fff; font: 400 16px var(--font); color: var(--text);
}
.adm-check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.adm-check input { width: 18px; height: 18px; accent-color: #c2410c; }
.adm-actions { display: grid; gap: 8px; }
.adm-msg { font-size: 14px; color: #0e7490; }
.adm-msg.bad { color: #b42318; }
.adm-msg[hidden], .adm-progress[hidden], .adm-locked[hidden], .adm-drop[hidden], .adm-file[hidden], .adm-newcat[hidden], .text-btn[hidden] { display: none; }
.adm-locked { padding: 16px; border-radius: 10px; background: #f6f6f4; color: var(--text-2); font-size: 14px; }
.adm-progress { font-size: 14px; color: var(--text-2); }
.adm-delete { justify-self: start; color: #b42318; text-decoration-color: rgba(180, 35, 24, 0.35); }

.adm-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.adm-photos:empty { display: none; }
.adm-photo { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--raised); }
.adm-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.adm-photo.is-sheet { outline: 2px solid #0e7490; outline-offset: -2px; }
.adm-photo-tag { position: absolute; top: 8px; left: 8px; height: 22px; padding: 0 8px; border-radius: 11px; background: #fff; font-size: 12px; font-weight: 500; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.adm-photo-tag.sheet { background: #0e7490; color: #fff; }
.adm-photo-tools { display: flex; gap: 4px; padding: 6px; background: #fff; border-top: 1px solid var(--line); }
.adm-photo-tools button { flex: 1; height: 32px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font: 500 13px var(--font); color: var(--text-2); }
.adm-photo-tools button:hover:not(:disabled) { background: var(--raised); color: var(--text); }
.adm-photo-tools button:disabled { opacity: 0.35; cursor: default; }
.adm-photo-tools [data-sheet][aria-pressed="true"] { color: #0e7490; }
.adm-photo-tools [data-del]:hover { color: #b42318; }
.adm-drop {
  display: grid; justify-items: center; gap: 4px; padding: 28px 16px; text-align: center; cursor: pointer;
  border: 1.5px dashed rgba(38, 39, 43, 0.25); border-radius: 12px; color: var(--text-2);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.adm-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.adm-drop strong { color: #c2410c; font-weight: 600; }
.adm-drop:hover, .adm-drop.over { border-color: #c2410c; background: #fff7f1; }
.adm-drop:focus-within { outline: 2px solid var(--text); outline-offset: 3px; }
.adm-file { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: 10px; background: #f6f6f4; font-size: 14px; color: var(--text-2); }
.adm-file strong { color: var(--text); font-weight: 500; }
.adm-file-btn { cursor: pointer; background: #fff; }
.adm-file-btn:focus-within { outline: 2px solid var(--text); outline-offset: 3px; }

.adm-newcat { display: flex; gap: 8px; }
.adm-newcat input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid rgba(38, 39, 43, 0.2); border-radius: 8px; font: 15px var(--font); }
.adm-tags {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; min-height: 48px; cursor: text;
  border: 1px solid rgba(38, 39, 43, 0.2); border-radius: 10px; background: #fff;
}
.adm-tags:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px rgba(38, 39, 43, 0.1); }
.adm-tags input { flex: 1; min-width: 140px; height: 30px; border: 0; outline: none; font: 15px var(--font); color: var(--text); background: transparent; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 4px 0 12px; border-radius: 15px; background: #fff3ea; color: #9a3412; font-size: 14px; }
.tag button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; }
.tag button:hover { background: rgba(154, 52, 18, 0.12); }

.adm-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 32px);
  padding: 12px 20px; border-radius: 10px; background: var(--text); color: #fff; font-size: 15px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.adm-toast.bad { background: #b42318; }
.adm-toast[hidden] { display: none; }

@media (max-width: 960px) {
  .adm-edit { grid-template-columns: 1fr; }
  .adm-side { position: static; }
}
@media (max-width: 640px) {
  .adm-bar-inner { gap: 12px; padding: 0 16px; }
  .adm-who span { display: none; }
  .adm-brand-text { display: none; }
  .adm { padding: 24px 16px 80px; }
  .adm-card { padding: 20px 16px; }
  .adm-search, .adm-search input { width: 100%; }
}

/* All products page (products.html) */
.all-products-page { padding: 16px 0 96px; }
.all-products-page h1 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }

/* All products: Categories list beside the grid */
.catalog { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.catalog .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cats { position: sticky; top: 140px; }
.cats-title { list-style: none; font-size: 18px; font-weight: 500; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); pointer-events: none; }
.cats-title::-webkit-details-marker { display: none; }
.cats-list, .cats-list ul { list-style: none; margin: 0; padding: 0; }
.cats-list ul { margin: 2px 0 8px; padding-left: 12px; border-left: 1px solid var(--line); margin-left: 10px; }
.cat {
  width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: 500 15px var(--font); color: var(--text); text-align: left;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.cat-sub { min-height: 36px; font-weight: 400; color: var(--text-2); }
.cat:hover { background: var(--raised); color: var(--text); }
.cat-label { flex: 1; }
.cat-count { font-size: 13px; color: var(--muted); }
.cat-box {
  flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid rgba(38, 39, 43, 0.3); background: var(--surface);
  display: grid; place-items: center; transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.cat-box svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 120ms var(--ease); }
.cat[aria-pressed="true"] { color: var(--text); }
.cat[aria-pressed="true"] .cat-box { background: var(--grad-cta); border-color: #b8460d; }
.cat[aria-pressed="true"] .cat-box svg { opacity: 1; }
.cat:not(.cat-sub)[data-type=""][aria-pressed="true"] { background: var(--raised); }
.catalog-main .results-empty[hidden] { display: none; }

/* Responsive */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .format-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
  .catalog .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 16px; }
  .nav { position: relative; }
  .nav-top { height: auto; flex-wrap: wrap; gap: 12px 4px; padding-block: 12px; }
  .nav-top .brand { margin-right: 8px; }
  .brand-mark { height: 34px; }
  .brand-word { height: 18px; }
  .menu-btn {
    display: grid; place-items: center; margin-left: 0; width: 40px; height: 44px; border: 0; border-radius: 10px;
    background: transparent; color: var(--text); cursor: pointer;
  }
  .menu-btn svg { width: 22px; height: 22px; }
  .menu-btn:hover { background: var(--raised); }
  .search { order: 3; flex-basis: 100%; max-width: none; margin: 0; height: 44px; }
  .search button { width: 36px; height: 36px; margin-right: 3px; }
  .nav-cta { display: none; }
  .nav-top .icon-link { margin: 0 0 0 auto; width: 40px; height: 44px; }
  .nav-top #account-link, .nav-top #cart-link { margin: 0; }
  .nav-top .icon-link + .nav-cta + .menu-btn { margin-left: 0; }
  .nav-bottom { display: none; }
  .nav-bottom.open { display: block; }
  .nav-bottom-inner { flex-direction: column; height: auto; gap: 0; padding-block: 4px 16px; }
  .nav-item { height: 52px; width: 100%; padding: 0; margin: 0; justify-content: space-between; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-item:hover, .mega.open .nav-item { border-bottom-color: var(--line); }
  .mega { flex-direction: column; }
  .mega-panel { position: static; display: none; width: auto; margin: 0; padding: 12px 0 16px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .mega.open .mega-panel { display: block; }
  .mega-grid { gap: 10px; }
  .announce { font-size: 12px; }
  .announce-inner { gap: 8px; height: auto; min-height: 40px; padding-block: 4px; }
  .announce-text { white-space: normal; line-height: 1.35; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 48px 64px; gap: 32px; }
  .hero h1 { font-size: 40px; }
  .lede { font-size: 17px; }
  .stage { width: min(88%, 380px); margin-block: 16px 0; }
  .designs, .how { padding-block: 64px; }
  .how-inner { grid-template-columns: 1fr; gap: 40px; }
  .formats { margin-top: 56px; }
  .questions { grid-template-columns: 1fr; gap: 24px; padding-block: 64px 80px; }
  .crumbs ol { padding-block: 12px; }
  .pdp { grid-template-columns: 1fr; gap: 28px; padding-bottom: 64px; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery-thumbs { order: 2; flex-direction: row; max-height: none; overflow-x: auto; }
  .gallery-thumbs button { width: 64px; height: 64px; }
  .gallery-main { border-radius: var(--r-card); }
  .gallery-arrow { width: 40px; height: 40px; }
  .gallery-arrow.prev { left: 8px; }
  .gallery-arrow.next { right: 8px; }
  .pdp-faq { grid-template-columns: 1fr; gap: 24px; padding-block: 64px; }
  .more { padding-block: 56px 64px; }
  .catalog { grid-template-columns: 1fr; gap: 24px; }
  .catalog .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { position: static; border: 1px solid var(--line); border-radius: 12px; padding: 0 8px; background: var(--bg); }
  .cats-title {
    pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    min-height: 52px; padding: 0 8px; margin: 0; border: 0; font-size: 16px;
  }
  .cats-title::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease); }
  .cats[open] .cats-title::after { transform: translateY(2px) rotate(225deg); }
  .cats[open] .cats-list { padding-bottom: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .card-name { font-size: 16px; padding-top: 10px; }
  .card-meta { flex-direction: column; gap: 2px; }
  .format-list { grid-template-columns: 1fr 1fr; }
  .filters { width: 100%; }
  .filters button { flex: 1; padding: 0 8px; }
  .footer .muted { margin-left: 0; }
  .perks { grid-template-columns: 1fr; }
  .mini-specs div { grid-template-columns: 100px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
