/* ============================================================
   WEBCRAFT STUDIO — Contractor Client-Getting Kit
   Palette: charcoal #15181A / #1E2320 · warm white #FAF8F3
   soft gray #6E7370 · forest #3E5A3B · olive #6E7F5C · beige #CBB68F
   ============================================================ */

:root {
  --ink: #15181A;
  --charcoal: #1E2320;
  --charcoal-2: #262C27;
  --paper: #FAF8F3;
  --gray: #6E7370;
  --gray-light: #E7E4DC;
  --forest: #3E5A3B;
  --forest-dark: #314730;
  --olive: #6E7F5C;
  --sage: #B9C4AD;
  --beige: #CBB68F;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(21, 24, 26, 0.10);
  --font-head: 'Archivo', Arial, sans-serif;
  --font-display: 'Archivo Black', 'Archivo', Arial, sans-serif;
  --font-body: 'Source Sans 3', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.container-narrow { width: min(760px, 92%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 6px 18px rgba(62, 90, 59, 0.35);
}
.btn-primary:hover { background: var(--forest-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(62, 90, 59, 0.45); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-block { width: 100%; }
.btn-disabled { background: #9aa09a; color: #fff; cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-secondary:hover { background: var(--forest); color: #fff; }

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
#site-header.scrolled {
  background: rgba(21, 24, 26, 0.97);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.logo span { color: var(--beige); font-weight: 400; font-family: var(--font-head); }
nav { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--beige); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; flex-shrink: 0; z-index: 960; position: relative; padding: 8px; }
.mobile-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Cart icon (injected by cart.js into .nav-links) */
.cart-icon { position: relative; display: flex; align-items: center; }
.cart-icon svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--forest);
  color: #fff;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-head);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 80px;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(100deg, rgba(21,24,26,0.94) 0%, rgba(21,24,26,0.82) 45%, rgba(30,35,32,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero h1 em {
  font-family: var(--font-display);
  font-style: normal;
  color: var(--sage);
}
.hero-sub { color: rgba(255,255,255,0.85); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 540px; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.hero-trust { color: rgba(255,255,255,0.6); font-size: 0.92rem; letter-spacing: 0.02em; }

/* Hero mockup composition */
.hero-mockup { position: relative; min-height: 480px; }
.mock-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  transition: transform 0.35s ease;
}
.mock-guide:hover ~ .mock-card, .hero-mockup:hover .mock-card { transform: translate(6px, -6px); }
.mock-back-1 { top: 2%; left: 4%; transform: rotate(-5deg); }
.mock-back-2 { top: 12%; right: 2%; transform: rotate(4deg); }
.mock-back-3 { top: 36%; right: -2%; transform: rotate(-3deg); }
.mock-back-4 { bottom: 8%; right: 6%; transform: rotate(3deg); }
.mock-back-5 { bottom: 2%; left: 8%; transform: rotate(-4deg); }
.mock-guide {
  position: absolute;
  top: 50%; left: 42%;
  transform: translate(-50%, -50%);
  width: min(300px, 78%);
  background: linear-gradient(160deg, #232A25 0%, #15181A 100%);
  border: 1px solid rgba(203, 182, 143, 0.35);
  border-radius: 6px 14px 14px 6px;
  padding: 28px 26px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  z-index: 3;
}
.mock-guide-brand { font-family: var(--font-head); font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--beige); margin-bottom: 10px; }
.mock-guide-rule { width: 44px; height: 3px; background: var(--forest); margin-bottom: 16px; border-radius: 2px; }
.mock-guide-title { font-family: var(--font-display); color: #fff; font-size: 1.35rem; line-height: 1.2; margin-bottom: 18px; }
.mock-guide-list { display: flex; flex-direction: column; gap: 7px; }
.mock-guide-list span { font-family: var(--font-body); font-size: 0.72rem; color: rgba(255,255,255,0.72); border-left: 2px solid var(--olive); padding-left: 10px; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--charcoal); color: #EDECE6; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.section-dark .section-head h2 { color: #fff; }
.section-lede { color: var(--gray); font-size: 1.08rem; }
.section-dark .section-lede { color: rgba(255,255,255,0.72); }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--beige); }

/* ---------- Modules accordion ---------- */
.modules-accordion { border-top: 1px solid var(--gray-light); }
.module-item { border-bottom: 1px solid var(--gray-light); }
.module-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 26px;
  background: none;
  border: none;
  padding: 26px 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}
.module-head:hover { background: rgba(62, 90, 59, 0.05); }
.module-num { font-family: var(--font-display); font-size: 1rem; color: var(--olive); flex-shrink: 0; width: 44px; }
.module-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--ink); flex: 1; }
.module-toggle { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.module-toggle::before, .module-toggle::after {
  content: '';
  position: absolute;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.module-toggle::before { top: 9px; left: 0; width: 20px; height: 2px; }
.module-toggle::after { top: 0; left: 9px; width: 2px; height: 20px; }
.module-item.open .module-toggle::after { transform: rotate(90deg); opacity: 0; }
.module-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.module-item.open .module-body { max-height: 200px; }
.module-body p { color: var(--gray); padding: 0 10px 26px 80px; font-size: 1.05rem; max-width: 760px; }

/* ---------- What you get ---------- */
.get-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.get-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.get-card:hover { transform: translateY(-5px); border-color: var(--olive); background: rgba(255,255,255,0.06); }
.get-card h3 { color: #fff; font-size: 1.12rem; margin: 20px 0 8px; }
.get-card p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }

/* Document mini-mockups */
.doc-mock {
  height: 120px;
  background: var(--paper);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.doc-dark { background: linear-gradient(160deg, #232A25, #15181A); border: 1px solid rgba(203,182,143,0.3); }
.doc-lines { display: block; height: 7px; background: var(--sage); border-radius: 3px; }
.doc-dark .doc-lines { background: rgba(255,255,255,0.35); }
.w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; } .w50 { width: 50%; } .w65 { width: 65%; }
.doc-check { display: block; height: 12px; width: 78%; background: repeating-linear-gradient(90deg, var(--forest) 0 12px, transparent 12px 18px); border-radius: 3px; }
.doc-check.half { width: 46%; }
.doc-cal { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 8px; }
.cal-cell { width: 28%; height: 22px; background: var(--gray-light); border-radius: 4px; }
.cal-cell.accent { background: var(--forest); }
.doc-chat { gap: 8px; }
.chat-bubble { display: block; height: 18px; width: 70%; background: var(--gray-light); border-radius: 10px; }
.chat-bubble.left { border-bottom-left-radius: 2px; }
.chat-bubble.right { align-self: flex-end; background: var(--forest); border-bottom-right-radius: 2px; }
.chat-bubble.left.short { width: 45%; }
.doc-prompt { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 8px; }
.prompt-tag { width: 42%; height: 20px; background: var(--gray-light); border-radius: 4px; border-left: 4px solid var(--beige); }
.prompt-tag.half { width: 30%; }
.doc-score { flex-direction: row; align-items: center; gap: 12px; }
.score-bar { flex: 1; height: 8px; background: var(--gray-light); border-radius: 4px; }
.score-bar.short { width: 40%; flex: none; background: var(--forest); }
.score-num { font-family: var(--font-display); font-size: 1rem; color: var(--forest); }
.doc-score.big .score-num { font-size: 1.6rem; }

/* ---------- Who it's for ---------- */
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.who-card {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 30px 26px;
  border-top: 4px solid var(--forest);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.who-card:hover { transform: translateY(-4px); }
.who-card h3 { font-size: 1.05rem; color: var(--ink); }
.who-card-alt { border-top-color: var(--beige); }

/* ---------- Before / After ---------- */
.ba-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ba-col { border-radius: var(--radius); padding: 40px 36px; }
.ba-before { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); }
.ba-after { background: var(--forest); }
.ba-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--beige);
}
.ba-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ba-col li { padding-left: 30px; position: relative; font-size: 1.05rem; color: rgba(255,255,255,0.85); }
.ba-before li::before { content: ''; position: absolute; left: 0; top: 10px; width: 14px; height: 2px; background: var(--gray); }
.ba-after li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--beige); border-bottom: 2px solid var(--beige); transform: rotate(-45deg); }

/* ---------- Price ---------- */
.price-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}
.price-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 30px; }
.price-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--gray-light);
}
.price-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.price-amount { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.2rem); color: var(--forest); }
.price-includes { list-style: none; max-width: 420px; margin: 0 auto 36px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.price-includes li { padding-left: 32px; position: relative; font-size: 1.02rem; }
.price-includes li::before {
  content: '';
  position: absolute; left: 0; top: 5px;
  width: 18px; height: 10px;
  border-left: 3px solid var(--forest);
  border-bottom: 3px solid var(--forest);
  transform: rotate(-45deg);
}
.price-fine { margin-top: 16px; color: var(--gray); font-size: 0.88rem; }

/* ---------- Bonus ---------- */
.section-bonus { background: var(--forest-dark); color: #EDECE6; }
.bonus-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.bonus-copy h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 20px; }
.bonus-copy p { color: rgba(255,255,255,0.8); max-width: 560px; font-size: 1.06rem; }
.bonus-visual .doc-mock { height: 200px; box-shadow: 0 20px 50px rgba(0,0,0,0.35); }

/* ---------- Product grid (featured + shop) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }
.product-card {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(21,24,26,0.16); }
.product-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--charcoal); cursor: pointer; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-info { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-info h3 { font-size: 1.05rem; }
.product-category { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); font-weight: 600; }
.product-price { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.loading, .no-products, .error { grid-column: 1 / -1; text-align: center; color: var(--gray); padding: 60px 0; font-size: 1.05rem; }

/* ---------- Upsell ---------- */
.section-upsell { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); min-height: 560px; }
.upsell-media { position: relative; overflow: hidden; }
.upsell-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upsell-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,24,26,0.2), rgba(21,24,26,0.75)); }
.upsell-copy { padding: clamp(50px, 7vw, 100px) clamp(30px, 5vw, 80px); color: rgba(255,255,255,0.85); }
.upsell-copy h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 18px; }
.upsell-lede { font-family: var(--font-head); font-weight: 600; color: var(--beige); font-size: 1.1rem; margin-bottom: 18px; }
.upsell-services { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 28px 0 36px; max-width: 460px; }
.upsell-services li { padding-left: 24px; position: relative; font-size: 0.98rem; }
.upsell-services li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--olive); border-radius: 2px; }

/* ---------- FAQ ---------- */
.faq-list details {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-list summary {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 60px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 26px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--forest);
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 26px 24px; color: var(--gray); font-size: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 70px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { max-width: 320px; margin-top: 14px; font-size: 0.92rem; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-family: var(--font-head); font-size: 0.88rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-links a:hover { color: var(--beige); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: 0.85rem; }

/* ---------- Shop page ---------- */
.page-head { background: var(--charcoal); color: #fff; padding: 160px 0 60px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-head p { color: rgba(255,255,255,0.7); max-width: 620px; }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 60px 0 100px; }
.filters-sidebar { align-self: start; position: sticky; top: 100px; }
.filters-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.filters-header h3 { font-size: 1.05rem; }
.btn-text { background: none; border: none; color: var(--forest); font-family: var(--font-head); font-weight: 600; cursor: pointer; font-size: 0.85rem; }
.filter-group { border-top: 1px solid var(--gray-light); padding: 20px 0; }
.filter-group h4 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-bottom: 14px; }
.price-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-input { width: 100%; padding: 10px; border: 1px solid var(--gray-light); border-radius: 8px; font-family: var(--font-body); }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.btn-small { padding: 10px 18px; font-size: 0.85rem; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
#product-count { color: var(--gray); }
.sort-select { padding: 10px 14px; border: 1px solid var(--gray-light); border-radius: 8px; font-family: var(--font-body); background: #fff; cursor: pointer; }
.pagination { padding-bottom: 100px; }
.pagination-controls { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination-btn {
  padding: 10px 16px;
  border: 1px solid var(--gray-light);
  background: #fff;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pagination-btn:hover { border-color: var(--forest); color: var(--forest); }
.pagination-btn.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.pagination-ellipsis { align-self: center; color: var(--gray); }

/* ---------- Product detail page ---------- */
.product-detail-wrap { padding: 160px 0 100px; }
.breadcrumb { font-size: 0.85rem; color: var(--gray); margin-bottom: 30px; }
.breadcrumb a { color: var(--forest); text-decoration: none; }
.product-details { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-images img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.thumbnail-gallery { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.thumbnail-gallery img { width: 80px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.thumbnail-gallery img:hover { border-color: var(--forest); }
.product-info-col h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.description { color: var(--gray); margin: 20px 0 26px; }
.variant-selector { margin: 20px 0; }
.variant-label { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 10px; }
.variant-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-button {
  padding: 12px 22px;
  border: 2px solid var(--gray-light);
  background: #fff;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.variant-button.selected { border-color: var(--forest); background: var(--forest); color: #fff; }
.variant-button.disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.add-to-cart-button {
  width: 100%;
  padding: 18px 30px;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-top: 10px;
}
.add-to-cart-button:hover:not(:disabled) { background: var(--forest-dark); transform: translateY(-2px); }
.add-to-cart-button:disabled { background: #9aa09a; cursor: not-allowed; }
.price-current { font-family: var(--font-display); font-size: 2rem; color: var(--ink); }
.price-compare { color: var(--gray); text-decoration: line-through; font-size: 1.3rem; }
.price-discount { background: var(--forest); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 0.85rem; font-weight: 700; }
.inventory-status { display: inline-block; padding: 6px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; }
.inventory-status.in-stock { background: rgba(62,90,59,0.12); color: var(--forest); }
.inventory-status.out-of-stock { background: #f4e3e3; color: #a33a3a; }

/* ---------- Search page ---------- */
.search-hero { padding: 160px 0 40px; background: var(--charcoal); }
.search-form { display: flex; gap: 12px; max-width: 640px; }
.search-form input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
}
.search-wrap { padding: 50px 0 100px; }
#search-info { color: var(--gray); margin-bottom: 26px; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--gray); }
.empty-state svg { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--sage); }
.empty-state .btn { margin-top: 20px; }

/* ---------- Cart drawer ---------- */
#cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}
#cart-drawer.active { visibility: visible; pointer-events: none; }
.cart-drawer-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}
#cart-drawer.active .cart-drawer-overlay { opacity: 1; visibility: visible; pointer-events: auto; }
.cart-drawer-content {
  position: fixed;
  top: 0; right: -420px;
  width: min(420px, 100%);
  height: 100vh;
  background: var(--paper);
  box-shadow: -2px 0 24px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}
#cart-drawer.active .cart-drawer-content { right: 0; }
.cart-drawer-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-drawer-header h2 { font-size: 1.2rem; }
.close-cart { background: none; border: none; font-size: 30px; cursor: pointer; color: var(--gray); line-height: 1; }
.cart-empty { text-align: center; padding: 60px 24px; color: var(--gray); }
.cart-empty p { margin-bottom: 20px; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gray-light); position: relative; }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.cart-item-details { flex: 1; }
.cart-item-details h4 { font-size: 0.92rem; margin-bottom: 4px; }
.cart-item-details p { margin: 2px 0; font-size: 0.8rem; color: var(--gray); }
.cart-item-status.out-of-stock { color: #a33a3a; font-weight: 600; }
.item-price { font-family: var(--font-head); font-weight: 700; }
.cart-item-actions { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.quantity-controls { display: flex; align-items: center; gap: 10px; }
.quantity-controls button {
  width: 28px; height: 28px;
  border: 1px solid var(--gray-light);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}
.quantity-controls button:disabled { opacity: 0.3; cursor: not-allowed; }
.remove-btn { background: none; border: none; color: var(--gray); font-size: 0.8rem; cursor: pointer; text-decoration: underline; }
.cart-item-unavailable { opacity: 0.6; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--gray-light); display: flex; flex-direction: column; gap: 10px; }
.cart-subtotal { display: flex; justify-content: space-between; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.cart-notification {
  position: fixed;
  top: 20px; right: 20px;
  padding: 15px 25px;
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 2000;
}
.cart-notification.show { opacity: 1; transform: translateY(0); }
.cart-notification.error { background: #a33a3a; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-content { grid-template-columns: 1fr; gap: 70px; }
  .hero-mockup { min-height: 420px; max-width: 560px; margin: 0 auto; width: 100%; }
  .mock-guide { left: 50%; }
  .section-upsell { grid-template-columns: 1fr; }
  .upsell-media { min-height: 420px; }
  .product-details { grid-template-columns: 1fr; gap: 40px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .bonus-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .mobile-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 80%);
    height: 100vh;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 34px 40px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 950;
    box-shadow: -8px 0 30px rgba(0,0,0,0.3);
  }
  .nav-links.active { transform: translateX(0); }
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }
  .ba-wrap { grid-template-columns: 1fr; }
  .upsell-media { min-height: 280px; }
  .hero { padding: 120px 0 70px; }
  .module-body p { padding-left: 10px; }
  .hero-ctas .btn { width: 100%; }
  .search-form { flex-direction: column; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .upsell-services { grid-template-columns: 1fr; }
}
