/* =========================================================================
   Base theme stylesheet — Dawn-replica, token driven.
   Tokens are injected per store from catalog/<store>.json theme_tokens.
   Breakpoints: small < 750px, medium 750–989px, large >= 990px.
   ========================================================================= */

:root {
  --color-background: #ffffff;
  --color-text: #121212;
  --color-button: #121212;
  --color-button-text: #ffffff;
  --color-secondary-button: #ffffff;
  --color-secondary-button-text: var(--color-text);
  --color-accent: #334fb4;
  --color-border: rgba(18, 18, 18, 0.12);
  --color-muted: rgba(18, 18, 18, 0.72);
  --color-subtle-bg: rgba(18, 18, 18, 0.04);
  --color-error: #b3261e;
  --color-success: #2e7d32;
  --font-heading: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading-weight: 400;
  --font-body-weight: 400;
  --font-body-weight-bold: 700;
  --font-heading-scale: 1;
  --font-body-scale: 1;
  --button-radius: 0px;
  --input-radius: 0px;
  --card-radius: 0px;
  --page-width: 1200px;
  --card-shadow: none;
  --card-image-ratio: 100%;
  --badge-sale: #121212;
  --badge-sale-text: #ffffff;
  --badge-soldout: #6b6b6b;
  --badge-soldout-text: #ffffff;
  --badge-radius: 40px;
  --header-height: 72px;
  --announcement-bg: var(--color-text);
  --announcement-text: var(--color-background);
  --footer-bg: var(--color-background);
  --footer-text: var(--color-text);
  --drawer-width: 400px;
  --grid-gap: 8px;
  --section-spacing: 36px;
  --transition-fast: 0.15s ease;
  --transition: 0.3s ease;
  --focus-ring: 0 0 0 0.3rem var(--color-background), 0 0 0.5rem 0.4rem rgba(18, 18, 18, 0.3);
  --z-header: 30;
  --z-drawer: 100;
  --z-overlay: 90;
  --z-predictive: 40;
}

@media (min-width: 750px) {
  :root {
    --grid-gap: 12px;
    --section-spacing: 52px;
  }
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: calc(var(--font-body-scale) * 62.5%);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--font-body-weight);
  font-size: 1.5rem;
  line-height: calc(1 + 0.8 / var(--font-body-scale));
  letter-spacing: 0.06rem;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 750px) {
  body { font-size: 1.6rem; }
}

body.overflow-hidden { overflow: hidden; }

main { flex: 1 0 auto; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 0.3rem; }
a:hover { text-decoration-thickness: 0.2rem; }

button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }

input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 0.2rem solid rgba(18, 18, 18, 0.5); outline-offset: 0.3rem; box-shadow: var(--focus-ring); }
:focus:not(:focus-visible) { outline: none; box-shadow: none; }

h1, h2, h3, h4, h5, .h0, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  letter-spacing: 0.06rem;
  line-height: calc(1 + 0.3 / max(1, var(--font-heading-scale)));
  color: var(--color-text);
  word-break: break-word;
  margin: 0 0 1.5rem;
}
.h0 { font-size: calc(var(--font-heading-scale) * 4rem); }
h1, .h1 { font-size: calc(var(--font-heading-scale) * 3rem); }
h2, .h2 { font-size: calc(var(--font-heading-scale) * 2rem); }
h3, .h3 { font-size: calc(var(--font-heading-scale) * 1.7rem); }
h4, .h4 { font-size: calc(var(--font-heading-scale) * 1.5rem); }
h5, .h5 { font-size: calc(var(--font-heading-scale) * 1.2rem); }

@media (min-width: 750px) {
  .h0 { font-size: calc(var(--font-heading-scale) * 5.2rem); }
  h1, .h1 { font-size: calc(var(--font-heading-scale) * 4rem); }
  h2, .h2 { font-size: calc(var(--font-heading-scale) * 2.4rem); }
  h3, .h3 { font-size: calc(var(--font-heading-scale) * 1.8rem); }
}

p { margin: 0 0 1.5rem; }

.caption { font-size: 1.2rem; letter-spacing: 0.07rem; line-height: 1.7; }
.caption-large { font-size: 1.3rem; letter-spacing: 0.04rem; line-height: 1.5; }
.muted { color: var(--color-muted); }
.uppercase { text-transform: uppercase; }
.center { text-align: center; }
.hidden { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-to-content-link:focus {
  position: fixed; top: 1rem; left: 1rem;
  z-index: 9999; width: auto; height: auto; clip: auto;
  padding: 1rem 2rem;
  background: var(--color-background);
  box-shadow: var(--focus-ring);
}

.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 750px) {
  .page-width { padding: 0 5rem; }
}

.page-width--narrow { max-width: 72.6rem; }

.section { padding: var(--section-spacing) 0; }

.title-wrapper { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 3rem; }
.title-wrapper h2 { margin: 0; }

.link { color: inherit; text-decoration: underline; background: none; border: 0; padding: 0; }
.link--text { color: var(--color-text); }

/* ---------- Buttons ---------- */
.button,
.shopify-challenge__button,
.button-secondary {
  --btn-bg: var(--color-button);
  --btn-fg: var(--color-button-text);
  --btn-border: var(--color-button);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-width: 12rem;
  min-height: 4.5rem;
  padding: 0 3rem;
  border: 0;
  border-radius: var(--button-radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 1.5rem;
  letter-spacing: 0.1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow var(--transition-fast), opacity var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px var(--btn-border);
  pointer-events: none;
  transition: box-shadow var(--transition-fast);
}
.button:hover::after { box-shadow: 0 0 0 2px var(--btn-border); }

.button--secondary {
  --btn-bg: var(--color-secondary-button);
  --btn-fg: var(--color-secondary-button-text);
  --btn-border: var(--color-secondary-button-text);
}
.button--tertiary {
  --btn-bg: transparent;
  --btn-fg: var(--color-text);
  --btn-border: var(--color-border);
  min-width: 9.7rem;
  min-height: 3.5rem;
  font-size: 1.2rem;
  padding: 0 1.5rem;
}
.button--full-width { display: flex; width: 100%; }
.button--small { min-height: 3.6rem; padding: 0 1.8rem; font-size: 1.3rem; }

.button:disabled,
.button[aria-disabled="true"],
.button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button.loading { color: transparent; pointer-events: none; }
.button.loading::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 1.8rem; height: 1.8rem;
  margin: -0.9rem 0 0 -0.9rem;
  border: 2px solid var(--btn-fg);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Form fields ---------- */
.field { position: relative; display: flex; width: 100%; margin-bottom: 1.5rem; }
.field__input,
.select__select,
.field textarea {
  flex-grow: 1;
  width: 100%;
  min-height: 4.5rem;
  padding: 1.5rem;
  border: 1px solid var(--color-muted);
  border-radius: var(--input-radius);
  background: var(--color-background);
  color: var(--color-text);
  font-size: 1.6rem;
  letter-spacing: 0.04rem;
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.field textarea { min-height: 12rem; resize: vertical; }
.field__input:hover, .select__select:hover { border-color: var(--color-text); }
.field__input:focus, .select__select:focus, .field textarea:focus { border-color: var(--color-text); box-shadow: 0 0 0 1px var(--color-text); outline: none; }

.field__label {
  position: absolute;
  left: 1.5rem;
  top: 1.2rem;
  font-size: 1.6rem;
  color: var(--color-muted);
  pointer-events: none;
  transition: top var(--transition-fast), font-size var(--transition-fast);
}
.field__input:focus ~ .field__label,
.field__input:not(:placeholder-shown) ~ .field__label,
.field textarea:focus ~ .field__label,
.field textarea:not(:placeholder-shown) ~ .field__label {
  top: 0.3rem;
  font-size: 1rem;
  letter-spacing: 0.04rem;
}
.field__input:focus,
.field__input:not(:placeholder-shown),
.field textarea:focus,
.field textarea:not(:placeholder-shown) { padding: 2.2rem 1.5rem 0.8rem; }
.field__input::placeholder, .field textarea::placeholder { opacity: 0; }

.field__button {
  position: absolute; right: 0; top: 0;
  width: 4.4rem; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; padding: 0;
}
.field__button svg { width: 1.6rem; height: 1.6rem; }

.select { position: relative; display: flex; }
.select__select { padding: 0 4rem 0 1.5rem; cursor: pointer; }
.select .icon-caret {
  position: absolute; right: 1.5rem; top: 50%;
  width: 1rem; height: 0.6rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.form__message { display: flex; align-items: center; gap: 0.8rem; font-size: 1.4rem; margin: 1rem 0; }
.form__message--error, .form-status--error { color: var(--color-error); }
.form__message--success, .form-status--success { color: var(--color-success); }
.form__message svg { width: 1.4rem; height: 1.4rem; flex: none; }

.cf-turnstile { margin: 1rem 0 1.5rem; min-height: 65px; }

/* ---------- Quantity input ---------- */
.quantity {
  position: relative;
  display: inline-flex;
  width: 14rem;
  min-height: 4.5rem;
  border-radius: var(--input-radius);
  color: var(--color-text);
}
.quantity::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px var(--color-muted);
  pointer-events: none;
}
.quantity:hover::after { box-shadow: 0 0 0 2px var(--color-text); }
.quantity__input {
  flex-grow: 1;
  width: 100%;
  min-width: 0;
  padding: 0 0.5rem;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 500;
  -moz-appearance: textfield;
  appearance: textfield;
}
.quantity__input::-webkit-outer-spin-button,
.quantity__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity__input:focus { outline: none; }
.quantity__button {
  flex: 0 0 4.5rem;
  display: flex; align-items: center; justify-content: center;
  width: 4.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  z-index: 1;
}
.quantity__button svg { width: 1rem; height: 1rem; pointer-events: none; }
.quantity__button:disabled { opacity: 0.3; }
.quantity__rules { font-size: 1.2rem; color: var(--color-muted); margin-top: 0.6rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 0.5rem 1.3rem 0.6rem;
  border: 1px solid transparent;
  border-radius: var(--badge-radius);
  font-size: 1.2rem;
  letter-spacing: 0.1rem;
  line-height: 1;
  text-align: center;
  word-break: break-word;
  background: var(--color-background);
  color: var(--color-text);
}
.badge--sale { background: var(--badge-sale); color: var(--badge-sale-text); border-color: var(--badge-sale); }
.badge--soldout { background: var(--badge-soldout); color: var(--badge-soldout-text); border-color: var(--badge-soldout); }

/* ---------- Price ---------- */
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  font-size: 1.6rem;
  letter-spacing: 0.1rem;
  line-height: 1.5;
  color: var(--color-text);
}
.price--large { font-size: 1.8rem; letter-spacing: 0.13rem; }
@media (min-width: 750px) { .price--large { font-size: 2rem; } }
.price__compare, .price-item--regular.is-compare { color: var(--color-muted); text-decoration: line-through; font-size: 0.9em; }
.price__sale .price-item--sale { color: var(--color-text); }
.price__approx { font-size: 1.2rem; color: var(--color-muted); letter-spacing: 0.04rem; }
.price .badge { margin-left: 0.4rem; }
.unit-price { font-size: 1.1rem; color: var(--color-muted); }

/* ---------- Announcement bar ---------- */
.announcement-bar {
  position: relative;
  background: var(--announcement-bg);
  color: var(--announcement-text);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
.announcement-bar__slider {
  position: relative;
  display: grid;
  min-height: 3.8rem;
  align-items: center;
}
.announcement-bar__message {
  grid-area: 1 / 1;
  margin: 0;
  padding: 1rem 4rem;
  font-size: 1.3rem;
  letter-spacing: 0.1rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.announcement-bar__message.is-active { opacity: 1; visibility: visible; }
.announcement-bar__message a { color: inherit; }
.announcement-bar__nav,
.announcement-bar__close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.2rem; height: 3.2rem;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: inherit; padding: 0;
}
.announcement-bar__nav--prev { left: 0.4rem; }
.announcement-bar__nav--next { right: 0.4rem; }
.announcement-bar__close { right: 0.4rem; }
.announcement-bar__nav svg, .announcement-bar__close svg { width: 1rem; height: 1rem; }
.announcement-bar.is-closed { display: none; }

/* ---------- Header ---------- */
.section-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-background);
  transition: transform var(--transition);
}
.section-header.is-hidden { transform: translateY(-100%); }
.section-header.is-scrolled { box-shadow: 0 1px 0 var(--color-border); }

.header {
  display: grid;
  grid-template-areas: "left-icons heading icons";
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
@media (min-width: 990px) {
  .header {
    grid-template-areas: "heading navigation icons";
    grid-template-columns: auto 1fr auto;
    column-gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .header--middle-center {
    grid-template-areas: "navigation heading icons";
    grid-template-columns: 1fr auto 1fr;
  }
}

.header__heading { grid-area: heading; margin: 0; justify-self: center; line-height: 0; }
@media (min-width: 990px) {
  .header:not(.header--middle-center) .header__heading { justify-self: start; }
}
.header__heading-link {
  display: inline-block;
  padding: 0.75rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1.2;
  color: var(--color-text);
}
.header__heading-logo { height: auto; max-width: 100%; width: var(--logo-width, 140px); }

.header__inline-menu { grid-area: navigation; display: none; }
@media (min-width: 990px) {
  .header__inline-menu { display: block; }
}
.list-menu { list-style: none; margin: 0; padding: 0; }
.list-menu--inline { display: inline-flex; flex-wrap: wrap; }
.header__menu-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1.2rem;
  font-size: 1.4rem;
  letter-spacing: 0.06rem;
  color: var(--color-muted);
  text-decoration: none;
  background: none;
  border: 0;
}
.header__menu-item:hover { color: var(--color-text); }
.header__menu-item:hover span { text-decoration: underline; text-underline-offset: 0.3rem; }
.header__active-menu-item { color: var(--color-text); text-decoration: underline; text-underline-offset: 0.3rem; }
.header__menu-item .icon-caret { width: 1rem; height: 0.6rem; transition: transform var(--transition-fast); }

.header__submenu-wrapper { position: relative; }
.header__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 20rem;
  margin: 0;
  padding: 2rem 0;
  list-style: none;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  box-shadow: var(--card-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 2;
}
.header__submenu-wrapper[open] .header__submenu,
.header__submenu-wrapper:focus-within .header__submenu,
.header__submenu-wrapper:hover .header__submenu { opacity: 1; visibility: visible; transform: none; }
.header__submenu-wrapper[open] .icon-caret { transform: rotate(180deg); }
.header__submenu .header__menu-item { padding: 0.8rem 2.4rem; }
.header__submenu-wrapper > summary { list-style: none; }
.header__submenu-wrapper > summary::-webkit-details-marker { display: none; }

.header__icons {
  grid-area: icons;
  justify-self: end;
  display: flex;
  align-items: center;
}
.header__left-icons { grid-area: left-icons; display: flex; align-items: center; }
@media (min-width: 990px) { .header__left-icons .header__icon--menu { display: none; } }

.header__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  text-decoration: none;
}
.header__icon svg { width: 2rem; height: 2rem; }
.header__icon:hover svg { transform: scale(1.07); }
.header__icon--account[hidden] { display: none; }
@media (max-width: 989px) { .header__icon--account { display: none; } }

.cart-count-bubble {
  position: absolute;
  bottom: 0.8rem;
  right: 0.4rem;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: var(--color-button);
  color: var(--color-button-text);
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 600;
}
.cart-count-bubble:empty, .cart-count-bubble[data-count="0"] { display: none; }

/* currency selector */
.currency-selector { position: relative; display: flex; align-items: center; }
.currency-selector select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0.8rem 2rem 0.8rem 0.8rem;
  font-size: 1.3rem;
  letter-spacing: 0.06rem;
  color: var(--color-text);
  cursor: pointer;
}
.currency-selector .icon-caret { position: absolute; right: 0.6rem; width: 0.9rem; height: 0.5rem; pointer-events: none; }
@media (max-width: 749px) { .header .currency-selector { display: none; } }

/* ---------- Predictive search ---------- */
.search-modal {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-predictive);
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 0;
  display: none;
}
.search-modal.is-open { display: block; }
.search-modal__content { display: flex; align-items: center; gap: 1rem; position: relative; }
.search-modal__form { flex: 1; position: relative; }
.search-modal__close { flex: none; }
.search-modal-overlay {
  position: fixed; inset: 0;
  z-index: calc(var(--z-predictive) - 1);
  background: rgba(18, 18, 18, 0.5);
  display: none;
}
.search-modal.is-open + .search-modal-overlay { display: block; }

.predictive-search {
  position: absolute;
  top: calc(100% + 0.1rem);
  left: 0;
  right: 0;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  box-shadow: 0 1rem 2rem rgba(18, 18, 18, 0.08);
  z-index: 3;
  display: none;
}
.predictive-search.is-open { display: block; }
.predictive-search__heading {
  margin: 0;
  padding: 1.5rem 2rem 0.8rem;
  font-size: 1.2rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}
.predictive-search__results-list { list-style: none; margin: 0; padding: 1rem 0; }
.predictive-search__item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 2rem;
  text-decoration: none;
  color: var(--color-text);
}
.predictive-search__item:hover,
.predictive-search__item[aria-selected="true"] { background: var(--color-subtle-bg); }
.predictive-search__item img { width: 5rem; height: 5rem; object-fit: contain; }
.predictive-search__item-heading { margin: 0; font-size: 1.4rem; }
.predictive-search__item .price { font-size: 1.3rem; }
.predictive-search__search-all {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 1.5rem 2rem;
  border: 0; border-top: 1px solid var(--color-border);
  background: transparent;
  font-size: 1.4rem;
  text-align: left;
  text-decoration: none;
  color: var(--color-text);
}
.predictive-search__search-all:hover { text-decoration: underline; }
.predictive-search__empty { padding: 2rem; color: var(--color-muted); font-size: 1.4rem; margin: 0; }

/* ---------- Mobile drawer menu ---------- */
.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-drawer);
  width: calc(100vw - 4rem);
  max-width: 37.5rem;
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  border-right: 1px solid var(--color-border);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform var(--transition), visibility var(--transition);
  overflow: hidden;
}
.menu-drawer.is-open { transform: none; visibility: visible; }
.menu-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 1rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
}
.menu-drawer__navigation { flex: 1; overflow-y: auto; padding: 2rem 0; }
.menu-drawer__menu { list-style: none; margin: 0; padding: 0; }
.menu-drawer__menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.1rem 3rem;
  font-size: 1.8rem;
  letter-spacing: 0.06rem;
  text-decoration: none;
  color: var(--color-text);
  background: none;
  border: 0;
  text-align: left;
}
.menu-drawer__menu-item:hover,
.menu-drawer__menu-item--active { background: var(--color-subtle-bg); }
.menu-drawer__menu-item svg { width: 1.4rem; height: 1.4rem; }
.menu-drawer__submenu {
  position: absolute;
  inset: 0;
  background: var(--color-background);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition), visibility var(--transition);
  overflow-y: auto;
  padding: 2rem 0;
  z-index: 1;
}
.menu-drawer__submenu.is-open { transform: none; visibility: visible; }
.menu-drawer__close-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.2rem 3rem;
  border: 0;
  background: none;
  font-size: 1.4rem;
  text-align: left;
}
.menu-drawer__close-button svg { width: 1.4rem; height: 1.4rem; transform: rotate(180deg); }
.menu-drawer__utility-links {
  padding: 2rem 3rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-subtle-bg);
}
.menu-drawer__account {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 1.2rem 0;
  font-size: 1.4rem;
  text-decoration: none;
}
.menu-drawer__account svg { width: 2rem; height: 2rem; }
.menu-drawer__utility-links .list-social { justify-content: flex-start; margin-left: -1.2rem; }

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(18, 18, 18, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.drawer-overlay.is-visible { opacity: 1; visibility: visible; }

@media (min-width: 990px) {
  .menu-drawer, .drawer-overlay--menu { display: none; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 1.5rem 0 0; font-size: 1.3rem; color: var(--color-muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.6rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--color-text); }

/* ---------- Hero / banner / image-with-text ---------- */
.banner {
  position: relative;
  display: flex;
  min-height: 30rem;
  overflow: hidden;
}
@media (min-width: 750px) { .banner { min-height: 56rem; } }
.banner--small { min-height: 28rem; }
@media (min-width: 750px) { .banner--small { min-height: 40rem; } }
.banner__media { position: absolute; inset: 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__media::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, var(--banner-overlay, 0.3));
}
.banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 4rem 1.5rem;
}
.banner__box { max-width: 71rem; text-align: center; color: #fff; }
.banner__box h1, .banner__box h2 { color: inherit; }
.banner__text { font-size: 1.6rem; margin-bottom: 2.4rem; }
.banner__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

.image-with-text__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}
@media (min-width: 750px) {
  .image-with-text__grid { grid-template-columns: 1fr 1fr; }
  .image-with-text__grid--reverse .image-with-text__media { order: 2; }
}
.image-with-text__media { position: relative; overflow: hidden; background: var(--color-subtle-bg); min-height: 30rem; }
.image-with-text__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-with-text__content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 3rem;
  background: var(--color-subtle-bg);
}
@media (min-width: 990px) { .image-with-text__content { padding: 6rem 7rem; } }

.rich-text { text-align: center; max-width: 78rem; margin: 0 auto; }

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols-mobile, 2), minmax(0, 1fr));
  gap: var(--grid-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 750px) {
  .grid { grid-template-columns: repeat(var(--cols-tablet, 3), minmax(0, 1fr)); }
}
@media (min-width: 990px) {
  .grid { grid-template-columns: repeat(var(--cols-desktop, 4), minmax(0, 1fr)); }
}
.grid--1-col { --cols-mobile: 1; --cols-tablet: 1; --cols-desktop: 1; }
.grid--2-col-desktop { --cols-desktop: 2; }
.grid--3-col-desktop { --cols-desktop: 3; }
.grid--5-col-desktop { --cols-desktop: 5; }

/* ---------- Product card ---------- */
.card-wrapper {
  position: relative;
  height: 100%;
  color: var(--color-text);
  text-decoration: none;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  background: var(--color-background);
  overflow: hidden;
}
.card__media {
  position: relative;
  width: 100%;
  padding-bottom: var(--card-image-ratio);
  overflow: hidden;
  background: var(--color-subtle-bg);
}
.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.6s ease;
}
.card__media--contain img { object-fit: contain; }
.card__media img + img { opacity: 0; }
@media (hover: hover) and (min-width: 990px) {
  .card-wrapper:hover .card__media img:first-child:not(:only-child) { opacity: 0; }
  .card-wrapper:hover .card__media img + img { opacity: 1; transform: scale(1.03); }
  .card-wrapper:hover .card__media img:only-child { transform: scale(1.03); }
}
.card__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: flex;
  gap: 0.5rem;
}
.card__badge--top-left { top: 1rem; bottom: auto; }
.card__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.4rem;
  padding: 1.3rem 0.2rem 1.7rem;
}
.card--shadowed .card__content, .card--framed .card__content { padding: 1.3rem 1.3rem 1.7rem; }
.card__heading {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.4;
  font-family: var(--font-body);
  letter-spacing: 0.06rem;
}
@media (min-width: 750px) { .card__heading { font-size: 1.6rem; } }
.card__heading a { text-decoration: none; color: inherit; }
.card__heading a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card-wrapper:hover .card__heading a { text-decoration: underline; text-underline-offset: 0.3rem; }
.card__vendor { font-size: 1.2rem; color: var(--color-muted); letter-spacing: 0.1rem; }
.card .price { font-size: 1.4rem; }
.card__quick-add { position: relative; z-index: 1; margin-top: auto; padding-top: 1rem; }
.card--soldout .card__media img { opacity: 0.75; }

/* ---------- Collection page ---------- */
.collection-hero { padding: 3rem 0 1rem; }
.collection-hero__title { margin-bottom: 1rem; }
.collection-hero__description { max-width: 66rem; color: var(--color-muted); }

.facets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding: 1.5rem 0 2.5rem;
}
.facets__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.facets__label { font-size: 1.4rem; color: var(--color-muted); }
.facet-disclosure { position: relative; }
.facet-disclosure > summary {
  display: flex; align-items: center; gap: 0.6rem;
  list-style: none;
  font-size: 1.4rem;
  cursor: pointer;
}
.facet-disclosure > summary::-webkit-details-marker { display: none; }
.facet-disclosure > summary .icon-caret { width: 1rem; height: 0.6rem; transition: transform var(--transition-fast); }
.facet-disclosure[open] > summary .icon-caret { transform: rotate(180deg); }
.facet-disclosure__panel {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 0;
  z-index: 5;
  min-width: 28rem;
  padding: 1.5rem 2rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  box-shadow: 0 0.5rem 1.5rem rgba(18, 18, 18, 0.08);
}
.facet-checkbox { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 0; font-size: 1.4rem; cursor: pointer; }
.facet-checkbox input { width: 1.6rem; height: 1.6rem; accent-color: var(--color-text); margin: 0; }
.facet-price { display: flex; gap: 1.5rem; align-items: center; }
.facet-price .field { margin: 0; }
.facets__sort { display: flex; align-items: center; gap: 1rem; }
.facets__sort .select__select { min-height: 3.8rem; border: 0; padding-left: 0.4rem; font-size: 1.4rem; }
.facets__count { font-size: 1.4rem; color: var(--color-muted); }
.active-facets { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }
.active-facets__button {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  background: transparent;
  font-size: 1.3rem;
  text-decoration: none;
}
.active-facets__button svg { width: 1rem; height: 1rem; }

.pagination { margin-top: 4rem; }
.pagination__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; gap: 0.2rem; }
.pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  height: 4.4rem;
  padding: 0 1rem;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--color-text);
  position: relative;
}
.pagination__item:hover::after,
.pagination__item--current::after {
  content: "";
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  width: 1.2rem;
  height: 0.1rem;
  background: currentColor;
  transform: translateX(-50%);
}
.pagination__item svg { width: 1.2rem; height: 1.2rem; }
.pagination__item--prev svg { transform: rotate(180deg); }

.empty-state { text-align: center; padding: 6rem 0; }

/* ---------- Product page ---------- */
.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-top: 2rem;
  padding-bottom: var(--section-spacing);
}
@media (min-width: 750px) {
  .product { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4rem; padding-top: 3.6rem; }
}
@media (min-width: 990px) {
  .product { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 6rem; }
}

.product__media-wrapper { min-width: 0; }
@media (min-width: 750px) {
  .product__media-wrapper { position: sticky; top: calc(var(--header-height) + 2rem); align-self: start; }
}

.product-gallery { display: flex; flex-direction: column; gap: 1rem; }
.product-gallery__viewer {
  position: relative;
  overflow: hidden;
  background: var(--color-subtle-bg);
  border-radius: var(--card-radius);
}
.product-gallery__slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.product-gallery__slides::-webkit-scrollbar { display: none; }
.product-gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 1 / 1;
}
.product-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.product-gallery__zoom {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 2;
  width: 4rem; height: 4rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-background);
  padding: 0;
}
.product-gallery__zoom svg { width: 1.6rem; height: 1.6rem; }
.product-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 4rem; height: 4rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-background);
  transform: translateY(-50%);
  padding: 0;
  opacity: 0.9;
}
.product-gallery__arrow svg { width: 1.2rem; height: 1.2rem; }
.product-gallery__arrow--prev { left: 1rem; }
.product-gallery__arrow--prev svg { transform: rotate(180deg); }
.product-gallery__arrow--next { right: 1rem; }
.product-gallery__arrow:disabled { opacity: 0.3; }
.product-gallery__counter {
  position: absolute; bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  background: var(--color-background);
  font-size: 1.2rem;
}
@media (min-width: 750px) { .product-gallery__counter { display: none; } }

.product-gallery__thumbs {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  scrollbar-width: thin;
  margin: 0;
  padding: 0.2rem;
  list-style: none;
}
@media (min-width: 750px) {
  .product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr));
    overflow: visible;
  }
}
.product-gallery__thumb {
  flex: 0 0 6.4rem;
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: var(--color-subtle-bg);
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity var(--transition-fast); }
.product-gallery__thumb:hover img { opacity: 1; }
.product-gallery__thumb[aria-current="true"] { box-shadow: 0 0 0 0.1rem var(--color-text); }
.product-gallery__thumb[aria-current="true"] img { opacity: 1; }

/* zoom modal */
.product-zoom {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) + 10);
  background: var(--color-background);
  overflow-y: auto;
  display: none;
}
.product-zoom.is-open { display: block; }
.product-zoom__close {
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 2;
  width: 4.4rem; height: 4.4rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-background);
  padding: 0;
}
.product-zoom__close svg { width: 1.6rem; height: 1.6rem; }
.product-zoom__list { list-style: none; margin: 0 auto; padding: 6rem 1.5rem; max-width: 120rem; display: flex; flex-direction: column; gap: 1rem; }
.product-zoom__list img { width: 100%; height: auto; cursor: zoom-out; }

.product__info-wrapper { min-width: 0; }
.product__info-container > * + * { margin-top: 1.5rem; }
.product__vendor { font-size: 1.2rem; letter-spacing: 0.13rem; text-transform: uppercase; color: var(--color-muted); margin: 0; }
.product__title h1 { margin: 0; }
.product__tax { font-size: 1.3rem; color: var(--color-muted); margin: 0.4rem 0 0; }
.product__tax a { color: inherit; }

.product-form__input {
  border: 0;
  margin: 0 0 1.2rem;
  padding: 0;
  min-width: 0;
}
.product-form__input .form__label,
.product-form__input legend {
  display: block;
  padding: 0;
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
  letter-spacing: 0.04rem;
  color: var(--color-muted);
}
.product-form__input--pill { display: flex; flex-wrap: wrap; gap: 0.8rem 0.6rem; }
.product-form__input--pill legend { width: 100%; }
.product-form__input--pill input[type="radio"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; clip: rect(0 0 0 0);
}
.product-form__input--pill input[type="radio"] + label {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid var(--color-muted);
  border-radius: 4rem;
  background: var(--color-background);
  color: var(--color-text);
  font-size: 1.4rem;
  letter-spacing: 0.1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.product-form__input--pill input[type="radio"] + label:hover { border-color: var(--color-text); }
.product-form__input--pill input[type="radio"]:checked + label {
  background: var(--color-text);
  color: var(--color-background);
  border-color: var(--color-text);
}
.product-form__input--pill input[type="radio"].disabled + label,
.product-form__input--pill input[type="radio"][data-unavailable="true"] + label {
  color: var(--color-muted);
  text-decoration: line-through;
  border-color: var(--color-border);
}
.product-form__input--pill input[type="radio"]:checked.disabled + label,
.product-form__input--pill input[type="radio"]:checked[data-unavailable="true"] + label {
  background: var(--color-muted);
  color: var(--color-background);
}
.product-form__input--pill input[type="radio"]:focus-visible + label { box-shadow: var(--focus-ring); }
.product-form__input--dropdown .select { max-width: 32rem; }

.product-form__quantity .form__label { display: block; margin-bottom: 0.6rem; font-size: 1.4rem; color: var(--color-muted); }
.product-form__buttons { display: flex; flex-direction: column; gap: 1rem; max-width: 44rem; }
.product-form__error-message-wrapper { display: flex; align-items: flex-start; gap: 0.8rem; color: var(--color-error); font-size: 1.4rem; }
.product-form__error-message-wrapper svg { width: 1.4rem; height: 1.4rem; margin-top: 0.3rem; flex: none; }
.product__ships-notice { font-size: 1.3rem; color: var(--color-muted); }
.product__stock { display: flex; align-items: center; gap: 0.6rem; font-size: 1.3rem; }
.product__stock::before { content: ""; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--color-success); }
.product__stock--low::before { background: #e0a100; }
.product__stock--out::before { background: var(--color-error); }

.product__description { font-size: 1.5rem; line-height: 1.7; }
.product__description img { height: auto; }
.product__description table { border-collapse: collapse; width: 100%; }
.product__description td, .product__description th { border: 1px solid var(--color-border); padding: 0.8rem; text-align: left; }

.product__accordion { border-top: 1px solid var(--color-border); }
.product__accordion:last-child { border-bottom: 1px solid var(--color-border); }
.product__accordion summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 0;
  list-style: none;
  cursor: pointer;
  font-size: 1.5rem;
}
.product__accordion summary::-webkit-details-marker { display: none; }
.product__accordion summary .icon-caret { width: 1rem; height: 0.6rem; transition: transform var(--transition-fast); }
.product__accordion[open] summary .icon-caret { transform: rotate(180deg); }
.product__accordion .accordion__content { padding: 0 0 1.5rem; font-size: 1.4rem; }

.share-button { display: inline-flex; align-items: center; gap: 0.8rem; background: none; border: 0; padding: 0; font-size: 1.4rem; }
.share-button svg { width: 1.6rem; height: 1.6rem; }

/* sticky mobile add-to-cart */
.product-sticky-atc {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: calc(var(--z-header) - 1);
  padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom));
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
  transform: translateY(100%);
  transition: transform var(--transition);
}
.product-sticky-atc.is-visible { transform: none; }
@media (min-width: 750px) { .product-sticky-atc { display: none; } }

/* reviews */
.rating { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.3rem; }
.rating__stars { position: relative; display: inline-block; font-size: 1.4rem; letter-spacing: 0.2rem; line-height: 1; color: var(--color-border); }
.rating__stars::before { content: "★★★★★"; }
.rating__stars::after {
  content: "★★★★★";
  position: absolute; inset: 0;
  width: calc(var(--rating, 0) / 5 * 100%);
  overflow: hidden;
  color: var(--color-text);
}
.review { padding: 2rem 0; border-bottom: 1px solid var(--color-border); }
.review__author { font-weight: var(--font-body-weight-bold); font-size: 1.4rem; }
.review__date { font-size: 1.2rem; color: var(--color-muted); }

/* ---------- Search page ---------- */
.template-search__header { text-align: center; padding: 3rem 0 2rem; }
.template-search__search { max-width: 47.8rem; margin: 0 auto 3rem; }
.template-search__results-count { text-align: center; color: var(--color-muted); font-size: 1.4rem; margin-bottom: 3rem; }

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-drawer);
  width: min(var(--drawer-width), 100vw);
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  border-left: 1px solid var(--color-border);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition), visibility var(--transition);
}
.cart-drawer.is-open { transform: none; visibility: visible; }
@media (max-width: 749px) { .cart-drawer { width: 100vw; max-width: 100vw; } }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.4rem 2rem 1.2rem 3rem;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer__heading { margin: 0; font-size: calc(var(--font-heading-scale) * 2rem); }
.cart-drawer__close {
  width: 4.4rem; height: 4.4rem;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; padding: 0;
}
.cart-drawer__close svg { width: 1.6rem; height: 1.6rem; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 0 3rem; }
.cart-drawer__footer {
  padding: 1.5rem 3rem calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
  background: var(--color-background);
}
.cart-drawer__empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
  height: 100%;
  padding: 4rem 0;
  text-align: center;
}
.cart-drawer__empty h2 { margin: 0; }

/* free-shipping progress */
.free-ship {
  padding: 1.5rem 0;
  font-size: 1.3rem;
  text-align: center;
}
.free-ship__message { margin: 0 0 0.8rem; }
.free-ship__bar {
  position: relative;
  height: 0.6rem;
  border-radius: 1rem;
  background: var(--color-subtle-bg);
  overflow: hidden;
}
.free-ship__fill {
  position: absolute; inset: 0 auto 0 0;
  width: var(--progress, 0%);
  background: var(--color-accent);
  border-radius: inherit;
  transition: width 0.5s ease;
}
.free-ship--complete .free-ship__fill { background: var(--color-success); }

/* cart items (shared by drawer and /cart) */
.cart-items { width: 100%; border-collapse: collapse; }
.cart-items thead th {
  padding: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  text-align: left;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}
.cart-items thead th:last-child { text-align: right; }
.cart-item {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  grid-template-areas:
    "media details total"
    "media quantity quantity";
  column-gap: 1.5rem;
  row-gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item:last-child { border-bottom: 0; }
@media (min-width: 750px) {
  .cart-page .cart-item {
    grid-template-columns: 10rem 1fr 18rem 10rem;
    grid-template-areas: "media details quantity total";
    align-items: start;
  }
}
.cart-item__media { grid-area: media; }
.cart-item__media a { display: block; aspect-ratio: 1 / 1; background: var(--color-subtle-bg); }
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__details { grid-area: details; min-width: 0; }
.cart-item__name {
  display: block;
  font-size: 1.5rem;
  line-height: 1.4;
  text-decoration: none;
  color: var(--color-text);
  word-break: break-word;
}
.cart-item__name:hover { text-decoration: underline; }
.cart-item__options { list-style: none; margin: 0.4rem 0 0; padding: 0; font-size: 1.3rem; color: var(--color-muted); }
.cart-item__price { font-size: 1.4rem; margin-top: 0.4rem; }
.cart-item__error {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin-top: 0.8rem;
  font-size: 1.2rem;
  color: var(--color-error);
}
.cart-item__error svg { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; flex: none; }
.cart-item--blocked .cart-item__media img { opacity: 0.5; }
.cart-item__quantity { grid-area: quantity; display: flex; align-items: center; gap: 1rem; }
.cart-item__quantity .quantity { width: 12rem; min-height: 4rem; }
.cart-item__quantity .quantity__button { flex-basis: 3.8rem; width: 3.8rem; }
.cart-remove-button {
  width: 4rem; height: 4rem;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; padding: 0;
  color: var(--color-text);
}
.cart-remove-button svg { width: 1.5rem; height: 1.6rem; }
.cart-remove-button:hover svg { transform: scale(1.07); }
.cart-item__totals { grid-area: total; text-align: right; font-size: 1.4rem; }
.cart-item__compare { display: block; color: var(--color-muted); text-decoration: line-through; font-size: 1.2rem; }

/* cart country + shipping estimate */
.cart-shipping {
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--input-radius);
  background: var(--color-subtle-bg);
}
.cart-shipping__label { display: block; font-size: 1.3rem; color: var(--color-muted); margin-bottom: 0.6rem; }
.cart-shipping .select__select { min-height: 4rem; font-size: 1.4rem; }
.cart-shipping__rates { list-style: none; margin: 1rem 0 0; padding: 0; font-size: 1.3rem; }
.cart-shipping__rates li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; }
.cart-shipping__rates .muted { font-size: 1.2rem; }
.cart-shipping__warning { margin: 1rem 0 0; color: var(--color-error); font-size: 1.3rem; }

.cart-note { margin: 1.5rem 0; }
.cart-note summary {
  display: flex; align-items: center; justify-content: space-between;
  list-style: none; cursor: pointer;
  font-size: 1.4rem;
  padding: 0.6rem 0;
}
.cart-note summary::-webkit-details-marker { display: none; }
.cart-note summary .icon-caret { width: 1rem; height: 0.6rem; transition: transform var(--transition-fast); }
.cart-note[open] summary .icon-caret { transform: rotate(180deg); }
.cart-note textarea {
  width: 100%;
  min-height: 8rem;
  margin-top: 0.8rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--color-muted);
  border-radius: var(--input-radius);
  background: var(--color-background);
  font-size: 1.4rem;
  resize: vertical;
}

.cart-discount-row {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 1.4rem;
  color: var(--color-success);
  margin-bottom: 0.6rem;
}
.cart__promo { display: flex; gap: 0.8rem; margin: 1rem 0; }
.cart__promo .field { margin: 0; }
.cart__promo .button { min-width: auto; padding: 0 2rem; }

.totals {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.6rem;
}
.totals__subtotal { margin: 0; font-size: 1.6rem; font-family: var(--font-heading); }
.totals__subtotal-value { font-size: 1.8rem; }
.tax-note { margin: 0 0 1.5rem; font-size: 1.3rem; color: var(--color-muted); line-height: 1.5; }
.cart__checkout-button { width: 100%; }
.cart__ctas { display: flex; flex-direction: column; gap: 1rem; }
.cart__error { margin-top: 1rem; font-size: 1.3rem; color: var(--color-error); }
.cart__payment-icons { margin-top: 1.5rem; justify-content: center; }

/* cart notification popup (alternative live setting) */
.cart-notification {
  position: fixed;
  top: calc(var(--header-height) + 0.5rem);
  right: 1.5rem;
  z-index: var(--z-drawer);
  width: min(37.6rem, calc(100vw - 3rem));
  padding: 2.4rem 3rem 3rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  box-shadow: 0 1rem 3rem rgba(18, 18, 18, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1rem);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.cart-notification.is-open { opacity: 1; visibility: visible; transform: none; }
.cart-notification__heading { display: flex; align-items: center; gap: 0.8rem; font-size: 1.4rem; margin-bottom: 1.5rem; }
.cart-notification__heading svg { width: 1.3rem; height: 1.3rem; }
.cart-notification__product { display: grid; grid-template-columns: 7rem 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.cart-notification__links { display: flex; flex-direction: column; gap: 1rem; text-align: center; }

/* cart page */
.cart-page { padding: 4rem 0 var(--section-spacing); }
.cart-page__title-wrapper { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.cart-page__title-wrapper h1 { margin: 0; }
.cart-page__footer { display: flex; justify-content: flex-end; padding-top: 3rem; }
.cart-page__footer-inner { width: 100%; max-width: 38rem; }
@media (max-width: 749px) { .cart-page__footer-inner { max-width: none; } }

/* ---------- Thank-you / order status ---------- */
.order-status { padding: 4rem 0 var(--section-spacing); }
.order-status__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 990px) { .order-status__grid { grid-template-columns: 1.4fr 1fr; gap: 5rem; } }
.order-status__header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2.5rem; }
.order-status__check {
  flex: none;
  width: 5rem; height: 5rem;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  color: var(--color-accent);
}
.order-status__check svg { width: 2.2rem; height: 2.2rem; }
.order-status__number { font-size: 1.3rem; color: var(--color-muted); margin: 0; }
.order-status__box {
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  margin-bottom: 2rem;
}
.order-status__box h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.order-status__address { font-style: normal; font-size: 1.4rem; line-height: 1.6; white-space: pre-line; }
.order-summary__items { list-style: none; margin: 0; padding: 0; }
.order-summary__item { display: grid; grid-template-columns: 6.4rem 1fr auto; gap: 1.5rem; align-items: center; padding: 1rem 0; }
.order-summary__thumb { position: relative; width: 6.4rem; height: 6.4rem; border: 1px solid var(--color-border); border-radius: 0.8rem; background: var(--color-subtle-bg); }
.order-summary__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.order-summary__qty {
  position: absolute; top: -0.8rem; right: -0.8rem;
  min-width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 1rem;
  background: var(--color-muted);
  color: var(--color-background);
  font-size: 1.1rem;
  padding: 0 0.5rem;
}
.order-summary__totals { border-top: 1px solid var(--color-border); margin-top: 1rem; padding-top: 1.5rem; font-size: 1.4rem; }
.order-summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; }
.order-summary__row--total { font-size: 1.8rem; padding-top: 1rem; margin-top: 0.6rem; border-top: 1px solid var(--color-border); }

/* account lookup */
.customer { max-width: 50rem; margin: 0 auto; padding: 5rem 1.5rem var(--section-spacing); text-align: center; }
.customer form { text-align: left; }
.customer-orders { width: 100%; border-collapse: collapse; font-size: 1.4rem; text-align: left; margin-top: 2rem; }
.customer-orders th, .customer-orders td { padding: 1.2rem 0.8rem; border-bottom: 1px solid var(--color-border); }
.customer-orders th { font-weight: 400; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.1rem; color: var(--color-muted); }
.status-pill {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  background: var(--color-subtle-bg);
}
.status-pill--fulfilled { background: rgba(46, 125, 50, 0.12); color: var(--color-success); }
.status-pill--refunded, .status-pill--partially_refunded { background: rgba(179, 38, 30, 0.1); color: var(--color-error); }

/* ---------- Policy / rich text typography ---------- */
.shopify-policy__container,
.rte-page {
  max-width: 82rem;
  margin: 0 auto;
  padding: 4rem 1.5rem var(--section-spacing);
}
.shopify-policy__title { text-align: center; margin-bottom: 4rem; }
.shopify-policy__title h1 { margin: 0; }

.rte { font-size: 1.5rem; line-height: 1.75; word-wrap: break-word; }
.rte > *:first-child { margin-top: 0; }
.rte > *:last-child { margin-bottom: 0; }
.rte h1, .rte h2, .rte h3, .rte h4, .rte h5, .rte h6 { margin: 3rem 0 1.2rem; }
.rte h2 { font-size: calc(var(--font-heading-scale) * 2.2rem); }
.rte h3 { font-size: calc(var(--font-heading-scale) * 1.8rem); }
.rte p { margin: 0 0 1.6rem; }
.rte ul, .rte ol { margin: 0 0 1.6rem; padding-left: 2.4rem; }
.rte li { margin-bottom: 0.6rem; }
.rte li > ul, .rte li > ol { margin: 0.6rem 0 0; }
.rte a { color: var(--color-text); text-decoration: underline; text-underline-offset: 0.3rem; }
.rte a:hover { text-decoration-thickness: 0.2rem; }
.rte strong, .rte b { font-weight: var(--font-body-weight-bold); }
.rte blockquote {
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 2rem;
  border-left: 0.2rem solid var(--color-border);
  color: var(--color-muted);
  font-style: italic;
}
.rte img { height: auto; margin: 2rem 0; border-radius: var(--card-radius); }
.rte table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 1.4rem; display: block; overflow-x: auto; }
.rte th, .rte td { padding: 1rem; border: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.rte th { background: var(--color-subtle-bg); font-weight: var(--font-body-weight-bold); }
.rte hr { border: 0; border-top: 1px solid var(--color-border); margin: 3rem 0; }
.rte code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; padding: 0.1rem 0.4rem; background: var(--color-subtle-bg); }

/* contact page */
.contact { max-width: 72rem; margin: 0 auto; }
.contact__fields { display: grid; grid-template-columns: 1fr; column-gap: 2rem; }
@media (min-width: 750px) { .contact__fields { grid-template-columns: 1fr 1fr; } }
.contact__button { margin-top: 1rem; }

/* blog */
.article-card__info { font-size: 1.2rem; color: var(--color-muted); letter-spacing: 0.1rem; }
.article-template__hero img { width: 100%; max-height: 60rem; object-fit: cover; }
.article-template__content { max-width: 72rem; margin: 0 auto; padding: 4rem 1.5rem; }

/* 404 */
.template-404 { text-align: center; padding: 8rem 1.5rem; }
.template-404 .title { margin: 1rem 0 3rem; }

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--color-border);
}
.footer__content-top { padding-top: 5rem; padding-bottom: 3rem; }
.footer__blocks-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 750px) {
  .footer__blocks-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 990px) {
  .footer__blocks-wrapper { grid-template-columns: repeat(var(--footer-columns, 4), minmax(0, 1fr)); }
}
.footer-block__heading { font-size: calc(var(--font-heading-scale) * 1.8rem); margin: 0 0 2rem; color: inherit; }
.footer-block__details-content { list-style: none; margin: 0; padding: 0; }
.footer-block__details-content li { margin-bottom: 0.4rem; }
.footer-block__details-content .list-menu__item--link {
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 1.4rem;
  color: var(--color-muted);
  text-decoration: none;
}
.footer-block__details-content .list-menu__item--link:hover { color: var(--footer-text); text-decoration: underline; }
.footer-block__text { font-size: 1.4rem; color: var(--color-muted); }

.footer__newsletter { max-width: 36rem; }
@media (min-width: 990px) { .footer__newsletter { justify-self: end; width: 100%; } }
.newsletter-form__field-wrapper { position: relative; }
.newsletter-form__field-wrapper .field__input { padding-right: 5rem; }
.newsletter-form__button {
  position: absolute; right: 0; top: 0;
  width: 4.4rem; height: 100%;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; padding: 0;
  color: var(--color-text);
}
.newsletter-form__button svg { width: 1.5rem; height: 1.5rem; }
.newsletter-form__message { font-size: 1.3rem; margin-top: 0.8rem; }

.list-social { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.list-social__link {
  display: flex; align-items: center; justify-content: center;
  width: 4.4rem; height: 4.4rem;
  color: var(--footer-text);
}
.list-social__link svg { width: 1.8rem; height: 1.8rem; }
.list-social__link:hover svg { transform: scale(1.07); }

.footer__content-bottom {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--color-border);
}
.footer__content-bottom-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 750px) {
  .footer__content-bottom-wrapper { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
}
.footer__localization { display: flex; align-items: center; gap: 1rem; font-size: 1.3rem; }
.footer__localization .select__select { min-height: 4rem; width: auto; font-size: 1.3rem; }

.list-payment {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-payment__item { display: flex; align-items: center; }
.list-payment__item svg, .list-payment__item img { width: 3.8rem; height: 2.4rem; }

.footer__copyright { text-align: center; font-size: 1.1rem; color: var(--color-muted); letter-spacing: 0.06rem; }
.footer__copyright a { color: inherit; text-decoration: none; }
.footer__copyright a:hover { text-decoration: underline; }
.policies { display: inline-flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0.6rem 0 0; padding: 0; }
.policies li { display: inline-flex; }
.policies li + li::before { content: "\00B7"; padding: 0 0.8rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: calc(var(--z-drawer) + 20);
  max-width: calc(100vw - 3rem);
  padding: 1.2rem 2rem;
  border-radius: var(--button-radius);
  background: var(--color-text);
  color: var(--color-background);
  font-size: 1.4rem;
  transform: translate(-50%, 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Loading skeleton ---------- */
.loading-overlay { position: relative; }
.loading-overlay::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.6);
  display: none;
}
.loading-overlay.is-loading::after { display: block; }

/* ---------- Responsive breakpoints ---------- */
@media (max-width: 989px) {
  .header__inline-menu { display: none; }
  .header { grid-template-columns: 1fr auto 1fr; }
  .facets { padding-top: 1rem; }
}

@media (max-width: 749px) {
  .small-hide { display: none !important; }
  .header { min-height: 6rem; padding-top: 0.4rem; padding-bottom: 0.4rem; }
  .header__heading-link { font-size: 2rem; }
  .header__heading-logo { width: var(--logo-width-mobile, 110px); }
  .cart-drawer__header { padding: 2rem 1.5rem 1rem 2rem; }
  .cart-drawer__body { padding: 0 2rem; }
  .cart-drawer__footer { padding: 1.5rem 2rem calc(1.5rem + env(safe-area-inset-bottom)); }
  .cart-page .cart-items thead { display: none; }
  .facets { flex-direction: column; align-items: stretch; }
  .facets__filters { justify-content: space-between; }
  .facet-disclosure__panel { min-width: 0; width: calc(100vw - 3rem); }
  .product-gallery__arrow { display: none; }
  .product-form__buttons { max-width: none; }
  .banner__box { padding: 0 1rem; }
  .footer__content-top { padding-top: 4rem; }
  .footer-block__heading { margin-bottom: 1.5rem; }
}

@media (min-width: 750px) and (max-width: 989px) {
  .medium-hide { display: none !important; }
}

@media (min-width: 990px) {
  .large-up-hide { display: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .announcement-bar, .section-header, .footer, .cart-drawer, .menu-drawer, .drawer-overlay, .product-sticky-atc { display: none !important; }
  body { color: #000; background: #fff; }
}
