/*
  Irrawaddy Leather, Australian theme redesign mockups (shared by every page).
  Brief: review/australian-critique.md, section 3. Light theme only.
  Ornament is limited to three devices: the iron band above the footer,
  the trust bar, and 1px hairlines. No dashed rules, rivets, offset shadows,
  body grain or glare.
*/

@font-face {
  font-family: "Roboto Slab";
  src: url("fonts/RobotoSlab-VF.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2f1ec;
  --sand: #e4d6bc;
  --ink: #23211e;
  --ink-2: #4a4741;
  --line: #d6d0c4;
  --ochre: #a3402a;
  --ochre-deep: #7e2f1c;
  --gum: #3e5c4c;
  --gum-pale: #c9d6cb;
  --iron: #8e918c;
  --white: #fff;

  --slab: "Roboto Slab", Rockwell, "Rockwell Nova", Georgia, serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* spacing scale: 4 8 12 16 24 32 48 64 96 */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s6: 24px;
  --s8: 32px;
  --s12: 48px;
  --s16: 64px;
  --s24: 96px;

  --gutter: 32px;
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
    --header-h: 56px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px / 1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

main {
  flex: 1 0 auto;
}

[hidden] {
  /* biome-ignore lint/complexity/noImportantStyles: [hidden] must beat component display rules */
  display: none !important;
}

img,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--slab);
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
}

h2 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ochre-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.on-dark :focus-visible,
.hero :focus-visible,
.tile :focus-visible {
  outline-color: var(--paper);
}

@media (max-width: 760px) {
  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }
}

/* ---------- Helpers ---------- */

.wrap {
  width: min(1240px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.section {
  padding-block: var(--s24);
}

.section--flush {
  padding-top: 0;
}

@media (max-width: 760px) {
  .section {
    padding-block: var(--s16);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -64px;
  left: var(--s2);
  z-index: 100;
  padding: var(--s3) var(--s4);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.skip:focus {
  top: var(--s2);
}

.small {
  font-size: 14px;
  line-height: 1.5;
}

.muted {
  color: var(--ink-2);
}

.lede {
  max-width: 65ch;
  font-size: 18px;
  line-height: 1.6;
}

.i {
  flex: none;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nowrap {
  white-space: nowrap;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons, links, inputs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: 0 var(--s6);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--ochre);
  color: var(--white);
  font: 600 15px / 1 var(--ui);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  background: var(--ochre-deep);
  color: var(--white);
}

.btn:active {
  transform: translateY(1px);
}

.btn--secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  background: var(--line);
  color: var(--ink-2);
  cursor: not-allowed;
}

.link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ochre-deep);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link:hover {
  color: var(--ink);
}

.link--arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.link--arrow .i {
  width: 16px;
  height: 16px;
}

.link--light,
.link--light:hover {
  color: var(--white);
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--ochre);
}

.icon-btn .i {
  width: 24px;
  height: 24px;
}

.count {
  position: absolute;
  top: 4px;
  right: 2px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius);
  background: var(--ochre);
  color: var(--white);
  font: 600 11px / 1 var(--ui);
}

.field {
  display: grid;
  align-content: start;
  gap: var(--s2);
  margin: 0;
}

.field label,
.label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.field .opt {
  color: var(--ink-2);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: 400 16px / 1.4 var(--ui);
}

textarea {
  padding: var(--s3) var(--s4);
  resize: vertical;
}

input::placeholder {
  color: var(--ink-2);
  opacity: 0.85;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

select {
  appearance: none;
  padding-right: var(--s12);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 52%,
    calc(100% - 16px) 52%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--ochre-deep);
  box-shadow: inset 0 0 0 1px var(--ochre-deep);
}

.field-error {
  margin: 0;
  color: var(--ochre-deep);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.field-error[hidden] {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: 500 14px / 1 var(--ui);
  white-space: nowrap;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Trust bar, header ---------- */

.trustbar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding-inline: var(--gutter);
  background: var(--paper);
  color: var(--gum);
  font: 500 14px / 1 var(--ui);
  text-align: center;
  white-space: nowrap;
}

.trustbar span + span::before {
  content: "\00b7";
  margin-inline: 0.7em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.site-header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  justify-self: start;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--ink);
}

.logo__mark {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ochre);
}

.logo__mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 0 100% 0 100%;
  background: var(--gum-pale);
}

.logo__word {
  display: grid;
  gap: 4px;
  line-height: 1;
}

.logo__name {
  font: 700 22px / 1 var(--slab);
  letter-spacing: -0.005em;
}

.logo__sub {
  color: var(--ochre-deep);
  font: 600 10px / 1 var(--ui);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: var(--s8);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font: 500 15px / 1 var(--ui);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--ochre);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: var(--s1);
}

.menu-btn {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .site-header {
    transition: transform 0.2s var(--ease);
  }
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

@media (max-width: 760px) {
  .trustbar .trustbar__opt {
    display: none;
  }

  .site-header__bar {
    grid-template-columns: 44px 1fr 44px;
  }

  .nav,
  .header-actions .wish-link {
    display: none;
  }

  .menu-btn {
    display: inline-grid;
    justify-self: start;
  }

  .logo {
    justify-self: center;
  }

  .logo__mark {
    width: 26px;
    height: 26px;
  }

  .logo__mark::after {
    inset: 7px;
  }

  .logo__name {
    font-size: 20px;
  }
}

/* mobile menu sheet */

.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) var(--gutter) env(safe-area-inset-bottom);
  background: var(--paper);
  visibility: hidden;
  opacity: 0;
}

.menu-sheet.is-open {
  visibility: visible;
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .menu-sheet {
    transition:
      opacity 0.18s var(--ease),
      visibility 0s 0.18s;
  }

  .menu-sheet.is-open {
    transition: opacity 0.18s var(--ease);
  }
}

.menu-sheet__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
}

.menu-sheet__list {
  display: grid;
  margin-top: var(--s4);
}

.menu-sheet__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 500 22px / 1.2 var(--slab);
  text-decoration: none;
}

.menu-sheet__list .small {
  color: var(--ink-2);
  font: 500 14px / 1 var(--ui);
}

.menu-sheet__foot {
  margin-top: auto;
  padding-block: var(--s6);
  color: var(--gum);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Footer ---------- */

.iron {
  height: 12px;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.22),
      rgba(255, 255, 255, 0) 45%,
      rgba(0, 0, 0, 0.16)
    ),
    repeating-linear-gradient(
      90deg,
      #6f726e 0,
      var(--iron) 5px,
      #bec1bc 10px,
      var(--iron) 15px,
      #6f726e 20px
    );
}

.site-footer {
  background: var(--ink);
  color: #c9c6bd;
  font-size: 14px;
  line-height: 1.5;
}

.site-footer a {
  color: #e6e3da;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s12);
  padding-block: var(--s16) var(--s12);
}

.footer__title {
  margin: 0 0 var(--s3);
  color: var(--paper);
  font: 600 14px / 1.4 var(--ui);
}

.footer__list {
  display: grid;
  gap: var(--s1);
}

.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.footer__news {
  display: grid;
  align-content: start;
  gap: var(--s3);
}

.footer__news .footer__title {
  margin: 0;
}

.footer__news .row {
  display: flex;
  gap: var(--s2);
}

.footer__news input {
  min-width: 0;
  border-color: #5a5750;
  background: transparent;
  color: var(--paper);
}

.footer__news input::placeholder {
  color: #b9b5aa;
}

.footer__news .btn {
  padding-inline: var(--s4);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s6);
  padding-block: var(--s6);
  border-top: 1px solid #3a3733;
  color: #b9b5aa;
  font-size: 14px;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s8) var(--s6);
    padding-block: var(--s12) var(--s8);
  }
}

@media (max-width: 760px) {
  .footer__list a {
    min-height: 44px;
  }

  .footer__news {
    grid-column: 1 / -1;
  }
}

/* ---------- Product card (shared by home, shop, PDP, cart) ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand);
}

.card__media picture,
.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__alt {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .card__alt {
    transition: opacity 0.18s var(--ease);
  }
}

.card:hover .card__alt,
.card:focus-within .card__alt {
  opacity: 1;
}

/* heart toggle (card and product page): off icon at rest, on icon when pressed */
.toggle .i--on,
.toggle[aria-pressed="true"] .i--off {
  display: none;
}

.toggle[aria-pressed="true"] .i--on {
  display: block;
  color: var(--ochre);
}

.wish {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: rgba(242, 241, 236, 0.92);
  color: var(--ink);
  cursor: pointer;
}

.wish:hover {
  color: var(--ochre);
}

.quick {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: flex;
  height: 48px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  transform: translateY(100%);
}

@media (prefers-reduced-motion: no-preference) {
  .quick {
    transition: transform 0.18s var(--ease);
  }
}

.card:hover .quick,
.card:focus-within .quick,
.quick.is-demo {
  transform: none;
}

.quick button {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 600 14px / 1 var(--ui);
  cursor: pointer;
}

.quick button:first-child {
  border-left: 0;
}

.quick button:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}

.quick button:disabled {
  color: var(--iron);
  text-decoration: line-through;
  cursor: not-allowed;
}

.quick button:focus-visible {
  outline-offset: -3px;
}

.card__plus {
  display: none;
}

.card__body {
  display: grid;
  gap: var(--s1);
  padding-top: var(--s4);
}

.card__name {
  font: 500 20px / 1.3 var(--slab);
}

.card__name a {
  color: var(--ink);
  text-decoration: none;
}

.card__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card__name a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.price {
  color: var(--ochre);
  font: 600 16px / 1.4 var(--ui);
  font-variant-numeric: tabular-nums;
}

.dots {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.dots i {
  width: 12px;
  height: 12px;
  margin-right: -2px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px rgba(35, 33, 30, 0.22);
}

@media (hover: none), (max-width: 760px) {
  .quick {
    display: none;
  }

  .card__plus {
    position: absolute;
    right: var(--s2);
    bottom: var(--s2);
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
  }
}

/* editorial tile: sits in the grid like a card, text over a dark photo */

.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100%;
  overflow: hidden;
  background: #2b2723;
  color: var(--white);
}

.tile picture,
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(35, 33, 30, 0.88) 0%,
    rgba(35, 33, 30, 0.45) 45%,
    rgba(35, 33, 30, 0) 75%
  );
}

.tile__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s3);
  padding: var(--s6);
}

.tile h3 {
  color: var(--white);
  font-weight: 700;
}

.tile .link--arrow {
  justify-self: start;
  white-space: nowrap;
}

/* ---------- Home ---------- */

.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: #2b2723;
  color: var(--white);
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(35, 33, 30, 0.82) 0%,
      rgba(35, 33, 30, 0.5) 30%,
      rgba(35, 33, 30, 0) 62%
    ),
    linear-gradient(
      to right,
      rgba(35, 33, 30, 0.55) 0%,
      rgba(35, 33, 30, 0) 52%
    );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-bottom: var(--s16);
}

.hero__text {
  display: grid;
  gap: var(--s4);
  max-width: 520px;
}

.display {
  color: var(--white);
  font: 700 56px / 1.05 var(--slab);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__sub {
  max-width: 520px;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: var(--s6);
  margin-top: var(--s2);
}

@media (max-width: 760px) {
  .hero {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .hero picture,
  .hero img {
    object-position: 50% 0;
  }

  .hero__inner {
    padding-bottom: var(--s6);
  }

  .hero::after {
    background: linear-gradient(
      to top,
      rgba(35, 33, 30, 0.9) 0%,
      rgba(35, 33, 30, 0.7) 34%,
      rgba(35, 33, 30, 0) 66%
    );
  }

  .display {
    font-size: 36px;
    line-height: 1.1;
  }

  .hero__sub {
    font-size: 16px;
  }

  .hero__cta {
    gap: var(--s4);
  }
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s6);
  margin-bottom: var(--s8);
}

.newin {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s6);
}

@media (max-width: 900px) {
  .newin {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .newin {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72vw;
    gap: var(--s4);
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .newin > * {
    scroll-snap-align: start;
  }

  .newin::-webkit-scrollbar {
    display: none;
  }

  .newin .tile {
    min-height: 0;
    aspect-ratio: 4 / 5;
    align-self: start;
  }

  .section-head {
    margin-bottom: var(--s6);
  }
}

.split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s16);
  align-items: center;
}

.split__media {
  background: var(--sand);
}

.split__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.split__text {
  display: grid;
  gap: var(--s6);
  max-width: 440px;
}

.facts {
  display: grid;
  gap: var(--s6);
}

.facts li {
  display: grid;
  gap: var(--s1);
}

.facts strong {
  font: 500 18px / 1.3 var(--slab);
}

.facts span {
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--s8);
  }

  .split__text {
    max-width: none;
  }
}

.fitcare {
  background: var(--sand);
}

.fitcare__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fitcare__item {
  display: grid;
  align-content: start;
  gap: var(--s3);
  padding: var(--s16) var(--s8);
  border-left: 1px solid rgba(35, 33, 30, 0.18);
}

.fitcare__item:first-child {
  padding-left: 0;
  border-left: 0;
}

.fitcare__item .link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.fitcare__item p {
  max-width: 34ch;
  text-wrap: pretty;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .fitcare__grid {
    grid-template-columns: 1fr;
  }

  .fitcare__item {
    padding: var(--s6) 0;
    border-left: 0;
    border-top: 1px solid rgba(35, 33, 30, 0.18);
  }

  .fitcare__item:first-child {
    border-top: 0;
  }

  .fitcare {
    padding-block: var(--s6);
  }
}

.news {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8);
  padding-block: var(--s12);
}

.news__form {
  display: flex;
  gap: var(--s2);
  width: min(480px, 100%);
}

.news__form input {
  min-width: 0;
}

@media (max-width: 760px) {
  .news {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s4);
    padding-block: var(--s12);
  }

  .news__form {
    flex-direction: column;
    width: 100%;
  }
}

/* ---------- Shop ---------- */

.page-head {
  display: flex;
  align-items: baseline;
  gap: var(--s4);
  padding-top: var(--s12);
}

.page-head .count-inline {
  color: var(--ink-2);
  font-size: 16px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  margin-block: var(--s6) var(--s8);
  padding-block: var(--s4);
  border-block: 1px solid var(--line);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.sort {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.sort label {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

.sort select {
  width: auto;
  min-width: 190px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 500;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s12) var(--s6);
}

.grid .tile--wide {
  grid-column: span 2;
}

.grid-note {
  padding-block: var(--s12) var(--s24);
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .page-head {
    padding-top: var(--s8);
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
    margin-block: var(--s4) var(--s6);
    padding-block: var(--s3);
  }

  .chips {
    flex-wrap: nowrap;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    position: relative;
  }

  .chip::after {
    content: "";
    position: absolute;
    inset: -4px 0;
  }

  .sort {
    justify-content: space-between;
  }

  .sort select {
    min-height: 44px;
  }

  .grid {
    gap: var(--s8) var(--s4);
  }

  .grid .card__name {
    font-size: 16px;
  }

  .grid .card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s1);
  }

  .grid .tile--wide {
    grid-column: auto;
  }

  .grid .tile h3 {
    font-size: 16px;
  }

  .grid .tile .link--arrow {
    font-size: 14px;
  }

  .grid .tile__body {
    padding: var(--s4);
  }

  .also .grid > :nth-child(3) {
    display: none;
  }

  .grid-note {
    padding-block: var(--s8) var(--s16);
  }
}

@media (max-width: 380px) {
  .grid .tile .link--arrow .i {
    display: none;
  }
}

/* ---------- Product page ---------- */

.crumbs {
  padding-block: var(--s6) var(--s6);
  color: var(--ink-2);
  font-size: 14px;
}

.crumbs ol {
  display: flex;
  gap: var(--s2);
}

.crumbs li + li::before {
  content: "/";
  margin-right: var(--s2);
  color: var(--ink-2);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .crumbs a {
    min-height: 44px;
  }
}

.crumbs a:hover {
  color: var(--ink);
}

.pdp {
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-template-areas:
    "gallery buy"
    "details buy";
  column-gap: var(--s16);
  row-gap: var(--s12);
  align-items: start;
  padding-bottom: var(--s24);
}

.pdp > * {
  min-width: 0;
}

.wrap-gallery {
  grid-area: gallery;
}

.pdp-details {
  grid-area: details;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
}

.g-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--white);
  cursor: zoom-in;
}

.g-item:nth-of-type(1),
.g-item:nth-of-type(4) {
  grid-column: span 2;
}

.g-item img,
.g-item picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-caption {
  grid-column: 1 / -1;
  margin-top: calc(-1 * var(--s3));
  color: var(--ink-2);
  font-size: 14px;
}

.g-caption--m {
  display: none;
}

.dots-nav {
  display: none;
}

.buy {
  grid-area: buy;
  position: sticky;
  top: calc(var(--header-h) + var(--s6));
  display: grid;
  gap: var(--s6);
}

.buy__sub {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}

.buy__head {
  display: grid;
  gap: var(--s2);
}

.buy__price {
  color: var(--ochre);
  font: 600 24px / 1.3 var(--ui);
  font-variant-numeric: tabular-nums;
}

.buy__free {
  color: var(--gum);
  font-size: 14px;
  font-weight: 600;
}

.opt-group {
  display: grid;
  gap: var(--s3);
  min-width: 0;
}

.opt-group .label span {
  color: var(--ink-2);
  font-weight: 400;
}

.opt-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.opt-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pick-size {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: 600 15px / 1 var(--ui);
  cursor: pointer;
}

.pick-size:hover {
  border-color: var(--ink);
}

input:checked + .pick-size {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.pick-swatch {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(35, 33, 30, 0.25);
  cursor: pointer;
}

input:focus-visible + .pick-size,
input:focus-visible + .pick-swatch {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

input:disabled + .pick-size {
  border-color: var(--line);
  background: transparent;
  color: var(--iron);
  text-decoration: line-through;
  cursor: not-allowed;
}

input:checked + .pick-swatch {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.fit-note {
  margin-top: var(--s3);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.buy__cta {
  display: flex;
  gap: var(--s2);
}

.buy__cta .btn:first-child {
  flex: 1;
}

.icon-square {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-square:hover {
  background: var(--ink);
  color: var(--paper);
}

.icon-square[aria-pressed="true"]:hover .i--on {
  color: var(--paper);
}

.delivery {
  display: grid;
  gap: var(--s3);
  padding: var(--s4);
  border-radius: var(--radius);
  background: var(--sand);
}

.delivery strong {
  font-weight: 600;
}

.delivery__post {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
}

.delivery__post label {
  font-size: 14px;
  font-weight: 600;
}

.delivery__post input {
  width: 96px;
  min-height: 40px;
  padding: 0 var(--s3);
  text-align: center;
  letter-spacing: 0.08em;
}

.delivery__res {
  color: var(--gum);
  font-size: 14px;
  font-weight: 600;
}

.returns {
  font-size: 14px;
}

.acc {
  border-top: 1px solid var(--line);
}

.acc:last-of-type {
  border-bottom: 1px solid var(--line);
}

.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.acc summary::-webkit-details-marker {
  display: none;
}

.acc summary .i--minus,
.acc[open] summary .i--plus {
  display: none;
}

.acc[open] summary .i--minus {
  display: block;
}

.acc__body {
  padding-bottom: var(--s6);
  color: var(--ink-2);
}

.acc__body.lede {
  color: var(--ink);
}

.acc__body p + p {
  margin-top: var(--s3);
}

/* reviews */

.reviews {
  padding-block: var(--s24);
  border-top: 1px solid var(--line);
}

.reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  margin-bottom: var(--s8);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s3);
  margin-bottom: var(--s8);
}

.photo-strip > * {
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--sand);
}

.photo-strip picture,
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-strip--5 {
  grid-template-columns: repeat(5, 1fr);
}

.sample-note {
  margin-bottom: var(--s6);
}

.photo-strip .add {
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--s2);
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.reviews__empty {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s8);
  align-items: center;
}

.reviews__empty .add,
.photo-strip .add {
  text-decoration: none;
}

.reviews__empty .add {
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--s2);
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.reviews__empty .add:hover {
  background: var(--ink);
  color: var(--paper);
}

.empty-note {
  display: grid;
  gap: var(--s4);
  justify-items: start;
  max-width: 560px;
}

.empty-note h3 {
  font-weight: 700;
}

.reviews__preview {
  display: none;
}

.reviews[data-state="preview"] .reviews__preview {
  display: block;
}

.reviews[data-state="preview"] .reviews__empty {
  display: none;
}

.sample-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius);
  background: var(--gum-pale);
  color: var(--gum);
  font: 600 12px / 1.4 var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review .sample-tag {
  justify-self: start;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s8);
}

.review {
  display: grid;
  align-content: start;
  gap: var(--s3);
}

.review picture,
.review img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.review__who {
  color: var(--ink-2);
  font-size: 14px;
}

.also {
  padding-block: var(--s24);
  border-top: 1px solid var(--line);
}

.also .grid {
  grid-template-columns: repeat(3, 1fr);
}

/* sticky buy bar (mobile product page) */

.buybar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: none;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.buybar[hidden] {
  display: none;
}

.buybar__info {
  display: grid;
  line-height: 1.3;
}

.buybar__info .price {
  font-size: 18px;
}

.buybar .btn {
  flex: 1;
}

@media (max-width: 900px) {
  .pdp {
    grid-template-columns: 1fr;
    grid-template-areas:
      "gallery"
      "buy"
      "details";
    row-gap: var(--s8);
  }

  .buy {
    position: static;
  }

  .review-list,
  .also .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .crumbs {
    padding-block: var(--s4);
  }

  .pdp {
    row-gap: var(--s6);
    padding-bottom: var(--s16);
  }

  .pdp .wrap-gallery {
    margin-inline: calc(-1 * var(--gutter));
  }

  .gallery {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .g-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    cursor: default;
  }

  .g-caption {
    display: none;
  }

  .g-caption--m {
    display: block;
    padding: var(--s3) var(--gutter) 0;
    color: var(--ink-2);
    font-size: 14px;
  }

  .dots-nav {
    display: flex;
    justify-content: center;
    gap: var(--s2);
    padding-top: var(--s4);
  }

  .dots-nav span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
  }

  .dots-nav span[aria-current="true"] {
    background: var(--ink);
  }

  .buybar {
    display: flex;
  }

  .buybar[hidden] {
    display: none;
  }

  .reviews,
  .also {
    padding-block: var(--s16);
  }

  .reviews__empty {
    grid-template-columns: 1fr;
    gap: var(--s4);
    align-items: start;
  }

  .reviews__empty .add {
    grid-auto-flow: column;
    justify-content: center;
    gap: var(--s3);
    aspect-ratio: auto;
    height: 64px;
  }

  .reviews__head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s3);
    margin-bottom: var(--s6);
  }

  .photo-strip {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: var(--s6);
  }

  .photo-strip > :nth-child(n + 4) {
    display: none;
  }

  .review-list {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
}

/* ---------- Drawers, sheets, scrim, lightbox ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(35, 33, 30, 0.5);
  visibility: hidden;
  opacity: 0;
}

.scrim.is-open {
  visibility: visible;
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  background: var(--paper);
  visibility: hidden;
  transform: translateX(100%);
}

.drawer.is-open {
  visibility: visible;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .scrim {
    transition:
      opacity 0.18s var(--ease),
      visibility 0s 0.18s;
  }

  .scrim.is-open {
    transition: opacity 0.18s var(--ease);
  }

  .drawer {
    transition:
      transform 0.2s var(--ease),
      visibility 0s 0.2s;
  }

  .drawer.is-open {
    transition: transform 0.2s var(--ease);
  }
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s4) var(--s6);
  border-bottom: 1px solid var(--line);
}

.drawer__head h2 {
  font-size: 20px;
  font-weight: 500;
}

.drawer__body {
  flex: 1;
  padding: var(--s6);
  overflow-y: auto;
}

.drawer--sheet .drawer__body {
  padding-bottom: calc(var(--s6) + env(safe-area-inset-bottom));
}

.drawer__foot {
  display: grid;
  gap: var(--s3);
  padding: var(--s6) var(--s6) calc(var(--s6) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.drawer--guide {
  width: min(480px, 100%);
}

@media (max-width: 760px) {
  .drawer--cart,
  .drawer--sheet {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 85vh;
    transform: translateY(100%);
  }

  .drawer--cart.is-open,
  .drawer--sheet.is-open {
    transform: none;
  }

  .drawer--cart {
    height: 85vh;
  }
}

.cart-note {
  margin-bottom: var(--s4);
  color: var(--gum);
  font-size: 14px;
  font-weight: 600;
}

.mini-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--s4);
  padding-block: var(--s4);
  border-top: 1px solid var(--line);
}

.mini-line:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.mini-line picture,
.mini-line img {
  width: 72px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--sand);
}

.mini-line h3 {
  font: 500 16px / 1.3 var(--slab);
}

.mini-line__meta {
  color: var(--ink-2);
  font-size: 14px;
}

.totals {
  display: grid;
  gap: var(--s2);
  margin: 0;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
}

.totals dt {
  color: var(--ink-2);
}

.totals dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.totals .is-total {
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
}

.totals .is-total dt {
  color: var(--ink);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.guide-table th,
.guide-table td {
  padding: var(--s3) var(--s2);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.guide-table th {
  font-size: 14px;
  font-weight: 600;
}

.guide-table tbody th {
  font-size: 16px;
}

.guide-table tr.is-model {
  background: var(--gum-pale);
}

.guide-note {
  margin-bottom: var(--s4);
}

.guide-steps {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s4);
  color: var(--ink-2);
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
}

.size-grid button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: 600 15px / 1 var(--ui);
  cursor: pointer;
}

.size-grid button:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.size-grid button:disabled {
  color: var(--iron);
  text-decoration: line-through;
  cursor: not-allowed;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(35, 33, 30, 0.96);
  visibility: hidden;
  opacity: 0;
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox .icon-btn {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  color: var(--paper);
}

/* ---------- Cart and checkout ---------- */

.cart-head {
  display: flex;
  align-items: baseline;
  gap: var(--s4);
  padding-top: var(--s12);
  padding-bottom: var(--s8);
}

.cart-head .count-inline {
  color: var(--ink-2);
}

.cart-head.is-empty .count-inline {
  display: none;
}

.cart-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s16);
  align-items: start;
  padding-bottom: var(--s24);
}

.cart-lines {
  display: grid;
}

.line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: var(--s6);
  padding-block: var(--s6);
  border-top: 1px solid var(--line);
}

.line:last-child {
  border-bottom: 1px solid var(--line);
}

.line__img picture,
.line__img img {
  width: 96px;
  height: 120px;
  object-fit: cover;
  background: var(--sand);
}

.line__info {
  display: grid;
  align-content: start;
  gap: var(--s1);
}

.line__info h3 {
  font-size: 18px;
}

.line__info h3 a {
  color: var(--ink);
  text-decoration: none;
}

.line__info h3 a:hover {
  text-decoration: underline;
}

.line__meta {
  color: var(--ink-2);
  font-size: 14px;
}

.line__side {
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: var(--s3);
}

.line__price {
  font: 600 16px / 1.4 var(--ui);
  font-variant-numeric: tabular-nums;
}

.qty {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  margin-top: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.qty button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.qty button:hover {
  color: var(--ochre);
}

.qty button .i {
  width: 16px;
  height: 16px;
}

.qty output {
  min-width: 32px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cart-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: var(--s4);
}

.details {
  display: grid;
  gap: var(--s6);
  margin-top: var(--s16);
}

.details h2 {
  font-size: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s6) var(--s4);
}

.form-grid .c6 {
  grid-column: span 6;
}

.form-grid .c3 {
  grid-column: span 3;
}

.form-grid .c2 {
  grid-column: span 2;
}

.form-grid .c1 {
  grid-column: span 1;
}

.form-grid .c4 {
  grid-column: span 4;
}

.summary {
  position: sticky;
  top: calc(var(--header-h) + var(--s6));
  display: grid;
  gap: var(--s6);
  padding: var(--s8);
  border-radius: var(--radius);
  background: var(--sand);
}

.summary h2 {
  font-size: 20px;
  font-weight: 500;
}

.summary .totals dt {
  color: var(--ink-2);
}

.summary__hint {
  color: var(--gum);
  font-size: 14px;
  font-weight: 600;
}

.pay-note {
  font-size: 14px;
  color: var(--ink-2);
}

.how {
  display: grid;
  gap: var(--s3);
  padding-top: var(--s6);
  border-top: 1px solid rgba(35, 33, 30, 0.18);
}

.how h3 {
  font: 600 16px / 1.4 var(--ui);
}

.how ol {
  padding-left: var(--s6);
  list-style: decimal;
}

.how li {
  padding-left: var(--s1);
  font-size: 15px;
  line-height: 1.5;
}

.how li + li {
  margin-top: var(--s2);
}

.how li::marker {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.how li.is-now {
  font-weight: 600;
}

.confirm {
  display: grid;
  gap: var(--s6);
  margin-top: var(--s16);
}

.confirm h2 + .lede {
  margin-top: var(--s3);
}

.confirm__ref {
  display: grid;
  gap: var(--s1);
  padding: var(--s6);
  border-radius: var(--radius);
  background: var(--gum-pale);
  color: var(--gum);
}

.confirm__ref strong {
  color: var(--ink);
  font: 700 28px / 1.2 var(--slab);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.confirm textarea {
  min-height: 400px;
  padding: var(--s4);
  background: var(--white);
  font:
    400 14px / 1.6 ui-monospace,
    "SFMono-Regular",
    Menlo,
    Consolas,
    monospace;
  resize: vertical;
}

.confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

.confirm [hidden],
.details[hidden],
.cart-empty[hidden],
.cart-layout[hidden] {
  display: none;
}

.cart-empty {
  display: grid;
  justify-items: start;
  gap: var(--s4);
  padding-bottom: var(--s16);
}

.cart-empty + .section-head {
  margin-top: var(--s8);
}

.cart-empty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  padding-bottom: var(--s24);
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: var(--s8);
  }

  .summary {
    position: static;
  }

  .cart-empty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .cart-head {
    padding-top: var(--s8);
    padding-bottom: var(--s4);
  }

  .cart-layout {
    padding-bottom: var(--s16);
  }

  .line {
    grid-template-columns: 80px 1fr;
    gap: var(--s4);
    padding-block: var(--s4);
  }

  .line__img picture,
  .line__img img {
    width: 80px;
    height: 100px;
  }

  .line__side {
    grid-column: 2;
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
    justify-items: start;
  }

  .details {
    margin-top: var(--s8);
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s4);
  }

  .form-grid .c6,
  .form-grid .c4,
  .form-grid .c3 {
    grid-column: span 2;
  }

  .form-grid .c2,
  .form-grid .c1 {
    grid-column: span 1;
  }

  .summary {
    padding: var(--s6) var(--s4);
  }

  .confirm {
    margin-top: var(--s8);
  }

  .confirm__actions .btn {
    flex: 1 1 100%;
  }

  .cart-empty-grid {
    gap: var(--s4);
    padding-bottom: var(--s16);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion overrides every component */
    scroll-behavior: auto !important;
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion overrides every component */
    transition: none !important;
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion overrides every component */
    animation: none !important;
  }
}
