/* ============================================================
   Affiliate Store — Main CSS
   Premium Dark/Light mode design with animations
   ============================================================ */

/* ─── Font Metric Overrides ────────────────────────────────── */
/* These metric-matched fallbacks prevent CLS when Google Fonts swap in.  */
/* The size-adjust/ascent/descent values are tuned to match Inter & Outfit */
@font-face {
  font-family: 'Inter Fallback';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Arial'), local('ArialMT');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Outfit Fallback';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Arial'), local('ArialMT');
  size-adjust: 103%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ─── Google Fonts & CSS Variables ────────────────────────── */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --navbar-bg: rgba(255,255,255,0.95);
  --radius: 12px;
  --radius-lg: 18px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  /* Fallback fonts included so layout is stable even before Google Fonts load */
  --font-main: 'Inter', 'Inter Fallback', Arial, sans-serif;
  --font-display: 'Outfit', 'Outfit Fallback', Arial, sans-serif;
}

[data-bs-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #273549;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --navbar-bg: rgba(15,23,42,0.95);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.4);
}

/* ─── Base Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

main { flex: 1; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; }
a { text-decoration: none; }
img { max-width: 100%; }

/* ─── Skip Navigation Link (keyboard accessibility) ────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ─── Scrollbar Styling ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ─── Gradient Text ──────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* fallback if background-clip:text not supported */
}

/* ─── Loading Spinner ────────────────────────────────────────── */
.loading-spinner {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.spinner-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner-ring {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── NAVBAR ─────────────────────────────────────────────────── */
#mainNavbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  transition: background var(--transition), border-color var(--transition);
  z-index: 1030;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  transition: opacity var(--transition);
}
.navbar-brand:hover { opacity: 0.85; color: var(--text); }

.nav-link {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
  background: rgba(99, 102, 241, 0.08);
}

/* Search Input */
.search-input {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 10px 0 0 10px !important;
  font-size: 0.88rem;
  width: 240px;
  transition: all var(--transition);
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: var(--bg-card);
  color: var(--text);
  width: 280px;
}
.btn-search {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 10px 10px 0 !important;
  padding: 0.45rem 1rem;
  transition: background var(--transition);
}
.btn-search:hover { background: var(--primary-dark); color: #fff; }

/* Search Dropdown */
.search-wrapper { position: relative; }
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 1050;
  overflow: hidden;
  animation: slideDown 0.15s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-card-hover); }
.search-result-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.search-result-name { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.search-result-price { font-size: 0.8rem; color: var(--primary); font-weight: 600; }

/* Dark Mode Toggle */
.btn-icon-only {
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.btn-icon-only:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: rotate(15deg);
}

/* ─── HERO SECTION ───────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
  color: white;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

[data-bs-theme="light"] .hero-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 40%, #7c3aed 100%);
}

.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: float 8s ease-in-out infinite;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; right: -200px;
  animation-delay: 0s;
}
.shape-2 {
  width: 400px; height: 400px;
  background: #ec4899;
  bottom: -100px; left: -100px;
  animation-delay: 2s;
}
.shape-3 {
  width: 300px; height: 300px;
  background: var(--accent);
  top: 40%; left: 40%;
  animation-delay: 4s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
  color: var(--primary-dark);
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  box-shadow: 0 4px 15px rgba(255,255,255,0.2);
  transition: all var(--transition);
  animation: fadeInUp 0.6s ease 0.5s both;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.3);
  color: var(--primary-dark);
}

.btn-hero-outline {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  transition: all var(--transition);
  animation: fadeInUp 0.6s ease 0.55s both;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeInUp 0.6s ease 0.65s both;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-display);
}
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* Hero Visual */
.hero-visual {
  position: relative;
  width: 100%;
  height: 400px;
  min-height: 400px;
  contain: layout style;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-circle {
  width: 220px;
  height: 220px;
  min-width: 220px;
  min-height: 220px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  line-height: 1;
  color: rgba(255,255,255,0.8);
  will-change: transform, opacity;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}
.floating-card {
  position: absolute;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}
.floating-card span[aria-hidden] { font-size: 1.3rem; }
.card-1 { top: 20px; right: 20px; animation: floatCard 4s ease-in-out infinite; }
.card-2 { top: 50%; left: 0; transform: translateY(-50%); animation: floatCard 4s ease-in-out infinite 1.5s; }
.card-3 { bottom: 20px; right: 40px; animation: floatCard 4s ease-in-out infinite 3s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(1deg); }
  75% { transform: translateY(4px) rotate(-1deg); }
}

/* ─── CATEGORY SECTION ───────────────────────────────────────── */
.category-section {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  white-space: nowrap;
}
.category-pill:hover, .category-pill.active {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.sort-select {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.sort-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ─── PRODUCT CARDS ──────────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(99, 102, 241, 0.3);
}

.product-card-img-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 1/1;
}
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img {
  transform: scale(1.06);
}

.badge-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
}

.badge-category {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title-link { color: var(--text); }
.product-title-link:hover { color: var(--primary); }

.product-card-title {
  font-size: 0.9rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #4338ca; /* WCAG AA: 5.1:1 contrast on white — was var(--primary) at only ~3.5:1 */
  font-family: var(--font-display);
}

.btn-buy-now {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  color: #fff;
}

/* ─── SECTION HEADERS ────────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
}
.section-subtitle { font-size: 1rem; }

/* ─── FEATURED SECTION ───────────────────────────────────────── */
.featured-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* ─── WHY US ─────────────────────────────────────────────────── */
.why-us-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}
.why-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all var(--transition);
}
.why-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.why-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all var(--transition);
}
.why-card:hover .why-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

/* ─── PRODUCT DETAIL ─────────────────────────────────────────── */
.product-detail-section { padding-top: 2rem; }

.product-detail-img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  aspect-ratio: 1/1;
}
.product-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-detail-img:hover { transform: scale(1.03); }

.featured-ribbon {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
}

.product-detail-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.price-block { display: flex; align-items: center; gap: 12px; }
.product-detail-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-display);
}

.product-short-desc {
  font-size: 1rem;
  color: var(--text-muted);
  border-left: 3px solid var(--primary);
  padding-left: 14px;
}

.btn-buy-now-lg {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
}
.btn-buy-now-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  color: #fff;
}

.affiliate-notice {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.product-description h2 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.description-text { color: var(--text-muted); line-height: 1.8; }

.product-meta-info { padding-top: 16px; border-top: 1px solid var(--border); }
.meta-item { display: flex; align-items: center; }

/* Share Buttons */
.share-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.share-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.category-badge-link { color: inherit; }
.badge-category-lg {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Related Section */
.related-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.breadcrumb { font-size: 0.82rem; }
.breadcrumb-item a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--border); }

/* ─── PAGINATION ─────────────────────────────────────────────── */
.page-link {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--bg-card);
  border-radius: 8px !important;
  min-width: 38px;
  text-align: center;
  font-size: 0.88rem;
  transition: all var(--transition);
}
.page-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}
.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.page-item.disabled .page-link { opacity: 0.4; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}
.footer-text { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }
.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 1rem 0; /* reset h2 default browser margin */
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }

.social-links { display: flex; gap: 8px; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* ─── ABOUT PAGE ─────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #fff;
}
.about-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.about-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.disclosure-card {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
}

/* ─── CONTACT PAGE ───────────────────────────────────────────── */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ─── 404 PAGE ───────────────────────────────────────────────── */
.error-code-display {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
}

/* ─── EMPTY STATE ────────────────────────────────────────────── */
.empty-state { padding: 60px 0; }
.empty-icon { opacity: 0.3; }

/* ─── FORM CONTROLS ──────────────────────────────────────────── */
.form-control, .form-select {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  transition: all var(--transition);
}
.form-control:focus, .form-select:focus {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-control::placeholder { color: var(--text-muted); }
.form-label { color: var(--text); font-weight: 500; font-size: 0.9rem; }

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.5s ease both;
}

/* ─── RESPONSIVE TWEAKS ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 1.2rem; }
  .filter-bar { flex-direction: column; align-items: flex-start !important; }
  .category-pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .search-input { width: 180px; }
  .hero-section { min-height: 60vh; }
  .btn-hero-primary, .btn-hero-outline { padding: 10px 20px; font-size: 0.9rem; }
}

@media (max-width: 576px) {
  .product-detail-price { font-size: 1.8rem; }
  .hero-title { font-size: 2rem; }
}

/* ─── Missing Component Styles ───────────────────────────────── */
.btn-details {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.btn-details:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.product-detail-blog {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.detail-blog-text p {
  margin-bottom: 1rem;
}

.final-cta-block {
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(236,72,153,0.08) 100%);
  border: 1px solid var(--border);
}

/* ─── Accessibility: Reduced Motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

