/* ============ Variables ============ */
:root {
  --bg: #ffffff;
  --panel: #f5f5f4;        /* light grey image panel */
  --card: #ffffff;
  --text: #111112;
  --muted: #6b6b70;
  --line: #e6e6e3;
  --black: #141416;        /* buttons */
  --black-hover: #2c2c30;
  --star: #f5a623;
  --pill: #eef0ec;
  --ship: #e7f3ea;
  --ship-text: #1c7a3e;
  --radius: 14px;
  --maxw: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* ============ Nav ============ */
.nav {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  z-index: 40;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  font-size: 1rem;
}
.nav-links { display: none; gap: 1.75rem; }
.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-ship { display: none; font-size: 0.8rem; color: var(--muted); }
.nav-cart { text-decoration: none; font-size: 1.1rem; }

/* ============ Layout ============ */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem 3rem; }

.breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 1rem 0 1.5rem;
}
.breadcrumb a { text-decoration: none; }

/* ============ Product ============ */
.product {
  display: grid;
  gap: 2rem;
}

/* Gallery */
.gallery { display: flex; flex-direction: column-reverse; gap: 0.75rem; }
.main-image {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.5rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-image img { max-height: 100%; object-fit: contain; border-radius: 6px; }
.thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
}
.thumb {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  padding: 4px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.active { border-color: var(--black); }

/* Info panel */
.info { display: flex; flex-direction: column; }
.badge {
  align-self: flex-start;
  background: var(--text);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.9rem;
}
.info h1 {
  font-size: 1.85rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.tagline {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.price-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1.1rem 0 0.6rem;
}
.price { font-size: 1.7rem; font-weight: 800; }
.compare { font-size: 1rem; color: var(--muted); text-decoration: line-through; }
.pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  background: var(--pill);
}
.pill-ship { background: var(--ship); color: var(--ship-text); }

.rating { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.stars, .testi-rating { color: var(--star); letter-spacing: 1px; }
.star-half { opacity: 0.4; }
.rating-text { color: var(--muted); }
.rating-text a { color: var(--muted); }

/* Feature grid */
.feature-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.25rem;
  margin: 1.6rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-grid li { display: flex; align-items: center; gap: 0.65rem; }
.feature-grid svg {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-grid strong { display: block; font-size: 0.9rem; }
.feature-grid span { font-size: 0.78rem; color: var(--muted); }

/* Buttons */
.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1rem 1.5rem;
  border-radius: 40px;
  border: 1.5px solid var(--black);
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--black); color: #fff; }
.btn-primary:hover { background: var(--black-hover); border-color: var(--black-hover); }
.btn-outline { background: #fff; color: var(--black); }
.btn-outline:hover { background: var(--text); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.7rem 1.2rem; font-size: 0.85rem; }

.cta-group { display: flex; flex-direction: column; gap: 0.7rem; }

/* Trust row (under CTAs) */
.trust-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.trust-row li { display: flex; align-items: center; gap: 0.5rem; }
.trust-row svg, .trust-bar svg {
  width: 24px; height: 24px; flex: 0 0 auto;
  fill: none; stroke: var(--text); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.trust-row span { display: flex; flex-direction: column; font-size: 0.72rem; color: var(--muted); line-height: 1.25; }
.trust-row strong { font-size: 0.78rem; color: var(--text); }

/* ============ Supporting cards ============ */
.cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: var(--panel);
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.card .btn { margin-top: auto; }

.testimonial { background: var(--panel); }
.testi-rating { font-size: 1.1rem; margin-bottom: 0.4rem; }
.testi-rating strong { color: var(--text); margin-left: 0.3rem; }
.testimonial blockquote {
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  margin: 0.5rem 0 1rem;
}
.testi-name { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

/* ============ FAQ ============ */
.faq { max-width: 720px; margin: 3.5rem auto 0; }
.faq h2 { text-align: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.6rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--muted); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.7rem; color: var(--muted); font-size: 0.92rem; }

/* ============ Trust bar ============ */
.trust-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 3.5rem;
  padding: 2rem 1.5rem;
  background: var(--panel);
  border-radius: var(--radius);
}
.trust-bar div { display: flex; align-items: center; gap: 0.6rem; }
.trust-bar span { display: flex; flex-direction: column; font-size: 0.72rem; color: var(--muted); }
.trust-bar strong { font-size: 0.82rem; color: var(--text); }

/* ============ Footer ============ */
footer {
  text-align: center;
  padding: 2.5rem 1rem 6rem;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}
footer a { color: var(--muted); }

/* ============ Sticky mobile bar ============ */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  transform: translateY(110%);
  transition: transform .25s ease;
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-price { display: flex; align-items: baseline; gap: 0.4rem; }
.sticky-price .price { font-size: 1.2rem; }
.sticky-price .compare { font-size: 0.85rem; }
.sticky-bar .btn { flex: 0 0 auto; }

/* ============ Tablet ============ */
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-ship { display: inline; }
  .product { grid-template-columns: 1fr 1fr; align-items: start; gap: 3rem; padding-top: 0.5rem; }
  .gallery { flex-direction: row; }
  .thumbs { flex-direction: column; overflow: visible; }
  .cta-group { flex-direction: row; }
  .cta-group .btn { flex: 1; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .trust-bar { grid-template-columns: repeat(4, 1fr); }
  .info h1 { font-size: 2.1rem; }
  .sticky-bar { display: none; }
}

/* ============ Desktop ============ */
@media (min-width: 1024px) {
  .info h1 { font-size: 2.3rem; }
}
