/*
Theme Name: Sellora AI
Theme URI: https://selloraai.harikaran.com
Author: Harikaran
Author URI: https://harikaran.com
Description: Official landing theme for Sellora AI — WooCommerce AI Chatbot & Shopping Assistant.
Version: 1.0.0
License: All Rights Reserved
Text Domain: selloraai
*/

/* ════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #7310ec;
  --primary-dark: #5a0bc4;
  --primary-light: #9b4df5;
  --primary-faint: #f3e8ff;
  --secondary: #000;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --surface: #fff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(115,16,236,0.10);
  --shadow-lg: 0 12px 48px rgba(115,16,236,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4 { font-family: 'Righteous', sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ════════════════════════════════════════
   HEADER & NAV
════════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(115,16,236,0.35); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-faint); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0 24px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--primary); }
.mobile-nav .btn { margin-top: 12px; justify-content: center; }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #0d0120 0%, #2a0572 40%, #7310ec 100%);
  padding: 100px 0 80px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,77,245,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.hero-content { color: #fff; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #e0c8ff;
  margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #a3ff70; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: 20px; line-height: 1.15; }
.hero h1 span { color: #c89cff; }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,0.8); max-width: 520px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image-wrap { display: flex; justify-content: center; align-items: center; }

/* ════════════════════════════════════════
   STATS BAR
════════════════════════════════════════ */
.stats-bar {
  background: var(--primary-faint);
  border-top: 1px solid #ddc5ff;
  border-bottom: 1px solid #ddc5ff;
  padding: 28px 0;
}
.stats-inner { display: flex; align-items: center; justify-content: center; }
.stat-item { flex: 1; text-align: center; padding: 12px 24px; }
.stat-item:not(:last-child) { border-right: 1px solid #ddc5ff; }
.stat-num { font-family: 'Righteous', sans-serif; font-size: 1.6rem; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

/* ════════════════════════════════════════
   SECTION COMMONS
════════════════════════════════════════ */
section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  background: var(--primary-faint);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--text); margin-bottom: 16px; }
.section-header p { font-size: 1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ════════════════════════════════════════
   FEATURES
════════════════════════════════════════ */
.features { background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.feature-card:hover { box-shadow: var(--shadow); border-color: #c49cf5; transform: translateY(-3px); }
.feature-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--primary-faint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-text h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.feature-text p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════ */
.how-it-works { background: #fafafa; }
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps-row::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  opacity: 0.25;
}
.step-card {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
}
.step-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Righteous', sans-serif;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(115,16,236,0.35);
}
.step-card h3 { font-size: 1rem; margin-bottom: 10px; }
.step-card p { font-size: 0.875rem; color: var(--text-muted); }

/* ════════════════════════════════════════
   AI PROVIDERS
════════════════════════════════════════ */
.providers { background: #fff; }
.providers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.provider-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.25s;
}
.provider-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.provider-card.featured { border-color: var(--primary); background: linear-gradient(to bottom, var(--primary-faint), #fff); }
.provider-logo {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.provider-logo svg { width: 36px; height: 36px; }
.provider-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.provider-card .default-model {
  display: inline-block;
  background: var(--primary-faint);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.provider-models { list-style: none; text-align: left; }
.provider-models li {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.provider-models li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.providers-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--primary-faint);
  border-radius: 8px;
  padding: 14px 24px;
  border: 1px solid #ddc5ff;
}
.providers-note strong { color: var(--primary); }

/* ════════════════════════════════════════
   SECURITY
════════════════════════════════════════ */
.security { background: #0d0120; color: #fff; }
.security .section-header h2 { color: #fff; }
.security .section-tag { background: rgba(255,255,255,0.1); color: #c89cff; }
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.security-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.security-item:hover { background: rgba(115,16,236,0.2); border-color: rgba(115,16,236,0.5); transform: translateY(-3px); }
.security-item-icon {
  width: 44px; height: 44px;
  background: rgba(115,16,236,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.security-item-icon svg { width: 22px; height: 22px; stroke: #c89cff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.security-item h3 { font-size: 0.95rem; color: #fff; margin-bottom: 6px; }
.security-item p { font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* ════════════════════════════════════════
   ADMIN DASHBOARD
════════════════════════════════════════ */
.admin-dashboard { background: #fafafa; }
.admin-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: center; }
.admin-pages { list-style: none; margin-top: 28px; }
.admin-pages li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.admin-pages li:last-child { border-bottom: none; }
.admin-pages li::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   REQUIREMENTS
════════════════════════════════════════ */
.requirements { background: var(--primary-faint); padding: 56px 0; }
.req-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.req-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 8px; }
.req-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #ddc5ff;
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.req-badge svg { width: 14px; height: 14px; stroke: var(--primary); fill: none; stroke-width: 2; }

/* ════════════════════════════════════════
   PRICING
════════════════════════════════════════ */
.pricing { background: #fff; }
.pricing-wrap { max-width: 560px; margin: 0 auto; }
.pricing-card {
  background: linear-gradient(135deg, #7310ec, #9b4df5);
  border-radius: 20px;
  padding: 52px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 64px rgba(115,16,236,0.4);
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.pricing-card::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.pricing-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.pricing-price { margin-bottom: 10px; }
.pricing-price del {
  font-size: 1.25rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
  color: #ffd97d;
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.7);
  text-decoration-thickness: 2px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,215,125,0.35);
  border-radius: 8px;
  padding: 4px 14px;
  letter-spacing: 0.02em;
}
.pricing-price .free { font-family: 'Righteous', sans-serif; font-size: 4rem; line-height: 1; color: #fff; }
.pricing-tagline { font-size: 0.9rem; opacity: 0.85; margin-bottom: 32px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 36px; }
.pricing-features li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li svg { width: 18px; height: 18px; stroke: #a3ff70; fill: none; stroke-width: 2.5; flex-shrink: 0; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: #0d0120;
  color: rgba(255,255,255,0.65);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-desc { font-size: 0.85rem; max-width: 300px; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* ════════════════════════════════════════
   DOCUMENTATION PAGE
════════════════════════════════════════ */
.docs-wrap {
  display: grid;
  grid-template-columns: 272px 1fr;
  min-height: calc(100vh - 68px);
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 28px 0 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.sidebar-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); padding: 12px 24px 6px; }
.sidebar-link {
  display: block;
  padding: 7px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s, background 0.18s;
  border-left: 3px solid transparent;
}
.sidebar-link:hover { color: var(--primary); background: var(--primary-faint); }
.sidebar-link.active { color: var(--primary); background: var(--primary-faint); border-left-color: var(--primary); font-weight: 600; }

.doc-content { padding: 48px 56px 80px; max-width: 860px; }
.doc-hero { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.doc-hero .breadcrumb { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.doc-hero .breadcrumb a { color: var(--primary); }
.doc-hero h1 { font-size: 2.2rem; color: var(--text); margin-bottom: 12px; }
.doc-hero p { color: var(--text-muted); font-size: 1.05rem; }

.doc-section { margin-bottom: 56px; scroll-margin-top: 88px; }
.doc-section h2 { font-size: 1.6rem; color: var(--text); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-faint); }
.doc-section h3 { font-size: 1.15rem; color: var(--text); margin: 28px 0 10px; }
.doc-section h4 { font-size: 0.95rem; color: var(--text); margin: 20px 0 8px; }
.doc-section p { margin-bottom: 14px; color: var(--text); font-size: 0.95rem; }
.doc-section ul, .doc-section ol { margin: 0 0 16px 24px; font-size: 0.95rem; }
.doc-section li { margin-bottom: 6px; }

.on-this-page { background: var(--primary-faint); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 40px; }
.on-this-page h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 12px; }
.on-this-page ul { margin: 0; padding: 0; list-style: none; }
.on-this-page li { margin-bottom: 4px; }
.on-this-page a { font-size: 0.88rem; color: var(--text-muted); }
.on-this-page a:hover { color: var(--primary); }

/* Doc steps */
.doc-steps { display: flex; flex-direction: column; gap: 20px; margin: 20px 0; }
.doc-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.doc-step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Righteous', sans-serif;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.doc-step-body h4 { margin-top: 4px; margin-bottom: 6px; font-size: 1rem; }
.doc-step-body p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }
.doc-step-body p a { color: var(--primary); }

/* Badges */
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-purple { background: var(--primary-faint); color: var(--primary); }
.badge-green { background: #ecfdf5; color: #059669; }
.badge-amber { background: #fffbeb; color: #b45309; }
.badge-red { background: #fef2f2; color: #dc2626; }

/* ════════════════════════════════════════
   TERMS PAGE
════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, #7310ec 0%, #9b4df5 100%);
  padding: 60px 0 52px;
  text-align: center;
  color: #fff;
}
.page-hero .breadcrumb { font-size: 0.82rem; opacity: 0.7; margin-bottom: 14px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.85); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-size: 2.4rem; margin-bottom: 12px; }
.page-hero p { font-size: 1rem; opacity: 0.85; max-width: 560px; margin: 0 auto 20px; }
.effective-date {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.82rem;
  font-weight: 500;
}

.terms-wrap { display: grid; grid-template-columns: 240px 1fr; max-width: 1160px; margin: 0 auto; padding: 0 24px; align-items: start; }
.toc { position: sticky; top: 88px; padding: 32px 0 40px; border-right: 1px solid var(--border); margin-right: 48px; }
.toc-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.toc a {
  display: block;
  padding: 6px 0 6px 14px;
  font-size: 0.83rem;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  margin-left: -1px;
  transition: color 0.18s, border-color 0.18s;
  line-height: 1.4;
}
.toc a:hover { color: var(--primary); border-left-color: var(--primary-light); }
.toc a.active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }

.terms-content { padding: 48px 0 80px; }
.terms-section { margin-bottom: 48px; scroll-margin-top: 88px; }
.section-num {
  display: inline-block;
  background: var(--primary-faint);
  color: var(--primary);
  font-family: 'Righteous', sans-serif;
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.terms-section h2 { font-size: 1.45rem; color: var(--text); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-faint); }
.terms-section h3 { font-size: 1.05rem; color: var(--text); margin: 24px 0 8px; }
.terms-section p { font-size: 0.93rem; color: #374151; margin-bottom: 12px; line-height: 1.75; }
.terms-section ul, .terms-section ol { margin: 8px 0 14px 22px; font-size: 0.93rem; color: #374151; }
.terms-section li { margin-bottom: 7px; line-height: 1.7; }

.license-block {
  background: #1a1a2e;
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 20px 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.contact-box {
  background: linear-gradient(135deg, var(--primary-faint) 0%, #ede9fe 100%);
  border: 1px solid #ddd0fa;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 20px;
}
.contact-box h3 { font-size: 1rem; margin-bottom: 12px; color: var(--primary-dark); }
.contact-box p { margin-bottom: 6px; font-size: 0.9rem; color: #374151; }
.contact-box a { color: var(--primary); font-weight: 500; }

/* ════════════════════════════════════════
   SHARED — CALLOUTS & CODE
════════════════════════════════════════ */
.callout {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 0.9rem;
}
.callout-icon { font-size: 1.15rem; flex-shrink: 0; line-height: 1.6; }
.callout p { margin: 0; }
.callout-info { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e3a5f; }
.callout-warning { background: #fffbeb; border-left: 4px solid #f59e0b; color: #78350f; }
.callout-tip { background: var(--primary-faint); border-left: 4px solid var(--primary); color: var(--primary-dark); }

code {
  font-family: 'Courier New', Courier, monospace;
  background: #f6f2ff;
  color: var(--primary-dark);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.85em;
}
pre {
  background: #1a1a2e;
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 16px 0 24px;
  font-size: 0.85rem;
  line-height: 1.65;
}
pre code { background: transparent; color: inherit; padding: 0; font-size: inherit; }

.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th { background: var(--primary-faint); color: var(--primary-dark); font-weight: 600; padding: 10px 16px; text-align: left; border: 1px solid #ddd0fa; }
td { padding: 10px 16px; border: 1px solid var(--border); vertical-align: top; }
tr:nth-child(even) td { background: #fafafa; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-image-wrap { order: -1; }

  .features-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .steps-row::before { display: none; }
  .providers-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .pricing-card { padding: 40px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .stats-inner { flex-direction: column; gap: 8px; }
  .stat-item { border-right: none; border-bottom: 1px solid #ddc5ff; }

  /* Docs */
  .docs-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 16px 0; }
  .doc-content { padding: 32px 24px 60px; }

  /* Terms */
  .terms-wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
  .terms-content { padding: 32px 0 60px; }
}

@media (max-width: 640px) {
  .doc-hero h1 { font-size: 1.7rem; }
  .doc-step { grid-template-columns: 36px 1fr; }
  .doc-step-num { width: 36px; height: 36px; font-size: 0.95rem; }
  .page-hero h1 { font-size: 1.8rem; }
}

/* ════════════════════════════════════════
   HEADER — CART ICON & NAV ACTIONS
════════════════════════════════════════ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color 0.2s;
}
.cart-icon:hover { color: var(--primary); }
.cart-count {
  position: absolute;
  top: -7px;
  right: -8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.cart-count:empty,
.cart-count[data-count="0"] { display: none; }

/* ════════════════════════════════════════
   WOOCOMMERCE — LAYOUT
════════════════════════════════════════ */
.wc-main { padding: 60px 0 80px; }
.wc-content { width: 100%; }

/* Breadcrumb */
.woocommerce-breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.woocommerce-breadcrumb a { color: var(--primary); }
.woocommerce-breadcrumb a:hover { text-decoration: underline; }

/* ════════════════════════════════════════
   WC — NOTICES
════════════════════════════════════════ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-forward {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}
.woocommerce-message { background: #ecfdf5; border-left: 4px solid #059669; color: #065f46; }
.woocommerce-info    { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e3a5f; }
.woocommerce-error   { background: #fef2f2; border-left: 4px solid #dc2626; color: #7f1d1d; }
.woocommerce-error li { list-style: none; }

/* ════════════════════════════════════════
   WC — SHOP / PRODUCT ARCHIVE
════════════════════════════════════════ */
.woocommerce-products-header { margin-bottom: 32px; }
.woocommerce-products-header__title {
  font-family: 'Righteous', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text);
  margin-bottom: 8px;
}

/* Toolbar (result count + ordering) */
.woocommerce-ordering select,
.woocommerce-ordering .orderby {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  outline: none;
}
.woocommerce-ordering select:focus { border-color: var(--primary); }
.woocommerce-result-count { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; }

/* Product grid */
ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
ul.products li.product {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
ul.products li.product:hover {
  box-shadow: var(--shadow);
  border-color: #c49cf5;
  transform: translateY(-3px);
}

/* Product thumbnail */
ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
ul.products li.product a:hover img { opacity: 0.9; }

/* Product info */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 16px 16px 4px;
  margin: 0;
}
ul.products li.product .price {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  padding: 0 16px 12px;
  display: block;
}
ul.products li.product .price del { color: var(--text-muted); font-weight: 400; font-size: 0.82rem; margin-right: 6px; }
ul.products li.product .price ins { text-decoration: none; }

/* Sale badge */
ul.products li.product .onsale {
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Add to cart button on loop */
ul.products li.product .button,
ul.products li.product .add_to_cart_button {
  display: block;
  margin: auto 16px 16px;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
ul.products li.product .button:hover { background: var(--primary-dark); transform: translateY(-1px); }
ul.products li.product .added_to_cart { font-size: 0.8rem; text-align: center; padding: 0 16px 12px; color: #059669; }

/* ════════════════════════════════════════
   WC — SINGLE PRODUCT
════════════════════════════════════════ */
.single-product div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 60px;
}

/* Gallery */
.single-product .woocommerce-product-gallery {
  position: relative;
}
.single-product .woocommerce-product-gallery__image img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.single-product .flex-control-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  list-style: none;
  padding: 0;
}
.single-product .flex-control-thumbs li { flex: 0 0 72px; }
.single-product .flex-control-thumbs img {
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: border-color 0.2s;
}
.single-product .flex-control-thumbs .flex-active { border-color: var(--primary); }

/* Product summary */
.single-product .summary { padding-top: 8px; }
.single-product .product_title {
  font-family: 'Righteous', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 12px;
}
.single-product .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.single-product .star-rating { color: #f59e0b; font-size: 0.85rem; }
.single-product .woocommerce-review-link { font-size: 0.82rem; color: var(--text-muted); }

.single-product .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}
.single-product .price del { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.single-product .price ins { text-decoration: none; }

.single-product .woocommerce-product-details__short-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* Quantity + add to cart */
.single-product form.cart { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.single-product .quantity input[type="number"] {
  width: 80px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  text-align: center;
  color: var(--text);
  outline: none;
}
.single-product .quantity input:focus { border-color: var(--primary); }
.single-product .single_add_to_cart_button {
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex: 1;
  min-width: 160px;
}
.single-product .single_add_to_cart_button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.single-product .single_add_to_cart_button.loading { opacity: 0.7; pointer-events: none; }

/* Product meta */
.single-product .product_meta { font-size: 0.82rem; color: var(--text-muted); }
.single-product .product_meta span { display: block; margin-bottom: 4px; }
.single-product .product_meta a { color: var(--primary); }

/* Tabs */
.single-product .woocommerce-tabs { grid-column: 1 / -1; }
.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0;
  list-style: none;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  padding: 0;
}
.single-product .woocommerce-tabs ul.tabs li {
  margin-bottom: -2px;
}
.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.single-product .woocommerce-tabs .panel { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }
.single-product .woocommerce-tabs .panel h2 { font-size: 1.1rem; color: var(--text); margin-bottom: 12px; }

/* Related products */
.single-product .related.products { margin-top: 48px; }
.single-product .related.products h2 {
  font-family: 'Righteous', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--text);
}

/* ════════════════════════════════════════
   WC — CART PAGE
════════════════════════════════════════ */
.woocommerce-cart .wc-content h1,
.woocommerce-checkout .wc-content h1 {
  font-family: 'Righteous', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 32px;
  color: var(--text);
}

table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.shop_table th {
  background: var(--primary-faint);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #ddd0fa;
}
table.shop_table td {
  padding: 14px 16px;
  border: 1px solid var(--border);
  vertical-align: middle;
}
table.shop_table td.product-thumbnail img { width: 72px; border-radius: 8px; }
table.shop_table td.product-name a { color: var(--text); font-weight: 500; }
table.shop_table td.product-name a:hover { color: var(--primary); }
table.shop_table .product-remove a {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 700;
  transition: color 0.2s;
}
table.shop_table .product-remove a:hover { color: #dc2626; }

/* Cart totals */
.cart-collaterals { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
.cart_totals { background: var(--primary-faint); border-radius: var(--radius); padding: 28px 32px; }
.cart_totals h2 { font-size: 1.1rem; margin-bottom: 20px; color: var(--text); }
.cart_totals table { background: transparent; }
.cart_totals table th { background: transparent; border: none; padding: 8px 0; }
.cart_totals table td { border: none; padding: 8px 0; font-weight: 600; color: var(--primary); }
.cart_totals .order-total td { font-size: 1.1rem; }

.wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  padding: 15px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 16px;
}
.wc-proceed-to-checkout .checkout-button:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ════════════════════════════════════════
   WC — CHECKOUT PAGE
════════════════════════════════════════ */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #order_review_heading {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-faint);
}

.woocommerce-checkout form .form-row { margin-bottom: 16px; }
.woocommerce-checkout form .form-row label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.woocommerce-checkout form .form-row label .required { color: var(--primary); }
.woocommerce-checkout form .form-row input,
.woocommerce-checkout form .form-row select,
.woocommerce-checkout form .form-row textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.woocommerce-checkout form .form-row input:focus,
.woocommerce-checkout form .form-row select:focus,
.woocommerce-checkout form .form-row textarea:focus { border-color: var(--primary); }

.woocommerce-checkout #payment { background: var(--primary-faint); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.woocommerce-checkout #payment ul.payment_methods { list-style: none; padding: 0; margin-bottom: 20px; }
.woocommerce-checkout #payment ul.payment_methods li { padding: 10px 0; border-bottom: 1px solid #ddd0fa; font-size: 0.9rem; }
.woocommerce-checkout #payment #place_order {
  width: 100%;
  padding: 15px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.woocommerce-checkout #payment #place_order:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ════════════════════════════════════════
   WC — MY ACCOUNT PAGE
════════════════════════════════════════ */
.woocommerce-account .wc-content { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-MyAccount-navigation ul li { border-bottom: 1px solid var(--border); }
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 10px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a { color: var(--primary); font-weight: 600; }
.woocommerce-MyAccount-content { font-size: 0.9rem; }
.woocommerce-MyAccount-content h2 { font-size: 1.2rem; color: var(--text); margin-bottom: 20px; }

/* ════════════════════════════════════════
   WC — PAGINATION
════════════════════════════════════════ */
.woocommerce-pagination ul {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
  justify-content: center;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all 0.2s;
}
.woocommerce-pagination ul li a:hover { border-color: var(--primary); color: var(--primary); }
.woocommerce-pagination ul li span.current { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

/* ════════════════════════════════════════
   WC — RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 900px) {
  ul.products { grid-template-columns: repeat(2, 1fr); }
  .single-product div.product { grid-template-columns: 1fr; gap: 32px; }
  .cart-collaterals { grid-template-columns: 1fr; }
  .woocommerce-account .wc-content { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  ul.products { grid-template-columns: 1fr; }
  .nav-actions .nav-cta { display: none; }
}
