:root {
  --ink: #0b2430;
  --graphite: #123642;
  --muted: #5a7078;
  --paper: #f3f8f7;
  --cream: #ffffff;
  --sand: #dcece8;
  --line: #c5dcd7;
  --clay: #0f766e;
  --rose: #65c3b5;
  --moss: #268f7d;
  --shadow: 0 28px 72px rgba(11, 36, 48, .14);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

.topbar {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 8px 18px;
  background: var(--graphite);
  color: #eaf7f4;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 58px);
  background: rgba(243, 248, 247, .9);
  border-bottom: 1px solid rgba(197, 220, 215, .86);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, #fff 0 10%, transparent 11%),
    conic-gradient(from 140deg, var(--moss), #4f8290, var(--rose), var(--clay), var(--moss));
  box-shadow: inset 0 0 0 1px rgba(11, 36, 48, .16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #36535d;
  font-weight: 720;
  font-size: 14px;
}

.button,
button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--cream);
  font-weight: 780;
  cursor: pointer;
  white-space: nowrap;
}

.button.light {
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  border: 1px solid rgba(11, 36, 48, .14);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-hero {
  padding: clamp(74px, 10vw, 132px) clamp(18px, 4vw, 58px) clamp(54px, 7vw, 90px);
  background:
    radial-gradient(circle at 22% 18%, rgba(101, 195, 181, .25), transparent 28%),
    linear-gradient(135deg, #f7fbfa, #deefeb 58%, #bedbd5);
}

.inner {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 860;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(48px, 6vw, 88px);
  line-height: .94;
  font-weight: 800;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1;
  font-weight: 800;
}
h3 {
  margin-bottom: 12px;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.08;
}
.lead {
  max-width: 760px;
  margin-bottom: 30px;
  color: #405c65;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.5;
}

.section {
  padding: clamp(66px, 9vw, 118px) clamp(18px, 4vw, 58px);
}

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

.card,
.policy-block,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 26px;
}

.card p,
.policy-block p,
.form-panel p,
.table-row span,
.small-copy {
  color: var(--muted);
  line-height: 1.58;
}

.legal-list {
  display: grid;
  gap: 12px;
  margin: 0;
}
.legal-list div {
  display: grid;
  gap: 4px;
}
.legal-list dt {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.legal-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-card {
  padding: 0;
  overflow: hidden;
  display: grid;
  align-content: space-between;
}
.product-card img {
  aspect-ratio: 1.2 / .82;
  object-fit: cover;
  background: var(--sand);
}
.product-body { padding: 24px; }
.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 22px;
}
.price {
  font-size: 28px;
  font-weight: 860;
}
.compare {
  color: var(--muted);
  text-decoration: line-through;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.pill {
  border-radius: 999px;
  padding: 8px 10px;
  background: #e2f1ee;
  color: #355b5c;
  font-size: 12px;
  font-weight: 760;
}

.table {
  border-top: 1px solid var(--line);
}
.table-row {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, .58fr);
  gap: 24px;
  align-items: start;
}

.cart-list,
.checkout-stack,
.summary-card {
  display: grid;
  gap: 16px;
}

.cart-empty {
  min-height: 240px;
  align-content: center;
  justify-items: start;
}

.cart-empty.compact {
  min-height: 0;
  padding: 6px 0 2px;
}

.cart-item {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.cart-item img {
  aspect-ratio: 1 / .82;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sand);
}

.item-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.item-meta p,
.summary-line span,
.checkout-note,
.option-card p {
  color: var(--muted);
  line-height: 1.55;
}

.checkbox-row {
  display: flex;
  grid-template-columns: none;
  gap: 10px;
  align-items: center;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.quantity-control {
  width: max-content;
  display: inline-grid;
  grid-template-columns: 40px 44px 40px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .9);
  font-weight: 800;
}

.quantity-control button {
  min-height: 42px;
  width: 40px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.quantity-control span {
  text-align: center;
}

.link-button {
  width: auto;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button.disabled {
  pointer-events: none;
  opacity: .52;
}

.cart-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 36, 48, .95);
  color: white;
  box-shadow: 0 18px 60px rgba(11, 36, 48, .2);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-total {
  align-items: baseline;
  border-bottom: 0;
  font-size: 20px;
  font-weight: 860;
}

.summary-total strong:last-child {
  font-size: 28px;
}

.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.promo-row input {
  border-radius: 999px;
}

.checkout-step {
  display: grid;
  gap: 18px;
}

.checkout-step h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 44px);
}

.option-grid {
  display: grid;
  gap: 12px;
}

.option-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .76);
  cursor: pointer;
}

.option-card.selected {
  border-color: rgba(15, 118, 110, .68);
  background: rgba(220, 236, 232, .82);
}

.radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 5px solid var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  background: var(--cream);
}

.radio-dot.empty {
  border: 2px solid var(--line);
  box-shadow: none;
}

.secure-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.secure-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: #355b5c;
  background: #e2f1ee;
  font-size: 12px;
  font-weight: 780;
}

.notice {
  border-radius: var(--radius);
  padding: 26px;
  background:
    radial-gradient(circle at 14% 20%, rgba(101, 195, 181, .28), transparent 28%),
    linear-gradient(135deg, #f8fcfb, #dcece8);
  border: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
label {
  display: grid;
  gap: 8px;
  color: #36535d;
  font-size: 13px;
  font-weight: 760;
}
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font: inherit;
}
textarea {
  min-height: 150px;
  resize: vertical;
}
.full { grid-column: 1 / -1; }

.newsletter {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border-radius: var(--radius);
  padding: 28px;
  background:
    radial-gradient(circle at 18% 22%, rgba(101, 195, 181, .28), transparent 28%),
    linear-gradient(135deg, #f8fcfb, #dcece8);
  border: 1px solid var(--line);
}
.newsletter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.newsletter input {
  border-radius: 999px;
  min-width: 270px;
}

.footer {
  padding: 48px clamp(18px, 4vw, 58px);
  background: #071d26;
  color: var(--cream);
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: 44px;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.footer p,
.footer small,
.footer a {
  color: #b9d4d0;
  line-height: 1.5;
}
.footer h3 {
  margin-bottom: 14px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.footer a:hover { color: var(--cream); }
.footer small {
  display: block;
  margin-top: 18px;
  font-size: 12px;
}

@media (max-width: 960px) {
  .nav {
    height: auto;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 12px;
  }
  .nav-links {
    width: 100%;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .grid-3,
  .grid-4,
  .footer-grid,
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr 1fr;
  }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter-form { justify-content: flex-start; }
}

@media (max-width: 620px) {
  h1 { font-size: 46px; }
  h2 { font-size: 36px; }
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .footer-columns,
  .form-grid,
  .cart-layout,
  .checkout-layout,
  .cart-item,
  .item-meta,
  .promo-row {
    grid-template-columns: 1fr;
  }
  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .newsletter input {
    min-width: 0;
    width: 100%;
  }
}
