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

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --sidebar-width: 240px;
  --sidebar-bg: #f0f0ff;
  --sidebar-border: rgba(99,102,241,0.12);
  --sidebar-hover: rgba(99,102,241,0.10);
  --sidebar-active: #6366f1;
  --sidebar-text: #1e1b4b;
  --sidebar-text-muted: #6b7280;

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #eef2ff;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --amazon: #ff9900;
  --amazon-hover: #e68900;
  --green: #10b981;

  --bg: #f5f5f7;
  --card-bg: #ffffff;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.12);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   APP LAYOUT
   ============================================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

/* Logo area */
.sidebar-logo {
  padding: 20px 16px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.sidebar-logo img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}
.sidebar-logo-text .brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1e1b4b;
  line-height: 1.2;
}
.sidebar-logo-text .brand-tagline {
  font-size: 10px;
  color: var(--sidebar-text-muted);
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Nav */
.sidebar-nav {
  flex: 1;
  padding: 16px 10px;
}
.sidebar-nav-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--sidebar-text-muted);
  padding: 0 8px;
  margin: 16px 0 6px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2px;
  position: relative;
  text-decoration: none;
}
.sidebar-nav a:hover {
  background: var(--sidebar-hover);
  color: #3730a3;
}
.sidebar-nav a.active {
  background: var(--sidebar-active);
  color: #ffffff;
}
.nav-icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}
.sidebar-footer-text {
  font-size: 11px;
  color: var(--sidebar-text-muted);
  margin-bottom: 10px;
}
.social-links {
  display: flex;
  gap: 10px;
}
.social-links a {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(99,102,241,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--sidebar-text);
  transition: var(--transition);
}
.social-links a:hover {
  background: rgba(99,102,241,0.20);
  color: #3730a3;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   MOBILE TOPBAR
   ============================================================ */
.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  background: var(--sidebar-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}
.topbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.hamburger-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.hamburger-btn:hover { background: rgba(255,255,255,0.1); }
.hamburger-icon { width: 22px; height: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.hamburger-icon span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 150;
  backdrop-filter: blur(2px);
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4f46e5 70%, #7c3aed 100%);
  color: #fff;
  padding: 52px 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 360px; height: 360px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; right: 100px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.hero p {
  font-size: 16px;
  opacity: 0.82;
  line-height: 1.7;
  max-width: 480px;
}

/* ============================================================
   CATEGORY SECTIONS
   ============================================================ */
.category-section {
  display: none;
  animation: fadeIn 0.25s ease;
}
.category-section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-header {
  padding: 36px 36px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.category-header-left h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-header-left p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}
.product-count-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
  margin-top: 4px;
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  padding: 4px 36px 52px;
}

/* Software section: fixed 3-column grid with wide image ratio */
.software-grid {
  grid-template-columns: repeat(3, 1fr);
}
.software-grid .product-card-image {
  aspect-ratio: 16/9;
  background: #f0f4ff;
}
.software-grid .product-card-image img {
  object-fit: contain;
  object-position: center;
  padding: 0;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Card image area */
.product-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: #f0f0f5;
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  position: relative;
  z-index: 1;
}
.product-card:hover .product-card-image img {
  transform: scale(1.06);
}
.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 0;
}
.img-placeholder .ph-icon { font-size: 52px; opacity: 0.45; }
.img-placeholder .ph-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #a0a0b0;
}
/* Hide placeholder when real image loads */
.product-card-image img.loaded + .img-placeholder,
.product-card-image img:not([src=""]) ~ .img-placeholder { display: none; }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.product-badge.badge-new { background: var(--green); }
.product-badge.badge-software { background: var(--primary); }

/* Card body */
.product-card-body {
  padding: 18px 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-category-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 6px;
}
.product-name {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}
.product-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.product-card-actions {
  display: flex;
  gap: 8px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.btn-amazon {
  flex: 1;
  background: var(--amazon);
  color: #111;
}
.btn-amazon:hover { background: var(--amazon-hover); color: #111; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-lg {
  padding: 13px 28px;
  font-size: 15px;
  border-radius: 10px;
}
.btn-full { width: 100%; }

/* Amazon CTA button (product detail page) */
.btn-buy-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--amazon);
  color: #111;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-buy-now:hover { background: var(--amazon-hover); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.btn-download:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow); }

/* ============================================================
   COMING SOON (3D PRINTED)
   ============================================================ */
.coming-soon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px;
}
.coming-soon-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  max-width: 480px;
  width: 100%;
}
.coming-soon-icon { font-size: 72px; margin-bottom: 20px; }
.coming-soon-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}
.coming-soon-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}
.notify-form {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.notify-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.notify-form input:focus { border-color: var(--primary); }
.notify-form button { white-space: nowrap; }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail-page {
  padding: 36px;
  max-width: 1200px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--primary);
  font-weight: 500;
  transition: opacity 0.2s;
}
.breadcrumb a:hover { opacity: 0.75; }
.breadcrumb-sep { color: var(--border); font-size: 16px; }
.breadcrumb-current { color: var(--text-primary); font-weight: 500; }

/* Product hero */
.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
  align-items: start;
}

/* Gallery */
.product-gallery { position: sticky; top: 20px; }
.gallery-main {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f0f0f5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-main .img-placeholder-lg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #b0b0c0;
  text-align: center;
  padding: 32px;
}
.gallery-main .img-placeholder-lg .ph-icon-lg { font-size: 80px; opacity: 0.3; }
.gallery-main .img-placeholder-lg .ph-text { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.gallery-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 74px; height: 74px;
  border-radius: var(--radius-sm);
  background: #eee;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ccc;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb:hover { border-color: var(--primary); }

/* Product info panel */
.product-info {
  display: flex;
  flex-direction: column;
}
.product-info-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 14px;
}
.product-info h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.product-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Features */
.product-features { margin-bottom: 28px; }
.features-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}
.feature-check {
  color: var(--green);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Age / info chips */
.product-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* CTA area */
.product-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.product-cta-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Product info sections */
.product-sections { display: flex; flex-direction: column; gap: 20px; }

.product-section-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.product-section-card h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-section-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
}
.product-section-card p:last-child { margin-bottom: 0; }

/* Video placeholder */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed var(--border);
  color: var(--text-muted);
}
.video-placeholder .play-icon { font-size: 52px; opacity: 0.3; }
.video-placeholder .ph-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.5;
}
.video-placeholder .ph-hint {
  font-size: 12px;
  opacity: 0.4;
}

/* ============================================================
   SOFTWARE PRODUCT SPECIAL STYLES
   ============================================================ */
.software-hero-bg {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.software-hero-bg::before {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 250px; height: 250px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.software-hero-bg h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
}
.software-hero-bg p { opacity: 0.8; position: relative; }
.software-platforms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  position: relative;
}
.platform-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .product-gallery { position: static; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .software-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* Sidebar hidden by default on mobile */
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.active { display: block; }

  /* Show topbar */
  .topbar { display: flex; }

  /* Adjust main content */
  .main-content { margin-left: 0; }

  .hero {
    padding: 36px 20px;
  }
  .hero h1 { font-size: 26px; }

  .category-header {
    padding: 24px 16px 16px;
  }
  .category-header-left h2 { font-size: 20px; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 4px 16px 36px;
  }
  .software-grid { grid-template-columns: repeat(2, 1fr); }

  .product-detail-page { padding: 16px; }
  .product-info h1 { font-size: 24px; }
  .product-section-card { padding: 20px; }

  .coming-soon-card { padding: 40px 24px; }
  .notify-form { flex-direction: column; }
}

/* ============================================================
   SEO TRUST / KEYWORD SECTION (Toys page)
   ============================================================ */
.seo-trust-section {
  padding: 0 36px 52px;
}
.seo-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.seo-trust-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.seo-trust-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.seo-trust-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.seo-trust-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.seo-text-block {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border: 1px solid #ddd6fe;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.seo-text-block h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.seo-text-block p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 10px;
}
.seo-text-block p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .seo-trust-section { padding: 0 16px 36px; }
  .seo-text-block { padding: 20px; }
  .seo-text-block h2 { font-size: 16px; }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 4px 12px 28px;
  }
  .product-card-body { padding: 12px; }
  .product-name { font-size: 14px; }
  .product-desc { font-size: 12px; margin-bottom: 12px; }
  .btn { padding: 8px 12px; font-size: 12px; }
  .hero { padding: 28px 16px; }
  .hero h1 { font-size: 22px; }
  .product-card-actions { flex-direction: column; gap: 6px; }
  .btn-amazon, .btn-outline { padding: 8px; }
}

/* ============================================================
   BLOG / ARTICLE PAGES
   ============================================================ */
.article-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 36px 80px;
}
.article-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.article-hero {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.article-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.article-meta-sep { color: var(--border); }
.article-intro {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.article-body h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 12px;
}
.article-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 8px;
}
.article-body p {
  font-size: 15px;
  color: #374151;
  line-height: 1.85;
  margin-bottom: 16px;
}
.article-body ul, .article-body ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.article-body li {
  font-size: 15px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 6px;
}
.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover { color: var(--primary-hover); }
.article-cta {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.article-cta-icon { font-size: 40px; flex-shrink: 0; }
.article-cta-text h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.article-cta-text p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}
.article-cta .btn {
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--border-light);
  padding: 4px 12px;
  border-radius: 20px;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.comparison-table th {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}
.comparison-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: #374151;
}
.comparison-table tr:nth-child(even) td { background: var(--bg); }
.comparison-table tr:hover td { background: var(--primary-light); }
.comparison-table .check { color: #10b981; font-weight: 700; }
.comparison-table .highlight-row td { font-weight: 600; background: #eef2ff !important; }
.faq-list { margin: 20px 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--card-bg);
}
.faq-a {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  background: var(--card-bg);
}

/* Blog index hub */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 4px 36px 52px;
}
.blog-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
  align-self: flex-start;
}
.blog-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.blog-card a.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.blog-card a.read-more:hover { color: var(--primary-hover); }

/* About page */
.about-hero {
  background: linear-gradient(135deg, #4338ca, #6366f1, #818cf8);
  border-radius: var(--radius-xl);
  padding: 52px 48px;
  margin-bottom: 32px;
  color: #fff;
}
.about-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}
.about-hero p { font-size: 16px; opacity: 0.85; line-height: 1.7; max-width: 560px; }
.about-section {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.about-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.about-section p {
  font-size: 15px;
  color: #374151;
  line-height: 1.85;
  margin-bottom: 14px;
}
.about-section p:last-child { margin-bottom: 0; }
.stat-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.stat-box {
  flex: 1;
  min-width: 120px;
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-box .stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}
.stat-box .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .article-page { padding: 16px 16px 60px; }
  .article-hero h1 { font-size: 24px; }
  .article-body h2 { font-size: 18px; }
  .article-cta { flex-direction: column; gap: 12px; }
  .article-cta .btn { margin-left: 0; }
  .blog-grid { grid-template-columns: 1fr; padding: 4px 16px 36px; }
  .about-hero { padding: 32px 24px; }
  .about-hero h1 { font-size: 26px; }
  .about-section { padding: 20px; }
  .comparison-table { font-size: 12px; }
  .comparison-table th, .comparison-table td { padding: 8px 10px; }
}

/* ============================================================
   Contact Modal
   ============================================================ */
#contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
#contact-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cmodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,15,26,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cmodal-box {
  position: relative;
  background: var(--card-bg, #fff);
  border-radius: 20px;
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
  text-align: center;
}
#contact-modal.open .cmodal-box {
  transform: translateY(0) scale(1);
}
.cmodal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--bg, #f8f8fc);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary, #6b7280);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cmodal-close:hover { background: var(--border-light, #e5e7eb); }
.cmodal-icon {
  font-size: 44px;
  margin-bottom: 10px;
}
.cmodal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #111);
  margin: 0 0 6px;
}
.cmodal-subtitle {
  font-size: 14px;
  color: var(--text-secondary, #6b7280);
  margin: 0 0 24px;
  line-height: 1.5;
}
.cmodal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.cmodal-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cmodal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.cmodal-btn--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
}
.cmodal-btn--email {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}
.cmodal-num {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.88;
}
.cmodal-note {
  font-size: 12px;
  color: var(--text-muted, #9ca3af);
  line-height: 1.5;
  margin: 0;
}

/* Contact Us button (used on book cards/pages) */
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius, 10px);
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-contact:hover { opacity: 0.9; transform: translateY(-1px); }

/* Book cover images in catalog — portrait fit */
.book-card-img {
  object-fit: contain !important;
  background: #1e1b4b;
}
.book-card-img-light {
  object-fit: contain !important;
  background: #f8f4ff;
}
