/* ==========================================================================
   SHEREBOY AFFILIATE CONCEPT — Design System
   Palette: Deep Navy, Royal Blue, Gold, White, Light Gray
   Type: Sora (display) / Inter (body) / JetBrains Mono (prices & data)
   Signature element: the diagonal "Verified Deal" ribbon + live savings
   counter used on every discounted product card, reinforcing trust.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --navy-950: #0A1730;
  --navy-900: #0D1E3D;
  --navy-800: #142A52;
  --royal-600: #1E4FD9;
  --royal-500: #2F63F2;
  --gold-500: #D4A954;
  --gold-400: #E4C27C;
  --white: #FFFFFF;
  --gray-50: #F4F6FA;
  --gray-100: #E7EBF3;
  --gray-300: #C3CBDB;
  --gray-500: #6B7690;
  --ink: #16203C;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(10, 23, 48, 0.08);
  --shadow-md: 0 12px 32px rgba(10, 23, 48, 0.14);
  --shadow-gold: 0 8px 24px rgba(212, 169, 84, 0.35);

  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-950); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--royal-600); font-weight: 700; }
.section-sub { color: var(--gray-500); max-width: 560px; margin-top: 8px; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 100px; font-weight: 600; font-size: 0.95rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { background: var(--royal-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--royal-500); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--navy-950); box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-ghost { background: var(--gray-50); color: var(--navy-900); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-danger { background: #C0362C; color: var(--white); }

/* ---------- Navbar ---------- */
.navbar { position: sticky; top: 0; z-index: 500; background: rgba(10, 23, 48, 0.98); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--container); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; color: var(--white); font-size: 1.15rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); display: flex; align-items: center; justify-content: center; color: var(--navy-950); font-weight: 800; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--gray-300); font-weight: 500; font-size: 0.94rem; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-400); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; color: var(--white); font-size: 1.4rem; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 68px 0 0 0; background: var(--navy-950); flex-direction: column; padding: 32px 24px; gap: 22px; transform: translateY(-120%); transition: transform .25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { background: radial-gradient(circle at 15% 20%, var(--navy-800), var(--navy-950) 60%); color: var(--white); padding: 96px 0 110px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(212,169,84,0.14); color: var(--gold-400); padding: 8px 14px; border-radius: 100px; margin-bottom: 22px; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 span { color: var(--gold-400); }
.hero p.lead { color: var(--gray-300); font-size: 1.08rem; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-mono); font-size: 1.4rem; color: var(--gold-400); }
.hero-stat span { color: var(--gray-300); font-size: 0.82rem; }

/* Signature: stacked deal-card visual in the hero */
.hero-visual { position: relative; height: 420px; }
.deal-float { position: absolute; width: 250px; background: var(--white); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-md); }
.deal-float.d1 { top: 0; right: 40px; transform: rotate(-3deg); z-index: 2; }
.deal-float.d2 { top: 130px; right: 140px; transform: rotate(4deg); z-index: 1; opacity: 0.9; }
.deal-float img { border-radius: 10px; height: 110px; width: 100%; object-fit: cover; margin-bottom: 10px; background: var(--gray-100); }
.ribbon { position: absolute; top: 10px; left: -6px; background: var(--gold-500); color: var(--navy-950); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; padding: 3px 10px 3px 12px; border-radius: 0 4px 4px 0; }
.ribbon::before { content: ""; position: absolute; left: 0; bottom: -6px; border-left: 6px solid #8a6a2e; border-bottom: 6px solid transparent; }
.deal-float .price-row { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-mono); }
.deal-float .price-now { font-weight: 700; color: var(--royal-600); }
.deal-float .price-was { color: var(--gray-500); text-decoration: line-through; font-size: 0.82rem; }

/* ---------- Category chips ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.cat-card { background: var(--gray-50); border-radius: var(--radius-md); padding: 22px; text-align: center; transition: transform .15s, box-shadow .15s; border: 1px solid var(--gray-100); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--royal-600); }
.cat-icon { font-size: 2rem; margin-bottom: 10px; }
.cat-card h3 { font-size: 1rem; margin-bottom: 4px; }
.cat-card span { color: var(--gray-500); font-size: 0.82rem; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 24px; }
.product-card { position: relative; background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-md); overflow: hidden; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-thumb { position: relative; aspect-ratio: 4/3; background: var(--gray-50); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge-row { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; padding: 4px 9px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-featured { background: var(--navy-900); color: var(--gold-400); }
.badge-deal { background: var(--gold-500); color: var(--navy-950); }
.badge-out { background: #C0362C; color: var(--white); }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: 0.72rem; color: var(--royal-600); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.product-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy-950); line-height: 1.3; }
.product-price { font-family: var(--font-mono); display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price-now { color: var(--royal-600); font-weight: 700; font-size: 1.08rem; }
.price-was { color: var(--gray-500); text-decoration: line-through; font-size: 0.82rem; }
.savings { font-size: 0.72rem; color: #1C8A4B; font-weight: 700; }
.product-actions { display: flex; gap: 8px; padding: 0 16px 16px; }

/* ---------- Deals strip ---------- */
.deals-strip { background: var(--navy-950); color: var(--white); }
.deals-strip .section-sub, .deals-strip .eyebrow { color: var(--gray-300); }
.deals-strip .product-card { background: var(--navy-900); border-color: rgba(255,255,255,0.08); }
.deals-strip .product-name { color: var(--white); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testi-card { background: var(--gray-50); border-radius: var(--radius-md); padding: 24px; border-left: 4px solid var(--gold-500); }
.testi-stars { color: var(--gold-500); font-family: var(--font-mono); margin-bottom: 10px; }
.testi-name { font-weight: 700; margin-top: 12px; font-size: 0.9rem; }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(120deg, var(--royal-600), var(--navy-900)); color: var(--white); border-radius: var(--radius-lg); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input { padding: 13px 18px; border-radius: 100px; border: none; min-width: 260px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--gray-100); padding: 18px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-family: var(--font-display); }
.faq-a { max-height: 0; overflow: hidden; color: var(--gray-500); transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 300px; padding-top: 12px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.chev { transition: transform .2s; color: var(--royal-600); }

/* ---------- Footer ---------- */
footer { background: var(--navy-950); color: var(--gray-300); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--gray-300); font-size: 0.88rem; padding: 5px 0; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; }

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .hero-grid { grid-template-columns: 1fr; } .hero-visual { display: none; } }

/* ---------- Filters / toolbar (Products page) ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 28px; background: var(--gray-50); padding: 16px; border-radius: var(--radius-md); }
.toolbar-group { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.input, select.input { padding: 11px 16px; border-radius: 100px; border: 1px solid var(--gray-100); background: var(--white); font-size: 0.9rem; }
.chip-filter { padding: 8px 14px; border-radius: 100px; background: var(--white); border: 1px solid var(--gray-100); font-size: 0.85rem; font-weight: 600; color: var(--gray-500); }
.chip-filter.active { background: var(--royal-600); color: var(--white); border-color: var(--royal-600); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gray-50); font-weight: 600; font-family: var(--font-mono); font-size: 0.85rem; }
.page-btn.active { background: var(--royal-600); color: var(--white); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }

/* ---------- Product details page ---------- */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: flex-start; }
.pd-main-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; background: var(--gray-50); margin-bottom: 12px; }
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.pd-thumbs img.active { border-color: var(--royal-600); }
.pd-price-block { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; font-family: var(--font-mono); }
.pd-price-now { font-size: 2rem; font-weight: 700; color: var(--royal-600); }
.pd-specs { margin-top: 24px; border-top: 1px solid var(--gray-100); padding-top: 20px; }
.pd-specs table { width: 100%; border-collapse: collapse; }
.pd-specs td { padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; }
.pd-specs td:first-child { color: var(--gray-500); width: 40%; }
@media (max-width: 860px) { .pd-grid { grid-template-columns: 1fr; } }

/* ---------- Forms (Contact) ---------- */
.form-card { background: var(--gray-50); border-radius: var(--radius-lg); padding: 36px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--gray-300); background: var(--white); }
.form-msg { padding: 12px 16px; border-radius: var(--radius-sm); margin-top: 14px; font-size: 0.88rem; }
.form-msg.success { background: #E4F6EA; color: #1C8A4B; }
.form-msg.error { background: #FBE6E4; color: #C0362C; }

/* ---------- Static page content ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 34px; margin-bottom: 12px; }
.prose p, .prose li { color: var(--gray-500); margin-bottom: 12px; }
.prose ul { padding-left: 20px; list-style: disc; }

.page-hero { background: var(--navy-950); color: var(--white); padding: 64px 0; text-align: center; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--gray-300); margin-top: 10px; }

/* ---------- AI Chat Widget ---------- */
.ai-fab { position: fixed; bottom: 26px; right: 26px; width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); box-shadow: var(--shadow-gold); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; z-index: 900; transition: transform .15s; }
.ai-fab:hover { transform: scale(1.06); }
.ai-panel { position: fixed; bottom: 100px; right: 26px; width: 360px; max-width: 90vw; height: 480px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: none; flex-direction: column; overflow: hidden; z-index: 900; }
.ai-panel.open { display: flex; }
.ai-head { background: var(--navy-950); color: var(--white); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.ai-head-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.ai-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--gray-50); }
.ai-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 0.88rem; line-height: 1.45; }
.ai-msg.user { align-self: flex-end; background: var(--royal-600); color: var(--white); border-bottom-right-radius: 4px; }
.ai-msg.bot { align-self: flex-start; background: var(--white); border: 1px solid var(--gray-100); border-bottom-left-radius: 4px; }
.ai-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--gray-100); }
.ai-input-row input { flex: 1; padding: 11px 14px; border-radius: 100px; border: 1px solid var(--gray-100); }
.ai-send { width: 40px; height: 40px; border-radius: 50%; background: var(--royal-600); color: var(--white); display: flex; align-items: center; justify-content: center; }
.ai-typing { font-size: 0.8rem; color: var(--gray-500); font-style: italic; padding: 0 16px; }

@media (max-width: 480px) {
  .ai-panel { right: 12px; left: 12px; width: auto; bottom: 92px; }
  .ai-fab { right: 16px; bottom: 16px; }
}
