:root {
  --bg: #f4efe6;
  --surface: rgba(255, 252, 246, 0.86);
  --surface-strong: #fffdf8;
  --surface-muted: #ebe3d6;
  --ink: #1c1f19;
  --ink-soft: #303629;
  --muted: #62685d;
  --line: rgba(28, 31, 25, 0.13);
  --brand: #48523f;
  --brand-deep: #283024;
  --accent: #a47b3f;
  --accent-soft: #d8c8ae;
  --dark: #242b20;
  --light: #fffaf1;
  --shadow: 0 18px 42px rgba(27, 30, 24, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(164, 123, 63, 0.13), transparent 30%),
    linear-gradient(180deg, #f7f2e8 0%, #f1eadf 48%, #ebe3d6 100%);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding-left: 1.15rem; }
li + li { margin-top: 0.45rem; }
:focus-visible { outline: 3px solid rgba(164, 123, 63, 0.45); outline-offset: 4px; border-radius: 8px; }

.container,
.site-shell {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}
.site-shell { padding: 1rem 0 2.5rem; }

.site-header,
.hero,
.panel-section,
.site-footer,
.card,
.product-card,
.panel,
.stat-card,
.collection-card,
.contact-card,
.notice-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  margin-bottom: 1rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0.85rem 1rem;
  flex-wrap: wrap;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 0.85rem; }
.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f9f4eb;
  box-shadow: inset 0 0 0 1px rgba(28,31,25,0.08), 0 8px 18px rgba(27,30,24,0.08);
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand,
h1,
h2,
h3,
.stat-card strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--brand-deep);
}
.brand {
  font-family: "Kunstler Script", "KunstlerScript", "Kunstler", "Great Vibes", "Snell Roundhand", "Apple Chancery", "Edwardian Script ITC", cursive;
  font-size: clamp(2.55rem, 4.4vw, 3.55rem);
  line-height: 0.78;
  font-weight: 400;
  letter-spacing: -0.045em;
  color: #050505;
  text-rendering: optimizeLegibility;
}
.brand-sub { display: block; margin-top: 0.28rem; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; }
.main-nav { display: flex; gap: 0.9rem 1.05rem; flex-wrap: wrap; font-size: 0.94rem; color: var(--ink-soft); align-items: center; }
.main-nav a { border-bottom: 1px solid transparent; min-height: 32px; display: inline-flex; align-items: center; }
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--brand-deep); border-bottom-color: rgba(72, 82, 63, 0.45); }

.hero { display: grid; gap: 1rem; padding: 1.1rem; margin-bottom: 1rem; }
.hero-editorial { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: stretch; }
.hero-copy { align-self: center; padding: clamp(1rem, 3vw, 2.1rem); max-width: 74ch; }
.hero-media { display: grid; gap: 1rem; min-height: 100%; }
.hero-media figure,
.image-frame { margin: 0; overflow: hidden; border-radius: calc(var(--radius) - 6px); border: 1px solid var(--line); background: rgba(255,255,255,0.58); }
.hero-media img,
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-main { min-height: 400px; }
.hero-compact { grid-template-columns: minmax(0, 1.24fr) minmax(280px, 0.48fr); align-items: center; }
.hero-compact .hero-copy { padding: clamp(0.8rem, 2vw, 1.35rem); }
.hero-compact .inner-title { font-size: clamp(2rem, 4vw, 3.15rem); max-width: 14ch; }
.hero-compact .lead { font-size: 0.98rem; }
.hero-compact .hero-media { justify-self: end; }
.hero-compact .hero-media-main { width: min(100%, 360px); aspect-ratio: 2 / 3; min-height: 0; max-height: none; }
.hero-compact .hero-media-main img { object-fit: cover; padding: 0; background: #fffaf1; }
.hero-media-stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.hero-media-stack figure { min-height: 190px; }
.hero-media-contain img,
.image-frame.contain img { object-fit: contain; padding: 1.2rem; }

.eyebrow,
.section-kicker,
.product-meta,
.card-label {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.3rem); line-height: 0.95; margin: 0 0 1rem; max-width: 12ch; }
.inner-title { font-size: clamp(2.35rem, 5vw, 4.35rem); max-width: 13ch; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; margin: 0 0 0.85rem; max-width: 16ch; }
h3 { font-size: 1.65rem; line-height: 1.08; margin: 0 0 0.7rem; }
.lead,
.section-intro { max-width: 68ch; color: var(--muted); font-size: 1.04rem; }
.copy-max { max-width: 72ch; }

.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.3rem; }
.button,
.button-secondary,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1.12rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.button:hover { transform: translateY(-1px); border-color: rgba(72, 82, 63, 0.35); }
.button-primary { background: var(--accent); color: var(--light); border-color: var(--accent); }
.button-secondary { background: rgba(255,255,255,0.56); color: var(--brand-deep); }
.text-link { color: var(--brand); font-weight: 700; }
.text-link:hover { color: var(--accent); }

.content-stack { display: grid; gap: 1rem; }
.panel-section { padding: clamp(1rem, 2.2vw, 1.45rem); }
.section-inner { padding: clamp(1rem, 2.5vw, 1.6rem); }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.muted { background: rgba(235, 227, 214, 0.88); }
.dark-panel { background: linear-gradient(180deg, rgba(40,48,36,0.98), rgba(53,61,48,0.95)); color: var(--light); border-color: rgba(255,255,255,0.08); }
.dark-panel h2,
.dark-panel h3,
.dark-panel .stat-card strong { color: var(--light); }
.dark-panel p,
.dark-panel li { color: rgba(255,250,241,0.78); }
.dark-panel .section-kicker,
.dark-panel .text-link { color: #d8c8ae; }

.split,
.feature-grid,
.cards,
.product-grid,
.stat-strip,
.footer-grid,
.contact-grid,
.story-grid,
.category-grid {
  display: grid;
  gap: 1rem;
}
.split,
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.three-up,
.stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-up,
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-grid { grid-template-columns: 1.1fr 0.9fr; }
.cards { margin-top: 1rem; }
.card,
.panel,
.stat-card,
.collection-card,
.contact-card,
.notice-card { padding: 1rem; }
.card p,
.panel p,
.stat-card p,
.collection-card p,
.contact-card p,
.notice-card p { color: var(--muted); }
.stat-card strong { display: block; margin-bottom: 0.25rem; font-size: 1.6rem; }
.collection-card {
  overflow: hidden;
  padding: 0;
  display: grid;
  grid-template-rows: 210px 1fr;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(244, 239, 230, 0.96));
}
.collection-card:hover { transform: translateY(-2px); border-color: rgba(72,82,63,0.28); box-shadow: 0 24px 48px rgba(27, 30, 24, 0.12); }
.collection-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.04); }
.collection-card-body {
  padding: 0.95rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(248, 242, 232, 0.98));
  border-top: 1px solid rgba(28,31,25,0.08);
}
.collection-card-body::before {
  content: '';
  display: block;
  width: 3.5rem;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  background: var(--collection-accent, var(--accent));
}
.collection-card-body .text-link { margin-top: auto; }
.tall-card { min-height: 100%; }
.cards.three-up .collection-card:nth-child(1) { --collection-accent: #5d7750; }
.cards.three-up .collection-card:nth-child(2) { --collection-accent: #b67a36; }
.cards.three-up .collection-card:nth-child(3) { --collection-accent: #4c729e; }
.collection-card .product-meta { color: var(--collection-accent, var(--accent)); }

.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1rem; }
.product-card {
  overflow: hidden;
  background: rgba(255,255,255,0.76);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--card-accent, var(--accent));
}
.product-card:hover { transform: translateY(-2px); border-color: rgba(72,82,63,0.28); box-shadow: 0 24px 48px rgba(27, 30, 24, 0.12); }
.product-card-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.88;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f8f3ea;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: zoom-in;
}
.product-gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; padding: 0.45rem; background: rgba(248, 243, 234, 0.72); border-bottom: 1px solid var(--line); }
.product-gallery-thumb { aspect-ratio: 1 / 0.78; border: 1px solid rgba(28,31,25,0.1); border-radius: 9px; background-color: #fffaf1; background-size: contain; background-repeat: no-repeat; background-position: center; cursor: zoom-in; }
.product-card-image:hover,
.product-card-image:focus-visible,
.product-gallery-thumb:hover,
.product-gallery-thumb:focus-visible { outline: 2px solid rgba(168, 91, 42, 0.46); outline-offset: -2px; }
.image-zoom-hint {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: rgba(40, 48, 36, 0.9);
  color: var(--light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.product-card-image:hover .image-zoom-hint,
.product-card-image:focus-visible .image-zoom-hint { opacity: 1; transform: translateY(0); }
.product-badge { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.34rem 0.56rem; border-radius: 999px; background: var(--card-accent, rgba(40, 48, 36, 0.92)); color: var(--light); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.product-card-body { padding: 1rem; }
.product-card-body h3 { font-size: 1.35rem; }
.product-card-body p:not(.product-meta) { color: var(--muted); font-size: 0.94rem; }
.theme-optics { --card-accent: #4f78a9; }
.theme-accessories { --card-accent: #bb7a34; }
.theme-fieldwear { --card-accent: #5d7750; }
.theme-generic { --card-accent: #7c5a6d; }

#featured-products-grid .product-card:nth-child(4n+1) { --card-accent: #5d7750; }
#featured-products-grid .product-card:nth-child(4n+2) { --card-accent: #bb7a34; }
#featured-products-grid .product-card:nth-child(4n+3) { --card-accent: #4f78a9; }
#featured-products-grid .product-card:nth-child(4n+4) { --card-accent: #8a5d79; }
.product-card-size {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.9rem;
}
.product-card-size label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.product-card-size select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--ink);
  padding: 0.72rem 0.88rem;
  font: inherit;
}
.product-card-size select:focus-visible {
  outline: 2px solid rgba(168, 91, 42, 0.46);
  outline-offset: 2px;
}
.product-card-size .checkout-note { display: block; }
.product-card-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.product-card-footer a { color: var(--brand); font-weight: 700; }
.product-card-cta { display: flex; gap: 0.55rem 0.75rem; flex-wrap: wrap; align-items: center; margin-top: 0.75rem; font-size: 0.92rem; }
.checkout-note { color: var(--muted); font-size: 0.78rem; }
.preview-note { margin-top: 0.9rem; color: var(--muted); font-size: 0.94rem; }
.empty-state { grid-column: 1 / -1; }
.catalog-controls { margin: 1rem 0 0; }
.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) repeat(2, minmax(170px, 0.7fr));
  gap: 0.75rem;
  align-items: end;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.5);
}
.catalog-toolbar-wide { grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(150px, 0.65fr)); }
.catalog-toolbar label { display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.catalog-toolbar input,
.catalog-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 0.72rem 0.9rem;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}
.catalog-count { margin: 0.65rem 0 0; color: var(--muted); font-size: 0.92rem; }

.story-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; }
.image-triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.image-triptych .image-frame { min-height: 330px; }
.notice-card { background: rgba(72, 82, 63, 0.08); border-color: rgba(72, 82, 63, 0.14); box-shadow: none; }
.route-stories { display: grid; gap: 1rem; margin-top: 1rem; }
.route-story { display: grid; grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr); gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.72); box-shadow: var(--shadow-soft); }
.route-story.reverse { grid-template-columns: minmax(0, 1.22fr) minmax(220px, 0.78fr); }
.route-story-copy { padding: 0.5rem 0.5rem 0.5rem 0.15rem; }
.route-story.reverse .route-story-copy { padding: 0.5rem 0.15rem 0.5rem 0.5rem; }
.route-story-copy .product-meta { margin-bottom: 0.35rem; }
.route-story-copy h3 { margin-bottom: 0.55rem; }
.route-story-copy p + p { margin-top: 0.75rem; }
.route-story-media { margin: 0; overflow: hidden; border-radius: calc(var(--radius) - 6px); border: 1px solid var(--line); background: rgba(255,255,255,0.58); min-height: 320px; }
.route-story-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.route-story:not(.reverse) .route-story-media { aspect-ratio: 3 / 4; }
.route-story.reverse .route-story-media { aspect-ratio: 4 / 3; }
.route-story-media-contain { padding: 0.5rem; }
.route-story-media-contain img { object-fit: contain; }
.no-wrap { white-space: nowrap; }

.site-footer { margin-top: 1rem; padding: 1rem; }
.footer-grid { grid-template-columns: 1.1fr 0.75fr 0.9fr; }
.site-footer p,
.site-footer a { color: var(--muted); }
.site-footer strong { color: var(--brand-deep); }

@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-editorial,
  .hero-compact,
  .category-grid { grid-template-columns: 1fr; }
  .hero-media-main { min-height: 310px; }
  .hero-compact .hero-media-main { min-height: 190px; }
}
@media (max-width: 820px) {
  .split,
  .feature-grid,
  .story-grid,
  .three-up,
  .two-up,
  .stat-strip,
  .footer-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .site-header { position: static; }
  .section-heading-row { align-items: start; flex-direction: column; }
  .hero-copy { padding: 1rem; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .image-triptych { grid-template-columns: 1fr; }
  .image-triptych .image-frame { min-height: 240px; }
}
@media (max-width: 640px) {
  .header-inner { align-items: flex-start; }
  .brand-lockup { width: 100%; }
  .brand-mark { width: 46px; height: 46px; }
  .site-shell,
  .container { width: min(calc(100% - 1rem), var(--container)); }
  .brand { font-size: 1.65rem; }
  .main-nav { gap: 0.65rem 0.8rem; }
  .hero-media-stack,
  .product-grid { grid-template-columns: 1fr; }
  .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


code {
  padding: 0.08rem 0.28rem;
  border-radius: 6px;
  background: rgba(40, 48, 36, 0.08);
  color: var(--brand-deep);
  font-size: 0.92em;
}
.basket-button {
  border: 1px solid rgba(72, 82, 63, 0.22);
  border-radius: 999px;
  background: var(--brand-deep);
  color: var(--light);
  min-height: 38px;
  padding: 0.55rem 0.78rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.basket-button:hover { background: var(--accent); }
.basket-panel { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; pointer-events: none; }
.basket-toggle {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: var(--brand-deep);
  color: var(--light);
  box-shadow: 0 18px 42px rgba(27,30,24,0.22);
  padding: 0.72rem 1rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.basket-toggle span {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--light);
  font-size: 0.78rem;
}
.basket-drawer {
  pointer-events: auto;
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(420px, calc(100vw - 2rem));
  max-height: min(620px, calc(100vh - 7rem));
  overflow: auto;
  transform: translateY(0.5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.64);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 24px 70px rgba(27,30,24,0.2);
}
.basket-open .basket-drawer { opacity: 1; visibility: visible; transform: translateY(0); }
.basket-drawer-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.basket-drawer h2 { font-size: 2rem; margin-bottom: 0.3rem; }
.basket-close {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  cursor: pointer;
}
.basket-note,
.basket-empty { color: var(--muted); font-size: 0.92rem; }
.basket-items { display: grid; gap: 0.65rem; margin: 0.85rem 0; }
.basket-item {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(244,239,230,0.62);
}
.basket-item strong { display: block; color: var(--brand-deep); }
.basket-item span { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 0.15rem; }
.basket-item button {
  align-self: start;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.basket-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.basket-actions .button { flex: 1 1 auto; }
.lightbox-open { overflow: hidden; }
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}
.image-lightbox[aria-hidden="false"] { opacity: 1; visibility: visible; pointer-events: auto; }
.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 22, 16, 0.78);
  cursor: zoom-out;
}
.image-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 96vw);
  max-height: 92vh;
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: clamp(0.75rem, 2vw, 1.15rem);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 28px 90px rgba(0,0,0,0.35);
}
.image-lightbox-dialog img {
  width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  border-radius: calc(var(--radius) - 10px);
  background: #fffaf1;
}
.image-lightbox-dialog figcaption { color: var(--brand-deep); font-weight: 800; text-align: center; }
.image-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  background: rgba(40,48,36,0.92);
  color: var(--light);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 640px) {
  .basket-panel { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; }
  .basket-toggle { width: 100%; justify-content: center; }
  .basket-drawer { right: 0; width: 100%; }
}

.policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.sizing-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.62); box-shadow: var(--shadow); }
.sizing-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.sizing-table th,
.sizing-table td { padding: 0.88rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.sizing-table th { background: var(--surface-strong); color: var(--brand-deep); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; }
.sizing-table tr:last-child td { border-bottom: 0; }
.sizing-table td:first-child,
.sizing-table td:nth-child(2) { font-weight: 800; color: var(--brand-deep); }
.policy-card { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,0.52); }
.policy-card h3 { font-size: 1.42rem; }
.checkout-form { display: grid; gap: 0.85rem; }
.checkout-form label { display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.83rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.checkout-form input, .checkout-form textarea, .checkout-form select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-strong); color: var(--ink); padding: 0.75rem 0.9rem; font: inherit; text-transform: none; letter-spacing: 0; }
.checkout-form textarea { min-height: 120px; resize: vertical; }
.checkout-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.checkout-summary-list { display: grid; gap: 0.65rem; margin: 1rem 0; }
.checkout-summary-item { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.checkout-total { display: flex; justify-content: space-between; gap: 1rem; font-weight: 800; font-size: 1.15rem; padding-top: 0.75rem; }
@media (max-width: 820px) { .policy-grid { grid-template-columns: 1fr; } }

.brand-wordmark {
  display: block;
  width: clamp(150px, 18vw, 210px);
  height: auto;
  object-fit: contain;
  margin-bottom: -0.18rem;
}
@media (max-width: 640px) {
  .brand-wordmark { width: 164px; }
}

.admin-editor-shell { padding: clamp(1rem, 2.5vw, 1.6rem) 0; }
.admin-toolbar {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}
.admin-toolbar .button { cursor: pointer; }
.admin-import-button { position: relative; overflow: hidden; }
.admin-import-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.admin-status {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
}
.admin-status-success { background: rgba(72, 82, 63, 0.12); border-color: rgba(72, 82, 63, 0.24); color: var(--brand-deep); }
.admin-status-error { background: rgba(164, 63, 63, 0.12); border-color: rgba(164, 63, 63, 0.28); color: #74302b; }
.admin-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.62);
  box-shadow: var(--shadow);
}
.admin-product-table {
  width: 100%;
  min-width: 1760px;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.admin-product-table th,
.admin-product-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid rgba(28, 31, 25, 0.07);
  padding: 0.5rem;
  vertical-align: top;
}
.admin-product-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-strong);
  color: var(--brand-deep);
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-product-table input,
.admin-product-table select,
.admin-product-table textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 0.55rem 0.65rem;
  font: inherit;
}
.admin-product-table textarea {
  min-height: 86px;
  resize: vertical;
}
.admin-product-table input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--brand-deep);
}
.admin-flag { text-align: center; }
.admin-small-button {
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.admin-product-table td:nth-child(1),
.admin-product-table td:nth-child(3) { min-width: 150px; }
.admin-product-table td:nth-child(2) { min-width: 240px; }
.admin-product-table td:nth-child(6) { min-width: 110px; }
.admin-product-table td:nth-child(10),
.admin-product-table td:nth-child(12) { min-width: 300px; }
.admin-product-table td:nth-child(11) { min-width: 280px; }

.content-editor-wrap {
  display: grid;
  gap: 1rem;
}
.admin-copy-panel {
  padding: clamp(1rem, 2.5vw, 1.35rem);
}
.admin-copy-panel .section-heading-row {
  align-items: start;
  margin-bottom: 1rem;
}
.copy-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}
.copy-field {
  display: grid;
  gap: 0.35rem;
}
.copy-field-label {
  color: var(--brand-deep);
  font-weight: 700;
}
.copy-field-key {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
}
.copy-field input,
.copy-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 0.65rem 0.75rem;
  font: inherit;
}
.copy-field textarea {
  min-height: 110px;
  resize: vertical;
}

@media (max-width: 640px) {
  .admin-toolbar .button { width: 100%; }
  .admin-product-table { font-size: 0.82rem; }
}
