:root {
  color-scheme: light;
  --ink: #1e293b;
  --muted: #64656b;
  --line: #d8d4cc;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --field: #f2f4f1;
  --teal: #168fa2;
  --red: #c9342f;
  --green: #3f9549;
  --orange: #e17a32;
  --yellow: #e4bd48;
  --focus: #265bd7;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

textarea {
  resize: vertical;
}

.hidden-field {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  width: clamp(92px, 10vw, 142px);
  height: 74px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  max-width: 1180px;
  min-height: auto;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(28px, 5vw, 58px);
  padding: clamp(36px, 5vw, 64px) clamp(18px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}

.hero-media {
  order: 2;
  align-self: center;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: #f0eee8;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(30, 41, 59, 0.1);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-copy {
  order: 1;
  max-width: 620px;
  margin: 0;
  text-align: left;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.55rem, 5vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.65;
}

.hero-facts {
  justify-content: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-facts span {
  padding: 8px 10px;
  color: #36544e;
  background: #edf7f4;
  border: 1px solid #cde3dd;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 800;
}

.hero-actions {
  justify-content: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(30, 41, 59, 0.12);
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.product-section {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(340px, 460px);
  gap: clamp(26px, 4vw, 56px);
  padding: clamp(34px, 6vw, 84px) clamp(18px, 5vw, 72px);
}

.product-gallery {
  min-width: 0;
  scroll-margin-top: 96px;
}

.gallery-frame {
  position: relative;
}

.gallery-viewport {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow-x: auto;
  overflow-y: hidden;
  background: linear-gradient(180deg, #f6f4ef, #ebe7dd);
  border: 1px solid var(--line);
  border-radius: 8px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  height: 100%;
}

.gallery-slide {
  flex: 0 0 100%;
  display: grid;
  height: 100%;
  margin: 0;
  place-items: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.gallery-slide img,
.gallery-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-button {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(30, 41, 59, 0.16);
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-50%);
}

.carousel-button.previous {
  left: 12px;
}

.carousel-button.next {
  right: 12px;
}

.enlarge-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 40px;
  padding: 0 14px;
  color: white;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.carousel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: #cbc6bb;
  border: 0;
  border-radius: 999px;
}

.carousel-dot.active {
  width: 24px;
  background: var(--ink);
}

.carousel-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.carousel-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: #f0eee8;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.carousel-thumb.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 143, 162, 0.2);
}

.carousel-thumb img,
.carousel-thumb video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-thumb span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 7px;
  color: white;
  background: rgba(30, 41, 59, 0.86);
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 900;
}

.product-panel {
  align-self: start;
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 50px rgba(30, 41, 59, 0.08);
}

.lightbox {
  width: min(94vw, 1280px);
  max-width: none;
  height: min(90vh, 920px);
  padding: 22px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(30, 41, 59, 0.3);
}

.lightbox::backdrop {
  background: rgba(30, 41, 59, 0.72);
}

.lightbox-content {
  display: grid;
  width: 100%;
  height: calc(100% - 62px);
  place-items: center;
}

.lightbox-content img,
.lightbox-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 62px;
  color: var(--muted);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.product-panel h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.price {
  margin: 14px 0 0;
  font-size: 2rem;
  font-weight: 800;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.short-copy,
.microcopy,
.fine-print {
  color: var(--muted);
  line-height: 1.6;
}

.short-copy {
  margin: 12px 0 0;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 6px;
}

input[type="radio"] {
  width: auto;
  min-height: 0;
  padding: 0;
}

input[type="file"] {
  padding: 10px;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 14px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 143, 162, 0.18);
}

.choice-card span {
  display: grid;
  gap: 4px;
}

.choice-card small {
  color: var(--muted);
  line-height: 1.4;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(38, 91, 215, 0.25);
  outline-offset: 2px;
}

.field-grid,
.shipping-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shipping-grid {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.microcopy {
  margin: -2px 0 12px;
  font-size: 0.92rem;
}

.shipping-output {
  display: block;
  margin-top: 12px;
  padding: 12px;
  background: #eef8f5;
  border: 1px solid #cbe3dc;
  border-radius: 6px;
  color: #27564d;
  font-weight: 700;
}

.checkout-output {
  display: block;
  min-height: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.5;
}

.checkout-output:not(:empty) {
  padding: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  color: #9a3412;
}

.order-summary {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.order-summary div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.order-summary span {
  color: var(--muted);
}

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

.fine-print {
  margin: 0;
  font-size: 0.88rem;
}

.band,
.details {
  scroll-margin-top: 84px;
  padding: clamp(42px, 7vw, 90px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.band {
  background: #eff2ed;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.steps,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.steps article,
.detail-grid article {
  min-width: 0;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps span {
  color: var(--teal);
  font-weight: 900;
}

.steps h3,
.detail-grid h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
}

.steps p,
.detail-grid p,
.disclaimer {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.disclaimer {
  max-width: 900px;
  margin-top: 24px;
  font-size: 0.92rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: white;
  background: var(--ink);
}

.footer span {
  font-weight: 900;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.policy-page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 78px) clamp(18px, 5vw, 72px);
}

.policy-page h1 {
  max-width: 780px;
}

.policy-section {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.policy-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.policy-section p,
.policy-section li {
  color: var(--muted);
  line-height: 1.7;
}

.policy-section ul {
  padding-left: 20px;
}

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

  .hero {
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
  }

  .hero-facts,
  .hero-actions {
    justify-content: center;
  }

  .hero-media,
  .gallery-viewport {
    min-height: 0;
  }

  .product-section {
    padding-top: 34px;
    max-width: 760px;
  }

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

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.86rem;
  }

  .product-section {
    padding-inline: 14px;
  }

  .product-panel {
    padding: 20px;
  }

  .product-panel h2 {
    font-size: clamp(1.7rem, 9vw, 2.35rem);
  }

  .hero-media,
  .gallery-viewport {
    min-height: 0;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .field-grid,
  .shipping-grid,
  .choice-grid,
  .steps,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .carousel-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .carousel-thumbnails {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
