:root {
  --bg: #fbfcf8;
  --surface: #ffffff;
  --surface-2: #eef7f4;
  --ink: #10201c;
  --muted: #5e6f69;
  --line: #dce7e1;
  --brand: #0f766e;
  --brand-dark: #0b4f4a;
  --accent: #b3261e;
  --gold: #d9a441;
  --focus: #1648ce;
  --radius: 8px;
  --shadow: 0 16px 45px rgba(16, 32, 28, 0.1);
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button,
input,
textarea {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 10;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 252, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.site-footer,
.hero,
.section,
.page-heading,
.checkout-shell,
.product-detail,
.legal-page,
.notice-page,
.trust-strip {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand__mark {
  width: 42px;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
}

.main-nav a {
  text-decoration: none;
}

.cart-link {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  background: var(--surface);
}

.hero {
  min-height: min(620px, calc(100vh - 74px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.25rem, 6vw, 5rem);
}

.hero__copy h1,
.page-heading h1,
.notice-page h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.4rem, 6vw, 5.7rem);
  line-height: 0.95;
}

.hero__copy p:not(.eyebrow),
.page-heading p,
.notice-page p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero__actions,
.section__header,
.product-card__buy,
.cart-row__controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

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

.hero__products img,
.product-card__image,
.product-detail__media {
  background: linear-gradient(135deg, #f5f8f4, #e9f5f7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero__products img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-strip div {
  background: var(--surface);
  padding: 1rem;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  color: var(--muted);
}

.section,
.page-heading,
.checkout-shell,
.product-detail,
.legal-page,
.notice-page {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.section__header {
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section__header h2,
.checkout-main h1,
.summary h2,
.product-copy h2,
.legal-page h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-card__image {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 1rem;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
}

.product-card h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.product-card p,
.product-card span,
.summary p,
.meta-list,
.pack,
.legal-page p,
.legal-page li {
  color: var(--muted);
}

.product-card p {
  margin: 0;
  font-weight: 800;
  color: var(--brand-dark);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.product-card__buy {
  margin-top: auto;
  justify-content: space-between;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.72rem 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.button--ghost {
  background: var(--surface);
  border-color: var(--line);
}

.button--muted,
.button:disabled,
.is-disabled {
  background: #e5ece8;
  border-color: #d2ddd8;
  color: #66756f;
  pointer-events: none;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.product-detail__media {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.product-detail__media img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.product-detail__content h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
}

.buy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block: 1.25rem;
  padding: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price {
  display: block;
  font-size: 1.7rem;
}

.list-price {
  color: var(--muted);
  text-decoration: line-through;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.meta-list div {
  background: var(--surface);
  padding: 0.85rem;
}

.meta-list dt {
  font-weight: 800;
  color: var(--ink);
}

.meta-list dd {
  margin: 0.2rem 0 0;
}

.product-copy {
  max-width: 860px;
}

.detail-block {
  margin-block: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.detail-block summary {
  cursor: pointer;
  font-weight: 800;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 1rem;
}

.checkout-main,
.summary,
.legal-page,
.notice-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 4vw, 2rem);
}

.summary {
  position: sticky;
  top: 96px;
}

.cart-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.cart-row small {
  display: block;
  color: var(--muted);
}

.icon-button,
.link-button {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.link-button {
  padding-inline: 0.75rem;
  color: var(--accent);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-block: 0.8rem;
}

.summary-row.total {
  font-size: 1.2rem;
}

.form {
  display: grid;
  gap: 1rem;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

legend {
  margin-bottom: 0.75rem;
  font-weight: 800;
}

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

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.span-2 {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid #b8c7c0;
  border-radius: var(--radius);
  padding: 0.72rem 0.8rem;
  background: #fff;
  color: var(--ink);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
}

.check-row input {
  width: 20px;
  height: 20px;
  margin: 0.1rem 0 0;
  flex: 0 0 auto;
}

.empty-state {
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.notice-page {
  margin-top: 2rem;
  margin-bottom: 2rem;
  max-width: 760px;
}

.success {
  border-color: #9fd4c9;
  background: #f2fbf8;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-block: 2rem;
}

.site-footer p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

@media (max-width: 940px) {
  .hero,
  .product-detail,
  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header__inner,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .hero__copy h1,
  .page-heading h1,
  .notice-page h1 {
    font-size: 2.6rem;
  }

  .trust-strip,
  .product-grid,
  .meta-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .cart-row {
    grid-template-columns: 1fr;
  }

  .buy-box {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
