/* AQUABLOOM — minimal skincare site */

:root {
  --cream: #f2fbfa;
  --cream-dark: #e0f4f1;
  --ink: #0f3d3a;
  --ink-soft: #4d7773;
  --sage: #2fb8a6;
  --sage-dark: #1c8c7d;
  --gold: #a6e8dc;
  --gold-dark: #6fc9b8;
  --line: #d7ece8;
  --white: #ffffff;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Karla", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 251, 250, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo svg { width: 34px; height: 34px; }

.main-nav { display: flex; gap: 32px; align-items: center; }

.main-nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

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

.nav-cta {
  border: 1px solid var(--ink);
  padding: 9px 20px !important;
  border-radius: 999px;
  color: var(--ink) !important;
}

.nav-cta:hover { background: var(--ink); color: var(--cream) !important; }

.cart-link { display: flex; align-items: center; gap: 8px; }
.cart-link svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.cart-badge {
  background: var(--ink);
  color: var(--cream);
  font-size: 10px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* Hero */
.hero {
  padding: 96px 0 80px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 18px;
  display: inline-block;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero p.lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 34px;
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--sage-dark); }

.btn-secondary { border: 1px solid var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--cream); }

.hero-visual {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

/* Jar illustration fills (used for products without real photography) */
.jar .jar-body { fill: var(--white); }
.jar .jar-lid { fill: var(--ink); }
.jar .jar-band { fill: var(--gold); }
.jar .jar-leaf { fill: var(--gold-dark); }
.jar .jar-shadow { fill: var(--ink); opacity: 0.06; }
.jar .jar-gloss { fill: var(--white); opacity: 0.35; }
.jar .jar-ring { fill: none; stroke: var(--gold); stroke-width: 3; }
.jar .jar-label-text { fill: var(--gold); font-family: Georgia, serif; }

/* Real product photo frame */
.photo-frame {
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: var(--cream-dark);
}

.photo-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Section shells */
section { padding: 80px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}

.section-head h2 { font-size: 34px; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 15.5px; }

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.benefit { text-align: center; padding: 0 12px; }

.benefit .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit .icon svg { width: 26px; height: 26px; stroke: var(--sage-dark); }

.benefit h3 { font-size: 18px; margin-bottom: 8px; }
.benefit p { color: var(--ink-soft); font-size: 14.5px; }

/* Product spotlight */
.product-band { background: var(--white); }

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.price-tag {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 6px 0 22px;
}

.price-tag .now { color: var(--ink); font-size: 22px; font-family: Georgia, serif; margin-right: 10px; }
.price-tag .was { text-decoration: line-through; }

.ingredient-list {
  list-style: none;
  margin: 26px 0 32px;
  display: grid;
  gap: 10px;
}

.ingredient-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.ingredient-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
  margin-top: 8px;
  flex-shrink: 0;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}

.stars { color: var(--sage-dark); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }

.testimonial p.quote { font-size: 15px; color: var(--ink); margin-bottom: 20px; }

.testimonial .who { font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

/* Newsletter / CTA band */
.cta-band {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  border-radius: 28px;
  margin: 0 24px;
  padding: 64px 24px;
}

.cta-band h2 { color: var(--cream); font-size: 30px; margin-bottom: 14px; }
.cta-band p { color: #cfc9bb; margin-bottom: 30px; }

.cta-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cta-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid #4a463c;
  background: #3a362e;
  color: var(--cream);
  font-size: 14px;
}

.cta-form input::placeholder { color: #a49d8c; }

.cta-form button {
  background: var(--sage);
  color: var(--ink);
  border: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Footer — single-line, minimal contact info */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--cream-dark);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-row .logo { font-size: 15px; }
.footer-row .logo svg { width: 24px; height: 24px; }

.footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--sage-dark); }

/* Inner / legal & product pages */
.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { font-size: 38px; }
.page-hero .updated { color: var(--ink-soft); font-size: 13px; margin-top: 10px; }

.legal-content { padding: 56px 0 90px; }

.legal-content .wrap { max-width: 780px; }

.legal-content h2 {
  font-size: 20px;
  margin: 40px 0 14px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p, .legal-content li {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 14px;
}

.legal-content ul { padding-left: 20px; }

.breadcrumb {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.breadcrumb a:hover { color: var(--sage-dark); }

/* Product detail page */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 56px 0;
}

.pd-info .eyebrow { margin-bottom: 12px; }
.pd-info h1 { font-size: 32px; margin-bottom: 12px; }

.pd-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.pd-rating .stars { margin: 0; }
.pd-rating span.count { font-size: 13px; color: var(--ink-soft); }

.pd-info .price-tag { font-size: 16px; }

.pd-info .desc { color: var(--ink-soft); margin-bottom: 26px; font-size: 15px; }

.qty-row { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }

.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.qty-box button {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 16px;
}

.qty-box span { width: 32px; text-align: center; font-size: 14px; }

.pd-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.pd-tabs button {
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.pd-tabs button.active { color: var(--ink); border-color: var(--sage-dark); }

.pd-tab-panel { display: none; color: var(--ink-soft); font-size: 14.5px; }
.pd-tab-panel.active { display: block; }
.pd-tab-panel ul { padding-left: 20px; margin-top: 8px; }
.pd-tab-panel li { margin-bottom: 8px; }

.related-strip { border-top: 1px solid var(--line); padding: 64px 0 90px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 36px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.related-card .thumb {
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 34%, #e2e0da 0%, #c4c2ba 55%, #9c9a90 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-card .thumb .jar { width: 40%; }

.related-card .info { padding: 20px; }
.related-card h3 { font-size: 16px; margin-bottom: 6px; }
.related-card .price { font-size: 14px; color: var(--ink-soft); }

/* Cart page */
.cart-page { padding: 48px 0 90px; }
.cart-page h1 { font-size: 32px; margin-bottom: 32px; }

.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }

.cart-list { display: grid; gap: 16px; }

.cart-row {
  display: grid;
  grid-template-columns: 84px 1fr auto auto auto;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
}

.cart-row .thumb {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-row .thumb svg { width: 55%; }
.cart-row h3 { font-size: 15.5px; margin-bottom: 4px; }
.cart-row .unit-price { font-size: 13px; color: var(--ink-soft); }
.cart-row .line-total { font-size: 15px; white-space: nowrap; }
.cart-row .remove-btn { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 13px; text-decoration: underline; white-space: nowrap; }
.cart-row .remove-btn:hover { color: var(--ink); }

.cart-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  position: sticky;
  top: 96px;
}

.cart-summary h2 { font-size: 18px; margin-bottom: 20px; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14.5px; color: var(--ink-soft); }
.cart-summary .row.total { color: var(--ink); font-size: 18px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; }
.cart-summary .btn { width: 100%; text-align: center; margin-top: 18px; }

.cart-empty { text-align: center; padding: 60px 0 20px; color: var(--ink-soft); }
.cart-empty p { margin-bottom: 22px; }

/* Checkout page */
.checkout-page { padding: 48px 0 90px; }
.checkout-page h1 { font-size: 32px; margin-bottom: 32px; }

.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 7px; }

.field input, .field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
}

.field input:focus, .field select:focus { outline: none; border-color: var(--gold-dark); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.section-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin: 28px 0 16px; }
.section-label:first-child { margin-top: 0; }

.order-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  position: sticky;
  top: 96px;
}

.order-summary h2 { font-size: 18px; margin-bottom: 20px; }

.mini-row { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.mini-row .thumb { width: 52px; height: 52px; border-radius: 10px; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.mini-row .thumb svg { width: 60%; }
.mini-row .info { flex: 1; font-size: 13.5px; }
.mini-row .info .qty { color: var(--ink-soft); font-size: 12.5px; }
.mini-row .line-total { font-size: 13.5px; white-space: nowrap; }

.order-summary .row { display: flex; justify-content: space-between; margin: 12px 0; font-size: 14.5px; color: var(--ink-soft); }
.order-summary .row.total { color: var(--ink); font-size: 18px; border-top: 1px solid var(--line); padding-top: 16px; }

/* Order-placed modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 40, 34, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-box {
  background: var(--cream);
  border-radius: 20px;
  padding: 44px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.modal-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-check svg { width: 26px; height: 26px; stroke: var(--white); fill: none; stroke-width: 2; }

.modal-box h2 { font-size: 24px; margin-bottom: 10px; }
.modal-box p { color: var(--ink-soft); font-size: 14.5px; }
.modal-order-id {
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--cream-dark);
  border-radius: 999px;
  padding: 8px 18px;
  display: inline-block;
  margin: 16px 0 26px;
}

/* Contact snippet on legal pages */
.contact-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 30px;
  margin-top: 30px;
}

.contact-box p { margin-bottom: 6px; }
.contact-box p:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 860px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 18px; transform: translateY(-130%); transition: transform 0.25s ease; }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }

  .hero .wrap, .product-grid, .pd-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero h1 { font-size: 38px; }

  .benefits-grid, .testimonial-grid, .related-grid { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }

  .cart-layout, .checkout-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 64px 1fr; grid-template-areas: "thumb info" "thumb qty" "thumb total" "thumb remove"; row-gap: 8px; }
  .cart-row .thumb { grid-area: thumb; width: 64px; height: 64px; }
  .order-summary, .cart-summary { position: static; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .cta-band { margin: 0 12px; padding: 48px 20px; }
  .field-row { grid-template-columns: 1fr; }
}
