:root {
  --bg: #f7f4ee;
  --ink: #17211c;
  --muted: #63706a;
  --green: #2f7a4d;
  --leaf: #95c94f;
  --mint: #dff3d5;
  --yellow: #f6c95f;
  --coral: #e97057;
  --line: #ded8cc;
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(32, 45, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

.topbar {
  background: var(--green);
  color: white;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0.65rem 1rem;
  text-align: center;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1.1rem 1.25rem;
}

.brand,
.cart-link,
.main-nav {
  align-items: center;
  display: flex;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  gap: 0.55rem;
}

.brand-mark {
  align-items: center;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.main-nav {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  gap: 1.35rem;
}

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

.cart-link {
  background: var(--ink);
  border-radius: 999px;
  color: white;
  font-weight: 800;
  min-height: 2.45rem;
  padding: 0 1.1rem;
}

.product-shell {
  display: grid;
  gap: clamp(1.4rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(1rem, 3vw, 2rem) 1.25rem 4rem;
}

.gallery {
  min-width: 0;
}

.hero-frame {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 20% 20%, rgba(246, 201, 95, 0.34), transparent 32%),
    linear-gradient(135deg, #fffaf0 0%, #dff3d5 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 1rem;
}

.hero-frame img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: filter 180ms ease, transform 180ms ease;
  width: 100%;
}

.hero-frame[data-tone="soft"] img {
  filter: saturate(0.9) brightness(1.05);
}

.hero-frame[data-tone="night"] img {
  filter: brightness(0.72) saturate(1.05) contrast(1.04);
}

.hero-frame[data-tone="close"] img {
  transform: scale(1.13);
}

.sale-pill {
  background: var(--coral);
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  left: 1rem;
  padding: 0.48rem 0.72rem;
  position: absolute;
  top: 1rem;
}

.thumb-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.9rem;
}

.thumb {
  aspect-ratio: 1;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

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

.thumb img,
.thumb span {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.thumb-soft span {
  background: linear-gradient(135deg, #eef7db, #9fd46e);
}

.thumb-night span {
  background: linear-gradient(135deg, #17211c, #477459);
}

.thumb-close span {
  background:
    radial-gradient(circle at 52% 30%, #17211c 0 9%, transparent 10%),
    radial-gradient(circle at 35% 30%, #17211c 0 9%, transparent 10%),
    #91c85b;
}

.product-info {
  align-self: start;
  padding-top: clamp(0.2rem, 2vw, 1.3rem);
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 0.9rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 0;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.rating-row,
.price-row,
.trust-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.rating-row {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
}

.stars {
  color: #d99b1b;
  letter-spacing: 0;
}

.price-row {
  margin-bottom: 1rem;
}

.price {
  font-size: 2rem;
  font-weight: 900;
}

.compare {
  color: var(--muted);
  font-size: 1.1rem;
  text-decoration: line-through;
}

.discount {
  background: var(--mint);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.4rem 0.65rem;
}

.lede {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
  margin-bottom: 1.3rem;
  max-width: 38rem;
}

.benefit-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.benefit-grid div,
.purchase-card,
.reviews article,
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.benefit-grid div {
  padding: 0.85rem;
}

.benefit-grid strong,
.benefit-grid span {
  display: block;
}

.benefit-grid strong {
  font-size: 1.05rem;
}

.benefit-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.purchase-card {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
}

.purchase-card label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.quantity-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  min-height: 3rem;
  overflow: hidden;
}

.quantity-row button,
.quantity-row input {
  background: white;
  border: 0;
  color: var(--ink);
  text-align: center;
}

.quantity-row button {
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
}

.quantity-row input {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-weight: 800;
}

.buy-button,
.shop-button,
.contact-form button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  min-height: 3.25rem;
  width: 100%;
}

.buy-button {
  background: var(--green);
  color: white;
}

.shop-button {
  background: var(--yellow);
  color: var(--ink);
}

.trust-row {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.trust-row span::before {
  color: var(--green);
  content: "✓";
  margin-right: 0.35rem;
}

.split-band,
.review-section,
.faq-band,
.contact-band {
  margin: 0 auto;
  max-width: 1180px;
  padding: 4rem 1.25rem;
}

.split-band {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.8fr 1.2fr;
}

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

.feature-list article {
  border-left: 4px solid var(--yellow);
  padding-left: 1rem;
}

.feature-list p,
.reviews p,
.faq-list p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

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

.reviews article {
  padding: 1.2rem;
}

.reviews span {
  color: #d99b1b;
  display: block;
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.reviews strong {
  display: block;
  margin-top: 1rem;
}

.faq-band {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-list details {
  padding: 1rem 1.1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  padding-top: 0.75rem;
}

.contact-band {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  width: 100%;
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

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

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  font-weight: 700;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1.4rem 1.25rem 2rem;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    width: 100%;
  }

  .product-shell,
  .split-band,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero-frame {
    position: relative;
    top: auto;
  }

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

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .product-shell {
    padding-bottom: 2.5rem;
  }

  .thumb-row {
    gap: 0.5rem;
  }

  .split-band,
  .review-section,
  .faq-band,
  .contact-band {
    padding-bottom: 2.8rem;
    padding-top: 2.8rem;
  }
}
