:root {
  color-scheme: light;
  --ink: #171a19;
  --ink-soft: #555b58;
  --muted: #6b726e;
  --paper: #f5f5f2;
  --white: #fff;
  --line: #e3e4e0;
  --blue: #477df4;
  --blue-dark: #1a3e83;
  --blue-soft: #edf2ff;
  --green: #2f8a5b;
  --amber: #b26a12;
  --red: #b4483f;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --header-height: 72px;
  --page-width: min(1200px, 88%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--font-body); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Announcement + header ---------- */
.announcement {
  min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 16px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.announcement a { margin-left: 8px; color: #e3eaff; text-decoration: underline; text-underline-offset: 3px; }
.announcement-dot, .status-dot { display: inline-block; border-radius: 50%; flex-shrink: 0; }
.announcement-dot { width: 6px; height: 6px; background: #c9ff72; }

.site-header {
  position: sticky; top: 0; z-index: 8; height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 max(4%, calc((100% - 1280px) / 2));
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid #eceeea;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  display: grid; width: 32px; height: 32px; place-items: center; color: #fff; background: var(--blue);
  font: 700 20px/1 var(--font-display); transform: skew(-8deg);
}
.brand-name { font: 700 17px/1 var(--font-display); letter-spacing: -.05em; }
.brand-name > span { color: var(--blue); }
.main-nav { display: flex; gap: clamp(20px, 3.5vw, 44px); }
.main-nav a { font-size: 14px; color: var(--ink-soft); font-weight: 600; transition: color .2s; }
.main-nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.customer-trigger { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.customer-trigger svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 1.7; stroke-linecap: round; }
.customer-trigger:hover { color: var(--blue); }
.cart-trigger {
  border: 0; background: var(--ink); color: #fff; display: inline-flex; align-items: center; gap: 9px;
  min-height: 40px; padding: 0 14px; cursor: pointer; font-size: 14px; font-weight: 700; transition: background .2s;
}
.cart-trigger:hover { background: var(--blue); }
.cart-trigger svg, .search-box svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; color: var(--ink);
  background: #fff; font-size: 12px; font-weight: 700;
}
.cart-count.is-bumped { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 520px; height: min(640px, calc(100vh - 108px));
  background: #161a1c; overflow: hidden; color: #fff; display: flex; align-items: center;
}
.hero-image {
  position: absolute; inset: 0 0 0 28%;
  background-image: var(--hero-image, none);
  background-size: cover; background-position: right 60%; filter: brightness(.86);
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #131718 0%, #131718 27%, rgba(19,23,24,.88) 39%, rgba(19,23,24,.34) 57%, rgba(19,23,24,.04) 100%),
    linear-gradient(0deg, rgba(10,12,13,.4), transparent 36%);
}
.hero-content { position: relative; z-index: 1; width: min(620px, 58%); margin-left: max(6%, calc((100% - 1200px) / 2)); }
.eyebrow {
  display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700;
  letter-spacing: .16em; color: var(--muted); text-transform: uppercase;
}
.hero .eyebrow { color: #b6c0bd; }
.eyebrow-line { width: 24px; height: 2px; display: inline-block; background: var(--blue); }
.hero h1 {
  margin: 20px 0 18px; font: 600 clamp(48px, 6vw, 76px)/.94 var(--font-display);
  letter-spacing: -.065em;
}
.hero h1 span { color: var(--blue-light, #6f99ff); }
.hero-content > p { max-width: 430px; color: #c3cac7; font-size: 17px; line-height: 1.6; margin-bottom: 0; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 50px; border: 0; padding: 0 22px; cursor: pointer; font-size: 14px; font-weight: 700;
  transition: background .2s, transform .2s, color .2s, border-color .2s;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button span { font-size: 16px; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: #3569e6; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: #e2e5e3; font-size: 14px; font-weight: 600; }
.text-link span { font-size: 16px; transition: transform .2s; }
.text-link:hover span { transform: translate(2px, 2px); }
.hero-vertical {
  position: absolute; z-index: 1; right: 24px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%);
  font-size: 10px; color: rgba(255,255,255,.5); letter-spacing: .2em;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap;
  padding: 20px max(6%, calc((100% - 1200px) / 2)); background: #fff; border-bottom: 1px solid var(--line);
}
.trust-strip > div { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.trust-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 14px; flex-shrink: 0; }
.trust-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-strip .catalog-status[hidden] { display: none; }
.trust-strip .catalog-status {
  padding: 6px 12px; border-radius: 999px; background: #f3f4f1; color: var(--muted); font-size: 12px; font-weight: 600;
}
.status-dot { width: 7px; height: 7px; background: #e6a543; }
.catalog-status.is-live .status-dot { background: #45ac77; }
.catalog-status.is-demo .status-dot { background: #e6a543; }
.catalog-status.is-error .status-dot { background: #d45d57; }

/* ---------- Sections ---------- */
.section { width: var(--page-width); margin: 0 auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 {
  margin: 12px 0 0; font: 600 clamp(32px, 4vw, 48px)/1 var(--font-display); letter-spacing: -.055em;
}
.section-heading h2 span { color: var(--blue); }
.dark-link { color: var(--ink); }
.section-heading > .text-link { margin-bottom: 6px; }

/* Categories: compact, text-forward tiles that act as shortcuts into the shop */
.category-section { padding: 64px 0 56px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 28px; }
.category-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-height: 148px; padding: 18px; border: 1px solid #2a302e; text-align: left; color: #fff; cursor: pointer; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #2d3a5c 0%, #1b2021 55%, #171b1c 100%);
  transition: transform .2s, border-color .2s, background .2s;
}
.category-card:hover { transform: translateY(-3px); border-color: var(--blue); }
.category-card.is-active { border-color: var(--blue); background: linear-gradient(140deg, var(--blue-mid, #2a55c0), var(--blue-dark)); }
.category-number { color: var(--blue-muted, #8fa3d6); font: 600 12px/1 var(--font-display); letter-spacing: .1em; }
.category-card.is-active .category-number { color: #cfdcff; }
.category-title { margin-top: auto; font: 600 21px/1.1 var(--font-display); letter-spacing: -.03em; }
.category-count { color: #b9c2bf; font-size: 13px; }
.category-count span { display: inline-block; margin-left: 4px; color: #9db7ff; transition: transform .2s; }
.category-card:hover .category-count span { transform: translateX(3px); }
/* Tiles with a photo set in the admin: the photo fills the tile, with a dark fade
   behind the text so the name stays readable on any photo. */
.category-card > span:not(.category-image) { position: relative; z-index: 1; }
.category-image {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.category-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,17,18,.55) 0%, rgba(14,17,18,.12) 38%, rgba(14,17,18,.82) 100%);
  transition: background .2s;
}
.category-card.has-image { background: #171b1c; }
.category-card.has-image:hover .category-image { transform: scale(1.06); }
.category-card.has-image.is-active { background: #171b1c; }
.category-card.has-image.is-active .category-image::after {
  background: linear-gradient(180deg, rgba(42,85,192,.55) 0%, rgba(26,62,131,.35) 40%, rgba(19,40,92,.9) 100%);
}
.category-card.has-image .category-number { color: #dbe4ff; }
.category-card.has-image .category-count { color: #e3e8e6; }
.category-card.has-image > span:not(.category-image) { text-shadow: 0 1px 10px rgba(0,0,0,.55); }

/* ---------- Shop ---------- */
.shop-section { background: #fff; padding: 72px 0 96px; }
.shop-heading { align-items: end; }
.search-box {
  height: 48px; width: 320px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  color: #707774; border: 1px solid #d5d8d3; background: #fff; transition: border-color .2s;
}
.search-box:focus-within { border-color: var(--blue); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 15px; background: transparent; }
.search-box input::placeholder { color: #8d948f; }
.search-box kbd { min-width: 22px; text-align: center; padding: 2px 5px; border: 1px solid #e2e3e0; color: #868d89; font: 12px var(--font-body); }
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin: 26px 0 0; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.filter-list { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter-list::-webkit-scrollbar { display: none; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; white-space: nowrap; border: 1px solid #e1e3df;
  border-radius: 999px; padding: 0 14px; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 14px; font-weight: 600;
  transition: background .2s, border-color .2s, color .2s;
}
.filter-chip:hover { border-color: #c4ccdf; background: #f6f8fd; }
.filter-chip.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }
.filter-chip span { color: #97a0ad; font-size: 12px; }
.filter-chip.is-active span { color: #b8c1bd; }
.fitment-note { color: var(--muted); font-size: 13px; white-space: nowrap; }
.fitment-note span { color: var(--blue); margin-right: 4px; }
.results-summary { margin: 18px 0 22px; min-height: 22px; color: var(--muted); font-size: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px 20px; }
.product-card { min-width: 0; display: flex; flex-direction: column; }
.product-image-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #eff0ed; }
.product-image {
  width: 100%; height: 100%; display: block; object-fit: cover; mix-blend-mode: multiply;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.product-card:hover .product-image { transform: scale(1.05); }
.product-tag {
  position: absolute; top: 12px; left: 12px; padding: 5px 9px; background: rgba(255,255,255,.94);
  color: #3f4844; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.product-details { flex: 1; display: flex; flex-direction: column; padding: 16px 0 0; }
.product-category { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.product-name { margin: 6px 0 6px; font: 600 18px/1.3 var(--font-display); letter-spacing: -.02em; }
.product-description {
  margin: 0 0 12px; color: var(--ink-soft); font-size: 14px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.product-price { font: 600 19px var(--font-display); }
.product-stock { color: var(--green); font-size: 13px; font-weight: 600; }
.product-stock.is-low { color: var(--amber); }
.product-stock.out-of-stock { color: var(--red); }
.product-stock.is-unknown { color: var(--muted); }
.product-add {
  margin-top: 14px; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 700;
  transition: background .2s, color .2s, border-color .2s;
}
.product-add span { font-size: 18px; line-height: 1; }
.product-add:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); color: #fff; }
.product-add:disabled { border-color: #dcdfdb; background: #f3f4f1; color: #8a908c; cursor: not-allowed; }
.loading-state { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-height: 160px; color: #636b67; font-size: 15px; }
.loading-state.is-error { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; color: var(--ink); }
.loading-state small { color: var(--muted); font-size: 13px; }
.loader { width: 18px; height: 18px; border: 2px solid #e3e7ed; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { padding: 56px 20px; text-align: center; }
.empty-state h3 { margin: 8px 0; font: 600 24px var(--font-display); }
.empty-state p { color: var(--muted); font-size: 15px; }
.empty-mark { color: var(--blue); font-size: 36px; }
.empty-state .text-link { margin-top: 6px; border: 0; background: none; cursor: pointer; }
.product-grid[hidden], .empty-state[hidden] { display: none; }

/* ---------- Rewards banner ---------- */
.build-banner {
  position: relative; min-height: 460px; overflow: hidden; display: flex; align-items: center; background: #171b1c; color: #fff;
}
.build-banner-image {
  position: absolute; inset: 0 0 0 48%;
  background: linear-gradient(90deg, #171b1c, rgba(23,27,28,.25) 35%, rgba(23,27,28,.12)),
    var(--banner-image, none) 30% 50%/cover;
  opacity: .9;
}
.build-banner-content { position: relative; z-index: 1; width: min(520px, 52%); margin-left: max(6%, calc((100% - 1200px) / 2)); padding: 80px 0; }
.build-banner .eyebrow { color: #b4bcba; }
.build-banner h2 { margin: 18px 0 16px; font: 600 clamp(36px, 4.7vw, 58px)/.98 var(--font-display); letter-spacing: -.06em; }
.build-banner h2 span { color: var(--blue-light, #6f99ff); }
.build-banner p { max-width: 440px; color: #b9c1be; font-size: 16px; line-height: 1.65; }
.banner-perks { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 12px; }
.banner-perks li { position: relative; padding-left: 22px; color: #c7cecb; font-size: 15px; line-height: 1.5; }
.banner-perks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--blue); transform: skew(-8deg); }
.banner-perks strong { display: block; color: #fff; font: 600 16px var(--font-display); }
.banner-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.banner-coordinate { position: absolute; right: 6%; bottom: 24px; color: rgba(255,255,255,.5); font-size: 10px; letter-spacing: .13em; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.footer-main {
  width: var(--page-width); margin: 0 auto; padding: 48px 0 36px;
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.footer-intro { max-width: 340px; }
.footer-intro p { margin: 14px 0 0; line-height: 1.6; }
.footer-brand { color: var(--ink); }
.footer-nav { display: flex; gap: clamp(40px, 8vw, 96px); }
.footer-nav div { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h2 { margin: 0 0 4px; color: var(--ink); font: 700 12px var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.footer-nav a, .footer-bottom a { color: var(--ink-soft); font-weight: 500; transition: color .2s; }
.footer-nav a:hover, .footer-bottom a:hover { color: var(--blue); }
.footer-bottom {
  width: var(--page-width); margin: 0 auto; padding: 18px 0 26px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 24px; font-size: 13px;
}
.footer-bottom > span { margin-right: auto; }
.footer-top { font-weight: 600; }

/* ---------- Cart drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 9; background: rgba(15,18,19,.5); opacity: 0; transition: opacity .25s; }
.drawer-backdrop.is-visible { opacity: 1; }
.cart-drawer {
  position: fixed; z-index: 10; inset: 0 0 0 auto; width: min(440px, 100%); display: flex; flex-direction: column;
  padding: 26px 28px; background: #fff; box-shadow: -10px 0 50px rgba(0,0,0,.12);
  transform: translateX(105%); visibility: hidden;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s;
}
.cart-drawer.is-open { transform: translateX(0); visibility: visible; transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 10px 0 0; font: 600 28px var(--font-display); letter-spacing: -.04em; }
.drawer-header h2 span { font: 400 15px var(--font-body); color: var(--muted); }
.icon-button { width: 40px; height: 40px; border: 0; background: #f2f3f0; cursor: pointer; font-size: 24px; line-height: 1; }
.icon-button:hover { background: #e7e9e4; }
.cart-items { flex: 1; overflow-y: auto; }
.cart-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid #ececea; }
.cart-row img { width: 76px; height: 76px; object-fit: cover; background: #f0f1ee; }
.cart-row-info h3 { margin: 2px 0 4px; font: 600 15px/1.3 var(--font-display); }
.cart-row-info > span { color: var(--muted); font-size: 13px; }
.quantity-control { display: flex; width: fit-content; align-items: center; gap: 10px; margin-top: 10px; }
.quantity-control button { width: 30px; height: 30px; padding: 0; border: 1px solid #dfe1dd; background: #fff; cursor: pointer; font-size: 16px; }
.quantity-control button:disabled { color: #b5bab6; cursor: not-allowed; }
.quantity-control span { min-width: 16px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-row-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-row-end strong { font: 600 15px var(--font-display); white-space: nowrap; }
.remove-item { padding: 0; border: 0; background: transparent; color: #7f8682; cursor: pointer; font-size: 13px; text-decoration: underline; }
.remove-item:hover { color: var(--red); }
.cart-empty { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.cart-empty[hidden] { display: none; }
.cart-empty > span { color: #88a6f5; font-size: 40px; }
.cart-empty h3 { margin: 14px 0 6px; font: 600 21px var(--font-display); }
.cart-empty p { color: var(--muted); font-size: 15px; }
.button-dark { color: #fff; background: #191d1b; }
.button-dark:hover { background: var(--blue); }
.drawer-footer { padding-top: 18px; border-top: 1px solid var(--line); }
.drawer-footer[hidden] { display: none; }
.subtotal-row { display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.subtotal-row strong { font: 600 21px var(--font-display); }
.drawer-footer p { margin: 6px 0 16px; color: var(--muted); font-size: 13px; }
.checkout-button { width: 100%; background: #d8dad7; color: #5f6562; cursor: not-allowed; }
.checkout-button.is-ready { background: var(--blue); color: #fff; cursor: pointer; }
.checkout-button.is-ready:hover { background: #3569e6; }
.checkout-note { display: block; margin-top: 10px; text-align: center; color: var(--muted); font-size: 13px; }
.checkout-note a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.toast {
  position: fixed; z-index: 20; bottom: 24px; left: 50%; max-width: calc(100% - 32px); padding: 13px 18px; transform: translate(-50%, 20px);
  opacity: 0; pointer-events: none; background: #1a1e1d; color: #fff; font-size: 14px; transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Product card → detail ---------- */
button.product-image-wrap { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.product-extras {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 9px; background: rgba(23,26,25,.82);
  color: #fff; font-size: 12px; font-weight: 600;
}
.product-name button {
  padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer;
}
.product-name button:hover { color: var(--blue); }

.product-dialog {
  width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0;
  background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.25); overflow: auto;
}
.product-dialog::backdrop { background: rgba(15,18,19,.6); }
.product-dialog[open] { animation: dialog-in .22s cubic-bezier(.2,.8,.2,1); }
@keyframes dialog-in { from { transform: translateY(16px); opacity: 0; } }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 1; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.detail-gallery { padding: 24px; background: #f3f4f1; }
/* The photos stay in view while the details column scrolls past reviews. */
.detail-gallery-inner { position: sticky; top: 24px; }
.detail-main-image { aspect-ratio: 4 / 3; background: #e9eae6; overflow: hidden; }
.detail-main-image img { width: 100%; height: 100%; display: block; object-fit: cover; mix-blend-mode: multiply; }
.detail-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.detail-thumbs button { padding: 0; border: 2px solid transparent; background: #e9eae6; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.detail-thumbs button.is-active { border-color: var(--blue); }
.detail-thumbs img { width: 100%; height: 100%; display: block; object-fit: cover; }
.detail-info { display: flex; flex-direction: column; gap: 10px; padding: 36px 32px 32px; }
.detail-info h2 { margin: 0; padding-right: 40px; font: 600 clamp(26px, 3vw, 34px)/1.1 var(--font-display); letter-spacing: -.04em; }
.detail-category { color: var(--muted); font-size: 14px; }
.detail-buy { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 14px 0; border-block: 1px solid var(--line); }
.detail-buy .product-price { font-size: 26px; }
.detail-add { width: 100%; }
.detail-add:disabled { background: #e3e5e1; color: #7c827e; cursor: not-allowed; }
.detail-info .fitment-note { white-space: normal; }
.detail-description { margin-top: 8px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; white-space: pre-line; }
.detail-documents { margin-top: 8px; }
.detail-documents h3 { margin: 0 0 8px; font: 700 12px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.detail-documents ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.detail-documents a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; transition: border-color .2s; }
.detail-documents a:hover { border-color: var(--blue); color: var(--blue); }
.detail-documents a span:not(.doc-icon) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-documents small { color: var(--muted); font-size: 13px; font-weight: 500; }
.doc-icon { flex-shrink: 0; padding: 3px 6px; background: #fbe9e7; color: #a33d30; font-size: 11px; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-content { width: 70%; }
  .build-banner-content { width: 60%; }
}
@media (max-width: 760px) {
  :root { --header-height: 62px; --page-width: 90%; }
  body { font-size: 15px; }
  .announcement { font-size: 11px; }
  .site-header { padding-inline: 5%; gap: 12px; }
  .main-nav { display: none; }
  .header-actions { margin-left: auto; gap: 14px; }
  .customer-trigger span { display: none; }
  .customer-trigger svg { width: 23px; height: 23px; }
  .cart-trigger { padding: 0 12px; }
  .hero { height: auto; min-height: 0; padding: 72px 0 64px; }
  .hero-image { inset: 0; background-position: 57% center; opacity: .55; }
  .hero-shade { background: linear-gradient(90deg, rgba(17,21,22,.95), rgba(17,21,22,.65) 65%, rgba(17,21,22,.2)), linear-gradient(0deg, rgba(17,21,22,.5), transparent 40%); }
  .hero-content { width: auto; margin: 0 7%; }
  .hero h1 { font-size: clamp(46px, 13vw, 64px); }
  .hero-content > p { font-size: 16px; }
  .hero-actions { gap: 18px; }
  .hero-vertical { display: none; }
  .trust-strip { padding: 16px 5%; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .trust-strip > div { font-size: 14px; }
  .trust-strip .catalog-status { justify-self: start; }
  .category-section { padding: 48px 0 40px; }
  .section-heading { align-items: flex-end; }
  .section-heading h2 { font-size: 34px; }
  .section-heading > .text-link { font-size: 13px; white-space: nowrap; }
  .category-section .section-heading > .text-link { display: none; }
  /* Category tiles become a swipeable row so products stay near the top */
  .category-grid {
    display: flex; overflow-x: auto; gap: 10px; margin: 22px -5.6% 0; padding: 0 5.6% 6px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-card { flex: 0 0 150px; min-height: 112px; padding: 14px; scroll-snap-align: start; }
  .category-title { font-size: 18px; }
  .shop-section { padding: 52px 0 64px; }
  .shop-heading { flex-direction: column; align-items: stretch; gap: 18px; }
  .search-box { width: 100%; }
  .shop-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .filter-list { width: 100%; }
  .fitment-note { white-space: normal; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .product-name { font-size: 15px; }
  .product-description { display: none; }
  .product-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .product-price { font-size: 17px; }
  .product-stock { font-size: 12px; }
  .product-add { min-height: 42px; font-size: 13px; }
  .build-banner { min-height: 0; align-items: flex-start; }
  .build-banner-image { inset: 0; opacity: .3; background-position: center; }
  .build-banner-content { width: auto; margin: 0 7%; padding: 64px 0; }
  .build-banner h2 { font-size: 42px; }
  .footer-main { flex-direction: column; gap: 28px; padding-top: 40px; }
  .footer-bottom { flex-wrap: wrap; gap: 10px 20px; }
  .footer-bottom > span { flex: 1 1 100%; }
  .cart-drawer { padding: 22px 20px; }
  .product-dialog { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-gallery { padding: 0 0 12px; }
  .detail-gallery-inner { position: static; }
  .detail-thumbs { padding: 0 16px; }
  .detail-info { padding: 20px 20px 32px; }
  .dialog-close { position: fixed; background: rgba(255,255,255,.92); }
}
@media (max-width: 380px) {
  .brand-name { font-size: 15px; }
  .cart-trigger > span:not(.cart-count) { display: none; }
  .product-grid { gap: 24px 10px; }
}

/* ---------- Checkout ---------- */
.checkout-page { background: var(--paper); }
.checkout-header .secure-note { color: var(--muted); font-size: 14px; font-weight: 600; }
.checkout-main { width: min(1120px, 92%); margin: 0 auto; padding: 40px 0 80px; }
.notice-bar { margin-bottom: 20px; padding: 12px 16px; border-left: 3px solid var(--blue); background: var(--blue-soft); color: #274c9d; font-size: 15px; }
.notice-bar.is-error { border-color: var(--red); background: #fff1ef; color: #92392f; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 32px; align-items: start; }
.checkout-form { padding: 32px; background: #fff; border: 1px solid var(--line); }
.checkout-form h1, .checkout-empty h1, .confirmation h1 { margin: 0 0 6px; font: 600 clamp(30px, 4vw, 40px)/1.05 var(--font-display); letter-spacing: -.045em; }
.checkout-signin { margin: 0 0 18px; color: var(--muted); }
.checkout-signin a, .checkout-empty a:not(.button) { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.checkout-form fieldset { margin: 22px 0 0; padding: 22px 0 0; border: 0; border-top: 1px solid var(--line); }
.checkout-form legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font: 600 18px var(--font-display); }
.checkout-form legend + * { clear: both; }
.checkout-form legend small, .checkout-form label small { color: var(--muted); font: 400 13px var(--font-body); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid .span-2 { grid-column: 1 / -1; }
.checkout-form label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.checkout-form input, .checkout-form select, .checkout-form textarea, .discount-form input {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d5d8d3; background: #fff; color: var(--ink); font: inherit; font-size: 15px;
}
.checkout-form textarea { resize: vertical; }
.checkout-form input:focus, .checkout-form select:focus, .checkout-form textarea:focus, .discount-form input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(71,125,244,.14); }
.payment-options { display: grid; gap: 10px; }
.checkout-form .payment-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #d5d8d3; cursor: pointer; }
.payment-option:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: #f7f9ff; }
.checkout-form .payment-option input { width: 18px; min-height: 18px; height: 18px; accent-color: var(--blue); }
.payment-option strong { display: block; color: var(--ink); font-size: 15px; }
.payment-option small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.test-mode { margin: 10px 0 0; padding: 8px 12px; background: #fdf0de; color: #93560c; font-size: 13px; font-weight: 600; }
.form-error { margin-top: 18px; padding: 12px 14px; background: #fff1ef; color: #92392f; border-left: 3px solid var(--red); font-size: 14px; }
.pay-button { width: 100%; margin-top: 22px; min-height: 54px; font-size: 16px; }
.pay-button:disabled { opacity: .7; cursor: progress; }
.fine-print { margin: 12px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.order-summary { position: sticky; top: calc(var(--header-height) + 20px); padding: 26px; background: #fff; border: 1px solid var(--line); }
.order-summary h2 { margin: 0 0 14px; font: 600 20px var(--font-display); }
.summary-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.summary-items li { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.summary-thumb { position: relative; width: 58px; height: 58px; background: #f0f1ee; border: 1px solid var(--line); }
.summary-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qty-badge { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.summary-info strong { display: block; font: 600 15px/1.3 var(--font-display); }
.summary-info small { color: var(--muted); font-size: 13px; }
.summary-price { font-weight: 600; white-space: nowrap; }
.discount-form { display: flex; gap: 8px; margin-top: 20px; }
.discount-form .button { min-height: 46px; }
.discount-message { margin: 8px 0 0; color: var(--green); font-size: 14px; font-weight: 600; }
.discount-message.is-error { color: var(--red); }
.summary-totals { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.summary-totals div { display: flex; justify-content: space-between; gap: 12px; }
.summary-totals dt { color: var(--ink-soft); }
.summary-totals dd { margin: 0; font-weight: 600; }
.summary-totals .muted-value { color: var(--muted); font-weight: 500; font-size: 14px; }
.summary-total { padding-top: 12px; border-top: 1px solid var(--line); }
.summary-total dt { color: var(--ink); font-weight: 700; }
.summary-total dd { font: 600 24px var(--font-display); }

.checkout-empty { max-width: 560px; margin: 8vh auto; padding: 40px; background: #fff; border: 1px solid var(--line); text-align: center; display: grid; gap: 12px; justify-items: center; }
.checkout-empty p { margin: 0; color: var(--ink-soft); }
.confirmation { max-width: 720px; margin: 0 auto; }
.confirmation-mark { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; background: #e5f4ec; color: var(--green); font-size: 28px; font-weight: 700; }
.confirmation-lede { color: var(--ink-soft); font-size: 16px; }
.confirmation-card, .confirmation-next { margin-top: 22px; padding: 24px; background: #fff; border: 1px solid var(--line); }
.confirmation-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.confirmation-meta span, .confirmation-address span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.confirmation-meta strong { display: block; margin-top: 3px; font: 600 17px var(--font-display); overflow-wrap: anywhere; }
.confirmation-address { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.confirmation-address p { margin: 4px 0 0; white-space: pre-line; color: var(--ink-soft); }
.confirmation-next h2 { margin: 0 0 10px; font: 600 18px var(--font-display); }
.confirmation-next ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-soft); }
.confirmation-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.button-outline-dark { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.button-outline-dark:hover { background: var(--ink); color: #fff; }
.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; }

/* ---------- Policy pages ---------- */
.policy-main { width: min(760px, 90%); margin: 0 auto; padding: 56px 0 88px; }
.policy-main h1 { margin: 12px 0 24px; font: 600 clamp(32px, 4vw, 44px)/1.05 var(--font-display); letter-spacing: -.05em; }
.policy-body { color: var(--ink-soft); font-size: 16px; line-height: 1.75; white-space: pre-line; }
.policy-contact { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.policy-contact a { color: var(--blue); font-weight: 600; }

@media (max-width: 860px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; order: -1; }
  .checkout-header .secure-note { display: none; }
}
@media (max-width: 560px) {
  .checkout-form { padding: 20px; }
  .field-grid { grid-template-columns: 1fr; }
  .confirmation-meta { grid-template-columns: 1fr; }
}

/* Notify me (back-in-stock emails) */
.product-add.is-notify { border-color: var(--blue); color: var(--blue); }
.product-add.is-notify span { font-size: 15px; }
.product-add.is-following { border-color: #cfe3d6; background: #f1f8f3; color: var(--green); }
.product-add.is-following:hover:not(:disabled) { border-color: #b9d9c4; background: #e6f3ea; color: var(--green); }
.product-add.is-following span { font-size: 15px; }
.notify-form { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); background: #f7f8f5; }
.notify-lede { margin: 0; color: var(--ink); font-size: 15px; font-weight: 600; }
.notify-row { display: flex; gap: 8px; }
.notify-row input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid #cfd2cd; background: #fff; color: var(--ink); font: inherit; }
.notify-row input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.notify-row .button { min-height: 46px; white-space: nowrap; }
.notify-message { margin: 0; color: var(--green); font-size: 14px; font-weight: 600; }
.notify-message.is-error { color: #b42318; }
.notify-fine { margin: 0; color: var(--muted); font-size: 12px; }
@media (max-width: 480px) { .notify-row { flex-direction: column; } }

/* Hidden field that only form-filling bots see and fill in. */
.form-trap { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Colors of one part: swatches on the card, a picker in the product window. */
.swatch {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: var(--swatch, #d9dbd7); box-shadow: inset 0 0 0 1px rgba(23,26,25,.28);
}
.swatch.is-unknown { background: repeating-linear-gradient(45deg, #d9dbd7 0 3px, #f2f3f0 3px 6px); }
.card-swatches { display: flex; gap: 6px; margin: 0 0 10px; }
.color-picker { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.color-picker-label { margin: 0; color: var(--ink-soft); font-size: 14px; }
.color-picker-label strong { color: var(--ink); }
.color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.color-option {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 10px;
  border: 1px solid #cfd2cd; background: #fff; cursor: pointer; font-size: 14px; font-weight: 600;
}
.color-option .swatch { width: 18px; height: 18px; }
.color-option small { color: var(--muted); font-size: 12px; font-weight: 500; }
.color-option:hover { border-color: var(--ink); }
.color-option.is-selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.color-option.is-unavailable > span:not(.swatch) { color: var(--ink-soft); }

/* Star ratings: a gray row of five with a gold row clipped to the rating. */
.stars { position: relative; display: inline-block; flex: none; color: #d3d6d1; font-size: 14px; line-height: 1; letter-spacing: 1px; }
.stars::before { content: "★★★★★"; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #e09a12; white-space: nowrap; }
.stars-fill::before { content: "★★★★★"; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.rating-count { color: var(--muted); font-weight: 500; }
.detail-rating { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; }
.detail-rating .rating-line { margin: 0; }
.rating-read { color: var(--blue); font-size: 13px; font-weight: 600; }
.detail-rating:hover .rating-read { text-decoration: underline; }
.link-btn { padding: 0; border: 0; background: none; color: var(--blue); cursor: pointer; font-size: 14px; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--red); }

/* Reviews in the product window. */
.detail-reviews { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.reviews-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.reviews-head h3, .detail-related h3 { margin: 0; font: 600 18px var(--font-display); }
.reviews-summary { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 13px; }
.review-hint { margin: 0; color: var(--ink-soft); font-size: 14px; }
.review-hint a { color: var(--blue); font-weight: 600; }
.review-start { align-self: flex-start; min-height: 42px; }
.review-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.review { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review.is-own { padding: 10px 12px; border: 1px solid var(--line); background: #fafaf8; }
.review-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-top strong { font-size: 15px; }
.review-body { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; white-space: pre-line; }
.review-meta { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.review-verified { color: var(--green); font-weight: 600; }
.review-reply { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--blue); background: var(--blue-soft); font-size: 13px; }
.review-reply p { margin: 2px 0 0; white-space: pre-line; color: var(--ink-soft); }
.own-review { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.own-review .review-list { align-self: stretch; }
.review-form { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); background: #fafaf8; }
.review-form h4 { margin: 0; font: 600 16px var(--font-display); }
.review-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.review-form label small { color: var(--muted); font-weight: 500; }
.review-form input:not([type=radio]), .review-form textarea { padding: 9px 10px; border: 1px solid #cfd2cd; background: #fff; font: inherit; font-weight: 400; }
.review-form textarea { resize: vertical; }
.star-input { display: flex; gap: 2px; margin: 0; padding: 0; border: 0; }
.star-input legend { margin-bottom: 4px; padding: 0; font-size: 13px; font-weight: 600; }
.review-form .star-input label { position: relative; flex-direction: row; cursor: pointer; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input span[aria-hidden] { color: #d3d6d1; font-size: 28px; line-height: 1; transition: color .1s; }
/* Fill every star up to the checked or hovered one. */
.star-input:has(input:checked) label:has(~ label input:checked) span[aria-hidden],
.star-input label:has(input:checked) span[aria-hidden],
.star-input:hover label:has(~ label:hover) span[aria-hidden],
.star-input label:hover span[aria-hidden] { color: #e09a12; }
.star-input:hover label:hover ~ label span[aria-hidden] { color: #d3d6d1; }
.star-input input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.review-fine { margin: 0; color: var(--muted); font-size: 12px; }
.review-error { margin: 0; color: var(--red); font-size: 13px; font-weight: 600; }
.review-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.review-actions .button { min-height: 42px; }
.reviews-more { align-self: flex-start; }

/* Related parts in the product window. */
.detail-related { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.related-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e9eae6; }
.related-name { font: 600 14px/1.3 var(--font-display); }
.related-card:hover .related-name { color: var(--blue); }
.related-card .rating-line { margin: 0; font-size: 12px; }
.related-card .stars { font-size: 12px; }
.related-price { font-size: 14px; font-weight: 600; }

/* "Someone in Texas bought …" note, bottom left. */
.purchase-note {
  position: fixed; left: 20px; bottom: 20px; z-index: 40; display: flex; align-items: flex-start; max-width: min(360px, calc(100vw - 40px));
  background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(15,18,19,.18);
  opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s;
}
.purchase-note.is-visible { opacity: 1; transform: none; }
.purchase-note-body { display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 10px; border: 0; background: none; cursor: pointer; text-align: left; }
.purchase-note-body img { width: 56px; height: 56px; flex: none; object-fit: cover; background: #e9eae6; }
.purchase-note-body span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.purchase-note-body small { color: var(--muted); font-size: 12px; }
.purchase-note-body strong { font: 600 14px/1.3 var(--font-display); }
.purchase-note-body:hover strong { color: var(--blue); }
.purchase-note-close { padding: 6px 10px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.purchase-note-close:hover { color: var(--ink); }
@media (max-width: 600px) { .purchase-note { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .purchase-note { transition: none; transform: none; } }

/* Review form fields: label text and its "(optional)" on one line, field below. */
.review-form label:not(.star-input label) { display: block; }
.review-form label:not(.star-input label) input, .review-form label:not(.star-input label) textarea { display: block; width: 100%; margin-top: 4px; }
@media (max-width: 760px) { .reviews-head { flex-direction: column; align-items: flex-start; gap: 4px; } }

/* ---------- Saved parts ---------- */
.product-card { position: relative; }
.card-save {
  position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
.card-save:hover, .card-save.is-saved { color: var(--red); }
.detail-actions { display: flex; gap: 10px; align-items: stretch; }
.detail-actions .detail-add { flex: 1; }
.save-button {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border: 1px solid #cfd3cd; background: #fff;
  color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
.save-button:hover { border-color: var(--ink); }
.save-button.is-saved { color: var(--red); border-color: var(--red); }
.save-heart { font-size: 18px; line-height: 1; }
.saved-chip span[aria-hidden] { color: var(--red); }

/* ---------- Free shipping progress ---------- */
.free-shipping { display: grid; gap: 6px; margin: 0 0 14px; font-size: 14px; color: var(--ink-soft, #3c423f); }
.free-shipping.is-reached strong { color: #23774f; }
.free-shipping-bar { display: block; height: 6px; border-radius: 999px; background: #e7e9e4; overflow: hidden; }
.free-shipping-bar span { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.free-shipping.is-reached .free-shipping-bar span { background: #2f8a5b; }
.order-summary .free-shipping { margin: 16px 0 0; padding: 10px 12px; background: var(--blue-soft); }
.order-summary .free-shipping.is-reached { background: #eaf6ef; color: #23774f; }

/* ---------- Review photos ---------- */
.review-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.review-photos img { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--line); display: block; }
.review-photos.is-editing span { display: grid; gap: 4px; justify-items: center; }
.review-form input[type="file"] { padding: 8px 0; border: 0; font-size: 14px; }

/* ---------- Checkout extras ---------- */
.checkbox-line { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink); cursor: pointer; }
.checkout-form .checkbox-line input { width: 18px; height: 18px; min-height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--blue); }
.field-note { display: block; margin: 6px 0 0 28px; color: var(--muted); font-size: 13px; }
.marketing-line { margin: 18px 0 0; font-size: 14px; color: var(--ink-soft, #3c423f); }
.paid-by-gift-card { margin: 0 0 8px; padding: 12px 14px; background: #eaf6ef; color: #23774f; font-weight: 600; }
.summary-totals #summary-due-row { border-top: 0; padding-top: 0; }

/* ---------- Small pages: order status, gift cards, email preferences, FAQ ---------- */
.simple-page { max-width: 760px; margin: 0 auto; padding: 48px 6% 80px; }
.simple-page h1 { margin: 0 0 8px; font-family: "Space Grotesk", sans-serif; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; }
.simple-page .lede { margin: 0 0 28px; color: var(--muted); font-size: 17px; }
.simple-card { padding: 28px; background: #fff; border: 1px solid var(--line); margin-bottom: 20px; }
.simple-card h2 { margin: 0 0 14px; font-size: 20px; }
.simple-form { display: grid; gap: 14px; }
.simple-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
.simple-form input, .simple-form textarea, .simple-form select {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfd3cd; font: inherit; font-weight: 400; background: #fff;
}
.simple-form textarea { min-height: 90px; resize: vertical; }
.simple-form input:focus, .simple-form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(71,125,244,.14); }
.simple-form .two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.simple-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.simple-form .check input { width: 18px; min-height: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.simple-form .check small { display: block; color: var(--muted); font-weight: 400; }
.form-message { margin: 0; padding: 12px 14px; background: var(--blue-soft); font-size: 14px; }
.form-message.is-error { background: #fff1ef; color: #92392f; }
.amount-options { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-options label { display: block; }
.amount-options input { position: absolute; opacity: 0; pointer-events: none; }
.amount-options span { display: inline-block; min-width: 76px; padding: 12px 16px; border: 1px solid #cfd3cd; text-align: center; font-weight: 700; cursor: pointer; }
.amount-options input:checked + span { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: #f7f9ff; }
.amount-options input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.order-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; }
.order-totals { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.order-totals div { display: flex; justify-content: space-between; }
.order-totals dt { color: var(--muted); }
.order-totals dd { margin: 0; font-weight: 600; }
.status-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; font-weight: 700; }
.status-pill.is-shipped { background: #eaf6ef; color: #23774f; }
.status-pill.is-cancelled, .status-pill.is-refunded { background: #f3f4f1; color: var(--muted); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--line); padding: 0 20px; }
.faq-list summary { padding: 18px 0; font-weight: 700; cursor: pointer; }
.faq-list p { margin: 0 0 18px; white-space: pre-line; color: var(--ink-soft, #3c423f); }
@media (max-width: 640px) {
  .simple-form .two-up { grid-template-columns: 1fr; }
  .simple-card { padding: 20px; }
}
.card-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-heading-row h2 { margin: 0; }
.simple-page .muted-text { color: var(--muted); font-size: 14px; }
.simple-card .order-lines { margin-top: 14px; }
#order-cancel { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.amount-fieldset { border: 0; margin: 0; padding: 0; }

/* ---------- Brand logo image and social links ---------- */
.brand-logo { display: block; height: 36px; width: auto; max-width: 200px; object-fit: contain; }
.footer-brand .brand-logo { height: 42px; }
.social-links { display: inline-flex; align-items: center; gap: 4px; }
.social-link { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink-soft); transition: color .2s, background .2s; }
.social-link:hover { color: var(--blue); background: var(--blue-soft); }
.social-link svg { width: 19px; height: 19px; }
.footer-bottom .social-link { padding: 0; }
