/* ============================================================
   Aquasorb Living — global stylesheet
   Minimal, clean, spa-like aesthetic echoing the source site:
   warm stone neutrals, generous whitespace, subtle motion.
   ============================================================ */

:root {
  --bg: #f6f4ef;          /* warm off-white stone */
  --bg-alt: #efeae0;      /* slightly deeper stone */
  --ink: #2b2723;         /* near-black brown */
  --ink-soft: #6c645a;    /* muted brown-gray */
  --line: #e3ddd1;        /* hairline borders */
  --brand: #6b7d6a;       /* sage green */
  --brand-dark: #4d5d4c;
  --accent: #c9863f;      /* terracotta */
  --sale: #b5483f;        /* sale red */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(43, 39, 35, 0.06);
  --container: 1240px;
  --type: "Helvetica Neue", Arial, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--type);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--brand-dark);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 9px 12px;
}
.announce strong { font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 70px;
}
.logo {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}
.logo .brand-name b { color: var(--brand-dark); }
.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a {
  font-size: 0.92rem;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.nav a:hover { border-color: var(--brand); color: var(--brand-dark); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.icon-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
}
.icon-btn:hover { color: var(--brand-dark); }
.cart-count {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }

.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s, transform 0.1s, border-color 0.15s;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-dark); color: #fff; }
.btn-primary:hover { background: #3d4b3c; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #b27535; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #efeae0 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--brand-dark);
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); margin-bottom: 0.35em; }
.hero h1 em { font-style: normal; color: var(--brand-dark); }
.hero p { font-size: 1.12rem; color: var(--ink-soft); max-width: 460px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 30px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 1.5rem; color: var(--ink); }
.hero-stats .stat span { font-size: 0.8rem; color: var(--ink-soft); }
.hero-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Section ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--brand-dark);
  font-weight: 700;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card .media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  overflow: hidden;
}
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .media img { transform: scale(1.04); }
.product-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--sale);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}
.product-card .cat-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  z-index: 2;
}
.product-card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .title { font-size: 0.98rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.product-card .price { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.product-card .compare { font-size: 0.9rem; color: var(--ink-soft); text-decoration: line-through; }
.product-card .quick-add {
  margin-top: 10px;
  width: 100%;
  padding: 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  transition: background 0.15s;
}
.product-card .quick-add:hover { background: var(--brand-dark); }
.product-card .quick-add.added { background: var(--brand); }

/* ---------- Value props ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { text-align: center; padding: 22px; }
.value .ico {
  width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.value h4 { font-size: 1rem; margin-bottom: 5px; }
.value p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: 22px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--bg-alt); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; }
.feature-list .check {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; margin-top: 2px;
}

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.testimonial .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial p { color: var(--ink); font-style: italic; }
.testimonial .who { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter form { display: flex; gap: 10px; max-width: 460px; margin: 22px auto 0; }
.newsletter input {
  flex: 1; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 0.95rem; color: var(--ink);
}
.newsletter input:focus { outline: none; border-color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: #2b2723; color: #d8d2c8; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h5 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.site-footer a { color: #d8d2c8; font-size: 0.9rem; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .blurb { font-size: 0.9rem; color: #b6ada0; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid #423c36; margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: #9a9085;
}
.pay-badges { display: flex; gap: 8px; align-items: center; }
.pay-badge {
  background: #fff; color: #2b2723; font-size: 0.66rem; font-weight: 700;
  padding: 4px 8px; border-radius: 4px; letter-spacing: 0.02em;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.84rem; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb span { margin: 0 8px; color: var(--line); }

/* ---------- Page header ---------- */
.page-head { padding: 40px 0 28px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-head p { color: var(--ink-soft); font-size: 1.05rem; max-width: 600px; }

/* ---------- Filters bar (shop) ---------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; padding-bottom: 64px; }
.filters { position: sticky; top: 90px; }
.filters h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 12px; }
.filter-group { margin-bottom: 26px; }
.filter-opt { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 0.92rem; cursor: pointer; }
.filter-opt input { accent-color: var(--brand); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.shop-toolbar .count { color: var(--ink-soft); font-size: 0.9rem; }
.shop-toolbar select {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 0.9rem; color: var(--ink);
}

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; padding: 20px 0 64px; }
.pdp-gallery { display: flex; flex-direction: column; gap: 14px; }
.pdp-main { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pdp-thumb { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--bg-alt); cursor: pointer; }
.pdp-thumb.active { border-color: var(--brand); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.pdp-cat { color: var(--brand-dark); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.pdp-price .price { font-size: 1.7rem; font-weight: 700; }
.pdp-price .compare { font-size: 1.2rem; color: var(--ink-soft); text-decoration: line-through; }
.pdp-price .save { background: var(--sale); color: #fff; font-size: 0.74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pdp-desc { color: var(--ink-soft); font-size: 1.02rem; }
.pdp-features { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.pdp-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.pdp-features .check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; margin-top: 1px; }
.qty-row { display: flex; gap: 12px; align-items: center; margin: 22px 0; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty-stepper button { width: 40px; height: 44px; background: none; border: none; font-size: 1.2rem; color: var(--ink); }
.qty-stepper input { width: 44px; text-align: center; border: none; font-size: 1rem; color: var(--ink); }
.pdp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pdp-meta { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 8px; font-size: 0.88rem; color: var(--ink-soft); }
.pdp-meta b { color: var(--ink); }
.pdp-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 0.84rem; color: var(--ink-soft); }
.pdp-trust span { display: flex; align-items: center; gap: 6px; }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; padding-bottom: 64px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--bg-alt); }
.cart-item .name { font-weight: 600; font-size: 0.98rem; }
.cart-item .meta { font-size: 0.82rem; color: var(--ink-soft); }
.cart-item .remove { background: none; border: none; color: var(--ink-soft); font-size: 0.82rem; padding: 0; margin-top: 6px; text-decoration: underline; }
.cart-item .remove:hover { color: var(--sale); }
.cart-item .line-total { font-weight: 700; }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.cart-summary h3 { margin-top: 0; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.95rem; color: var(--ink-soft); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.summary-row.free { color: var(--brand-dark); font-weight: 600; }
.summary-row select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 0.85rem; }
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state .ico { font-size: 3rem; margin-bottom: 14px; }

/* ---------- Success page ---------- */
.success-wrap { max-width: 560px; margin: 0 auto; text-align: center; padding: 70px 20px; }
.success-wrap .check-big {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; background: var(--brand);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
}

/* ---------- Policy pages ---------- */
.policy { max-width: 760px; margin: 0 auto; padding: 30px 24px 70px; }
.policy h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.policy .updated { color: var(--ink-soft); font-size: 0.86rem; margin-bottom: 28px; }
.policy h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.policy p, .policy li { color: var(--ink-soft); }
.policy ul { padding-left: 20px; }
.policy a { color: var(--brand-dark); text-decoration: underline; }
.policy .contact-box { background: var(--bg-alt); border-radius: var(--radius); padding: 20px 24px; margin-top: 30px; }
.policy .contact-box h3 { margin: 0 0 8px; color: var(--ink); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: 0.9rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; padding: 44px 0; gap: 30px; }
  .hero-media { aspect-ratio: 4/3; max-height: 380px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .cart-layout { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: flex; flex-wrap: wrap; gap: 10px; }
  .filter-group { margin-bottom: 10px; flex: 1 1 140px; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg);
    flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--line); gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-flex; background: none; border: none; font-size: 1.4rem; }
  .header-inner { gap: 14px; }
}
@media (max-width: 560px) {
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pdp-thumbs { grid-template-columns: repeat(4, 1fr); }
  .container { padding: 0 16px; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item img { width: 64px; height: 64px; }
  .cart-item .qty-cell { grid-column: 2; }
}
