/* ============================================================
   SPA Golf Shop — Custom Golf Balls
   ============================================================ */

:root {
  --green-900: #0b3d2c;
  --green-800: #0e4a35;
  --green-700: #14573f;
  --green-600: #1b6a4d;
  --green-500: #1e7a56;
  --green-100: #dcefe5;
  --cream: #f6f3ea;
  --paper: #fffdf8;
  --ink: #1b211d;
  --muted: #5c6660;
  --line: #e4e0d4;
  --gold: #c9a227;
  --gold-dark: #a5831b;
  --red: #c0392b;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 40, 30, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 40, 30, 0.18);
  --font-head: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", -apple-system, "Segoe UI", system-ui, sans-serif;
}

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


body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container { width: min(1180px, 92%); margin-inline: auto; }

h1, h2, h3, .brand-word { font-family: var(--font-head); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); margin-top: 10px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-600);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ---------- Announcement + Header ---------- */

.announce {
  background: var(--green-900);
  color: #e9f3ed;
  text-align: center;
  font-size: 0.85rem;
  padding: 9px 16px;
  letter-spacing: 0.02em;
}
.announce strong { color: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding: 14px 0; }

.brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.brand-mark { width: 38px; height: 38px; }
.brand-word { font-weight: 700; }
.brand-word .accent { color: var(--green-600); }

.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover { color: var(--green-600); }
.main-nav a.active { color: var(--green-700); border-bottom-color: var(--green-600); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; }
.cart-link:hover { background: var(--green-100); }
.cart-link svg { width: 23px; height: 23px; }
.cart-badge {
  position: absolute;
  top: 1px; right: -2px;
  background: var(--green-600);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.cart-badge.hidden { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  place-items: center;
}
.nav-toggle:hover { background: var(--green-100); }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.12s, background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); }
.btn-gold { background: var(--gold); color: #2a2005; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: rgba(0,0,0,0.06); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--green-100); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(30, 122, 86, 0.55), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(201, 162, 39, 0.22), transparent 55%),
    linear-gradient(160deg, #0b3d2c 0%, #0e4a35 55%, #0a3526 100%);
  color: #f2f7f4;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 84px 0 90px;
  position: relative;
  z-index: 1;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead { margin: 20px 0 32px; font-size: 1.13rem; color: #cfe0d7; max-width: 34rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 1.6rem; font-family: var(--font-head); color: #fff; }
.hero-stats .stat span { font-size: 0.85rem; color: #a9c4b6; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-ball { width: min(340px, 74vw); filter: drop-shadow(0 30px 40px rgba(0,0,0,0.35)); animation: float 6s ease-in-out infinite; }
.hero-ball-sm {
  position: absolute;
  width: 110px;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,0.3));
  animation: float 5s ease-in-out infinite reverse;
}
.hero-ball-sm.b1 { top: 4%; left: 2%; }
.hero-ball-sm.b2 { bottom: 6%; right: 4%; animation-delay: 1.2s; width: 84px; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}

/* ---------- Trust bar ---------- */

.trust-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 0; }
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-item svg { width: 30px; height: 30px; flex: none; color: var(--green-600); }
.trust-item b { display: block; font-size: 0.95rem; }
.trust-item span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Product cards ---------- */

.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 26px 16px;
  background: linear-gradient(160deg, #eef3ec, #e2ebe0);
}
.card-media .ball-thumb { width: 150px; transition: transform 0.25s; }
.card:hover .card-media .ball-thumb { transform: scale(1.06) rotate(4deg); }
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--green-700);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.card-badge.gold { background: var(--gold); color: #2a2005; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.card-name { font-size: 1.08rem; }
.card-rating { font-size: 0.85rem; color: var(--gold-dark); display: flex; align-items: center; gap: 6px; }
.card-rating .count { color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-price b { font-size: 1.15rem; }
.card-price span { font-size: 0.8rem; color: var(--muted); display: block; }

/* ---------- Stars ---------- */
.stars { color: var(--gold-dark); letter-spacing: 1px; }

/* ---------- Steps ---------- */

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}
.step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-700);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(140deg, var(--green-800), var(--green-900));
  border-radius: 24px;
  color: #fff;
  padding: 54px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,0.06);
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #cfe0d7; margin-top: 8px; max-width: 32rem; }

/* ---------- Testimonials ---------- */

.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.testi .quote { font-size: 0.98rem; margin: 12px 0 18px; color: #33413a; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 700;
}
.testi .who b { display: block; font-size: 0.92rem; }
.testi .who span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Newsletter ---------- */

.newsletter { background: var(--green-100); border-radius: 24px; padding: 46px; 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;
  outline: none;
}
.newsletter input:focus { border-color: var(--green-600); }

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: #eef5f0;
  padding: 52px 0 58px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.page-hero p { color: #bcd6ca; margin-top: 8px; max-width: 40rem; }
.breadcrumb { font-size: 0.85rem; color: #9dbcae; margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Shop layout ---------- */

.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: start; padding: 48px 0 80px; }

.filters {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 92px;
}
.filters h3 { font-size: 1rem; margin-bottom: 12px; }
.filters .group + .group { margin-top: 20px; }
.check-row { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: 0.93rem; }
.check-row input { accent-color: var(--green-700); width: 16px; height: 16px; }
.check-row .n { color: var(--muted); font-size: 0.8rem; margin-left: auto; }

.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.shop-toolbar .count { font-weight: 600; }
.shop-toolbar .spacer { flex: 1; }
.shop-toolbar select, .shop-toolbar input[type="search"] {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  outline: none;
}
.shop-toolbar input[type="search"] { min-width: 200px; }
.shop-toolbar select:focus, .shop-toolbar input:focus { border-color: var(--green-600); }

.empty-state {
  text-align: center;
  padding: 70px 20px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

/* ---------- Product / customizer layout ---------- */

.pdp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px 0 80px; align-items: start; }

.pdp-preview {
  background:
    radial-gradient(500px 320px at 70% 20%, rgba(255,255,255,0.55), transparent 60%),
    linear-gradient(160deg, #eef3ec, #dfe9dd);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 20px 24px;
  display: grid;
  place-items: center;
  position: sticky;
  top: 92px;
}
.pdp-preview .ball-main { width: min(330px, 60vw); filter: drop-shadow(0 24px 30px rgba(10, 40, 28, 0.25)); }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.pdp-thumbs button {
  background: none;
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 4px;
  line-height: 0;
}
.pdp-thumbs button.active, .pdp-thumbs button:hover { border-color: var(--green-600); }
.pdp-thumbs .ball-thumb { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; }

.pdp-info h1 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.pdp-rating { display: flex; align-items: center; gap: 8px; margin: 10px 0 16px; color: var(--muted); font-size: 0.92rem; }
.pdp-price { font-size: 2rem; font-family: var(--font-head); color: var(--green-800); }
.pdp-price span { font-size: 0.95rem; font-family: var(--font-body); color: var(--muted); }
.pdp-short { color: var(--muted); margin: 14px 0 22px; }

.option-block { border-top: 1px solid var(--line); padding: 20px 0; }
.option-block > label, .option-block .opt-label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 10px; }
.option-block .opt-label em { color: var(--muted); font-style: normal; font-weight: 500; }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  padding: 0;
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--green-600); }

.text-input-row { display: flex; gap: 10px; }
.text-input-row input[type="text"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
  text-transform: uppercase;
}
.text-input-row input[type="text"]:focus { border-color: var(--green-600); }
.text-input-row .char-count { align-self: center; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.text-input-row input[type="number"] {
  width: 82px;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
  text-align: center;
}
.text-input-row input[type="number"]:focus { border-color: var(--green-600); }

.select-row select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
}

.qty-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.qty-stepper button {
  width: 42px; height: 42px;
  border: none;
  background: none;
  font-size: 1.25rem;
  color: var(--green-800);
}
.qty-stepper button:hover { background: var(--green-100); }
.qty-stepper input {
  width: 56px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 1.02rem;
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.bulk-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 12px; }
.bulk-table th, .bulk-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.bulk-table th { color: var(--muted); font-weight: 600; }
.bulk-table tr.active-tier td { background: var(--green-100); font-weight: 700; border-radius: 6px; }

.buy-row { display: flex; gap: 14px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.buy-row .total-line { font-size: 1.05rem; }
.buy-row .total-line b { font-size: 1.5rem; font-family: var(--font-head); color: var(--green-800); }
.you-save { color: var(--green-600); font-weight: 600; font-size: 0.9rem; margin-top: 6px; }

.assure { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 0.85rem; }
.assure span { display: flex; align-items: center; gap: 7px; }
.assure svg { width: 17px; height: 17px; color: var(--green-600); }

/* ---------- Tabs ---------- */

.tabs { margin-top: 30px; }
.tab-list { display: flex; gap: 6px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.tab-list button {
  background: none;
  border: none;
  padding: 12px 18px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tab-list button.active { color: var(--green-800); border-bottom-color: var(--green-600); }
.tab-panel { display: none; padding: 24px 4px; color: #33413a; }
.tab-panel.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; max-width: 560px; }
.spec-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--muted); width: 40%; }

/* ---------- Related ---------- */
.related { padding-bottom: 80px; }

/* ---------- Cart ---------- */

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: start; padding: 48px 0 80px; }
.cart-list { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  align-items: center;
}
.cart-item .ball-mini { width: 90px; }
.cart-item .ci-name { font-weight: 700; font-size: 1.02rem; }
.cart-item .ci-meta { color: var(--muted); font-size: 0.85rem; margin: 4px 0 10px; }
.cart-item .ci-meta b { color: var(--ink); }
.cart-item .ci-remove {
  background: none; border: none;
  color: var(--red);
  font-size: 0.85rem;
  text-decoration: underline;
  padding: 0;
}
.cart-item .ci-price { text-align: right; font-weight: 700; font-size: 1.08rem; }
.cart-item .ci-price span { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.cart-item .qty-stepper button { height: 34px; width: 34px; }

.summary-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 92px;
}
.summary-card h3 { margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95rem; }
.sum-row.discount { color: var(--green-600); font-weight: 600; }
.sum-row.total {
  border-top: 2px solid var(--line);
  margin-top: 10px;
  padding-top: 14px;
  font-size: 1.2rem;
  font-weight: 700;
}
.ship-progress { margin: 16px 0; }
.ship-progress .bar { height: 8px; background: var(--green-100); border-radius: 4px; overflow: hidden; }
.ship-progress .bar i { display: block; height: 100%; background: var(--green-600); border-radius: 4px; transition: width 0.3s; }
.ship-progress p { font-size: 0.84rem; color: var(--muted); margin-top: 7px; }

/* ---------- Checkout ---------- */

.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 34px; align-items: start; padding: 48px 0 80px; }
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.form-card + .form-card { margin-top: 20px; }
.form-card h3 { margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.form-card h3 .chip {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-700); color: #fff;
  display: grid; place-items: center;
  font-size: 0.85rem; font-family: var(--font-body);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--green-600); }
.pay-note {
  margin-top: 12px;
  background: #fdf6e3;
  border: 1px solid #eadfae;
  color: #6b5b1d;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.mini-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.mini-item { display: flex; gap: 12px; align-items: center; }
.mini-item .ball-mini { width: 52px; flex: none; }
.mini-item .mi-name { font-size: 0.9rem; font-weight: 600; }
.mini-item .mi-meta { font-size: 0.78rem; color: var(--muted); }
.mini-item .mi-price { margin-left: auto; font-weight: 700; font-size: 0.92rem; white-space: nowrap; }

.confirmation {
  max-width: 640px;
  margin: 60px auto 90px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 52px 44px;
  text-align: center;
}
.confirmation .check-circle {
  width: 74px; height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-100);
  display: grid; place-items: center;
  color: var(--green-700);
}
.confirmation .check-circle svg { width: 36px; height: 36px; }
.order-number {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 999px;
  margin: 14px 0 20px;
}

/* ---------- Footer ---------- */

.site-footer { background: #0a2e21; color: #b9cdc1; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 40px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { font-size: 0.9rem; max-width: 30rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; font-family: var(--font-body); letter-spacing: 0.04em; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul a { font-size: 0.9rem; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.pay-icons { display: flex; gap: 8px; }
.pay-icons span {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* ---------- Toast ---------- */

.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  max-width: 360px;
  animation: toast-in 0.25s ease;
}
.toast.success { background: var(--green-800); }
.toast svg { width: 20px; height: 20px; flex: none; color: #7fd0a8; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.toast.hide { opacity: 0; transition: opacity 0.3s; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.not-found { padding: 90px 0; text-align: center; color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 0; text-align: center; }
  .hero-visual { min-height: 300px; }
  .hero p.lead, .hero-cta { margin-inline: auto; justify-content: center; }
  .hero-stats { justify-content: center; }
  .pdp-layout, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .pdp-preview, .summary-card, .filters { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .steps-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .steps-grid, .testi-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item .ci-price { grid-column: 2; text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .newsletter { padding: 32px 20px; }
  .newsletter form { flex-direction: column; }
  .cta-banner { padding: 36px 26px; }
  .confirmation { padding: 36px 22px; }

  .nav-toggle { display: grid; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 18px 4%;
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; border-radius: 8px; }
  .main-nav a:hover { background: var(--green-100); }
}
