:root {
  --sc-space: 42px;
  --sc-space-sm: 30px;
  --sc-cream: #f7f2e8;
  --sc-cream-deep: #efe6d6;
  --sc-oak: #b98a5a;
  --sc-oak-dark: #8a6238;
  --sc-blue: #6f8aa6;
  --sc-blue-dark: #4f6a86;
  --sc-ink: #2c2a26;
  --sc-ink-soft: #5b564d;
  --sc-line: #ddd2bf;
  --sc-white: #fffdf8;
  --sc-radius: 10px;
  --sc-shadow: 0 1px 2px rgba(44, 42, 38, 0.06), 0 8px 24px rgba(44, 42, 38, 0.05);
  --sc-font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sc-font-sans: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.sc-root {
  margin: 0;
  background: var(--sc-cream);
  color: var(--sc-ink);
  font-family: var(--sc-font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--sc-blue-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sc-oak-dark); }

h1, h2, h3, h4 {
  font-family: var(--sc-font);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--sc-ink);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -48px;
  background: var(--sc-ink); color: var(--sc-white);
  padding: 8px 14px; border-radius: 6px; z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; color: var(--sc-white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 242, 232, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--sc-line);
}
.header-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "brand tools" "nav nav";
  align-items: center;
  gap: 8px 16px;
}
.brand {
  grid-area: brand;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--sc-ink);
  font-family: var(--sc-font); font-size: 1.25rem; font-weight: 600;
}
.brand img { width: 28px; height: 28px; }
.header-tools {
  grid-area: tools;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  flex-wrap: wrap;
}
.search-form { display: flex; align-items: center; gap: 6px; }
.search-form input {
  width: 180px; max-width: 42vw;
  padding: 8px 10px;
  border: 1px solid var(--sc-line);
  border-radius: 8px;
  background: var(--sc-white);
  font: inherit; font-size: 0.9rem;
}
.cart-link {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--sc-ink);
  font-size: 0.9rem; font-weight: 600;
  padding: 6px 10px; border: 1px solid var(--sc-line); border-radius: 8px;
  background: var(--sc-white);
}
.cart-count {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--sc-blue); color: #fff;
  border-radius: 999px; font-size: 0.75rem;
}
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--sc-line); border-radius: 8px;
  background: var(--sc-white); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle-bar, .menu-toggle-bar::before, .menu-toggle-bar::after {
  display: block; width: 18px; height: 2px; background: var(--sc-ink);
  position: relative; transition: transform 0.2s ease;
}
.menu-toggle-bar::before, .menu-toggle-bar::after {
  content: ""; position: absolute; left: 0;
}
.menu-toggle-bar::before { top: -6px; }
.menu-toggle-bar::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav { grid-area: nav; }
.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 18px;
}
.primary-nav a {
  text-decoration: none; color: var(--sc-ink-soft);
  font-size: 0.9rem; padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.primary-nav a:hover, .primary-nav a:focus-visible {
  color: var(--sc-ink); border-bottom-color: var(--sc-oak);
}

/* Layout */
main { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sc-section { padding-top: var(--sc-space); padding-bottom: var(--sc-space); }
.divider { border-top: 1px solid var(--sc-line); }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; font-weight: 700;
  color: var(--sc-oak-dark); margin-bottom: 0.6em;
}
.lede { font-size: 1.08rem; color: var(--sc-ink-soft); max-width: 62ch; }
.section-head { max-width: 68ch; margin-bottom: 24px; }
.section-sub { color: var(--sc-ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 20px;
  border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--sc-blue-dark); color: #fff; }
.btn-primary:hover { background: var(--sc-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--sc-ink); border-color: var(--sc-line); }
.btn-ghost:hover { border-color: var(--sc-oak); color: var(--sc-oak-dark); }
.btn-small { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; margin-bottom: 10px; }
.btn-text { background: none; border: none; color: var(--sc-ink-soft); text-decoration: underline; padding: 6px; }
.btn-text:hover { color: var(--sc-ink); }
.text-link { font-weight: 600; }

/* Hero */
.hero-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 0.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 14px; }
.hero-note { font-size: 0.85rem; color: var(--sc-ink-soft); }
.hero-media img {
  width: 100%; height: auto; border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.hero-caption { font-size: 0.78rem; color: var(--sc-ink-soft); margin-top: 8px; }

/* Collage */
.collage {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
.collage-tile {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 130px; padding: 16px;
  border-radius: var(--sc-radius);
  background: var(--sc-cream-deep);
  border: 1px solid var(--sc-line);
  text-decoration: none; color: var(--sc-ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.collage-tile:hover { transform: translateY(-2px); box-shadow: var(--sc-shadow); color: var(--sc-ink); }
.collage-tile:nth-child(2) { background: #e7edf2; }
.collage-tile:nth-child(3) { background: #f1e3d3; }
.collage-tile:nth-child(4) { background: #e9e4d8; }
.collage-tile:nth-child(5) { background: #e3e9e4; }
.collage-label { font-family: var(--sc-font); font-size: 1.15rem; font-weight: 600; }
.collage-desc { font-size: 0.85rem; color: var(--sc-ink-soft); }
.collage-tile-wide { grid-column: span 2; }

/* Product grid */
.product-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product-card {
  display: flex; flex-direction: column;
  background: var(--sc-white);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover { box-shadow: var(--sc-shadow); transform: translateY(-2px); }
.product-card-media {
  display: block; aspect-ratio: 1 / 1; background: var(--sc-cream-deep); overflow: hidden;
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-title {
  font-family: var(--sc-font); font-size: 1rem; font-weight: 600;
  margin: 0; line-height: 1.25;
}
.product-card-title a { color: var(--sc-ink); text-decoration: none; }
.product-card-title a:hover { color: var(--sc-oak-dark); }
.product-card-price { font-weight: 700; color: var(--sc-ink); font-size: 0.95rem; }
.product-card-meta { font-size: 0.8rem; color: var(--sc-ink-soft); }
.product-card .btn { margin-top: auto; }

/* Guidance */
.guidance-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.guidance-steps { display: grid; gap: 12px; }
.step {
  background: var(--sc-white); border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius); padding: 16px 18px;
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; font-size: 0.92rem; color: var(--sc-ink-soft); }

/* Compare table */
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%; border-collapse: collapse;
  background: var(--sc-white); border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius); overflow: hidden;
  font-size: 0.92rem;
}
.compare-table th, .compare-table td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--sc-line);
  vertical-align: top;
}
.compare-table thead th { background: var(--sc-cream-deep); font-family: var(--sc-font); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table a { font-weight: 600; }
@media (max-width: 700px) {
  .compare-table-wrap { overflow: visible; }
  .compare-table, .compare-table tbody, .compare-table tr { display: block; width: 100%; }
  .compare-table { border: 0; background: transparent; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare-table tr { border: 1px solid var(--sc-line); border-radius: 8px; background: var(--sc-white); margin-bottom: 10px; }
  .compare-table td { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 9px 12px; overflow-wrap: anywhere; }
  .compare-table td::before { content: attr(data-label); font-weight: 700; color: var(--sc-ink-soft); }
  .compare-table td:last-child { border-bottom: 0; }
}

/* Story */
.story-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.benefit-list {
  background: var(--sc-white); border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius); padding: 20px 22px;
}
.benefit-list ul { margin: 0; padding-left: 1.1em; }
.benefit-list li { margin-bottom: 8px; }

/* Accordion */
.accordion details {
  background: var(--sc-white); border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius); padding: 0 16px; margin-bottom: 10px;
}
.accordion summary {
  cursor: pointer; padding: 14px 0; font-weight: 600;
  font-family: var(--sc-font); font-size: 1.02rem;
  list-style: none; position: relative; padding-right: 28px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: 0; top: 12px;
  font-size: 1.2rem; color: var(--sc-oak-dark);
}
.accordion details[open] summary::after { content: "–"; }
.accordion details p { margin: 0 0 14px; color: var(--sc-ink-soft); }

/* Support band */
.support-band {
  display: grid; gap: 18px; grid-template-columns: 1fr;
  background: var(--sc-blue-dark); color: #fff;
  border-radius: var(--sc-radius); padding: 28px;
}
.support-band h2 { color: #fff; }
.support-band p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.support-band .eyebrow { color: #e9c9a4; }
.support-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.support-band .btn-primary { background: #fff; color: var(--sc-blue-dark); }
.support-band .btn-primary:hover { background: var(--sc-cream); color: var(--sc-ink); }
.support-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.support-band .btn-ghost:hover { color: #fff; border-color: #fff; }

/* Shop */
.page-intro { padding-bottom: 0; }
.shop-controls { display: grid; gap: 14px; }
.shop-search { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-search input {
  flex: 1 1 220px; padding: 10px 12px;
  border: 1px solid var(--sc-line); border-radius: 8px;
  background: var(--sc-white); font: inherit;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--sc-line); background: var(--sc-white);
  font: inherit; font-size: 0.85rem; cursor: pointer; color: var(--sc-ink-soft);
}
.chip:hover { border-color: var(--sc-oak); color: var(--sc-ink); }
.chip.is-active { background: var(--sc-ink); color: #fff; border-color: var(--sc-ink); }
.result-count { font-size: 0.88rem; color: var(--sc-ink-soft); margin: 0; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination button {
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--sc-line); background: var(--sc-white);
  border-radius: 8px; font: inherit; cursor: pointer;
}
.pagination button[aria-current="page"] { background: var(--sc-ink); color: #fff; border-color: var(--sc-ink); }
.pagination button:disabled { opacity: 0.4; cursor: default; }

/* Product page */
.product-page { display: grid; gap: 28px; grid-template-columns: 1fr; }
.product-gallery { display: grid; gap: 10px; }
.gallery-main {
  border: 1px solid var(--sc-line); border-radius: var(--sc-radius);
  overflow: hidden; background: var(--sc-white); aspect-ratio: 1 / 1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 64px; height: 64px; padding: 0; overflow: hidden;
  border: 1px solid var(--sc-line); border-radius: 8px; background: var(--sc-white); cursor: pointer;
}
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--sc-oak); box-shadow: 0 0 0 2px rgba(185,138,90,0.3); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { margin-bottom: 0.3em; }
.product-price { font-size: 1.4rem; font-weight: 700; margin: 0 0 12px; }
.product-desc { color: var(--sc-ink-soft); }
.attr-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.92rem; }
.attr-table th, .attr-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--sc-line); }
.attr-table th { width: 40%; color: var(--sc-ink-soft); font-weight: 600; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--sc-line); border-radius: 8px; overflow: hidden; background: var(--sc-white); }
.qty-control button { width: 38px; height: 38px; border: none; background: none; font-size: 1.1rem; cursor: pointer; }
.qty-control button:hover { background: var(--sc-cream-deep); }
.qty-control input { width: 52px; height: 38px; border: none; text-align: center; font: inherit; background: transparent; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.product-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.88rem; }
.product-loading { color: var(--sc-ink-soft); }

/* Cart */
.cart-layout { display: grid; gap: 24px; grid-template-columns: 1fr; }
.cart-items { display: grid; gap: 12px; }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr; gap: 14px;
  background: var(--sc-white); border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius); padding: 12px;
}
.cart-item-media { width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: var(--sc-cream-deep); }
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { display: flex; flex-direction: column; gap: 6px; }
.cart-item-title { font-family: var(--sc-font); font-weight: 600; margin: 0; }
.cart-item-title a { color: var(--sc-ink); text-decoration: none; }
.cart-item-price { font-size: 0.9rem; color: var(--sc-ink-soft); }
.cart-item-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cart-item-line { font-weight: 700; }
.cart-empty { color: var(--sc-ink-soft); }
.cart-summary {
  background: var(--sc-white); border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius); padding: 20px; align-self: start;
}
.summary-list { margin: 0 0 12px; }
.summary-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--sc-line); }
.summary-list dt { color: var(--sc-ink-soft); }
.summary-list dd { margin: 0; font-weight: 600; }
.summary-note { font-size: 0.82rem; color: var(--sc-ink-soft); }

/* Checkout */
.checkout-layout { display: grid; gap: 24px; grid-template-columns: 1fr; }
.notice {
  background: #fdf3e3; border: 1px solid #e8cfa4;
  border-radius: var(--sc-radius); padding: 12px 16px; margin-bottom: 18px;
  font-size: 0.92rem;
}
.checkout-form fieldset {
  border: 1px solid var(--sc-line); border-radius: var(--sc-radius);
  padding: 16px 18px; margin: 0 0 16px; background: var(--sc-white);
}
.checkout-form legend { font-family: var(--sc-font); font-weight: 600; padding: 0 6px; }
.checkout-form label { display: block; font-size: 0.88rem; margin: 10px 0 4px; color: var(--sc-ink-soft); }
.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--sc-line); border-radius: 8px;
  background: var(--sc-cream); font: inherit;
}
.checkout-form input:focus, .checkout-form select:focus { outline: 2px solid var(--sc-blue); outline-offset: 1px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.checkbox-row input { margin-top: 4px; }
.field-note { font-size: 0.85rem; color: var(--sc-ink-soft); }
.form-message { margin-top: 12px; font-weight: 600; }
.form-message.is-error { color: #a33; }
.form-message.is-ok { color: #2f6b3f; }
.checkout-summary {
  background: var(--sc-white); border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius); padding: 20px; align-self: start;
}
.checkout-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; padding: 6px 0; border-bottom: 1px dashed var(--sc-line); }

/* Footer */
.site-footer { background: var(--sc-cream-deep); border-top: 1px solid var(--sc-line); margin-top: var(--sc-space); }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 32px 20px 24px;
  display: grid; gap: 24px; grid-template-columns: 1fr;
}
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--sc-font); font-weight: 600; font-size: 1.1rem; }
.footer-brand img { width: 24px; height: 24px; }
.footer-note { flex-basis: 100%; font-family: var(--sc-font-sans); font-weight: 400; font-size: 0.82rem; color: var(--sc-ink-soft); margin: 4px 0 0; }
.footer-cols { display: grid; gap: 8px; grid-template-columns: 1fr; }
.footer-col { border-bottom: 1px solid var(--sc-line); padding-bottom: 8px; }
.footer-col summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; padding: 6px 0; list-style: none; }
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { font-size: 0.86rem; color: var(--sc-ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--sc-ink); text-decoration: underline; }
.footer-contact { font-size: 0.84rem; color: var(--sc-ink-soft); }
.footer-contact-line { margin: 0 0 6px; }
.footer-contact-line a { color: var(--sc-ink-soft); }
.footer-paypal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.footer-paypal img { height: 22px; width: auto; }
.paypal-note { font-size: 0.78rem; }

/* Responsive */
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .collage { grid-template-columns: repeat(4, 1fr); }
  .collage-tile-wide { grid-column: span 1; }
  .collage-tile:nth-child(1) { grid-column: span 2; }
  .collage-tile:nth-child(2) { grid-column: span 2; }
  .collage-tile:nth-child(6) { grid-column: span 1; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-col { border-bottom: none; }
  .cart-layout { grid-template-columns: 1.6fr 1fr; }
  .checkout-layout { grid-template-columns: 1.4fr 1fr; }
  .product-page { grid-template-columns: 1fr 1fr; align-items: start; }
  .story-grid { grid-template-columns: 1.3fr 1fr; }
  .guidance-grid { grid-template-columns: 1fr 1fr; }
  .support-band { grid-template-columns: 1.4fr auto; align-items: center; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

@media (min-width: 1000px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1.2fr 1.4fr 1fr; }
  .footer-brand { grid-column: 1; }
  .footer-cols { grid-column: 2; }
  .footer-contact { grid-column: 3; }
}

@media (max-width: 719px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    border-top: 1px solid var(--sc-line);
    padding-top: 8px;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav a { display: block; padding: 8px 0; }
  .header-inner { grid-template-areas: "brand tools" "nav nav"; }
  .search-form input { width: 130px; }
  .cart-label { display: none; }
  .sc-section { padding-top: var(--sc-space-sm); padding-bottom: var(--sc-space-sm); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

:focus-visible { outline: 2px solid var(--sc-blue); outline-offset: 2px; }

.footer-mailing summary{cursor:pointer;font-weight:600}.footer-mailing p{margin:.4em 0;overflow-wrap:anywhere}
@media(max-width:640px){.header-inner{grid-template-areas:"brand brand" "tools tools" "nav nav";grid-template-columns:minmax(0,1fr) auto}.header-tools{width:100%;justify-content:flex-start;flex-wrap:nowrap}.header-tools .search-form{flex:1 1 auto;min-width:0}.header-tools .search-form input{flex:1 1 auto;width:100%;max-width:none;min-width:0}}

@media(max-width:640px){.header-inner{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"brand cart menu" "search search search" "nav nav nav"}.header-tools{display:contents}.header-tools .search-form{grid-area:search;display:flex;min-width:0}.header-tools .search-form input{flex:1 1 auto;width:100%;max-width:none;min-width:0}.header-tools .cart-link{grid-area:cart}.header-tools .menu-toggle{grid-area:menu}}

/* Compact mobile product-gallery navigation */
@media(max-width:640px){.product-gallery{min-width:0;max-width:100%}.gallery-thumbs{display:flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}.gallery-thumbs>button{flex:0 0 auto}}
