:root {
  --wrap: min(100% - 96px, 1392px);
  --paper: #f6f1e9;
  --white: #fffaf4;
  --line: #e5dacb;
  --accent: #184938;
  --ink: #0e2e24;
  --muted: #574f44;
  --photo-surface: #f2eadd;
}

body { background: radial-gradient(ellipse at top, #fffaf3, var(--paper) 68%); }
.header {
  background: #fcf8f0f7;
  box-shadow: 0 3px 18px #35291b0a;
}
.nav-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 2.7vw, 43px);
  padding-block: 4px;
}
.nav-row > * { min-height: 58px; }
.nav-brand .brand { font-size: 23px; }
.nav-brand { gap: 9px; }
.menu-button { border: 0; }
.menu-button[aria-expanded="true"] { background: #e7eee7; }
.site-menu {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-start: max(12px, calc((100% - var(--wrap)) / 2));
  width: min(320px, calc(100vw - 34px));
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 12px 32px #09291e26;
}
.site-menu a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 10px; border-radius: 9px; }
.site-menu a:hover,.site-menu a:focus-visible { background: #edf1e9; }
.site-menu a:focus-visible { outline-offset: -2px; }
.menu-profile { justify-content: space-between; padding-block: 9px; background: #e9f0e8; font-weight: 800; }
.menu-profile small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
.menu-profile .icon,.menu-catalog .icon { font-size: 18px; }
.menu-group { padding-top: 6px; margin-top: 6px; border-top: 1px solid var(--line); }
.menu-shortcuts,.menu-categories,.menu-help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4px; }
.menu-shortcuts a,.menu-categories a,.menu-help a { font-size: 13px; }
.menu-shortcuts .icon { font-size: 18px; }
.menu-catalog { justify-content: space-between; font-weight: 760; }
.menu-categories a,.menu-help a { color: var(--muted); }
.nav { gap: clamp(12px, 2.15vw, 32px); }
.nav a { font-weight: 720; font-size: 14px; }
.nav a[aria-current] { font-weight: 850; }
.nav-actions { gap: 8px; }
.nav-actions .icon-button { border: 0; }
.header-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  min-height: 37px;
  width: clamp(142px, 18vw, 255px);
  margin-inline-end: 6px;
  padding-inline: 14px;
  border-radius: 100px;
  background: #eee8de;
  color: var(--muted);
  font-size: 13px;
  text-align: start;
}
.header-search .icon { color: var(--ink); font-size: 22px; }
.header-search:hover { background: #e6ddce; }
.bag-button { min-height: 37px; border-radius: 100px; padding-inline: 12px; }
.bag-button b {
  min-width: 20px;
  padding: 1px 5px;
  border: 0;
  border-radius: 100px;
  background: #e6eee7;
  color: var(--ink);
  text-align: center;
}

.collections,.catalog { scroll-margin-top: 76px; }
.collections { padding-block: 30px 24px; background: transparent; border: 0; }
.collection-heading,.catalog-heading { align-items: center; }
.collection-heading { margin-bottom: 15px; }
.collection-heading h2,.catalog-heading h2 {
  font-size: clamp(23px, 2.35vw, 34px);
  font-weight: 870;
  letter-spacing: -.04em;
}
.collection-heading a { font-size: 13px; font-weight: 650; }
.collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.collection-tile {
  position: relative;
  isolation: isolate;
  aspect-ratio: 2.65;
  border-radius: 13px;
  background: var(--photo-surface);
  border: 1px solid #e3d6c4;
  transition: background-color .2s, border-color .2s;
}
.collection-tile:hover { background: #ede1d0; border-color: #cdbca3; }
.collection-tile figure { position: absolute; inset: 0 0 0 auto; width: 55%; aspect-ratio: auto; background: transparent; }
.collection-tile figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  filter: brightness(1.04);
}
.collection-tile.collectible figure img,.collection-tile.fantasy figure img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 122%;
  max-width: none;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-9deg);
}
.collection-tile.collectible figure img { clip-path: polygon(23.8% 11.5%, 30.6% 9.5%, 75.7% 11.9%, 75.5% 85.2%, 29.4% 90.2%, 24% 89%); }
.collection-tile.fantasy figure img { clip-path: polygon(29.3% 15.2%, 37.2% 13.4%, 71.4% 14.4%, 71.3% 74.1%, 37% 80.6%, 30.5% 79.5%); }
.collection-tile span {
  position: absolute;
  inset: 0 auto 0 0;
  align-items: flex-end;
  justify-content: center;
  flex-direction: column;
  width: 52%;
  gap: 8px;
  padding: 11px 14px;
  color: var(--ink);
  font-size: clamp(12px, 1.4vw, 19px);
  font-weight: 750;
}
.collection-tile:hover span { color: #246448; }
.collection-tile .icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 23px;
  border-radius: 7px;
  background: #faf4e9;
  color: var(--ink);
  font-size: 15px;
  text-shadow: none;
}

.featured { padding-block: 4px 35px; }
.featured-rail { position: relative; }
#featured-products {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 5);
  grid-template-columns: none;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 1px 9px;
  scroll-snap-type: inline mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #c2a683 transparent;
}
#featured-products .product-card { scroll-snap-align: start; }
.rail-controls { display: flex; justify-content: flex-end; gap: 7px; margin-top: 6px; }
.rail-controls button { width: 34px; height: 32px; background: var(--accent); color: #fff6e8; border: 0; }
.rail-controls button:disabled { background: #e4d9c8; color: #514938; opacity: .72; }
.rail-controls button:not(:disabled):hover { background: #2f654d; color: #fff6e8; }

.catalog { padding-block: 42px 70px; }
.catalog .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.catalog-search { background: #fffaf4; border: 1px solid var(--line); border-radius: 100px; padding-inline: 12px; }
.catalog-controls { margin-top: 10px; }
.category-buttons button { border-radius: 100px; }
.category-buttons [aria-pressed=true] { background: var(--accent); color: #fff; }
.product-card {
  background: #fffaf4;
  border: 1px solid #eaddcb;
  border-radius: 13px;
  box-shadow: 0 4px 12px #4127170a;
}
.product-card:hover { border-color: #d3b896; box-shadow: 0 8px 19px #41271713; }
.thumbnail { background: var(--photo-surface); aspect-ratio: 1.32; border-radius: 11px 11px 7px 7px; }
.thumbnail img,.thumbnail.draft img { background: transparent; object-fit: contain; mix-blend-mode: multiply; }
.product-photos { isolation: isolate; }
.gallery-surface,.gallery-strip button,.line-item > a:first-child,.compare-table th a { background: var(--photo-surface); }
.gallery-surface { border-radius: 11px; isolation: isolate; }
.product-photos .gallery-main { background: transparent; mix-blend-mode: multiply; }
.gallery-strip img,.line-item img,.compare-table img { background: transparent; mix-blend-mode: multiply; object-fit: contain; }
.line-item > a:first-child { border-radius: 7px; }
.card-body h3 { font-weight: 780; }
.card-actions .solid { background: #164936; }
.card-actions .solid:hover { background: #265f48; }
.card-actions .soft { color: #174634; }
.on-image [data-action=saved] { color: #80513b; }
.on-image .label { border-radius: 100px; }
.on-image .icon-button { border-radius: 100%; }
footer#help {
  scroll-margin-top: 76px;
  padding-block: 26px 10px;
  background: radial-gradient(ellipse at 100% 0, #225344, transparent 68%), #102b22;
}
.footer-inner { display: grid; gap: 13px; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-main .brand { min-height: 46px; font-size: 22px; color: #fffaf4; }
.footer-main .brand-mark { width: 52px; height: 44px; }
.footer-inner a:focus-visible { outline-color: #fffaf4; }
.footer-support {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 46px;
  padding: 6px 11px 6px 16px;
  border: 1px solid #e0efe235;
  border-radius: 11px;
  background: #e0efe214;
  color: #fffaf4;
  font-size: 14px;
  font-weight: 680;
}
.footer-support:hover { background: #e0efe228; }
.footer-arrow { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #d6e7d6; color: #163b2f; }
.footer-policies { display: flex; align-items: center; flex-wrap: wrap; gap: 0 24px; border-top: 1px solid #e0efe233; }
.footer-policies a { display: inline-flex; align-items: center; min-height: 44px; color: #dce9df; font-size: 13px; }
.footer-policies a:hover { text-decoration: underline; text-underline-offset: 4px; }
.dialog-header h2 { color: var(--ink); }

@media (max-width: 1050px) {
  :root { --wrap: calc(100% - 58px); }
  .nav-row { gap: 14px; }
  #featured-products { grid-auto-columns: calc((100% - 36px) / 4); }
}
@media (max-width: 790px) {
  :root { --wrap: calc(100% - 34px); }
  .header-search { width: 36px; min-height: 36px; margin: 0; padding: 0; justify-content: center; background: transparent; }
  .header-search span { display: none; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #featured-products { grid-auto-columns: calc((100% - 24px) / 3); }
  .catalog .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
}
@media (max-width: 650px) {
  .nav-row { grid-template-columns: 1fr auto; gap: 8px; padding-block: 3px; }
  .nav-row > * { min-height: 48px; }
  .nav-row .nav { display: none; }
  .nav-brand .brand { font-size: 19px; }
  .nav-actions { gap: 2px; }
  .nav-actions .icon-button,.header-search { width: 40px; height: 44px; }
  .nav-actions .header-saved { display: none; }
  .nav-brand { gap: 3px; }
  .nav-brand .brand { gap: 6px; }
  .bag-button { min-height: 42px; }
  .collection-heading { margin-bottom: 12px; }
  .collection-heading h2,.catalog-heading h2 { font-size: 23px; }
  .collection-heading a { font-size: 11px; }
  .collection-tile { aspect-ratio: 2.1; border-radius: 8px; }
  .collection-tile span { font-size: 12px; padding: 8px; }
  #featured-products { grid-auto-columns: calc((100% - 8px) / 2.1); gap: 8px; }
  .catalog .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog { padding-bottom: 42px; }
  .footer-main { display: grid; justify-content: stretch; gap: 12px; }
  .footer-support { padding-inline: 12px; }
  .footer-policies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .footer-policies a { justify-content: center; text-align: center; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #featured-products { scroll-behavior: auto; }
}
