:root {
  --bg: #fbfaf7;
  --text: #1f2528;
  --muted: #637072;
  --line: #e4ddd2;
  --paper: #ffffff;
  --coral: #df624b;
  --teal: #1d7b75;
  --gold: #c8903d;
  --ink: #26333a;
  --shadow: 0 24px 70px rgba(31, 37, 40, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid rgba(228, 221, 210, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.actions,
.trust-list,
.price-line,
.thumb-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 0.8rem;
}

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

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

.top-cta,
.primary-btn,
.secondary-btn,
.upload-control,
.copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
}

.top-cta,
.primary-btn {
  background: var(--coral);
  color: white;
  box-shadow: 0 12px 28px rgba(223, 98, 75, 0.28);
}

.top-cta {
  padding: 0 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(28px, 6vw, 78px) clamp(18px, 5vw, 72px) 46px;
}

.hero-gallery {
  display: grid;
  gap: 16px;
}

.main-photo {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: min(62vh, 620px);
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.7), transparent 28%),
    linear-gradient(145deg, #f1c7a5, #df624b 48%, #1d7b75);
  box-shadow: var(--shadow);
}

.main-photo[data-tone="mint"] {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.7), transparent 30%),
    linear-gradient(145deg, #d5efe7, #1d7b75 52%, #c8903d);
}

.main-photo[data-tone="ink"] {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(145deg, #78858b, #26333a 54%, #df624b);
}

.main-photo.has-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.main-photo.has-video {
  background: #111;
}

.product-video {
  width: 100%;
  height: 100%;
  max-height: min(62vh, 620px);
  object-fit: contain;
  background: #111;
}

.main-photo.has-image .product-visual,
.main-photo.has-image p,
.main-photo.has-video .product-visual,
.main-photo.has-video p {
  display: none;
}

.main-photo p {
  position: absolute;
  bottom: 24px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-weight: 800;
}

.product-visual {
  position: relative;
  width: min(58%, 290px);
  aspect-ratio: 1;
}

.product-box,
.product-lid,
.shine {
  position: absolute;
  display: block;
}

.product-box {
  inset: 28% 10% 8%;
  border-radius: 20px;
  background: linear-gradient(150deg, #fff7ed, #f7d2bf 50%, #b94d3b);
  box-shadow: 0 28px 60px rgba(31, 37, 40, 0.34);
}

.product-lid {
  left: 0;
  right: 0;
  top: 16%;
  height: 25%;
  border-radius: 18px;
  background: linear-gradient(160deg, #ffffff, #e7f4ef 55%, #1d7b75);
  transform: rotate(-5deg);
}

.shine {
  inset: 3% auto auto 8%;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(2px);
}

.thumb-row {
  gap: 10px;
}

.thumb {
  width: 100%;
  height: 76px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.thumb[data-color="coral"] {
  background: linear-gradient(145deg, #f1c7a5, #df624b, #1d7b75);
}

.thumb[data-color="mint"] {
  background: linear-gradient(145deg, #d5efe7, #1d7b75, #c8903d);
}

.thumb[data-color="ink"] {
  background: linear-gradient(145deg, #78858b, #26333a, #df624b);
}

.image-thumb {
  background-position: center;
  background-size: cover;
}

.video-thumb {
  background: #222;
  color: white;
  font-weight: 800;
}

.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.thumb.is-active {
  border-color: var(--text);
}

.upload-control {
  width: fit-content;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
}

.upload-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.copy-link {
  width: fit-content;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
}

.hero-copy {
  max-width: 650px;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  font-weight: 800;
}

.lead {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.price-line {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.price {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
}

.old-price {
  color: #8d9799;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: line-through;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff0d7;
  color: #8b5b13;
  font-size: 0.86rem;
  font-weight: 800;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.secondary-btn {
  padding: 0 20px;
}

.secondary-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
}

.trust-list {
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  color: var(--muted);
  font-weight: 700;
}

.trust-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.product-card.is-selected {
  border-color: var(--coral);
  box-shadow: 0 18px 48px rgba(223, 98, 75, 0.16);
}

.product-media {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border: 0;
  background: linear-gradient(145deg, #f1c7a5, #df624b, #1d7b75);
  cursor: pointer;
}

.product-media[data-tone="mint"] {
  background: linear-gradient(145deg, #d5efe7, #1d7b75, #c8903d);
}

.product-media[data-tone="ink"] {
  background: linear-gradient(145deg, #78858b, #26333a, #df624b);
}

.product-media.has-card-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: #f4f0ea;
}

.product-media.has-card-video {
  background: #222;
  color: white;
}

.card-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.product-media span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-weight: 800;
}

.product-card-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

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

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

.mini-price,
.card-actions,
.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-price strong {
  font-size: 1.35rem;
}

.mini-price span {
  color: #8d9799;
  font-weight: 700;
  text-decoration: line-through;
}

.card-actions {
  flex-wrap: wrap;
}

.card-actions .primary-btn,
.card-actions .secondary-btn {
  min-height: 42px;
  border: 0;
  cursor: pointer;
}

.section,
.spec-band,
.footer {
  padding: clamp(46px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

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

.section-heading h2,
.spec-band h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

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

.feature-card,
.review {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.feature-card h3,
.review strong {
  display: block;
  margin: 18px 0 10px;
  font-size: 1.12rem;
}

.feature-card p,
.review p,
.faq p,
.footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #e7f4ef;
  color: var(--teal);
  font-weight: 800;
}

.spec-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(280px, 1.25fr);
  gap: 28px;
  background: var(--ink);
  color: white;
}

.spec-band .eyebrow {
  color: #ffd08a;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.spec-list dt {
  color: #b7c1c4;
  font-weight: 700;
}

.spec-list dd {
  margin: 0;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

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

.review {
  min-height: 180px;
}

.faq {
  padding-top: 28px;
}

.order-section {
  background: #eef6f4;
}

.order-form {
  display: grid;
  gap: 18px;
  max-width: 920px;
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid #d1e3df;
  border-radius: 8px;
  background: var(--paper);
}

.order-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--text);
  font: inherit;
  line-height: 1.4;
  padding: 13px 14px;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(29, 123, 117, 0.14);
}

.order-form input[readonly] {
  background: #f0ede7;
  color: var(--muted);
}

.form-row label {
  flex: 1;
}

.submit-btn {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

details {
  border-top: 1px solid var(--line);
  background: transparent;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 22px 0;
  font-size: 1.08rem;
  font-weight: 800;
}

details p {
  max-width: 68ch;
  padding: 0 0 22px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: white;
}

@media (max-width: 860px) {
  .topbar {
    position: static;
  }

  .nav {
    display: none;
  }

  .hero,
  .spec-band,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .main-photo {
    min-height: 420px;
  }

  h1 {
    max-width: 10ch;
  }

  .feature-grid,
  .reviews {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .topbar {
    gap: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .top-cta {
    min-height: 40px;
    padding: 0 12px;
  }

  .hero {
    padding-top: 20px;
  }

  .main-photo {
    min-height: 340px;
  }

  h1 {
    font-size: clamp(2.6rem, 17vw, 4.1rem);
  }

  .actions a,
  .footer .primary-btn,
  .submit-btn {
    width: 100%;
  }

  .form-row {
    align-items: stretch;
    flex-direction: column;
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .product-grid {
    grid-template-columns: 1fr;
  }
}
