/* ---------- Base / mobile-only ---------- */
:root {
  --brand: #1a3fd6;
  --brand-dark: #12299e;
  --accent: #ff6a00;
  --ink: #16181d;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --line: #e6e8ee;
  --success: #1a9e5c;
  --danger: #d3312f;
  --radius: 14px;
  --max: 480px;
  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

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

.page {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  padding-bottom: 84px; /* room for sticky CTA */
}

.container { padding: 0 18px; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 20;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
}
.topbar .badge {
  font-size: 0.72rem;
  color: var(--success);
  background: #e8f8ef;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 700;
}

/* ---------- Gallery ---------- */
.gallery { position: relative; background: #000; }
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  scroll-snap-align: center;
}
.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.gallery-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s, background 0.2s;
}
.gallery-dots .dot.active {
  width: 18px;
  background: #fff;
}
.gallery-slide { cursor: zoom-in; }
.gallery-zoom-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  pointer-events: none;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 10px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Hero copy ---------- */
.hero-copy {
  padding: 18px 18px 6px;
}
.eyebrow {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 800;
}
.subhead {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
  margin: 0 0 16px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.price-now {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink);
}
.price-was {
  font-size: 1.1rem;
  color: var(--muted);
  text-decoration: line-through;
}
.price-save {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 3px 9px;
  border-radius: 999px;
}

.cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.28);
}
.cta-btn:active { transform: translateY(1px); }
.cta-sub {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.trust-item {
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink);
  font-weight: 700;
}
.trust-item .ico { font-size: 1.3rem; display: block; margin-bottom: 4px; }

/* ---------- Section headings ---------- */
.section { padding: 28px 18px; }
.section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.3;
}
.section-lead {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 18px;
  line-height: 1.5;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- How It Works steps ---------- */
.steps { display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 0.98rem; margin: 4px 0 4px; font-weight: 800; }
.step p { font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.4; }

/* ---------- How to wear ---------- */
.wear-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.wear-block img { width: 100%; }
.wear-steps { margin: 0; padding: 16px 18px 18px 34px; }
.wear-steps li { font-size: 0.9rem; color: var(--ink); line-height: 1.6; padding-left: 4px; }

/* ---------- Benefit rows ---------- */
.benefit {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.benefit:last-child { border-bottom: none; }
.benefit img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}
.benefit h3 {
  font-size: 0.98rem;
  margin: 0 0 4px;
  font-weight: 800;
}
.benefit p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* ---------- Gallery full image blocks ---------- */
.feature-block { margin-bottom: 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.feature-block img { width: 100%; }
.feature-block:last-child { margin-bottom: 0; }

/* ---------- Colors ---------- */
.color-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.color-grid img { border-radius: 12px; border: 1px solid var(--line); }

/* ---------- Order form ---------- */
.order-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 4px 24px rgba(20, 20, 40, 0.06);
}
.order-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 4px;
  font-weight: 800;
}
.order-card .order-lead {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 18px;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input[type="text"],
.field input[type="tel"],
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: inherit;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}
.field input.invalid {
  border-color: var(--danger);
  background: #fdeceb;
}
.field-error {
  display: none;
  color: var(--danger);
  font-size: 0.76rem;
  margin: 6px 0 0;
  font-weight: 600;
}
.field-error:not(:empty) { display: block; }

/* ---------- Package cards ---------- */
.package-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.package-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px;
  cursor: pointer;
  background: var(--bg-soft);
}
.package-card input { position: absolute; opacity: 0; pointer-events: none; }
.package-card:has(input:checked) {
  border-color: var(--brand);
  background: #eef1ff;
  box-shadow: 0 0 0 1px var(--brand);
}
.package-card.popular { margin-top: 10px; }
.popular-badge {
  position: absolute;
  top: -11px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.popular-badge.save-badge { background: var(--success); }
.package-info { display: flex; flex-direction: column; gap: 2px; }
.package-qty { font-weight: 800; font-size: 0.95rem; }
.package-unit-price { font-size: 0.78rem; color: var(--muted); }
.package-total { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }

.qty-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  background: var(--bg-soft);
  border: none;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}
.qty-val {
  width: 46px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

.color-swatches { display: flex; gap: 10px; }
.swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--line);
  cursor: pointer;
  position: relative;
}
.swatch.selected { border-color: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.swatch[data-color="Brown"] { background: #a5662b; }
.swatch[data-color="Black"] { background: #1c1c1c; }
.swatch[data-color="Pink"] { background: #e58aa0; }
.swatch[data-color="Gray"] { background: #9aa0a6; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  margin: 10px 0 16px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  font-weight: 800;
}
.order-total-row .label { color: var(--muted); font-weight: 600; font-size: 0.88rem; }
.order-total-row .value { font-size: 1.25rem; }

.form-note {
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

.form-status {
  display: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.form-status.show { display: block; }
.form-status.ok { background: #e8f8ef; color: var(--success); }
.form-status.err { background: #fdeceb; color: var(--danger); }

/* ---------- Thank you panel ---------- */
.thank-you { text-align: center; padding: 8px 0 4px; }
.thank-you-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thank-you h2 { font-family: var(--font-display); margin-bottom: 6px; }
.ty-summary {
  text-align: left;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 4px 14px;
  margin: 16px 0;
}
.ty-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.ty-row:last-child { border-bottom: none; }
.ty-row span:first-child { color: var(--muted); }
.ty-row span:last-child { font-weight: 700; }
.ty-total span:last-child { font-size: 1.1rem; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed;
  right: max(16px, calc(50% - var(--max) / 2 + 16px));
  bottom: 92px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  z-index: 25;
  text-decoration: none;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  padding: 14px 0;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--muted);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--max);
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 10px 18px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  gap: 10px;
  align-items: center;
}
.sticky-cta .price {
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}
.sticky-cta .cta-btn { padding: 13px 16px; font-size: 0.95rem; }

/* ---------- Footer ---------- */
footer {
  padding: 24px 18px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}
footer a { color: var(--muted); text-decoration: underline; }

/* Desktop guard: keep experience centered like a phone even on wide screens */
@media (min-width: 540px) {
  body { background: #dfe3ee; }
  .page { margin: 24px auto; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.18); min-height: auto; }
  .sticky-cta { border-radius: 0 0 22px 22px; }
}
