/* ==========================================================================
   Shalsi — site styles
   1. Tokens   2. Base   3. Layout   4. Header   5. Components
   6. Home     7. Product   8. Ritual Delivery   9. Bag   10. Footer
   Breakpoints: 900px (tablet), 560px (phone)
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */

:root {
  --ink: #17272c;
  --ink-soft: #415054;
  --sage: #667154;
  --sage-dark: #4f5b40;
  --sage-wash: #f4f6f1;
  --cream: #f7f4ed;
  --paper: #fffdf8;
  --white: #fff;
  --error: #8a3a2a;
  --line: rgba(23, 39, 44, .16);
  --photo: #e7e7e7; /* backdrop grey of the product photos, shown behind and around them */
  --shadow: 0 18px 55px rgba(36, 34, 27, .1);

  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --max: 1180px;
  --gutter: 26px;
  --header-h: 92px;
  --section-y: 96px;
}

@media (max-width: 900px) {
  :root { --header-h: 78px; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; --section-y: 64px; }
}

/* 2. Base ----------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 7vw, 88px); letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 5vw, 58px); letter-spacing: -.025em; }
/* .h3 gives the h3 look to a heading whose outline level is h2. */
h3, .h3 { font-size: 25px; letter-spacing: normal; }

p { margin: 0 0 18px; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
p a, .notice a { text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: not-allowed; }
[hidden] { display: none !important; }

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

/* 3. Layout --------------------------------------------------------------- */

.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); }
.section.compact { padding-block: 64px; }
.section.tint { background: var(--cream); }
.section.sage { background: var(--sage); color: var(--white); }
.section.sage p,
.section.sage .eyebrow { color: var(--white); } /* full white: 5.2:1 on the green */

.page-hero { padding-block: 90px 72px; background: var(--cream); border-bottom: 1px solid var(--line); }
.page-hero > .container > :last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split > * { min-width: 0; }
/* Explicit ratios reserve space for lazy-loaded images. */
.split-media img { width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.prose { max-width: 820px; }
.prose h2 { margin-top: 52px; font-size: 34px; }
.prose > :first-child { margin-top: 0; }
.measure { max-width: 760px; }

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding-block: 64px 52px; }
}

@media (max-width: 560px) {
  .section.compact { padding-block: 24px 64px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .page-hero { padding-block: 48px 40px; }
  .prose h2 { margin-top: 40px; font-size: 28px; }
}

/* 4. Header --------------------------------------------------------------- */

.announcement {
  padding: 9px var(--gutter);
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav-start, .nav-end, .nav-links { display: flex; align-items: center; gap: 26px; }
.nav-end { justify-content: flex-end; }
.nav-links, .cart-pill, .mobile-menu a { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a:hover, .cart-pill:hover { color: var(--sage-dark); }

.logo-link { display: block; }
.logo-link img { width: auto; height: 62px; }

.cart-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; } /* 44px tap area */
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 99px;
  background: var(--sage);
  color: var(--white);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
}
/* Digits have no descender, so on high-density screens the number rides high; this re-centres it. */
@media (min-resolution: 1.5dppx) {
  .cart-count { padding-top: 2px; }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  padding: 14px 10px;
  border: 0;
  background: none;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7.25px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7.25px) rotate(-45deg); }

.mobile-menu { display: none; padding: 4px var(--gutter) 20px; border-top: 1px solid var(--line); }
.mobile-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open { display: block; }
  .logo-link img { height: 54px; }
}

@media (max-width: 560px) {
  .announcement { font-size: 10px; }
  .logo-link img { height: 48px; }
}

/* 5. Components ----------------------------------------------------------- */

.eyebrow {
  margin-bottom: 12px;
  color: var(--sage);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.62;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.lede { max-width: 720px; font-size: 19px; }

.microcopy { margin: 12px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  letter-spacing: .12em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover:not(:disabled) { background: var(--sage-dark); border-color: var(--sage-dark); color: var(--white); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); }
.btn.sage { background: var(--sage); border-color: var(--sage); }
.btn.light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn.block { width: 100%; padding-inline: 12px; } /* full width needs less side padding: keeps the label on one line */

.link-btn {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.card { padding: 30px; border: 1px solid var(--line); background: var(--white); }
.card > :last-child { margin-bottom: 0; }

.notice {
  padding: 14px 16px;
  border-left: 3px solid var(--sage);
  background: var(--sage-wash);
  color: var(--ink-soft);
  font-size: 13px;
}

.kicker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.kicker { display: grid; align-content: center; gap: 6px; padding: 28px 12px; background: var(--paper); text-align: center; }
.kicker strong { font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.2; }
.kicker span { color: var(--ink-soft); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.split .kicker-grid { grid-template-columns: repeat(2, 1fr); }
.section.sage .kicker-grid { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .22); }
.section.sage .kicker { background: var(--sage); }
.section.sage .kicker span { color: var(--white); }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-family: var(--sans); font-size: 20px; transition: transform .2s ease; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p { max-width: 800px; margin-bottom: 20px; }

.table { width: 100%; margin-top: 8px; border-collapse: collapse; background: var(--white); }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--sage); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.table .microcopy { display: block; margin-top: 2px; }
.table td:nth-child(2), .table td strong { white-space: nowrap; } /* a price or an option name never breaks across lines */

.empty-state { padding-block: 48px; text-align: center; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: calc(100vw - 48px);
  padding: 13px 18px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}

.product-card { display: block; border: 1px solid var(--line); background: var(--white); overflow: hidden; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.product-card:hover img { transform: scale(1.018); }
.product-card-copy { position: relative; padding: 24px; background: var(--white); }
.product-card-copy .h3 { margin-bottom: 8px; font-size: 28px; }
.product-card-copy p { margin-bottom: 8px; }
.product-card .meta { margin-bottom: 8px; color: var(--sage); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.product-card .price { font-weight: 600; }

.contact-link { display: block; margin-bottom: 14px; font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); overflow-wrap: anywhere; }

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

@media (max-width: 560px) {
  .lede { font-size: 17px; }
  .card { padding: 22px; }
  .actions .btn { flex: 1 1 100%; }
  .accordion summary { font-size: 19px; }
  .table th, .table td { padding: 12px 8px; font-size: 14px; }
  .toast { right: 18px; bottom: 18px; left: 18px; max-width: none; text-align: center; }
}

/* Narrowest phones: small allowances so nothing breaks awkwardly or spills. */
@media (max-width: 380px) {
  .table td strong { white-space: normal; }
  .table th, .table td { padding-inline: 6px; font-size: 13px; }
  .kicker strong { font-size: 18px; } /* keeps a figure such as "every 8 weeks" on one line */
  .btn.block { padding-inline: 8px; letter-spacing: .06em; } /* keeps the checkout label on one line */
}

/* 6. Home ----------------------------------------------------------------- */

.hero { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 720px; background: var(--cream); }
.hero-copy {
  display: flex;
  align-items: center;
  padding: 90px 56px 90px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.hero-copy-inner { max-width: 600px; }
.hero-media { position: relative; background: var(--photo); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: 30px;
  left: 30px;
  padding: 12px 18px;
  background: rgba(255, 253, 248, .92);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
}

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 36px;
  padding: 22px var(--gutter);
  border-block: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quote {
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 50px);
  line-height: 1.24;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 64px var(--gutter); }
  .hero-media { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .hero-copy { padding-block: 48px; }
  .hero-media { aspect-ratio: 1; }
  .hero-badge { bottom: 18px; left: 18px; font-size: 17px; }
  .strip { gap: 8px 22px; padding-block: 18px; font-size: 11px; }
}

/* 7. Product -------------------------------------------------------------- */

.product-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 68px; align-items: start; }
.product-layout > * { min-width: 0; }

.product-gallery { position: sticky; top: calc(var(--header-h) + 24px); }

.gallery-main {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--photo);
  cursor: zoom-in;
}
.gallery-main img { width: 100%; }
.gallery-main svg {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, .92);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 1px solid var(--line); background: var(--photo); aspect-ratio: 1; overflow: hidden; }
/* The second pixel of the ring is drawn outside the box: nothing shifts, and the photo cannot cover it. */
.gallery-thumbs button:hover, .gallery-thumbs button.active { border-color: var(--sage); box-shadow: 0 0 0 1px var(--sage); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }

/* Sized so the image area is square, like the photos: the picture fills it edge to edge. */
.gallery-modal {
  width: min(960px, 96vw, calc(94dvh - 100px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}
.gallery-modal[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.gallery-modal::backdrop { background: rgba(8, 14, 16, .82); }
.gallery-modal-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.gallery-modal-tools { display: flex; align-items: center; gap: 8px; }
.gallery-modal-tools span { min-width: 54px; color: var(--ink-soft); font-size: 12px; text-align: center; }
.gallery-modal button { min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); }
.gallery-modal button:hover { background: var(--cream); }
.gallery-modal-close { font-size: 25px; line-height: 1; }
.gallery-modal-view { position: relative; min-height: 0; aspect-ratio: 1; }
.gallery-modal-stage { height: 100%; overflow: hidden; background: var(--photo); touch-action: none; user-select: none; -webkit-user-select: none; }
.gallery-modal-stage.is-zoomed { cursor: grab; }
.gallery-modal-stage.is-dragging { cursor: grabbing; }
.gallery-modal-stage img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
/* Previous / next arrows sit over the image edges, outside the stage so dragging never swallows their clicks. */
.gallery-modal .gallery-modal-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 253, 248, .92);
  transform: translateY(-50%);
}
.gallery-modal .gallery-modal-nav:hover { background: var(--white); }
.gallery-modal-nav.prev { left: 12px; }
.gallery-modal-nav.next { right: 12px; }
.gallery-modal-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gallery-modal-note {
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.product-title { margin-bottom: 8px; font-size: clamp(40px, 5vw, 54px); }
.product-subtitle { margin-bottom: 16px; color: var(--sage); font-family: var(--serif); font-size: 25px; font-style: italic; line-height: 1.2; }
.product-price { margin-block: 22px 0; font-size: 24px; line-height: 1.2; }

.purchase-box, .subscription-box { margin-top: 20px; padding: 20px; border: 1px solid var(--line); }
.purchase-box { background: var(--white); }
.subscription-box { background: var(--cream); }
.subscription-box .h3 { margin-bottom: 10px; }
.subscription-box p { margin-bottom: 14px; }
.subscription-box strong { color: var(--ink); }
.subscription-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 11px;
  border-radius: 99px;
  background: var(--sage);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.option-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.option-btn { padding: 12px 6px; border: 1px solid var(--line); background: var(--white); font-size: 12px; line-height: 1.5; text-align: center; }
.option-btn:hover, .option-btn.active { border-color: var(--sage); }
.option-btn.active { background: var(--sage-wash); box-shadow: inset 0 0 0 1px var(--sage); }
.option-btn strong { display: block; font-size: 14px; }

.qty-row { display: flex; gap: 10px; margin-top: 14px; }
.qty-row .btn { flex: 1; }
.qty { display: flex; height: 48px; border: 1px solid var(--line); background: var(--white); }
.qty button { width: 44px; border: 0; background: none; font-size: 18px; }
.qty input { width: 44px; padding: 0; border: 0; background: none; font-size: 16px; text-align: center; }

.detail-list { margin: 24px 0 0; padding: 0; list-style: none; }
.detail-list li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-list strong { text-align: right; }

.benefit { padding: 28px 0 0; border-top: 1px solid var(--ink); }
.benefit .num { margin-bottom: 20px; color: var(--sage); font-family: var(--serif); font-size: 18px; }
.benefit p { margin-bottom: 0; }

.attribute-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 0; padding: 0; list-style: none; }
.attribute-grid li {
  padding: 16px 8px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}
.attribute-grid li::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 13px;
}

@media (hover: none) {
  .gallery-modal-note { display: none; }
}

@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; }
}

@media (max-width: 560px) {
  .gallery-thumbs { gap: 8px; }
  .gallery-main svg { top: 10px; right: 10px; }
  .gallery-modal { width: 100vw; height: 100dvh; }
  .gallery-modal-view { aspect-ratio: auto; }
  .purchase-box, .subscription-box { padding: 16px; }
  .option-btn strong { font-size: 13px; }
  .attribute-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* 8. Ritual Delivery ------------------------------------------------------ */

.ritual-builder-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; margin-top: 18px; }
.ritual-control { min-width: 0; padding: 14px; border: 1px solid var(--line); background: var(--white); }
.ritual-control label { display: block; margin-bottom: 9px; color: var(--sage); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
/* Number inputs keep the native spinner on purpose. */
.ritual-control input, .ritual-control select {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  font-size: 16px;
}
.ritual-control input.is-invalid { border-color: var(--error); }
.ritual-frequency { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: 8px; }
.field-error:empty { display: none; }
.field-error { margin-top: 6px; color: var(--error); font-size: 12px; line-height: 1.5; }
.ritual-summary { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

@media (max-width: 560px) {
  .ritual-builder-grid { grid-template-columns: 1fr; }
}

/* 9. Bag ------------------------------------------------------------------ */

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.cart-layout.is-empty { grid-template-columns: 1fr; }

.cart-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { padding-top: 0; }
.cart-item img { aspect-ratio: 1; object-fit: cover; }
.cart-item .h3 { margin-bottom: 6px; }
.cart-item p { margin-bottom: 4px; }
.cart-item-price { display: grid; gap: 2px; text-align: right; }
.cart-item-price span { color: var(--ink-soft); font-size: 14px; }

.cart-summary { position: sticky; top: calc(var(--header-h) + 24px); padding: 26px; border: 1px solid var(--line); background: var(--white); }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-row.total { margin-top: 8px; border-bottom: 0; font-size: 20px; font-weight: 700; }
.cart-summary .link-btn { margin-top: 8px; }

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; gap: 32px; }
  .cart-summary { position: static; }
}

@media (max-width: 560px) {
  .cart-item { grid-template-columns: 84px 1fr; align-items: start; gap: 6px 14px; }
  .cart-item img { grid-row: span 2; }
  .cart-item-price { grid-column: 2; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; text-align: left; }
  .cart-summary { padding: 20px; }
}

/* 10. Footer -------------------------------------------------------------- */

.site-footer { padding: 64px 0 26px; border-top: 1px solid var(--line); background: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 42px; }
.footer-grid p { max-width: 300px; font-size: 14px; }
.footer-logo { width: 148px; aspect-ratio: 1348 / 725; margin-bottom: 18px; }
.footer-email { font-size: 13px; }
.footer-col h2 { margin-bottom: 12px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; }
.footer-col a { display: block; padding: 6px 0; color: var(--ink-soft); font-size: 13px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 20px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}
/* 40px tap targets around 18px icons; the negative margin lines the last icon up with the rule above. */
.footer-social { display: flex; gap: 4px; margin: -8px -11px -8px 0; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; }
.footer-social a:hover { color: var(--ink); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .site-footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-col a { padding: 9px 0; }
}
