/* ==========================================================================
   MOH Skin Care — shared stylesheet
   Palette: white #FFFFFF · warm tint #F5F3EF · gold #C6A83B · ink #141414
   Mobile-first, no framework.
   ========================================================================== */

:root {
  --cream: #FFFFFF;
  --blush: #E9E4DC;
  --sage: #C6A83B;
  --sage-dark: #A98B27;
  --ink: #141414;
  --ink-soft: rgba(20, 20, 20, 0.66);
  --card: #FFFFFF;
  --line: rgba(20, 20, 20, 0.1);
  --tint: #F5F3EF;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(20, 20, 20, 0.06);
  --font-heading: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sage);
}

ul {
  list-style: none;
}

/* ---- Typography ---- */
h1, h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

h3 {
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.9rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

.section--tint {
  background-color: var(--tint);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: 0.9rem;
  color: var(--ink-soft);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9em 1.8em;
  border: 1px solid var(--sage);
  border-radius: 999px;
  background-color: var(--sage);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--sage-dark);
  border-color: var(--sage-dark);
  transform: translateY(-1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

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

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 0.3rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  background-color: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.25rem 1.25rem;
}

.site-nav a {
  display: block;
  padding: 0.8rem 0.25rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s ease;
}

.site-nav li:last-child a {
  border-bottom: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--sage);
}

.site-nav a[aria-current="page"] {
  color: var(--sage);
  font-weight: 700;
}

@media (min-width: 800px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    background: none;
    border: none;
    box-shadow: none;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 2rem;
    padding: 0;
  }

  .site-nav a {
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    font-size: 0.98rem;
  }

  .site-nav li:last-child a {
    border-bottom: 2px solid transparent;
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--sage);
  }
}

/* ---- Hero ---- */
.hero {
  padding-block: clamp(3.5rem, 10vw, 7rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero p.lead {
  margin-block: 1.25rem 2rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
  }
}

/* ---- Image placeholders ---- */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--tint);
  background-image: linear-gradient(150deg, #EFEBE4 0%, var(--tint) 55%, #E3DDD2 100%);
  background-size: cover;
}

.ph--alt {
  background-color: var(--ink);
  background-image: linear-gradient(150deg, #2A2A2A 0%, var(--ink) 60%, #000000 100%);
}

.ph svg {
  width: clamp(42px, 18%, 72px);
  height: auto;
  opacity: 0.45;
}

.ph .ph-label {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.5);
}

.ph--alt .ph-label {
  color: rgba(255, 255, 255, 0.75);
}

.ph--hero { aspect-ratio: 4 / 5; }
.ph--card { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
.ph--wide { aspect-ratio: 16 / 9; }

/* ---- Real product photography ---- */
.photo {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--blush);
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo--hero { aspect-ratio: 4 / 5; }
.photo--card { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--square { aspect-ratio: 1 / 1; border-radius: var(--radius-md); }

/* ---- Founder frame (photo + stat badge) ---- */
.founder-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.founder-frame .photo--hero {
  border-radius: var(--radius-md);
}

.founder-frame__badge {
  position: absolute;
  bottom: -24px;
  left: -20px;
  max-width: 240px;
  background: var(--ink);
  color: var(--cream);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.founder-frame__year {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--sage);
}

.founder-frame__label {
  margin-top: 4px;
  font-size: 0.8rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .founder-frame__badge {
    left: 12px;
    bottom: -20px;
    max-width: 200px;
    padding: 16px 18px;
  }
}

/* ---- Product cards ---- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1000px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20, 20, 20, 0.10);
}

.card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding-top: 1.15rem;
}

.card h3 {
  margin-bottom: 0.15rem;
}

.card .price {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.9rem;
  padding: 0.75em 1.4em;
}

.card .note {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: -0.75rem;
  margin-bottom: 1.25rem;
}

/* ---- Testimonial ---- */
.testimonial {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.testimonial blockquote {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.testimonial cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.testimonial .placeholder-note {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border: 1px dashed var(--blush);
  border-radius: 999px;
  padding: 0.25em 1em;
}

/* ---- CTA band ---- */
.cta-band {
  background-color: var(--ink);
  color: #FFFFFF;
  text-align: center;
}

.cta-band h2 {
  color: #FFFFFF;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 54ch;
  margin: 1rem auto 2rem;
}

.cta-band .btn {
  background-color: var(--sage);
  border-color: var(--sage);
  color: #FFFFFF;
}

.cta-band .btn:hover,
.cta-band .btn:focus-visible {
  background-color: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #FFFFFF;
}

/* ---- Prose (about page) ---- */
.prose {
  max-width: 66ch;
}

.prose p {
  margin-bottom: 1.35rem;
  color: var(--ink-soft);
}

.prose h2 {
  margin-block: 2.4rem 1rem;
}

.prose ul {
  margin: 0 0 1.35rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.prose ul li {
  margin-bottom: 0.5rem;
}

.prose ul li strong {
  color: var(--ink);
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ---- Values / info tiles ---- */
.tile-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
}

.tile {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.tile h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.tile p {
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.gallery-item .ph,
.gallery-item .photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
}

.gallery-item figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }
}

.contact-list {
  display: grid;
  gap: 1.1rem;
  margin-block: 1.75rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact-list .icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(198, 168, 59, 0.14);
}

.contact-list .icon svg {
  width: 19px;
  height: 19px;
  fill: var(--sage);
}

.contact-list strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.contact-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}

.contact-list a:hover {
  color: var(--sage);
  text-decoration: underline;
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.map-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---- Footer ---- */
.site-footer {
  background-color: var(--cream);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-block: 3.25rem 1.75rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
}

.site-footer .brand {
  color: var(--ink);
}

.site-footer .brand span {
  color: var(--sage);
}

.site-footer p {
  font-size: 0.92rem;
  margin-top: 0.9rem;
  max-width: 34ch;
}

.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}

.site-footer ul {
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--sage);
  text-decoration: underline;
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-whatsapp svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---- Page hero (interior pages) ---- */
.page-hero {
  padding-block: clamp(3rem, 8vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  margin-top: 1rem;
  max-width: 58ch;
  color: var(--ink-soft);
}

/* ---- Utility ---- */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* ---- Clickable product cards ---- */
.card[data-clickable] {
  cursor: pointer;
}

.card[data-clickable]:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

/* ---- Product modal ---- */
.product-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.product-modal.is-open {
  display: flex;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.6);
}

.product-modal-dialog {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(20, 20, 20, 0.35);
  width: 100%;
  max-width: 780px;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .product-modal-dialog {
    grid-template-columns: 1fr 1fr;
  }
}

.product-modal-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--blush);
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@media (min-width: 700px) {
  .product-modal-media {
    aspect-ratio: auto;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }
}

.product-modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.product-modal-body .price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 0.9rem;
}

.product-modal-body p:not(.price) {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.product-modal-body .btn {
  align-self: flex-start;
}

.product-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 1;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(20, 20, 20, 0.2);
  cursor: pointer;
}

.product-modal-close svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.product-modal-close:hover {
  background: var(--sage);
  color: var(--cream);
}

body.modal-open {
  overflow: hidden;
}

/* ==========================================================================
   Cart + Checkout
   ========================================================================== */

/* ---- Header cart icon ---- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cart-link:hover,
.cart-link:focus-visible {
  border-color: var(--sage);
  color: var(--sage);
}

.cart-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: var(--sage);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.cart-badge[hidden] {
  display: none;
}

/* ---- Add-to-cart toast ---- */
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 200;
  transform: translate(-50%, 12px);
  padding: 0.85em 1.4em;
  border-radius: 999px;
  background-color: var(--ink);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(20, 20, 20, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---- Product card actions (Add to cart + WhatsApp fallback) ---- */
.card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-actions .btn {
  margin-top: 0;
  align-self: stretch;
  width: 100%;
}

.card-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
}

.card-alt-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.card-alt-link:hover,
.card-alt-link:focus-visible {
  color: var(--sage);
}

/* ---- Cart page ---- */
.cart-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: 1.6fr 1fr;
  }
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1rem;
  padding: 1.1rem;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.cart-item .photo {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  aspect-ratio: auto;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.cart-item-top h3 {
  font-size: 1rem;
}

.cart-item-price {
  font-weight: 800;
  white-space: nowrap;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.qty-stepper button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--tint);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.qty-stepper button:hover {
  background: var(--blush);
}

.qty-stepper .qty-value {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-item-remove {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
}

.cart-item-remove:hover {
  color: var(--sage-dark);
}

.cart-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background-color: var(--tint);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
}

.cart-empty .btn {
  margin-top: 1.25rem;
}

/* ---- Order summary box (cart + checkout) ---- */
.summary-box {
  background-color: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.summary-box h3 {
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-block: 0.4rem;
}

.summary-row.summary-total {
  margin-top: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.summary-box .btn {
  width: 100%;
  margin-top: 1.25rem;
}

.summary-note {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---- Checkout form ---- */
.checkout-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1.5fr 1fr;
  }
}

.form-section {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-section h3 {
  margin-bottom: 1.1rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.delivery-options {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .delivery-options {
    grid-template-columns: 1fr 1fr;
  }
}

.delivery-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.delivery-option:has(input:checked) {
  border-color: var(--sage);
  background-color: var(--tint);
}

.delivery-option input {
  margin-top: 0.2rem;
}

.delivery-option-text strong {
  display: block;
  font-size: 0.92rem;
}

.delivery-option-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.1rem;
}

.checkout-alert {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background-color: #FBEAEA;
  border: 1px solid #E4B3B3;
  color: #8A2E2E;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.checkout-alert.is-visible {
  display: block;
}

.summary-box .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---- Confirmation pages ---- */
.confirm-panel {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}

.confirm-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: var(--tint);
  color: var(--sage);
}

.confirm-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.confirm-panel p {
  color: var(--ink-soft);
  margin-top: 1rem;
}

.confirm-order-box {
  margin-top: 2rem;
  padding: 1.5rem;
  text-align: left;
  background-color: var(--tint);
  border-radius: var(--radius-md);
}

.confirm-order-box .summary-row {
  font-size: 0.9rem;
}

.confirm-panel .btn-row {
  justify-content: center;
  margin-top: 2rem;
}

/* ---- Free delivery progress banner (cart + checkout) ---- */
.free-delivery-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.1rem;
  border-radius: var(--radius-sm);
  background-color: var(--tint);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  justify-content: center;
}

.free-delivery-banner.is-complete {
  background-color: #141414;
  border-color: #141414;
  color: #FFFFFF;
}

.products-perk {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background-color: var(--tint);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
