/* Rooted & Rising Boutique. Matched to her Shopify store (Horizon 4.2) using the values her theme
   renders with her settings, read 2026-10-05: palette, Inter 400/500/700, type scale, radii,
   spacing, page widths, header and drawer sizes. Our own stylesheet, written to those values. */

:root {
  --bg: #ffffff;
  --fg: #000000;
  --c1: #333333;             /* palette color1: input text */
  --c2: #dfdfdf;             /* palette color2: borders, dividers */
  --sold: #eef1ea;           /* sold-out badge */
  --hover: #262626;          /* primary button hover */
  --muted: rgb(0 0 0 / 0.6); /* --opacity-muted-text */
  --subdued: rgb(0 0 0 / 0.8);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-p: 0.875rem;  --lh-p: 1.6;
  --fs-h1: clamp(3rem, 5.6vw, 3.5rem);
  --fs-h2: clamp(2.25rem, 4.8vw, 3rem);
  --fs-h3: 2rem;
  --fs-h4: 1.5rem;
  --fs-h5: 0.875rem;
  --fs-h6: 0.75rem;

  --page: 90rem;             /* narrow page width */
  --margin: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --narrow: 36rem;           /* narrow content width */
  --header-h: 60px;
  --drawer-w: 30rem;

  --r-btn: 14px;  --r-input: 4px;  --r-pill: 100px;  --r-card: 4px;
  --btn-py: 16px; --btn-px: 24px;
  --ease: 0.25s ease;
}
@media (min-width: 750px) { :root { --margin: max(40px, env(safe-area-inset-left), env(safe-area-inset-right)); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 var(--fs-p) / var(--lh-p) var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; outline: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul[role='list'], .header__nav ul, .menu-drawer__list, .footer__links { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 0.09375rem solid var(--fg); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* honeypot: !important because styled-input rules (.signup input) are more specific and once
   stretched this to 358px, pushing every phone page 342px wide */
.hp { position: absolute !important; left: 0 !important; top: 0 !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; border: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; opacity: 0 !important; pointer-events: none !important; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: var(--r-btn); z-index: 100; text-decoration: none; }
.skip:focus { top: 8px; }

.page-width { width: 100%; max-width: calc(var(--page) + var(--margin) * 2); margin-inline: auto; padding-inline: var(--margin); }

/* ── type presets ── */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { margin: 0; font-family: var(--font); letter-spacing: 0; text-wrap: balance; }
.h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1; }
.h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1; }
.h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.1; }
.h4 { font-size: var(--fs-h4); font-weight: 700; line-height: 1; }
.h5 { font-size: var(--fs-h5); font-weight: 500; line-height: 1.2; }
.h6 { font-size: var(--fs-h6); font-weight: 500; line-height: 1.2; }
p { margin: 0; }
.rte p + p, .rte p + ul, .rte ul + p, .rte p + h2, .rte ul + h2 { margin-top: 0.5em; }
.rte h2 { font-size: var(--fs-h4); font-weight: 700; line-height: 1; margin: 1.75em 0 0.5em; }
.rte ul { margin: 0.5em 0; padding-left: 1.2em; }
.rte li + li { margin-top: 0.15em; }
.rte strong { font-weight: 700; }
.rte a, .link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rte a:hover, .link:hover { text-decoration-thickness: 2px; }
.center { text-align: center; }
.narrow { max-width: var(--narrow); margin-inline: auto; }

/* ── buttons ── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--btn-py) var(--btn-px); min-height: 48px;
  background: var(--fg); color: var(--bg); border: 0; border-radius: var(--r-btn);
  font: 400 var(--fs-p) / 1 var(--font); text-decoration: none; transition: background var(--ease), color var(--ease);
}
.button:hover { background: var(--hover); }
.button:disabled, .button[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; }
.button--secondary { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.button--secondary:hover { background: rgb(0 0 0 / 0.15); }
.button--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.button--outline-light:hover { background: rgb(255 255 255 / 0.15); }
.button--full { width: 100%; }
.button--small { min-height: 40px; padding: 10px 18px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--fg); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }

/* ── announcement + header ── */
.header-group { position: sticky; top: 0; z-index: 30; background: var(--bg); }
.announcement { border-bottom: 1px solid var(--c2); padding-block: 15px; text-align: center; }
.announcement p { font-size: 0.75rem; font-weight: 500; line-height: 1.2; }
.header { background: var(--bg); transition: box-shadow var(--ease); }
.header-group.is-stuck .header { box-shadow: 0 1px 0 var(--c2); }
.header__row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); padding-block: 0.7rem; }
.header__logo { display: block; flex: none; }
.header__logo img { height: clamp(30px, 9.6vw, 38px); width: auto; }  /* the full wordmark incl. BOUTIQUE (the old crop cut it in half) */
.header__nav { display: none; }
.header__nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.header__nav a { font-size: 0.875rem; line-height: 1.6; text-decoration: none; padding-block: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--ease); }
.header__nav a:hover, .header__nav a[aria-current='page'] { background-size: 100% 1px; }
.header__icons { display: flex; align-items: center; margin-left: auto; margin-right: -10px; }
.header__burger { margin-left: -10px; flex: none; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--fg); color: var(--bg); font-size: 0.6875rem; font-weight: 500; line-height: 18px; text-align: center; }
@media (min-width: 750px) {
  .header__logo img { height: 52px; }
  .header__nav { display: block; }
  .header__burger { display: none; }
}

/* ── drawers, modal ── */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / 0.3); }
.drawer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.drawer__panel { position: absolute; top: 0; bottom: 0; width: min(var(--drawer-w), 100vw); background: var(--bg); display: flex; flex-direction: column; pointer-events: auto; transition: transform 0.2s ease; overflow: hidden; }
.drawer--right .drawer__panel { right: 0; border-left: 1px solid var(--c2); transform: translateX(100%); }
.drawer--left .drawer__panel { left: 0; border-right: 1px solid var(--c2); transform: translateX(-100%); width: min(22rem, 88vw); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 10px 24px; border-bottom: 1px solid var(--c2); min-height: var(--header-h); }
.drawer__title { font-size: var(--fs-h4); font-weight: 700; line-height: 1; }
.menu-drawer__list { padding: 12px 24px; }
.menu-drawer__list a { display: block; padding: 12px 0; font-size: 1.125rem; text-decoration: none; }
.menu-drawer__list a[aria-current='page'] { text-decoration: underline; text-underline-offset: 4px; }
.modal { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--c2); padding-block: 12px; }
.search-form { position: relative; display: flex; align-items: center; gap: 8px; }
.search-form__icon { position: absolute; left: 14px; display: grid; color: var(--muted); }
.search-form__icon svg { width: 1.25rem; height: 1.25rem; }
.search-form input { flex: 1; min-width: 0; height: 48px; padding: 0 14px 0 44px; border: 0; border-radius: var(--r-input); box-shadow: 0 0 0 1px var(--c2); background: var(--bg); color: var(--c1); }
.search-form input:focus { outline: none; box-shadow: 0 0 0 1.5px var(--fg); }
.search-form--page { max-width: 36rem; margin-top: 24px; }

/* ── sections ── */
.section { padding-block: 48px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.section__head .link { font-size: var(--fs-p); white-space: nowrap; }

/* ── hero: two images side by side, solid overlay, content bottom centre ── */
.hero { position: relative; display: grid; color: #fff; overflow: hidden;
  min-height: calc(25rem - var(--header-group-h, 0px)); }
@media (min-width: 40em) { .hero { min-height: calc(55svh - var(--header-group-h, 0px)); } }
@media (min-width: 60em) { .hero { min-height: calc(65svh - var(--header-group-h, 0px)); } }
.hero__media { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__overlay { position: absolute; inset: 0; background: rgb(18 18 18 / 0.4); }
.hero__content { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 24px; text-align: center; padding-top: 100px; padding-bottom: 72px; }
.hero__content .h2 { max-width: 13em; }
.hero__sub { max-width: 32.5em; font-size: var(--fs-p); line-height: var(--lh-p); color: rgb(255 255 255 / 0.92); }

/* ── product grid + card ── */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; row-gap: 24px; list-style: none; margin: 0; padding: 0; }
.product-grid--collection { column-gap: 16px; }
.product-grid--recs { column-gap: 12px; }
@media (min-width: 750px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid--collection { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 990px) { .product-grid--collection { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card__link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.card__media { position: relative; aspect-ratio: var(--ratio, 0.6667); background: rgb(0 0 0 / 0.04); overflow: hidden; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
.card__alt { opacity: 0; }
@media (hover: hover) { .card__link:hover .card__alt { opacity: 1; } }
.badge { position: absolute; top: 8px; right: 8px; z-index: 1; padding: 3px 10px; border-radius: var(--r-pill); background: var(--sold); color: var(--fg); font-size: 0.75rem; font-weight: 500; line-height: 1.4; }
.card__info { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.card__title { font-size: var(--fs-p); font-weight: 400; line-height: 1.4; }
.card__price { font-size: var(--fs-h6); font-weight: 500; line-height: 1.2; }
.card__price s { color: var(--muted); font-weight: 400; margin-left: 4px; }
.sale { color: var(--fg); }

/* ── story ── */
.story__inner { max-width: calc(42rem + var(--margin) * 2); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.story .rte { color: var(--subdued); }
.story .rte h3 { color: var(--fg); margin: 1.75em 0 0.5em; line-height: 1; }
#our-story { scroll-margin-top: 120px; }

/* ── collection ── */
.collection-head { padding-bottom: 0; }
.collection-head__desc { margin-top: 12px; max-width: 42rem; color: var(--subdued); }
.collection { padding-top: 28px; padding-bottom: 32px; }
.facets { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.facets__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.facets__right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.facets__count { color: var(--muted); font-size: var(--fs-p); }
.facets__active { margin: -12px 0 20px; }
.filter { position: relative; }
.filter summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--c2); cursor: pointer; user-select: none; }
.filter summary::-webkit-details-marker { display: none; }
.filter summary svg { width: 14px; height: 14px; transition: transform var(--ease); }
.filter[open] summary svg { transform: rotate(180deg); }
.filter[open] summary, .filter summary:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.filter__menu { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; min-width: 220px; max-height: 320px; overflow: auto; padding: 8px; background: var(--bg); border: 1px solid var(--c2); border-radius: var(--r-btn); box-shadow: 0 8px 24px rgb(0 0 0 / 0.08); }
.filter__opt { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; }
.filter__opt:hover { background: rgb(0 0 0 / 0.05); }
.filter__opt input { width: 16px; height: 16px; accent-color: var(--fg); margin: 0; }
.filter__count { margin-left: auto; color: var(--muted); font-size: 0.75rem; }
.filter__opt.is-empty { opacity: 0.45; cursor: default; }
.filter__n { color: var(--muted); }
.filter__menu--price { min-width: 260px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.filter__hint { color: var(--muted); font-size: 0.75rem; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-range label { display: flex; flex-direction: column; gap: 4px; font-size: 0.75rem; color: var(--muted); }
.price-range__in { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px; border-radius: var(--r-input); box-shadow: inset 0 0 0 1px var(--c2); color: var(--fg); }
.price-range__in input { width: 100%; border: 0; background: none; padding: 0; color: var(--c1); -moz-appearance: textfield; }
.price-range__in input::-webkit-outer-spin-button, .price-range__in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-range__in input:focus { outline: none; }
.price-range__in:focus-within { box-shadow: inset 0 0 0 1.5px var(--fg); }
.sort select { height: 40px; padding: 0 36px 0 14px; border: 0; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--c2); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m6 8 4 4 4-4' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; appearance: none; cursor: pointer; }
.empty { padding: 48px 0; color: var(--subdued); }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 750px) { .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ccard a { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.ccard__media { aspect-ratio: 4 / 5; background: rgb(0 0 0 / 0.04); overflow: hidden; border-radius: var(--r-card); }
.ccard__media img { width: 100%; height: 100%; object-fit: cover; }
.ccard__title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 500; }
.ccard__title svg { width: 16px; height: 16px; }

/* ── product ── */
.product { display: grid; gap: 24px; padding-top: 0; padding-bottom: 48px; }
@media (min-width: 750px) { .product { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; padding-top: 24px; } }
.product__media { min-width: 0; }
.pmedia { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--margin) * -1); list-style: none; padding: 0; }
.pmedia::-webkit-scrollbar { display: none; }
.pmedia__item { flex: 0 0 100%; scroll-snap-align: start; background: rgb(0 0 0 / 0.03); }
.pmedia__item img { width: 100%; height: auto; object-fit: contain; }
.pmedia__dots { display: flex; justify-content: center; gap: 6px; padding-top: 12px; }
.pmedia__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--c2); }
.pmedia__dots span.is-on { background: var(--fg); }
@media (min-width: 750px) {
  .pmedia { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin-inline: 0; }
  .pmedia__item { flex: none; }
  .pmedia__dots { display: none; }
}
.product__details { min-width: 0; }
@media (min-width: 750px) { .product__sticky { position: sticky; top: calc(var(--header-group-h, 96px) + 24px); } }
.product__title { margin-bottom: 12px; }
.product__price { font-size: var(--fs-p); }
.product__price s { color: var(--muted); margin-left: 6px; }
.divider { border: 0; border-top: 1px solid var(--c2); margin: 28px 0; }
.product__form { display: flex; flex-direction: column; gap: 16px; }
.variant { border: 0; margin: 0; padding: 0; min-width: 0; min-inline-size: 0; }   /* fieldsets default to min-content: one long supplier value made it 520px on a 390px phone */
.variant__label { padding: 0; margin-bottom: 8px; font-size: var(--fs-p); max-width: 100%; overflow-wrap: anywhere; }
.variant__label span { color: var(--muted); }
.variant__buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--btn-min, 72px), 100%), 1fr)); gap: 8px; }  /* Horizon 'equal-width-buttons' */
/* min-width 0 + anywhere-wrap: supplier values like "Top:95%Cotton+5%Elastane+Bottom:76%Polyester..." are one
   unbreakable word and pushed the two-piece set's page 146px wide on phones */
.variant__btn { position: relative; min-width: 0; }
.variant__btn input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.variant__btn span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--c2); text-align: center; line-height: 1.2; overflow-wrap: anywhere;  /* safe now: tracks are sized to the longest value, so only an over-long value wraps (break-word does not shrink in flex and re-widened the page) */ transition: box-shadow var(--ease), background var(--ease), color var(--ease); }
.variant__btn:hover span { box-shadow: inset 0 0 0 1px var(--fg); }
.variant__btn input:checked + span { background: var(--fg); color: var(--bg); box-shadow: inset 0 0 0 1px var(--fg); }
.variant__btn input:focus-visible + span { outline: 0.09375rem solid var(--fg); outline-offset: 2px; }
.variant__btn.is-unavailable span { color: var(--muted); background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--c2) 50%, transparent calc(50% + 0.5px)); }
.variant__btn.is-unavailable input:checked + span { background: rgb(0 0 0 / 0.55); color: var(--bg); }
.product__buy { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 4px; }
.qty { display: flex; align-items: center; height: 48px; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--c2); }
.qty__btn { width: 40px; height: 100%; background: none; border: 0; font-size: 1.1rem; }
.qty input { width: 36px; height: 100%; border: 0; background: none; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product__msg { min-height: 1.2em; font-size: var(--fs-p); color: var(--subdued); }
.product__desc { margin-top: 28px; }
.product__desc table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 8px 0 20px; font-size: 0.75rem; line-height: 1.3; }
.product__desc td, .product__desc th { border: 1px solid var(--c2); padding: 6px 8px; text-align: center; white-space: nowrap; }
.product__desc td p { margin: 0; }
.sticky-atc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; overflow: hidden; contain: inline-size; background: var(--bg); border-top: 1px solid var(--c2); padding-block: 10px calc(10px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform 0.25s ease; }
.sticky-atc.is-on { transform: none; }
.sticky-atc__inner { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sticky-atc__inner img { width: 40px; height: 60px; object-fit: cover; }
.sticky-atc__text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 0; overflow: hidden; font-size: var(--fs-p); line-height: 1.3; }
/* the long supplier titles must trim, not widen the bar: it pushed the set's page to 455px on a 390px phone */
.sticky-atc__title { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── cart ── */
.cart__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart__empty { padding: 40px 0; text-align: center; color: var(--subdued); }
.cart__count { font-weight: 400; color: var(--muted); font-size: var(--fs-p); }
.line { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--c2); }
.line img { width: 80px; height: 120px; object-fit: cover; background: rgb(0 0 0 / 0.04); }
.line__title { font-size: var(--fs-p); text-decoration: none; line-height: 1.35; }
.line__variant { color: var(--muted); font-size: 0.75rem; margin-top: 4px; }
.line__price { font-size: var(--fs-p); text-align: right; }
.line__qty { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.line__qty .qty { height: 36px; }
.line__qty .qty__btn { width: 32px; }
.line__remove { background: none; border: 0; padding: 0; color: var(--muted); font-size: 0.75rem; text-decoration: underline; text-underline-offset: 3px; }
.cart__foot { padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c2); display: flex; flex-direction: column; gap: 12px; }
.cart__row { display: flex; justify-content: space-between; font-weight: 700; font-size: 1rem; }
.cart__note { color: var(--muted); font-size: 0.75rem; }
.cart-page { padding-top: 24px; }
.cart-page h1 { margin-bottom: 16px; }
.cart-page [data-cart-page] { max-width: 42rem; }
.cart-page .cart__foot { padding: 20px 0 0; border-top: 0; }

/* ── pages, contact ── */
.page-main { padding-top: 40px; padding-bottom: 80px; }
.page-main__inner { max-width: calc(42rem + var(--margin) * 2); display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.page-main .rte { color: var(--subdued); width: 100%; }
.mark { width: 96px; height: auto; margin: 4px 0; }
.contact-main { padding-top: 40px; padding-bottom: 0; }
.contact-main .rte { margin-top: 32px; color: var(--subdued); }
.contact-form-section { padding-top: 32px; }
.contact-form { max-width: 36rem; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.contact-form__row { display: grid; gap: 14px; }
@media (min-width: 750px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-p); }
.inp { width: 100%; padding: 0.8rem; border: 0; border-radius: var(--r-input); box-shadow: 0 0 0 1px var(--c2); background: var(--bg); color: var(--c1); }
.inp:focus { outline: none; box-shadow: 0 0 0 1.5px var(--fg); }
textarea.inp { min-height: 140px; resize: vertical; }
.contact-form .button { align-self: flex-start; }
.form-msg { font-size: var(--fs-p); color: var(--subdued); }
.form-msg:empty { display: none; }
.form-msg a { display: inline-flex; margin-top: 10px; text-decoration: underline; }

/* ── footer ── */
.footer { margin-top: auto; background: var(--bg); }
.footer__main { padding-block: 30px; display: flex; flex-direction: column; gap: 20px; }
.footer__signup { display: flex; flex-direction: column; gap: 6px; max-width: 26rem; }
.footer__signup p { color: var(--subdued); }
.signup { position: relative; margin-top: 14px; }
.signup input[type='email'] { width: 100%; height: 48px; padding: 0 52px 0 20px; border: 0; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--c2); background: var(--bg); color: var(--c1); }
.signup input[type='email']:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--fg); }
.signup button { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; }
.signup button svg { width: 20px; height: 20px; }
.signup__msg { font-size: 0.75rem; min-height: 1em; }
.footer__utilities { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 16px 24px; font-size: 0.75rem; color: var(--subdued); border-top: 1px solid var(--c2); }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

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