:root {
  --bg: #fafbf9;
  --surface: #f1eee7;
  --surface-soft: #fffdf7;
  --text: #001447;
  --muted: #60687a;
  --line: #e3dfd6;
  --accent: #081c57;
  --accent-soft: #d8d2c5;
  --highlight: #fffdf7;
  --shadow: 0 20px 60px rgba(8, 28, 87, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 80% -10%, var(--highlight), var(--bg) 42%);
  color: var(--text);
  line-height: 1.45;
}

body.gate-open {
  overflow: hidden;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding-inline: 0;
}

.entrance-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(3, 7, 19, 0.55);
  backdrop-filter: blur(3px);
}

.entrance-gate.is-hidden {
  display: none;
}

.entrance-modal {
  width: min(720px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 8, 31, 0.35);
}

.entrance-head {
  background: linear-gradient(180deg, #0f2a7a 0%, #081c57 100%);
  padding: 1rem 1.25rem;
}

.entrance-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.entrance-body {
  padding: 1.2rem 1.25rem;
}

.entrance-body > p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.gate-check-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem;
  background: var(--surface-soft);
  margin-bottom: 0.7rem;
}

.gate-check-card input {
  margin-top: 0.2rem;
}

.gate-remember {
  margin-top: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.entrance-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0 1.25rem 1.2rem;
}

.gate-btn {
  border: none;
  border-radius: 8px;
  padding: 0.68rem 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.gate-btn-exit {
  background: #d85d5d;
  color: #fff;
}

.gate-btn-enter {
  background: var(--accent);
  color: #fff;
}

.gate-btn-enter:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-left: 0;
}

.research-strip {
  background: var(--accent);
  color: var(--highlight);
  text-align: center;
  font-size: 0.82rem;
  padding: 0.6rem 1rem;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 90;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 95;
  background: var(--bg);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  padding-top: env(safe-area-inset-top);
}


.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  position: relative;
}

.brand-logo {
  width: 96px;
  height: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-wrap.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-wrap.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-wrap.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  padding: 5.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  line-height: 1.07;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  max-width: 16ch;
}

.lead {
  margin: 1.4rem 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1.28rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--highlight);
  box-shadow: 0 10px 24px rgba(8, 28, 87, 0.24);
}

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

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.hero-card h2 {
  font-size: 1.55rem;
}

.hero-card ul {
  margin: 1rem 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.5rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.products,
.quality,
.compliance {
  padding: 4.6rem 0;
}

.section-head h2,
.quality h2,
.compliance h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.product-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.product-card.featured {
  background: linear-gradient(180deg, var(--highlight) 0%, var(--surface-soft) 100%);
  border-color: var(--line);
}

.pill {
  margin: 0 0 0.7rem;
  display: inline-flex;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.pill-row .pill {
  margin: 0;
}

.pill-soldout {
  background: #b3b0a8;
  color: #fff;
}

.price-strike {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 600;
}

.btn-disabled {
  background: var(--accent-soft);
  color: #9a958c;
  border: 1px solid var(--line);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.product-card.sold-out {
  opacity: 0.72;
}

.product-card.sold-out .product-media {
  filter: grayscale(0.55);
}

.product-card.sold-out:hover {
  opacity: 1;
}

.product-card.sold-out:hover .product-media {
  filter: grayscale(0);
}

.restock-notify {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.restock-title {
  margin: 0 0 0.8rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.restock-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.restock-form input[type="email"] {
  flex: 1 1 220px;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  background: #fff;
}

.restock-form input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line) 60%);
}

.restock-form .btn {
  white-space: nowrap;
}

.product-card h3 {
  font-size: 1.5rem;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
}

.product-title-link:hover {
  text-decoration: underline;
}

.product-page {
  padding: 4.2rem 0 4.8rem;
}

.product-page h1 {
  font-size: clamp(2.25rem, 4.25vw, 3.65rem);
  max-width: 20ch;
}

.product-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
  margin: 0 0 1.6rem;
}

.product-intro-copy {
  min-width: 0;
}

.product-detail-media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line) 86%);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #fffdf8 0%, #f7f1e5 58%, #edf2f3 100%);
  box-shadow: 0 18px 44px rgba(8, 28, 87, 0.1);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(1.05rem, 2.2vw, 1.6rem);
}

.product-detail-media::after {
  content: "";
  position: absolute;
  width: 62%;
  height: 12%;
  left: 19%;
  bottom: 13%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(8, 28, 87, 0.14), transparent 70%);
  filter: blur(10px);
  opacity: 0.52;
  pointer-events: none;
}

.product-detail-media img {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  height: auto;
  object-fit: contain;
  filter: none;
  transform: none;
}

.product-detail-media-soldout img {
  filter: grayscale(0.08);
}

.return-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line) 75%);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
}

.return-link:hover,
.return-link:focus-visible {
  background: color-mix(in srgb, var(--surface-soft) 60%, #fff 40%);
  box-shadow: 0 8px 18px rgba(8, 28, 87, 0.12);
}

.product-summary {
  max-width: 74ch;
  color: var(--muted);
  margin-top: 1rem;
}

.product-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.5rem 0 2rem;
}

.product-spec-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 0.85rem 1rem;
}

.product-spec-card p {
  margin: 0;
  color: var(--muted);
}

.product-spec-card strong {
  color: var(--text);
}

.product-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 1rem 1.15rem;
  margin-top: 0.9rem;
}

.product-section h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.product-section p,
.product-section li {
  color: var(--muted);
}

.product-section ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.product-cta {
  margin-top: 1.35rem;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.product-cta .btn-secondary:first-of-type {
  margin-left: auto;
}

.product-cta-hero {
  max-width: 37rem;
  gap: 0.75rem;
}

.product-cta-hero .btn-secondary:first-of-type {
  margin-left: 0;
}

.product-shipping-note {
  flex-basis: 100%;
  margin: -0.15rem 0 0.15rem;
}

.product-cta .product-page-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, #fff 18%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 700;
}

.shipping-note {
  color: rgba(0, 20, 71, 0.64);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
}

.shipping-line strong {
  text-align: right;
}

.cart-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.cart-undo {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.sub {
  color: var(--muted);
  margin: 0.45rem 0 0;
}

.policy-effective-date {
  color: rgba(0, 20, 71, 0.62);
  font-size: 0.9rem;
  font-weight: 700;
  margin: -0.35rem 0 1.2rem;
}

.product-link-wrap {
  display: block;
  text-decoration: none;
}

.product-media {
  margin-top: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--highlight);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0.45rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-link-wrap:hover .product-media,
.product-link-wrap:focus-visible .product-media {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(8, 28, 87, 0.14);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line) 70%);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.view-details {
  display: inline-flex;
  align-items: center;
  margin-top: 0.55rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.view-details:hover,
.view-details:focus-visible {
  text-decoration: underline;
}

.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.price {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.2rem;
}

.coa-stamp {
  margin-top: 3.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line) 80%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 75%, var(--highlight) 25%);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coa-check {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--highlight);
  font-size: 0.75rem;
  line-height: 1;
}

.quality-list {
  display: grid;
  gap: 1rem;
}

.quality-list p {
  margin: 0;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 78%, var(--highlight) 22%);
}

.compliance-box {
  background: var(--accent);
  color: var(--highlight);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  scroll-margin-top: 8.2rem;
}

.compliance-box p {
  color: color-mix(in srgb, var(--highlight) 82%, #cdd4ea 18%);
  max-width: 80ch;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 2rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-meta p {
  margin: 0.2rem 0;
}

.footer-contact-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.55rem !important;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: rgba(0, 20, 71, 0.48);
}

.footer-contact-links a {
  color: rgba(0, 20, 71, 0.62);
  font-weight: 600;
  text-decoration: none;
}

.footer-contact-links a:hover,
.footer-contact-links a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.footer-policies {
  min-width: 0;
  max-width: 420px;
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.footer-policies-title {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-policies-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
  width: 100%;
}

.footer-policies-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.32rem 0;
  white-space: nowrap;
}

.footer-policies-links a:hover,
.footer-policies-links a:focus-visible {
  color: var(--accent);
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .product-grid,
  .product-intro-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-media {
    min-height: clamp(280px, 58vw, 420px);
  }

  .product-detail-media img {
    max-height: 360px;
  }

  nav ul {
    gap: 1rem;
  }

  .hero {
    padding-top: 3.8rem;
  }
}

@media (max-width: 640px) {
  .research-strip {
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
    padding: 0.65rem 1rem;
    line-height: 1.35;
  }

  .product-page .container {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    margin-inline: auto;
    overflow-x: hidden;
  }

  .product-page h1,
  .product-summary,
  .product-spec-card,
  .product-spec-card p,
  .product-section,
  .product-section p,
  .product-section li {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .product-intro-grid {
    gap: 1.35rem;
    margin-bottom: 1.35rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .product-intro-copy,
  .product-spec-card,
  .product-section {
    min-width: 0;
  }

  .product-spec-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .product-detail-media {
    width: 100%;
    max-width: 100%;
    min-height: 255px;
    border-radius: 22px;
    padding: 1rem;
  }

  .product-spec-card strong {
    display: block;
    margin-bottom: 0.18rem;
  }

  .product-detail-media img {
    max-height: 220px;
    transform: none;
  }

  .product-cta {
    display: grid;
    width: 100%;
    gap: 0.95rem;
  }

  .product-cta .btn,
  .product-cta .product-page-price {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .product-cta .btn-primary,
  .product-cta .btn-disabled {
    box-shadow: none;
  }

  .product-cta .product-shipping-note {
    margin: 0.1rem 0 0.05rem;
  }

  .product-cta .btn-secondary:first-of-type {
    margin-left: 0;
  }

  .entrance-gate {
    justify-items: center;
    align-items: start;
    padding: 0.75rem;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .entrance-modal {
    width: calc(100vw - 1.5rem);
    max-width: 25rem;
    max-height: calc(100dvh - 1.5rem);
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .entrance-head {
    padding: 0.9rem 1rem;
  }

  .entrance-body {
    padding: 1rem;
  }

  .gate-check-card {
    padding: 0.78rem;
    gap: 0.65rem;
  }

  .gate-check-card span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .entrance-actions {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 1rem 1rem;
  }

  .gate-btn {
    width: 100%;
  }

  .site-header {
    width: 100%;
  }

  .nav-wrap {
    min-height: 62px;
    padding: 0.55rem 0;
  }

  .brand {
    margin-left: 0;
  }

  .brand-logo {
    width: 84px;
  }

  .checkout-check {
    justify-content: center;
    max-width: 22rem;
    margin-inline: auto;
    text-align: left;
  }

  .checkout-next-note {
    max-width: 23rem;
    margin-inline: auto;
    text-align: center;
  }

  .checkout-form > .btn-primary {
    justify-self: center;
    width: min(100%, 22rem);
  }

  .nav-toggle {
    display: inline-flex;
  }

  nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    width: min(260px, 92vw);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    box-shadow: 0 18px 45px rgba(8, 28, 87, 0.14);
    padding: 0.45rem;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  nav ul {
    flex-direction: column;
    gap: 0.1rem;
  }

  nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    border-radius: 6px;
    padding: 0.58rem 0.7rem;
    font-size: 0.94rem;
  }

  nav a:hover,
  nav a:focus-visible {
    background: var(--surface);
  }

  .nav-wrap.nav-open nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .compliance-box {
    scroll-margin-top: calc(9.8rem + env(safe-area-inset-top));
  }

  .hero {
    padding-top: 3.8rem;
  }

  .footer-wrap {
    flex-direction: column;
  }

  .footer-policies {
    width: 100%;
    min-width: 0;
    max-width: none;
    order: -1;
    margin-bottom: 0.5rem;
  }

  .footer-policies-links {
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.45rem;
  }
}


.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.36rem;
  line-height: 1;
}


.cart-items {
  display: grid;
  gap: 0.85rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-areas:
    'thumb body'
    'footer footer';
  gap: 1rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 28, 87, 0.035);
}

.cart-thumb {
  grid-area: thumb;
  width: 104px;
  height: 88px;
  min-height: 0;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.cart-item-body {
  grid-area: body;
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.cart-item-meta {
  min-width: 0;
}

.cart-item-meta h3 {
  font-size: 1rem;
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.cart-item-meta p {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0.3rem 0 0;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
}

.cart-item-meta p span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-item-footer {
  grid-area: footer;
  display: grid;
  grid-template-columns: auto minmax(74px, 1fr) auto;
  align-items: end;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.cart-qty-group {
  display: grid;
  gap: 0.35rem;
}

.cart-control-label,
.cart-line-label {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.cart-qty-controls button {
  width: 38px;
  height: 38px;
  border: 0;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.cart-qty-controls button:disabled {
  color: color-mix(in srgb, var(--muted) 45%, transparent);
  cursor: not-allowed;
}

.cart-qty-controls input {
  width: 42px;
  height: 38px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-weight: 700;
  font: inherit;
  background: #fff;
}

.cart-qty-controls input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent);
}

.cart-qty-controls input::-webkit-outer-spin-button,
.cart-qty-controls input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-qty-controls input[type=number] {
  -moz-appearance: textfield;
}

.cart-line-total {
  display: grid;
  justify-items: end;
  justify-self: end;
  gap: 0.04rem;
  line-height: 1.15;
}

.cart-line-total strong {
  font-size: 1rem;
  font-weight: 800;
}

.line-was {
  font-weight: 600;
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.78rem;
}

.cart-remove {
  border: 0;
  background: transparent;
  color: #b63d3d;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.1rem 0 0.25rem;
  border-bottom: 1px solid currentColor;
}

.cart-summary {
  margin-top: 1rem;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

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

.muted-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.discount-table {
  margin: 0.6rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.discount-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}

.discount-row strong {
  color: var(--text);
}

.discount-row:first-child {
  border-top: 0;
}

.discount-head {
  background: var(--surface-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.cart-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 700px) 340px;
  gap: clamp(1.3rem, 3vw, 2.4rem);
  align-items: start;
}

.checkout-grid-complete {
  grid-template-columns: minmax(0, 760px);
}

.checkout-side[hidden] {
  display: none !important;
}

.checkout-form {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.35rem;
}

.checkout-form[hidden],
.checkout-form-complete {
  display: none !important;
}

.checkout-panel {
  position: relative;
  display: grid;
  gap: 0.82rem;
  padding: clamp(1rem, 1.65vw, 1.16rem);
  border: 1px solid rgba(8, 28, 87, 0.13);
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 14px 34px rgba(8, 28, 87, 0.045);
  overflow: hidden;
}

.checkout-panel-head {
  display: block;
}

.checkout-panel-head h2,
.checkout-panel-head p {
  margin: 0;
}

.checkout-panel-head h2 {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.checkout-panel-head p {
  margin-top: 0.16rem;
  max-width: 54ch;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.checkout-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.field-wide {
  grid-column: 1 / -1;
}

.field-shell {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
}

.field-shell > span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.42rem;
  color: rgba(0, 20, 71, 0.72);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.field-shell em {
  color: rgba(0, 20, 71, 0.5);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid rgba(8, 28, 87, 0.22);
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  min-height: 42px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.25;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.checkout-form textarea {
  min-height: 84px;
  resize: vertical;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: rgba(8, 28, 87, 0.62);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 28, 87, 0.1), inset 0 1px 0 rgba(255,255,255,0.9);
}

.checkout-form input[readonly] {
  background: rgba(241, 238, 231, 0.62);
  color: rgba(0, 20, 71, 0.82);
}

.checkout-form input::placeholder,
.checkout-form textarea::placeholder {
  color: rgba(96, 104, 122, 0.66);
}

.checkout-check {
  display: flex !important;
  align-items: center;
  gap: 0.62rem;
  padding: 0.2rem 0.05rem 0.1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(0, 20, 71, 0.72);
  font-size: 0.88rem;
  font-weight: 600 !important;
  line-height: 1.4;
}

.checkout-check input {
  appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: #fff;
  padding: 0;
  box-shadow: inset 0 0 0 2px rgba(8, 28, 87, 0.66);
}

.checkout-check input:checked {
  background: var(--accent);
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--accent);
}

.checkout-check input:focus-visible {
  outline: 2px solid rgba(8, 28, 87, 0.22);
  outline-offset: 3px;
}

.checkout-form > .btn-primary {
  justify-self: start;
  min-width: min(100%, 260px);
  margin-top: 0;
  box-shadow: 0 18px 36px rgba(8, 28, 87, 0.18);
}

.checkout-next-note {
  margin: -0.3rem 0 -0.1rem;
  color: rgba(0, 20, 71, 0.62);
  font-size: 0.84rem;
  font-weight: 600;
}

.checkout-status {
  display: grid;
  gap: 0.55rem;
  min-height: 1.5rem;
  color: var(--muted);
  font-weight: 600;
}

.checkout-status:empty {
  display: none;
}

.checkout-status-success,
.checkout-status-error {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  background: var(--surface-soft);
}

.checkout-status-success strong,
.checkout-status-error {
  color: var(--text);
}

.checkout-status-success .btn {
  width: fit-content;
}

.checkout-confirmation {
  gap: 1rem;
  color: var(--text);
}

.checkout-confirmation h2,
.checkout-confirmation h3,
.checkout-confirmation p {
  margin: 0;
}

.checkout-confirmation h2 {
  font-size: 1.35rem;
}

.checkout-confirmation-section {
  display: grid;
  gap: 0.55rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.checkout-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: 0.7rem;
}

.checkout-detail-row span {
  color: var(--muted);
}

.copy-command-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.copy-command-row code {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  background: var(--surface-soft);
  color: var(--text);
  overflow-wrap: anywhere;
}

.checkout-side {
  position: sticky;
  top: 5.8rem;
  margin-top: 15.35rem;
}

.checkout-side .product-section {
  margin-top: 0;
  border-color: rgba(8, 28, 87, 0.13);
  border-radius: 16px;
  background: #f1eee7;
  box-shadow: 0 14px 34px rgba(8, 28, 87, 0.045);
}

.checkout-side .product-section h3 {
  margin: 0 0 0.7rem;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
}

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

  .checkout-side {
    position: static;
    margin-top: 0;
  }

  .checkout-field-grid {
    grid-template-columns: 1fr;
  }

  .checkout-panel-head p {
    max-width: none;
  }

  .cart-item {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas:
      'thumb body'
      'footer footer';
    align-items: start;
    gap: 0.8rem;
    padding: 0.75rem;
  }

  .cart-thumb {
    width: 84px;
    height: 72px;
    min-height: 0;
  }

  .cart-item-meta h3 {
    font-size: 0.94rem;
    line-height: 1.25;
  }

  .cart-item-footer {
    grid-template-columns: auto minmax(66px, 1fr) auto;
    gap: 0.65rem;
    padding-top: 0.65rem;
  }

  .cart-remove {
    min-height: 24px;
  }

  .cart-qty-controls button {
    width: 34px;
    height: 34px;
  }

  .cart-qty-controls input {
    width: 38px;
    height: 34px;
  }
}


.product-page-price {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}


.product-cta .product-page-price {
  margin: 0;
  line-height: 1;
}
