/* =========================================================
   THE GOOD DIGITAL — Global Stylesheet
   Digital Things. Done Good.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root{
  /* Brand colors */
  --navy:        #12213D;
  --navy-dark:   #0B1626;
  --navy-soft:   #26375A;
  --teal:        #0E7268;
  --teal-light:  #12A395;
  --gold:        #D9A02B;
  --gold-soft:   #F1D9A0;
  --cta:         #E24A33;
  --cta-dark:    #C63A25;

  /* Neutrals */
  --bg:          #FAF8F3;
  --surface:     #FFFFFF;
  --surface-2:   #F2EEE4;
  --border:      #E6E0D2;
  --text:        #1C2331;
  --text-muted:  #5B6472;
  --text-on-navy: #F3F1EA;

  /* Radii */
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(18,33,61,0.06), 0 1px 1px rgba(18,33,61,0.04);
  --shadow-md: 0 10px 30px -12px rgba(18,33,61,0.22);
  --shadow-lg: 0 22px 50px -18px rgba(18,33,61,0.30);

  /* Type */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1160px;
  --nav-h: 76px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.15;
  margin:0 0 .5em;
  color:var(--navy);
  letter-spacing:-0.01em;
}
p{ margin:0 0 1em; }
.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}
section{ padding:88px 0; }
.section-tight{ padding:56px 0; }

:focus-visible{
  outline:3px solid var(--teal-light);
  outline-offset:3px;
  border-radius:4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-body);
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--teal);
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:16px; height:2px;
  background:var(--gold);
  display:inline-block;
  border-radius:2px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:15px;
  padding:14px 26px;
  border-radius:999px;
  border:1.5px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  line-height:1;
}
.btn-primary{
  background:var(--navy);
  color:var(--text-on-navy);
  box-shadow:var(--shadow-sm);
}
.btn-primary:hover{ background:var(--navy-dark); box-shadow:var(--shadow-md); transform:translateY(-1px); }
.btn-secondary{
  background:transparent;
  color:var(--navy);
  border-color:var(--navy);
}
.btn-secondary:hover{ background:var(--navy); color:var(--text-on-navy); transform:translateY(-1px); }
.btn-gold{
  background:var(--gold);
  color:var(--navy-dark);
}
.btn-gold:hover{ background:#c68f22; transform:translateY(-1px); box-shadow:var(--shadow-md); }

.btn-cta{
  background:var(--cta);
  color:#fff;
  box-shadow:0 6px 18px rgba(226,74,51,0.28);
}
.btn-cta:hover{ background:var(--cta-dark); transform:translateY(-1px); box-shadow:0 8px 22px rgba(226,74,51,0.36); }
.btn-cta:active{ transform:translateY(0); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.55; cursor:not-allowed; transform:none !important; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(250,248,243,0.92);
  backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid var(--border);
  height:var(--nav-h);
}
.nav-wrap{
  height:var(--nav-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-mark{
  width:42px; height:42px;
  border-radius:12px;
  background:var(--navy);
  position:relative;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.brand-mark span{
  font-family:var(--font-display);
  color:var(--text-on-navy);
  font-weight:700;
  font-size:17px;
}
.brand-mark::after{
  content:"";
  position:absolute;
  top:-4px; right:-4px;
  width:10px; height:10px;
  background:var(--gold);
  border-radius:50%;
  border:2px solid var(--bg);
}
/* Added automatically by js/main.js once LOGO_IMAGE_PATH is set — hides the
   decorative dot and background so a real logo image displays cleanly. */
.brand-mark.brand-mark--custom{ background:transparent; }
.brand-mark.brand-mark--custom::after{ display:none; }
.brand-mark img{ width:100%; height:100%; object-fit:contain; border-radius:12px; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{
  font-family:var(--font-display);
  font-weight:700;
  font-size:17px;
  color:var(--navy);
  letter-spacing:-.01em;
}
.brand-tag{
  font-size:11px;
  color:var(--text-muted);
  letter-spacing:.03em;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:34px;
}
.nav-links a{
  font-size:14.5px;
  font-weight:500;
  color:var(--text);
  position:relative;
  padding:6px 0;
}
.nav-links a::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:0;
  height:2px; background:var(--teal);
  transition:right .18s ease;
  border-radius:2px;
}
.nav-links a:hover::after, .nav-links a.active::after{ right:0; }
.nav-links a.active{ color:var(--navy); font-weight:600; }
.nav-actions{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width:40px; height:40px;
  align-items:center; justify-content:center;
}
.nav-toggle span{
  display:block; width:22px; height:2px; background:var(--navy);
  position:relative;
  transition:.2s;
}
.nav-toggle span::before, .nav-toggle span::after{
  content:""; position:absolute; left:0; width:22px; height:2px; background:var(--navy); transition:.2s;
}
.nav-toggle span::before{ top:-7px; }
.nav-toggle span::after{ top:7px; }
.nav-toggle.open span{ background:transparent; }
.nav-toggle.open span::before{ transform:rotate(45deg); top:0; }
.nav-toggle.open span::after{ transform:rotate(-45deg); top:0; }

@media (max-width: 860px){
  .nav-links{
    position:fixed;
    top:var(--nav-h); left:0; right:0;
    background:var(--surface);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:8px 24px 20px;
    border-bottom:1px solid var(--border);
    transform:translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition:.2s ease;
  }
  .nav-links.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav-links a{ padding:12px 0; width:100%; border-bottom:1px solid var(--border); }
  .nav-links a::after{ display:none; }
  .nav-actions .btn-primary{ display:none; }
  .nav-toggle{ display:flex; }
  .brand-tag{ display:none; }
}

/* ---------- Hero ---------- */
.hero{
  padding:80px 0 60px;
  background:
    radial-gradient(720px 420px at 88% -10%, rgba(14,114,104,0.10), transparent 60%),
    radial-gradient(600px 380px at -10% 10%, rgba(217,160,43,0.10), transparent 55%);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:56px;
  align-items:center;
}
.hero h1{
  font-size:clamp(38px, 5vw, 60px);
  margin-bottom:20px;
}
.hero-lede{
  font-size:18px;
  color:var(--text-muted);
  max-width:52ch;
  margin-bottom:34px;
}
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }

.hero-visual{
  position:relative;
  border-radius:var(--r-lg);
  background:var(--navy);
  min-height:400px;
  overflow:hidden;
  box-shadow:var(--shadow-lg);
}
.hero-visual .stack-card{
  position:absolute;
  background:var(--surface);
  border-radius:var(--r-md);
  box-shadow:var(--shadow-md);
  padding:18px;
}
.hero-visual .stack-card.c1{ width:62%; top:14%; left:8%; transform:rotate(-4deg); }
.hero-visual .stack-card.c2{ width:58%; top:42%; right:6%; transform:rotate(3deg); background:var(--teal); color:#fff; }
.hero-visual .stack-card.c3{ width:52%; bottom:9%; left:14%; transform:rotate(-2deg); background:var(--gold-soft); }
.stack-card .sc-label{ font-size:11px; text-transform:uppercase; letter-spacing:.08em; opacity:.7; margin-bottom:6px; font-weight:700; }
.stack-card .sc-title{ font-family:var(--font-display); font-weight:600; font-size:16px; }
.stack-card.c2 .sc-label{ color:#dff5f1; }

@media (max-width: 900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ min-height:320px; order:-1; }
}

/* ---------- Trust strip ---------- */
.trust-strip{
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:26px 0;
  background:var(--surface);
}
.trust-strip .container{
  display:flex;
  gap:40px;
  flex-wrap:wrap;
  justify-content:space-between;
}
.trust-item{
  display:flex; align-items:center; gap:12px;
  font-size:14px; color:var(--text-muted);
  flex:1 1 240px;
}
.trust-item strong{ color:var(--navy); display:block; font-size:14.5px; }
.trust-ico{
  width:38px; height:38px; border-radius:10px;
  background:var(--surface-2);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  color:var(--teal);
}

/* ---------- Section headers ---------- */
.section-head{
  max-width:640px;
  margin:0 auto 48px;
  text-align:center;
}
.section-head h2{ font-size:clamp(28px,3.4vw,38px); }
.section-head p{ color:var(--text-muted); font-size:16.5px; }
.section-head.left{ margin:0 0 44px; text-align:left; }

/* ---------- Category grid ---------- */
.cat-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
.cat-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  padding:26px 22px;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cat-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md); border-color:transparent; }
.cat-ico{
  width:46px; height:46px;
  border-radius:12px;
  background:var(--surface-2);
  display:flex; align-items:center; justify-content:center;
  color:var(--teal);
  margin-bottom:16px;
}
.cat-card h3{ font-size:17px; margin-bottom:6px; }
.cat-card p{ font-size:14px; color:var(--text-muted); margin-bottom:0; }

@media (max-width: 760px){ .cat-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 480px){ .cat-grid{ grid-template-columns:1fr; } }

/* ---------- Product cards / grid ---------- */
.product-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
}
.product-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .15s ease, box-shadow .15s ease;
}
.product-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.product-cover{
  aspect-ratio:4/3;
  position:relative;
  display:flex; align-items:flex-end;
  padding:18px;
  overflow:hidden;
}
.product-cover .cover-tag{
  background:rgba(255,255,255,0.92);
  color:var(--navy);
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.03em;
  padding:6px 12px;
  border-radius:999px;
}
.product-cover::before{
  content:"";
  position:absolute; inset:0;
  opacity:.9;
}
.product-cover .cover-mark{
  position:absolute;
  right:16px; top:16px;
  width:34px; height:34px;
  border-radius:9px;
  background:rgba(255,255,255,0.18);
  border:1px solid rgba(255,255,255,0.4);
  display:flex; align-items:center; justify-content:center;
  color:#fff;
}
.product-body{
  padding:20px 20px 22px;
  display:flex; flex-direction:column; gap:8px; flex:1;
}
.product-cat{
  font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--teal);
}
.product-body h3{ font-size:18px; margin-bottom:2px; }
.product-desc{ font-size:14px; color:var(--text-muted); flex:1; }
.product-foot{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:6px;
}
.product-price{ font-family:var(--font-display); font-weight:700; font-size:18px; color:var(--navy); }
.product-link{
  font-size:13.5px; font-weight:600; color:var(--navy);
  display:inline-flex; align-items:center; gap:6px;
  padding:9px 14px; border-radius:999px; border:1.5px solid var(--navy);
  transition:.15s;
}
.product-link:hover{ background:var(--navy); color:#fff; }
.demo-flag{
  font-size:10.5px;
  color:var(--text-muted);
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed var(--border);
}

@media (max-width: 900px){ .product-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 560px){ .product-grid{ grid-template-columns:1fr; } }

/* ---------- Filters ---------- */
.filter-row{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-bottom:36px;
}
.filter-btn{
  font-family:var(--font-body);
  font-size:13.5px; font-weight:600;
  padding:9px 18px;
  border-radius:999px;
  border:1.5px solid var(--border);
  background:var(--surface);
  color:var(--text-muted);
  cursor:pointer;
  transition:.15s;
}
.filter-btn:hover{ border-color:var(--navy); color:var(--navy); }
.filter-btn.active{ background:var(--navy); border-color:var(--navy); color:#fff; }
.empty-state{
  text-align:center; padding:60px 20px; color:var(--text-muted);
  border:1px dashed var(--border); border-radius:var(--r-md);
  display:none;
}

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--navy);
  border-radius:var(--r-lg);
  padding:56px 48px;
  display:flex; align-items:center; justify-content:space-between;
  gap:30px; flex-wrap:wrap;
  color:var(--text-on-navy);
}
.cta-band h2{ color:#fff; font-size:clamp(24px,3vw,32px); margin-bottom:8px; }
.cta-band p{ color:#c9d0dd; margin:0; }

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy-dark);
  color:#c9d0dd;
  padding:64px 0 28px;
  margin-top:40px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:36px;
  padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,0.10);
}
.footer-brand .brand-name{ color:#fff; }
.footer-brand p{ color:#9aa4b7; font-size:14px; max-width:32ch; margin-top:14px; }
.footer-col h4{
  color:#fff; font-family:var(--font-body); font-size:13px;
  text-transform:uppercase; letter-spacing:.08em; margin-bottom:16px;
}
.footer-col ul li{ margin-bottom:10px; }
.footer-col a{ font-size:14px; color:#b7bfcf; transition:.15s; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:24px; font-size:13px; color:#7d8598; flex-wrap:wrap; gap:10px;
}

@media (max-width: 860px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 540px){
  .footer-grid{ grid-template-columns:1fr; }
}

/* ---------- Generic page hero (inner pages) ---------- */
.page-hero{
  padding:60px 0 44px;
  background:var(--surface-2);
  border-bottom:1px solid var(--border);
}
.page-hero .eyebrow{ justify-content:flex-start; }
.page-hero h1{ font-size:clamp(30px,4vw,44px); margin-bottom:10px; }
.page-hero p{ color:var(--text-muted); font-size:16px; max-width:60ch; margin:0; }
.breadcrumb{ font-size:13px; color:var(--text-muted); margin-bottom:16px; }
.breadcrumb a{ color:var(--teal); font-weight:600; }

/* ---------- Content / policy pages ---------- */
.prose{ max-width:760px; }
.prose h2{ font-size:22px; margin-top:36px; }
.prose h3{ font-size:17px; margin-top:22px; }
.prose p, .prose li{ color:var(--text-muted); font-size:15.5px; }
.prose ul{ padding-left:20px; list-style:disc; margin-bottom:16px; }
.prose ul li{ margin-bottom:8px; }
.prose strong{ color:var(--text); }
.policy-updated{
  font-size:13px; color:var(--text-muted);
  background:var(--surface-2);
  display:inline-block; padding:6px 14px; border-radius:999px;
  margin-bottom:28px;
}
.toc{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md);
  padding:20px 24px; margin-bottom:36px; max-width:760px;
}
.toc h4{ font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); margin-bottom:12px; }
.toc ol{ padding-left:18px; margin:0; }
.toc li{ font-size:14.5px; margin-bottom:6px; }
.toc a{ color:var(--navy); font-weight:500; }
.toc a:hover{ color:var(--teal); }

/* ---------- About page ---------- */
.value-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:20px;
}
.value-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:24px;
}
.value-card h3{ font-size:16.5px; }
.value-card p{ font-size:14.5px; color:var(--text-muted); margin:0; }
@media (max-width:760px){ .value-grid{ grid-template-columns:1fr; } }

/* ---------- Contact ---------- */
.contact-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start;
}
.contact-info-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:32px;
}
.contact-row{
  display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--border);
}
.contact-row:last-child{ border-bottom:none; }
.contact-row .ico{
  width:38px; height:38px; border-radius:10px; background:var(--surface-2);
  display:flex; align-items:center; justify-content:center; color:var(--teal); flex-shrink:0;
}
.contact-row strong{ display:block; font-size:14px; color:var(--navy); margin-bottom:2px; }
.contact-row span, .contact-row a{ font-size:14.5px; color:var(--text-muted); }
.contact-row a:hover{ color:var(--teal); }

.form-field{ margin-bottom:18px; }
.form-field label{ display:block; font-size:13.5px; font-weight:600; color:var(--navy); margin-bottom:6px; }
.form-field input, .form-field textarea{
  width:100%; font-family:var(--font-body); font-size:14.5px;
  padding:12px 14px; border-radius:var(--r-sm); border:1.5px solid var(--border);
  background:var(--surface); color:var(--text);
  transition:.15s;
}
.form-field input:focus, .form-field textarea:focus{ border-color:var(--teal); outline:none; }
.form-note{ font-size:12.5px; color:var(--text-muted); margin-top:10px; }
.form-success{
  display:none; margin-top:16px; padding:14px 16px; border-radius:var(--r-sm);
  background:#E7F5F1; color:#0E5548; font-size:14px; font-weight:500;
}
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }

/* ---------- Product detail page ---------- */
.product-detail{
  display:grid; grid-template-columns:.85fr 1fr; gap:52px; align-items:start;
}
.product-media{
  position:sticky; top:calc(var(--nav-h) + 24px);
}
/* Fallback mode: no real images yet, shows the CSS placeholder cover */
.product-media.pd-placeholder{
  border-radius:var(--r-lg);
  aspect-ratio:1/1;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-lg);
  overflow:hidden;
}
/* Carousel mode: used automatically once a product has an "images" array */
.pd-carousel-main{
  position:relative;
  aspect-ratio:1/1;
  border-radius:var(--r-lg);
  overflow:hidden;
  box-shadow:var(--shadow-lg);
  background:var(--surface-2);
}
.pd-carousel-main img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.pd-carousel-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:38px; height:38px; border-radius:50%;
  background:rgba(255,255,255,0.92);
  border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-sm);
  color:var(--navy); font-size:16px;
  transition:.15s;
}
.pd-carousel-arrow:hover{ background:#fff; transform:translateY(-50%) scale(1.06); }
.pd-carousel-arrow.prev{ left:12px; }
.pd-carousel-arrow.next{ right:12px; }
.pd-carousel-thumbs{
  display:flex; gap:10px; margin-top:14px; flex-wrap:wrap;
}
.pd-thumb{
  width:64px; height:64px; border-radius:10px; overflow:hidden;
  border:2px solid transparent; cursor:pointer; padding:0;
  background:var(--surface-2); flex-shrink:0;
  transition:.15s;
}
.pd-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.pd-thumb.active{ border-color:var(--teal); }
.pd-thumb:hover{ border-color:var(--teal-light); }
.pd-price-row{ display:flex; align-items:baseline; gap:12px; margin:10px 0 22px; }
.pd-price{ font-family:var(--font-display); font-size:32px; font-weight:700; color:var(--navy); }
.pd-price-note{ font-size:13px; color:var(--text-muted); }
.pd-tag{
  display:inline-block; font-size:11.5px; font-weight:700; letter-spacing:.05em;
  background:#FBEFD3; color:#8a6410; padding:5px 12px; border-radius:999px; margin-bottom:14px;
}
.pd-block{ margin-bottom:30px; }
.pd-block h2{ font-size:19px; margin-bottom:10px; }
.pd-list{ list-style:none; padding:0; display:flex; flex-direction:column; gap:10px; }
.pd-list li{ display:flex; gap:10px; font-size:14.5px; color:var(--text-muted); align-items:flex-start; }
.pd-list li .tick{ color:var(--teal); flex-shrink:0; margin-top:2px; }
.pd-note-box{
  background:var(--surface-2); border-radius:var(--r-md); padding:18px 20px; font-size:14px; color:var(--text-muted); margin-bottom:20px;
}
.faq-item{ border-bottom:1px solid var(--border); padding:16px 0; }
.faq-item h3{ font-size:15.5px; margin-bottom:6px; }
.faq-item p{ font-size:14.5px; color:var(--text-muted); margin:0; }
@media (max-width:900px){
  .product-detail{ grid-template-columns:1fr; }
  .product-media{ position:static; }
  .product-media.pd-placeholder{ aspect-ratio:16/10; }
}

/* ---------- Utility ---------- */
.mt-0{ margin-top:0; }
.text-center{ text-align:center; }
.chip{
  display:inline-block; font-size:11.5px; font-weight:700; letter-spacing:.04em;
  padding:5px 11px; border-radius:999px; background:var(--surface-2); color:var(--text-muted);
}

/* =========================================================
   HOME — Category cards v2 (clickable, with thumbnail)
   ========================================================= */
.cat-link{ display:block; border-radius:var(--r-md); }
.cat-card-v2{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  overflow:hidden;
  height:100%;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cat-link:hover .cat-card-v2, .cat-link:focus-visible .cat-card-v2{
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
  border-color:transparent;
}
.cat-thumb{
  position:relative;
  aspect-ratio:8/5;
  display:flex; align-items:flex-end; justify-content:flex-start;
  padding:16px;
}
.cat-thumb-ico{
  position:absolute; left:16px; top:16px;
  width:40px; height:40px; border-radius:11px;
  background:rgba(255,255,255,0.16);
  border:1px solid rgba(255,255,255,0.32);
  display:flex; align-items:center; justify-content:center;
  color:#fff;
}
.cat-thumb-arrow{
  width:32px; height:32px; border-radius:50%;
  background:rgba(255,255,255,0.92);
  color:var(--navy);
  display:flex; align-items:center; justify-content:center;
  font-size:15px;
  transition:transform .15s ease;
  margin-left:auto;
}
.cat-link:hover .cat-thumb-arrow, .cat-link:focus-visible .cat-thumb-arrow{ transform:translateX(3px); }
.cat-card-body{ padding:18px 20px 20px; }
.cat-card-body h3{ font-size:16.5px; margin-bottom:6px; }
.cat-card-body p{ font-size:13.5px; color:var(--text-muted); margin:0; }

.home-cat-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
}
@media (max-width:980px){ .home-cat-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .home-cat-grid{ grid-template-columns:1fr; } }

/* =========================================================
   PRODUCT DETAIL — extra visuals, video, benefits, trust
   ========================================================= */
.pd-visuals-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
  margin:8px 0 0;
}
.pd-visual-card{
  border-radius:var(--r-md);
  overflow:hidden;
  border:1px solid var(--border);
  background:var(--surface);
}
.pd-visual-card img{
  width:100%; aspect-ratio:4/3; object-fit:cover; display:block;
}
.pd-visual-caption{
  padding:12px 14px; font-size:13.5px; color:var(--text-muted);
}
@media (max-width:760px){ .pd-visuals-grid{ grid-template-columns:1fr; } }

.pd-video-section{
  background:var(--surface-2);
  border-radius:var(--r-lg);
  padding:32px;
  margin:8px 0 30px;
}
.pd-video-section h2{ font-size:19px; margin-bottom:4px; }
.pd-video-section .pd-video-sub{ font-size:14px; color:var(--text-muted); margin-bottom:18px; }
.pd-video-frame{
  position:relative;
  aspect-ratio:16/9;
  border-radius:var(--r-md);
  overflow:hidden;
  background:var(--navy);
  box-shadow:var(--shadow-md);
}
.pd-video-frame img{ width:100%; height:100%; object-fit:cover; display:block; opacity:.55; }
.pd-video-frame.no-video img{ opacity:.35; }
.pd-play-btn{
  position:absolute; inset:0; margin:auto;
  width:64px; height:64px; border-radius:50%;
  background:rgba(255,255,255,0.95);
  display:flex; align-items:center; justify-content:center;
  color:var(--navy);
  box-shadow:var(--shadow-md);
}
.pd-video-badge{
  position:absolute; left:16px; bottom:16px;
  background:rgba(18,33,61,0.75);
  color:#fff; font-size:12.5px; font-weight:600;
  padding:6px 14px; border-radius:999px;
}
@media (max-width:600px){ .pd-video-section{ padding:22px; } }

.pd-trust-grid{
  display:flex; flex-wrap:wrap; gap:10px;
  margin:18px 0 24px;
}
.pd-trust-item{
  display:flex; align-items:center; gap:8px;
  font-size:13px; font-weight:600; color:var(--navy);
  background:var(--surface-2);
  padding:8px 14px; border-radius:999px;
}
.pd-trust-item svg{ color:var(--teal); flex-shrink:0; }

/* =========================================================
   FOOTER — expandable policy drawer
   ========================================================= */
.policy-overlay{
  position:fixed; inset:0; z-index:1000;
  background:rgba(11,22,38,0.55);
  display:none;
  align-items:flex-end;
  justify-content:center;
}
.policy-overlay.open{ display:flex; }
.policy-drawer{
  background:var(--surface);
  width:100%;
  max-width:720px;
  max-height:min(82vh, 720px);
  border-radius:var(--r-lg) var(--r-lg) 0 0;
  box-shadow:var(--shadow-lg);
  display:flex; flex-direction:column;
  overflow:hidden;
  animation:policySlideUp .22s ease;
}
@keyframes policySlideUp{
  from{ transform:translateY(24px); opacity:0; }
  to{ transform:translateY(0); opacity:1; }
}
.policy-drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 24px;
  border-bottom:1px solid var(--border);
  flex-shrink:0;
}
.policy-drawer-head h2{ font-size:19px; margin:0; }
.policy-drawer-close{
  width:36px; height:36px; border-radius:50%;
  border:1.5px solid var(--border);
  background:var(--surface);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--navy); flex-shrink:0;
  transition:.15s;
}
.policy-drawer-close:hover{ background:var(--navy); color:#fff; border-color:var(--navy); }
.policy-drawer-body{
  padding:8px 24px 28px;
  overflow-y:auto;
}
.policy-drawer-body h3{ font-size:16px; margin-top:22px; }
.policy-drawer-body h3:first-child{ margin-top:12px; }
.policy-drawer-body p, .policy-drawer-body li{ color:var(--text-muted); font-size:14.5px; }
.policy-drawer-body ul{ padding-left:20px; list-style:disc; margin-bottom:14px; }
.policy-drawer-body ul li{ margin-bottom:6px; }
.policy-drawer-body strong{ color:var(--text); }
.policy-drawer-body a{ color:var(--teal); font-weight:600; }
.policy-drawer-foot{
  padding:14px 24px; border-top:1px solid var(--border);
  font-size:13px; color:var(--text-muted); flex-shrink:0;
}
.policy-drawer-foot a{ color:var(--teal); font-weight:600; }

@media (max-width:600px){
  .policy-drawer{ max-height:88vh; border-radius:var(--r-md) var(--r-md) 0 0; }
  .policy-drawer-head{ padding:16px 18px; }
  .policy-drawer-body{ padding:6px 18px 24px; }
  .policy-drawer-foot{ padding:12px 18px; }
}

/* =========================================================
   PRODUCT DETAIL — countdown banner
   ========================================================= */
.pd-countdown-bar{
  background:var(--cta);
  color:#fff;
  text-align:center;
  padding:10px 16px;
  font-size:13.5px;
  font-weight:700;
  display:flex; align-items:center; justify-content:center; gap:10px;
  flex-wrap:wrap;
  position:sticky;
  top:var(--nav-h);
  z-index:99;
  box-shadow:0 2px 10px rgba(0,0,0,0.12);
}
@media (max-width:480px){
  .pd-countdown-bar{ font-size:12px; padding:8px 12px; gap:6px; }
  .pd-countdown-bar .pd-cd-clock{ padding:2px 8px; }
}
.pd-countdown-bar .pd-cd-clock{
  font-variant-numeric:tabular-nums;
  background:rgba(255,255,255,0.14);
  padding:3px 10px;
  border-radius:999px;
  letter-spacing:.03em;
}
.pd-countdown-inline{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:700; color:var(--navy);
  background:var(--surface-2);
  padding:8px 16px; border-radius:999px;
  font-size:13.5px;
  margin:14px 0 4px;
}
.pd-countdown-inline .pd-cd-clock{ font-variant-numeric:tabular-nums; color:var(--teal); }

/* =========================================================
   PRODUCT DETAIL — problem / how it helps
   ========================================================= */
.pd-split-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:20px;
  margin:8px 0 30px;
}
.pd-split-card{
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:26px;
}
.pd-split-card .pd-split-ico{
  width:40px; height:40px; border-radius:11px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:14px;
}
.pd-split-card.problem .pd-split-ico{ background:#FBEAE8; color:#C0483C; }
.pd-split-card.help .pd-split-ico{ background:#E7F3EF; color:var(--teal); }
.pd-split-card h3{ font-size:17px; margin-bottom:8px; }
.pd-split-card p{ font-size:14.5px; color:var(--text-muted); margin:0; }
@media (max-width:700px){ .pd-split-grid{ grid-template-columns:1fr; } }

/* =========================================================
   PRODUCT DETAIL — why choose this (icon grid)
   ========================================================= */
.pd-why-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:18px;
  margin:8px 0 30px;
}
.pd-why-item{
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-md); padding:20px;
}
.pd-why-item .pd-why-ico{ font-size:22px; margin-bottom:8px; display:block; }
.pd-why-item h4{ font-size:14.5px; margin-bottom:4px; }
.pd-why-item p{ font-size:13px; color:var(--text-muted); margin:0; }
@media (max-width:760px){ .pd-why-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:480px){ .pd-why-grid{ grid-template-columns:1fr; } }

/* =========================================================
   PRODUCT DETAIL — screenshot gallery + lightbox
   ========================================================= */
.pd-gallery-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:16px;
  margin:8px 0 30px;
}
.pd-gallery-item{
  border-radius:var(--r-md); overflow:hidden; border:1px solid var(--border);
  cursor:zoom-in; position:relative; background:var(--surface);
}
.pd-gallery-item img{ width:100%; aspect-ratio:4/3; object-fit:cover; display:block; transition:transform .2s ease; }
.pd-gallery-item:hover img{ transform:scale(1.03); }
.pd-gallery-zoom-hint{
  position:absolute; right:10px; bottom:10px;
  background:rgba(18,33,61,0.75); color:#fff;
  font-size:11px; padding:4px 9px; border-radius:999px;
}
@media (max-width:700px){ .pd-gallery-grid{ grid-template-columns:repeat(2, 1fr); } }

.pd-lightbox{
  position:fixed; inset:0; z-index:1100;
  background:rgba(11,22,38,0.88);
  display:none; align-items:center; justify-content:center;
  padding:30px;
}
.pd-lightbox.open{ display:flex; }
.pd-lightbox img{ max-width:100%; max-height:92vh; border-radius:14px; box-shadow:var(--shadow-lg); }
.pd-lightbox-close{
  position:absolute; top:20px; right:20px;
  width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,0.92); color:var(--navy);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; border:none; font-size:16px;
}

/* =========================================================
   PRODUCT DETAIL — testimonials
   ========================================================= */
.pd-testimonial-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:18px;
  margin:8px 0 30px;
}
.pd-testimonial-card{
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-md); padding:22px;
}
.pd-testimonial-stars{ color:var(--gold); font-size:14px; margin-bottom:10px; letter-spacing:2px; }
.pd-testimonial-quote{ font-size:14px; color:var(--text-muted); font-style:italic; margin-bottom:14px; }
.pd-testimonial-name{ font-size:13px; font-weight:700; color:var(--navy); }
.pd-testimonial-empty{
  grid-column:1/-1;
  text-align:center; padding:40px 20px;
  color:var(--text-muted); font-size:14px;
  border:1.5px dashed var(--border); border-radius:var(--r-md);
}
@media (max-width:760px){ .pd-testimonial-grid{ grid-template-columns:1fr; } }

/* =========================================================
   PRODUCT DETAIL — FAQ accordion (native <details>)
   ========================================================= */
.pd-faq-item{
  border-bottom:1px solid var(--border);
  padding:4px 0;
}
.pd-faq-item summary{
  cursor:pointer; list-style:none;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 2px; font-weight:600; font-size:15px; color:var(--navy);
}
.pd-faq-item summary::-webkit-details-marker{ display:none; }
.pd-faq-item summary .pd-faq-plus{
  flex-shrink:0; width:24px; height:24px; border-radius:50%;
  border:1.5px solid var(--border); display:flex; align-items:center; justify-content:center;
  font-size:15px; color:var(--navy); transition:transform .15s ease;
}
.pd-faq-item[open] summary .pd-faq-plus{ transform:rotate(45deg); background:var(--navy); color:#fff; border-color:var(--navy); }
.pd-faq-item p{ padding:0 2px 16px; color:var(--text-muted); font-size:14.5px; margin:0; }

.pd-thumb{ position:relative; }
.pd-thumb-play{
  position:absolute; inset:0; margin:auto;
  width:22px; height:22px; border-radius:50%;
  background:rgba(18,33,61,0.75); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:9px;
}

/* =========================================================
   PRODUCT DETAIL — real video player
   ========================================================= */
.pd-video-frame video{ width:100%; height:100%; object-fit:cover; display:block; background:#000; }
.pd-video-frame.has-native-controls .pd-play-btn,
.pd-video-frame.has-native-controls .pd-video-badge{ pointer-events:none; }
