/* ==========================================================================
   Fernwork — storefront styles
   Every dimension below was measured from the live site at 1440px / 390px.
   ========================================================================== */

/* ---- Fonts (self-hosted) ------------------------------------------------ */
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/instrument-sans-400-italic.woff2") format("woff2"); }
/* ---- Tokens -------------------------------------------------------------- */
:root {
  --black: #000;
  --white: #fff;
  --beige: #f1ede8;      /* cards, newsletter, About/Contact bands, input borders */
  --sage: #adc4c2;       /* footer */
  --lime: #c3cca6;       /* primary buttons */
  --forest: #173d2b;     /* nav text over the home hero */
  --muted: rgb(0 0 0 / 0.6);
  --subdued: rgb(0 0 0 / 0.8);
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --page-margin: 40px;
  --header-h: 66px;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --shadow-popover: 0 4px 20px rgb(0 0 0 / 0.15);
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.1; }
/* The live theme balances heading-style text (e.g. "Adventure- / Ready Essentials" on phones). */
h1, h2, h3, h4, .h4 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.h1 { font-size: clamp(3rem, 7.2vw, 4.5rem); line-height: 1.1; }
.h2 { font-size: clamp(2.25rem, 4.8vw, 3rem); line-height: 1.1; }
.h4 { font-size: 1.5rem; line-height: 1.1; }

.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-link {
  position: fixed; top: 8px; left: 8px; z-index: 200; padding: 10px 18px; border-radius: 100px;
  background: var(--lime); color: #000; text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  height: 52px; padding: 0 32px; border: 0; border-radius: 100px;
  background: var(--lime); color: #000; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: opacity 0.125s var(--ease), scale 0.125s var(--ease), translate 0.125s var(--ease);
}
.btn:hover { opacity: 0.88; }
.btn:active { scale: 0.99; translate: 0 1px; }
.btn--sm { height: 44px; padding: 0 24px; }
.link-btn { padding: 0; border: 0; background: none; text-decoration: underline; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 50%; background: transparent; text-decoration: none;
}
.icon { flex: none; }

/* ---- Header -------------------------------------------------------------- */
.header-group { position: relative; z-index: 30; height: var(--header-h); }
.header-group--overlay { position: absolute; top: 0; left: 0; right: 0; }
.header { position: absolute; top: 0; left: 0; right: 0; height: var(--header-h); color: var(--black); background: transparent; }
.header-group--overlay .header { color: var(--forest); }
.header.is-fixed { position: fixed; z-index: 60; background: var(--white); color: var(--black); box-shadow: 0 1px 0 rgb(0 0 0 / 0.06); }
.header.is-hidden { transform: translateY(-100%); }
.header.is-animated { transition: transform 0.25s ease; }

.header__inner {
  height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 calc(var(--page-margin) - 12px);
}
.header__side { display: flex; align-items: center; }
.header__side--right { justify-content: flex-end; }
.header__menu, .header__search--mobile { display: none; }

.nav__list { display: flex; align-items: center; }
.nav__link {
  display: flex; align-items: center; height: 44px; padding: 0 12px;
  font-size: 16px; text-decoration: none; transition: opacity 0.2s ease;
}
.nav__list:has(.is-active) .nav__link:not(.is-active) { opacity: 0.7; }
.nav__link:hover { opacity: 1 !important; }

.cart-bubble {
  position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #000; color: #fff; font-size: 10px; line-height: 16px; text-align: center;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; height: 720px; overflow: hidden; background: #c5d6cc; }
.hero picture, .hero__img { display: block; width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 50% 50%; }
.hero__content {
  position: absolute; z-index: 1; left: var(--page-margin); top: 50%; transform: translateY(-46%);
  display: flex; flex-direction: column; align-items: flex-start; max-width: 540px; color: var(--forest);
}
.hero__title { font-size: clamp(3rem, 6.2vw, 5.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.hero__text { max-width: 22ch; margin: 20px 0 32px; font-size: 1.25rem; line-height: 1.3; }

/* ---- Product list (home) ------------------------------------------------- */
.product-list { padding: 48px 0 50px; }
.product-list__title { text-align: center; padding: 0 var(--page-margin); margin-bottom: 50px; }

/* ---- Grids --------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--home { gap: 20px 16px; }
.grid--collection { gap: 16px; }
.grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* ---- Product card -------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--beige); border-radius: 10px; overflow: hidden;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}
@media (hover: hover) { .card:hover { transform: translateY(-4px); } }

.card__gallery { position: relative; aspect-ratio: 1 / 1; background: var(--white); overflow: hidden; }
.card__media { display: block; height: 100%; }
.card__track {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.card__track::-webkit-scrollbar { display: none; }
.card__img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }

.card__arrow {
  position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border: 0; background: transparent; color: #fff; opacity: 0;
  filter: drop-shadow(0 1px 3px rgb(0 0 0 / 0.45)); transition: opacity 0.2s ease, transform 0.2s ease;
}
.card__arrow--prev { left: 4px; transform: translate(-6px, -50%); }
.card__arrow--next { right: 4px; transform: translate(6px, -50%); }
.card__gallery:hover .card__arrow, .card__arrow:focus-visible { opacity: 1; transform: translate(0, -50%); }

.card__info { display: block; padding: 24px; text-decoration: none; flex: 1; }
.card__title { margin-bottom: 4px; }
.card--lg .card__title { font-size: 1.5rem; line-height: 1.1; margin-bottom: 8px; }
.card--lg .price { font-size: 1.125rem; line-height: 1.1; }
.card--md .card__title, .card--md .price { font-size: 14px; line-height: 1.4; }

/* quick add: a 36px circle that grows to reveal "Add" on hover */
.quick-add { position: absolute; right: 13px; bottom: 13px; z-index: 3; }
.quick-add__btn {
  display: flex; align-items: center; width: 36px; height: 36px; padding: 0; border: 0;
  border-radius: 50px; background: var(--white); color: #000; font-size: 14px; overflow: hidden;
  box-shadow: 0 1px 6px rgb(0 0 0 / 0.14); transition: width 0.125s var(--ease), scale 0.125s var(--ease);
}
.quick-add__btn:hover, .quick-add__btn:focus-visible { width: 74px; }
.quick-add__btn:active { scale: 0.97; }
.quick-add__icon { position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px; }
.quick-add__icon .icon:last-child { position: absolute; opacity: 0; scale: 0.5; transition: opacity 0.2s, scale 0.2s; }
.quick-add__label { padding-right: 14px; margin-left: -4px; white-space: nowrap; }
.quick-add__btn.is-added { width: 36px; }
.quick-add__btn.is-added .icon:first-child { opacity: 0; }
.quick-add__btn.is-added .icon:last-child { opacity: 1; scale: 1; }
@media (hover: none) { .quick-add, .card__arrow { display: none; } }

/* zoom-out grid view (collection) */
.grid[data-view="zoom-out"] { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.grid[data-view="zoom-out"] .card { border-radius: 6px; }
.grid[data-view="zoom-out"] .card__info, .grid[data-view="zoom-out"] .quick-add, .grid[data-view="zoom-out"] .card__arrow { display: none; }

/* ---- Newsletter ---------------------------------------------------------- */
.signup {
  display: grid; grid-template-columns: var(--page-margin) 7fr 5fr var(--page-margin);
  min-height: 450px; background: var(--beige);
}
.signup__media { grid-column: 1 / 3; display: grid; align-items: center; min-width: 0; }
.signup__media img { width: 100%; height: 450px; object-fit: contain; }
.signup__content { grid-column: 3; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-left: 40px; }
.signup-form { position: relative; width: 100%; }
.signup-form input {
  display: block; width: 100%; height: 52px; padding: 0 76px 0 28px; border: 0; border-radius: 100px;
  background: var(--white); font-size: 14px; outline-offset: 2px;
}
.signup-form button {
  position: absolute; right: 0; top: 50%; display: grid; place-items: center; width: 58px; height: 58px;
  padding: 0; border: 0; border-radius: 50%; background: var(--lime); color: #000; transform: translateY(-50%);
  transition: opacity 0.125s var(--ease);
}
.signup-form button:hover { opacity: 0.88; }
.signup-form__msg { position: absolute; top: calc(100% + 12px); left: 28px; font-size: 14px; }

/* ---- Footer -------------------------------------------------------------- */
.footer { background: var(--sage); }
.footer__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  padding: 36px var(--page-margin) 18px;
}
.footer-menu__title {
  display: flex; align-items: center; justify-content: space-between; padding: 11.2px 0; list-style: none;
  font-size: 1.5rem; cursor: default;
}
.footer-menu__title::-webkit-details-marker { display: none; }
.footer-menu__caret { display: none; transition: rotate 0.2s ease; }
.footer-menu[open] .footer-menu__caret { rotate: 180deg; }
.footer-menu__list { display: flex; flex-direction: column; gap: 11.2px; padding-top: 12px; font-size: 16px; line-height: 1.6; }
.footer a { text-decoration: none; }
.footer-menu__list a:hover, .footer__copy a:hover, .footer-info a:hover { text-decoration: underline; }
.footer-info__title { font-size: 26px; line-height: 1.1; padding: 11.2px 0 12px; }
.footer-info p { margin-bottom: 7px; }

.footer__utilities {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--page-margin) 18px; color: var(--muted); font-size: 14px;
}
.footer__utilities a { color: inherit; }
.policy-popover { position: relative; }
.policy-popover__btn { padding: 0; border: 0; background: none; color: inherit; font-size: 14px; }
.policy-popover__btn:hover { text-decoration: underline; }
.policy-popover__list {
  position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 20; min-width: 220px; padding: 14px 18px;
  border-radius: 10px; background: var(--white); color: #000; box-shadow: var(--shadow-popover);
  display: flex; flex-direction: column; gap: 10px;
}

/* ---- Drawers (menu + cart) ----------------------------------------------- */
.backdrop { position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / 0.3); opacity: 0; transition: opacity 0.25s ease; }
.backdrop.is-open { opacity: 1; }

.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 100; display: flex; flex-direction: column;
  width: min(95vw, 440px); background: var(--white); color: #000; visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.drawer--right { right: 0; transform: translateX(100%); }
.drawer--left { left: 0; transform: translateX(-100%); }
.drawer.is-open { transform: none; visibility: visible; transition: transform 0.3s var(--ease), visibility 0s; }
.drawer__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 16px 0 24px; }
.drawer__header h2 { padding-top: 8px; }
.drawer--left .drawer__header { justify-content: flex-end; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 24px 24px; }
.drawer__footer { padding: 20px 24px 24px; border-top: 1px solid var(--beige); }

.menu-list a { display: block; padding: 10px 0; font-size: 1.5rem; line-height: 1.2; text-decoration: none; }

.cart-empty p { margin-bottom: 20px; }
.cart-empty a:not(.btn) { text-decoration: underline; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--beige); }
.cart-line__img { width: 84px; height: 84px; border-radius: 8px; background: var(--beige); object-fit: cover; }
.cart-line__title { font-size: 14px; text-decoration: none; }
.cart-line__title:hover { text-decoration: underline; }
.cart-line__price { margin: 2px 0 10px; color: var(--muted); }
.cart-line__total { text-align: right; }
.cart-line__remove { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; }
.cart-line__remove:hover { color: #000; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; font-size: 18px; }
.cart-note { margin-bottom: 18px; color: var(--muted); }
.cart-checkout { width: 100%; }

/* quantity stepper (cart + product page) */
.qty { display: inline-flex; align-items: center; height: 52px; padding: 3px 0; border: 1px solid var(--beige); border-radius: 100px; background: #fff; }
.qty button { display: grid; place-items: center; width: 44px; height: 100%; padding: 0; border: 0; background: none; border-radius: 100px; }
.qty button[disabled] { opacity: 0.35; cursor: default; }
.qty input { width: 36px; padding: 0; border: 0; background: none; text-align: center; font-size: 14px; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 36px; }
.qty--sm button { width: 32px; }
.qty--sm input { width: 30px; }

/* ---- Search modal --------------------------------------------------------- */
.search-modal {
  position: fixed; top: 5vh; bottom: auto; margin: 0 auto; width: min(960px, calc(100vw - 32px));
  max-height: 85vh; padding: 0; border: 0; border-radius: 10px; background: var(--white);
  box-shadow: var(--shadow-popover); overflow: hidden;
}
.search-modal::backdrop { background: rgb(0 0 0 / 0.3); }
.search-modal__form { display: flex; flex-direction: column; max-height: 85vh; }
.search-modal__bar { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--beige); }
.search-modal__icon { display: grid; place-items: center; }
.search-modal__input { flex: 1; min-width: 0; height: 44px; padding: 0 8px; border: 0; outline: 0; background: none; font-size: 18px; }
.search-modal__input::-webkit-search-cancel-button { display: none; }
.search-modal__clear { padding: 0 8px; border: 0; background: none; color: var(--muted); text-decoration: underline; }
.search-modal__results { flex: 1; overflow-y: auto; padding: 20px 24px; }
.search-modal__footer { padding: 14px 24px 20px; border-top: 1px solid var(--beige); }
.search-group + .search-group { margin-top: 24px; }
.search-group__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.search-group__title { font-size: 1.125rem; line-height: 1.2; }
.search-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.search-card { display: block; text-decoration: none; border-radius: 10px; background: var(--beige); overflow: hidden; transition: transform 0.25s ease-out; }
@media (hover: hover) { .search-card:hover { transform: translateY(-4px); } }
.search-card__media { position: relative; aspect-ratio: 1; background: #fff; }
.search-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.search-card__media img + img { opacity: 0; }
.search-card:hover .search-card__media img + img { opacity: 1; }
.search-card__body { padding: 12px 14px 14px; }
.search-card__body p { line-height: 1.35; }
.search-empty { padding: 24px 0; color: var(--muted); }

/* ---- Toast ---------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; max-width: calc(100vw - 32px); padding: 14px 22px;
  border-radius: 100px; background: #000; color: #fff; font-size: 14px; transform: translate(-50%, 20px);
  opacity: 0; transition: opacity 0.25s ease, transform 0.25s var(--ease); pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---- Collection page ------------------------------------------------------- */
.collection { padding: 24px var(--page-margin) 80px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 57px 0 16px; }
.toolbar__filters, .toolbar__right { display: flex; align-items: center; gap: 16px; }
.toolbar__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0; border: 0; background: none;
  color: var(--subdued); font-size: 14px;
}
.toolbar__btn:hover { color: #000; }
.toolbar__btn .icon { transition: rotate 0.2s; }
.toolbar__btn[aria-expanded="true"] .icon { rotate: 180deg; }
.toolbar__count { color: var(--subdued); font-size: 14px; }
.toolbar__clear { padding: 0; border: 0; background: none; color: var(--subdued); text-decoration: underline; }
.dropdown { position: relative; }
.dropdown__panel {
  position: absolute; top: 100%; left: -16px; z-index: 25; min-width: 240px; padding: 16px;
  border-radius: 10px; background: var(--white); box-shadow: var(--shadow-popover);
}
.dropdown--right .dropdown__panel { left: auto; right: -16px; }
.dropdown__panel--list { padding: 8px; min-width: 220px; }
.dropdown__panel--list button {
  display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 6px; background: none; text-align: left; font-size: 14px;
}
.dropdown__panel--list button:hover { background: var(--beige); }
.dropdown__panel--list button[aria-selected="true"] { background: var(--beige); }
.dropdown__note { margin-bottom: 12px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.check--disabled { opacity: 0.5; }
.check input { width: 16px; height: 16px; accent-color: #000; }
.price-range { display: flex; gap: 10px; }
.price-range__field {
  display: flex; align-items: center; gap: 4px; flex: 1; height: 44px; padding: 0 12px;
  border: 1px solid var(--beige); border-radius: 4px; background: #fff;
}
.price-range__field input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; }
.view-toggle { display: flex; align-items: center; }
.view-toggle button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--muted); }
.view-toggle button[aria-checked="true"] { color: #000; }
.collection__empty { padding: 48px 0; text-align: center; font-size: 18px; }

/* ---- Product page ---------------------------------------------------------- */
/* Live theme: a 2:1 grid (900px / 450px at 1440). The details column has 24px left padding
   and its inner group 12px side padding, so the text column is 402px wide. */
.product {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start;
  padding: 0 var(--page-margin) 32px;
  max-width: calc(1350px + var(--page-margin) * 2); margin-inline: auto;
}
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-right: 24px; }
.gallery__item { display: block; padding: 0; border: 0; background: #fff; cursor: zoom-in; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery__item--main { grid-column: 1 / -1; display: grid; place-items: center; }
.gallery__item--main img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - var(--header-h)); object-fit: contain; }
.gallery__dots { display: none; }

.product__info { padding: 32px 12px 16px 36px; min-width: 0; }
.product__title { margin-bottom: 16px; }
.product__price { font-size: 24px; line-height: 1; }
.product__ship { margin-top: 6px; line-height: 15px; color: var(--subdued); }
.buy { display: flex; gap: 12px; margin-top: 37px; }
.btn--buy { flex: 1; min-width: 0; }
/* The live description is a column of shrink-wrapped blocks, so sibling margins ADD UP
   (p 7px + h3 8px = 15px) instead of collapsing. Matching that is what fixes the drift. */
.product__desc { margin-top: 16px; display: flex; flex-direction: column; align-items: flex-start; }
.product__desc p { margin: 7px 0; }
.product__desc > :first-child { margin-top: 0; }
.product__desc > :last-child { margin-bottom: 0; }

.rte { font-size: 14px; line-height: 1.4; }
.rte p { margin-bottom: 7px; }
.rte h3 { font-size: 2rem; line-height: 1.1; margin: 8px 0; }
.rte ul { padding-left: 21px; margin-bottom: 14px; list-style: disc; }
.rte a { text-decoration: underline; }

.accordion { margin-top: 16px; }
.accordion__item { border-top: 1px solid var(--black); }
.accordion__item:last-child { border-bottom: 1px solid var(--black); }
.accordion__item summary, .faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer;
}
.accordion__item summary::-webkit-details-marker, .faq__item summary::-webkit-details-marker { display: none; }
.accordion__item summary { padding: 11.2px 0; font-size: 1.5rem; line-height: 1.1; }
.accordion__item summary .icon, .faq__item summary .icon { transition: rotate 0.2s ease; }
.accordion__item[open] summary .icon, .faq__item[open] summary .icon { rotate: 180deg; }
.accordion__body { padding: 4px 0 16px; }
.accordion__body p { margin-bottom: 7px; }

.related { padding: 60px var(--page-margin) 72px; }
.related__title { text-align: center; margin-bottom: 28px; }

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px var(--page-margin);
  background: var(--white); box-shadow: 0 -1px 0 rgb(0 0 0 / 0.08); transform: translateY(110%);
  visibility: hidden; transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.sticky-bar.is-visible { transform: none; visibility: visible; transition: transform 0.3s var(--ease), visibility 0s; }
.sticky-bar__inner { display: flex; align-items: center; justify-content: center; gap: 16px; }
.sticky-bar__inner img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--beige); }
.sticky-bar__text { display: flex; flex-direction: column; min-width: 0; margin-right: 8px; }
.sticky-bar__text strong { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-bar__text span { color: var(--muted); }

.zoom { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; }
.zoom[open] { display: grid; place-items: center; }
.zoom__img { max-width: min(92vw, 1100px); max-height: 92vh; width: auto; height: auto; object-fit: contain; }
.zoom__close { position: absolute; top: 16px; right: 16px; }
.zoom__nav { position: absolute; top: 50%; translate: 0 -50%; background: rgb(255 255 255 / 0.8); box-shadow: 0 1px 6px rgb(0 0 0 / 0.15); }
.zoom__nav--prev { left: 16px; }
.zoom__nav--next { right: 16px; }

/* ---- Content pages ---------------------------------------------------------- */
.band { background: var(--beige); }
.band__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 45px var(--page-margin); }
.band__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.band__inner--contact { gap: 32px; padding-block: 40px; }
.band__inner--contact .band__media img { aspect-ratio: 659 / 634; }
.band__text .h2 { margin-bottom: 12px; }
.rte--narrow p { max-width: 450px; }

.faq { padding: 48px var(--page-margin); }
.faq__title { font-size: 2rem; line-height: 1.1; }
.faq__list { margin-top: 33px; }
.faq__item { border-top: 1px solid var(--black); }
.faq__item summary { padding: 11.2px 0; font-size: 1.125rem; line-height: 1.3; }
.faq__answer { padding: 0 0 18px; max-width: 760px; }

.contact-form-section { padding: 48px var(--page-margin); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field textarea {
  display: block; width: 100%; height: 54px; padding: 16px 20px 0; border: 1px solid var(--beige);
  border-radius: 4px; background: #fff; font-size: 14px; outline-offset: 0;
}
.field textarea { height: 230px; padding-top: 24px; resize: vertical; }
.field label {
  position: absolute; left: 21px; top: 18px; color: var(--muted); pointer-events: none;
  transform-origin: left top; transition: transform 0.15s ease;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(0.78); }
.field input:focus, .field textarea:focus { border-color: #000; outline: 0; }
.contact-form .btn { align-self: flex-start; min-width: 81px; margin-top: 4px; }
.contact-form__msg { font-size: 14px; }

.policy { padding: 48px var(--page-margin) 80px; }
.policy__title { margin-bottom: 32px; }
.policy__body { max-width: 780px; }
.policy__body h3 { font-size: 1.5rem; margin: 28px 0 10px; }
.policy__body p { margin-bottom: 10px; }
.policy__body li { margin-bottom: 4px; }

.search-page { padding: 24px var(--page-margin) 80px; }
.search-page__form {
  display: flex; align-items: center; gap: 8px; max-width: 560px; margin: 32px 0 20px;
  padding: 4px 4px 4px 20px; border: 1px solid var(--beige); border-radius: 100px; background: #fff;
}
.search-page__form input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; font-size: 16px; }
.search-page__summary { margin-bottom: 16px; color: var(--subdued); }

.notfound { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 120px var(--page-margin); text-align: center; }
.notfound p { font-size: 18px; }

@media (max-width: 749px) {
  /* Tokens */
  :root { --page-margin: 16px; --header-h: 60px; }

  /* Header */
  .header__inner { grid-template-columns: 1fr 1fr; padding: 0 8px 0 10px; }
  .nav { display: none; }
  .header__menu, .header__search--mobile { display: inline-grid; }
  .header__search--desktop { display: none; }

  /* Hero */
  .hero { height: 560px; }
  .hero__content { top: 104px; transform: none; max-width: calc(100% - 2 * var(--page-margin)); }
  .hero__title { font-size: 3.25rem; }
  .hero__text { margin: 14px 0 22px; font-size: 1.0625rem; }

  /* Product list */
  .product-list { padding: 34px 0 35px; }
  .product-list__title { margin-bottom: 35px; }

  /* Grids */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--home { gap: 12px; }
  .grid--collection, .grid--related { gap: 12px; }
  .card--lg .card__info { padding: 20px; }

  /* Product card */
  .grid[data-view="zoom-out"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* Newsletter */
  .signup { grid-template-columns: var(--page-margin) 1fr var(--page-margin); min-height: 0; padding-bottom: 34px; }
  .signup__media { grid-column: 1 / -1; }
  /* Live: a 390x253 box with the artwork letterboxed inside it (object-fit: contain), like desktop. */
  .signup__media img { height: auto; aspect-ratio: 390 / 253; }
  .signup__content { grid-column: 2; padding: 32px 0 0; gap: 26px; }
  .signup-form input { height: 54px; }
  .signup-form__msg { position: static; margin-top: 12px; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 12px; padding-top: 26px; }
  .footer-menu__title { cursor: pointer; }
  .footer-menu__caret { display: block; }
  .footer-menu__list { gap: 12px; }
  .footer__utilities { flex-direction: column; align-items: flex-start; gap: 10px; }
  .policy-popover__list { right: auto; left: 0; }

  /* Search modal */
  .search-modal { top: 0; width: 100vw; max-height: 100dvh; border-radius: 0; }
  .search-modal__form { max-height: 100dvh; }
  .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Collection page */
  .collection { padding-bottom: 56px; }
  .collection__title { font-size: 3rem; }
  .toolbar { margin-top: 24px; flex-wrap: wrap; }
  .toolbar__count { display: none; }
  .view-toggle { display: none; }
  .dropdown__panel { left: 0; }
  .toolbar__filters { gap: 20px; }

  /* Product page */
  .product { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 32px; }
  .product__gallery { margin: 0 calc(var(--page-margin) * -1); }
  .gallery {
    display: flex; gap: 0; margin-right: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item, .gallery__item--main { flex: 0 0 100%; scroll-snap-align: start; display: block; }
  .gallery__item img, .gallery__item--main img { width: 100%; height: auto; max-height: none; aspect-ratio: 1; object-fit: cover; }
  .gallery__dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 0; }
  .gallery__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.2); }
  .gallery__dots button[aria-current="true"] { background: #000; }
  .product__info { padding: 24px 0 0; }
  .grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Inferred: the live home sections scale their padding by exactly 0.7 on phones (48 -> 33.6, 50 -> 35). */
  .related { padding: 42px var(--page-margin) 50.4px; }
  .related__title { margin-bottom: 19.6px; }
  .sticky-bar__text { display: none; }
  .sticky-bar__inner .btn { flex: 1; }

  /* Content pages */
  .band__inner, .band__inner--contact { grid-template-columns: 1fr; gap: 24px; padding: 24px var(--page-margin) 40px; }
  .contact-form__row { grid-template-columns: 1fr; }
}

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