/* === SHOPFOLIO BASE CSS ===
   Shared styles for homepage and product detail pages.
   Colors: white bg (#fff), navy headings (#1F2F47), gold accent (#C9A227)
   Fonts: DM Sans (body), Fraunces (display headings — used sparingly)
   Design: store layout, not marketing page. No animations. No gradients.
*/

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Variables --- */
:root {
  --navy: #1F2F47;
  --navy-deep: #141f30;
  --gold: #C9A227;
  --gold-hover: #b8911f;
  --text: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #7a7a7a;
  --border: #e5e5e5;
  --bg-subtle: #f7f7f7;
  --green: #2e7d32;
  --radius: 10px;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --max-width: 960px;
}

/* --- Base --- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }

/* --- Typography (5 treatments) ---
   1. Page heading (h1) — Fraunces 36px
   2. Section heading (h2) — Fraunces 26px
   3. Card heading (h3) — DM Sans 18px bold
   4. Body text — DM Sans 16px
   5. Small/meta text — DM Sans 14px
*/
h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.5px;
}
h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.3px;
}
h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

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

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--gold) !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: 14px !important;
}
.nav-cta:hover {
  background: var(--gold-hover) !important;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-deep); }
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: var(--gold-hover); }

/* One-time purchase badge */
.one-time-badge {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Cross-sell reference */
.cross-sell {
  font-size: 12px;
  color: var(--gold);
  margin-top: 8px;
  font-weight: 500;
}

/* --- Device Frame (CSS browser mockup for screenshots) --- */
.device-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.device-frame-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.device-frame-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.device-frame-dot:nth-child(1) { background: #ff5f57; }
.device-frame-dot:nth-child(2) { background: #febc2e; }
.device-frame-dot:nth-child(3) { background: #28c840; }
.device-frame img {
  display: block;
  width: 100%;
}

/* --- Product Cards --- */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.product-card h3 { margin-bottom: 6px; }
.product-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
}
.product-card-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.product-card .btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bundle card (featured, larger) */
.product-card-bundle {
  border: 2px solid var(--gold);
  position: relative;
}
.product-card-bundle .bundle-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.bundle-savings {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.bundle-includes {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* --- FAQ --- */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: #fff;
}
.faq summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 12px;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-answer {
  padding: 0 20px 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}
.footer-trust {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}
.footer-trust span { white-space: nowrap; }
.footer-bottom {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--navy); }

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .container { padding: 0 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta {
    padding: 10px 16px;
    min-height: 44px;
    display: inline-flex !important;
    align-items: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  .btn { padding: 14px 20px; font-size: 14px; }
}
