/* ==========================================================================
   WEBTOPTRENDING.IN - MASTER DESIGN SYSTEM
   Modern Glassmorphism, HSL Design Tokens, Micro-Animations & Responsive CSS
   ========================================================================== */

:root {
  /* Color Palette - Premium Dark Glassmorphism */
  --bg-primary: hsl(224, 28%, 8%);
  --bg-secondary: hsl(224, 25%, 12%);
  --bg-surface: hsla(224, 25%, 15%, 0.72);
  --bg-surface-hover: hsla(224, 25%, 20%, 0.88);
  --bg-card: hsla(224, 24%, 13%, 0.85);
  --bg-card-hover: hsla(224, 26%, 17%, 0.95);
  --bg-glass-modal: hsla(224, 30%, 10%, 0.92);

  /* Border & Glass Glow */
  --border-color: hsla(224, 20%, 30%, 0.4);
  --border-subtle: hsla(224, 20%, 22%, 0.5);
  --border-glow: hsla(250, 85%, 65%, 0.45);
  --border-cyan-glow: hsla(190, 95%, 52%, 0.45);

  /* Brand Accents & Gradients */
  --accent-primary: hsl(252, 88%, 66%);
  --accent-secondary: hsl(190, 95%, 50%);
  --accent-tertiary: hsl(330, 85%, 60%);
  --accent-amber: hsl(42, 98%, 55%);
  --accent-gradient: linear-gradient(135deg, hsl(252, 88%, 66%) 0%, hsl(190, 95%, 50%) 100%);
  --accent-gradient-alt: linear-gradient(135deg, hsl(330, 85%, 60%) 0%, hsl(252, 88%, 66%) 100%);
  --accent-gradient-gold: linear-gradient(135deg, hsl(42, 98%, 55%) 0%, hsl(24, 95%, 53%) 100%);
  --accent-glow: 0 0 24px hsla(252, 88%, 66%, 0.35);
  --cyan-glow: 0 0 24px hsla(190, 95%, 50%, 0.35);

  /* Typography Colors */
  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 72%);
  --text-muted: hsl(215, 16%, 52%);
  --text-inverse: hsl(224, 28%, 8%);

  /* Theme Colors */
  --color-amazon: #FF9900;
  --color-gumroad: #FF90E8;
  --color-envato: #82B440;
  --color-playstore: #00865F;
  --color-github: #24292e;
  --color-stripe: #635BFF;
  --color-razorpay: #0C2340;
  --success: hsl(145, 68%, 45%);
  --warning: hsl(38, 95%, 52%);
  --danger: hsl(355, 82%, 58%);

  /* Typography Families */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-family);

  /* Radius & Shadows */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-glass: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 8px 30px hsla(252, 88%, 66%, 0.25);
  --glass-blur: blur(18px) saturate(180%);

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, hsla(252, 88%, 66%, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, hsla(190, 95%, 50%, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, hsla(330, 85%, 60%, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  border: none;
  outline: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-alt {
  background: var(--accent-gradient-alt);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-gold {
  background: var(--accent-gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  transition: var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glass), var(--accent-glow);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
  overflow: hidden;
  position: relative;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glass), 0 8px 30px hsla(252, 88%, 66%, 0.2);
  transform: translateY(-6px);
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 18px hsla(252, 88%, 66%, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px hsla(252, 88%, 66%, 0.6);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: hsla(224, 25%, 22%, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: hsla(224, 25%, 28%, 0.8);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.btn-glow {
  position: relative;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: var(--accent-gradient);
  filter: blur(12px);
  opacity: 0.4;
  z-index: -1;
  transition: opacity 0.3s;
}

.btn-glow:hover::after {
  opacity: 0.8;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-xs);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

/* Marketplace Badges / Buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
  background: hsla(224, 25%, 15%, 0.8);
}

.store-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.store-btn.amazon {
  border-color: rgba(255, 153, 0, 0.4);
  color: #FFB84D;
}
.store-btn.amazon:hover {
  background: rgba(255, 153, 0, 0.15);
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.store-btn.gumroad {
  border-color: rgba(255, 144, 232, 0.4);
  color: #FF90E8;
}
.store-btn.gumroad:hover {
  background: rgba(255, 144, 232, 0.15);
  box-shadow: 0 4px 15px rgba(255, 144, 232, 0.3);
}

.store-btn.envato {
  border-color: rgba(130, 180, 64, 0.4);
  color: #A3D85F;
}
.store-btn.envato:hover {
  background: rgba(130, 180, 64, 0.15);
  box-shadow: 0 4px 15px rgba(130, 180, 64, 0.3);
}

.store-btn.playstore {
  border-color: rgba(0, 134, 95, 0.4);
  color: #34D399;
}
.store-btn.playstore:hover {
  background: rgba(0, 134, 95, 0.15);
  box-shadow: 0 4px 15px rgba(0, 134, 95, 0.3);
}

.store-btn.github {
  border-color: rgba(255, 255, 255, 0.3);
  color: #E2E8F0;
}
.store-btn.github:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.store-btn.lemonsqueezy {
  border-color: rgba(255, 199, 44, 0.4);
  color: #FFD54F;
}
.store-btn.lemonsqueezy:hover {
  background: rgba(255, 199, 44, 0.15);
  box-shadow: 0 4px 15px rgba(255, 199, 44, 0.3);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: hsla(224, 28%, 8%, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
  transition: var(--transition-fast);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--accent-glow);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-xs);
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: hsla(224, 25%, 20%, 0.4);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Currency & Search Inputs */
.currency-select {
  background: hsla(224, 25%, 16%, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.currency-select:hover, .currency-select:focus {
  border-color: var(--accent-primary);
}

.nav-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-input {
  background: hsla(224, 25%, 15%, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  font-size: 0.88rem;
  width: 210px;
  transition: var(--transition-normal);
}

.nav-search-input:focus {
  width: 280px;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px hsla(252, 88%, 66%, 0.3);
  background: hsla(224, 25%, 18%, 0.95);
}

.nav-search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.9rem;
}

.mobile-menu-toggle {
  display: none;
  background: hsla(224, 25%, 20%, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: hsla(252, 88%, 66%, 0.12);
  border: 1px solid hsla(252, 88%, 66%, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px hsla(252, 88%, 66%, 0.2); }
  50% { box-shadow: 0 0 22px hsla(252, 88%, 66%, 0.45); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.2rem;
}

.hero-search-wrapper {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.hero-search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.5rem 0.45rem 1.4rem;
  box-shadow: var(--shadow-glass);
  transition: var(--transition-normal);
}

.hero-search-bar:focus-within {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glass), var(--accent-glow);
}

.hero-search-input {
  flex: 1;
  background: transparent;
  font-size: 1.05rem;
  padding: 0.4rem;
  color: var(--text-primary);
}

.hero-search-input::placeholder {
  color: var(--text-muted);
}

.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   CATEGORY PILLS & FILTERS
   ========================================================================== */
.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-filter-bar::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.cat-pill:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}

.cat-pill.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 18px hsla(252, 88%, 66%, 0.35);
}

.cat-pill-count {
  background: hsla(224, 25%, 10%, 0.4);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.cat-pill.active .cat-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Section Header & Toolbar */
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.sort-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   PRODUCT CARDS GRID
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  height: 210px;
  background: hsla(224, 25%, 10%, 0.6);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover .card-img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: var(--glass-blur);
  z-index: 2;
}

.badge-trending {
  background: hsla(330, 85%, 60%, 0.9);
  color: #fff;
  box-shadow: 0 4px 12px hsla(330, 85%, 60%, 0.4);
}

.badge-bestseller {
  background: hsla(42, 98%, 55%, 0.95);
  color: #111;
  box-shadow: 0 4px 12px hsla(42, 98%, 55%, 0.4);
}

.badge-new {
  background: hsla(190, 95%, 50%, 0.9);
  color: #000;
  box-shadow: 0 4px 12px hsla(190, 95%, 50%, 0.4);
}

.badge-software {
  background: hsla(252, 88%, 66%, 0.9);
  color: #fff;
  box-shadow: 0 4px 12px hsla(252, 88%, 66%, 0.4);
}

.card-platform-tags {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.platform-tag {
  background: hsla(224, 30%, 8%, 0.85);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.card-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-amber);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.card-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.card-features-list {
  list-style: none;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-feature-item {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.card-feature-item svg {
  color: var(--success);
  flex-shrink: 0;
}

.card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-pricing-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.card-price-current {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
}

.card-price-original {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 0.4rem;
}

.card-discount-tag {
  background: hsla(145, 68%, 45%, 0.15);
  border: 1px solid hsla(145, 68%, 45%, 0.3);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
}

/* Card Action Buttons Group */
.card-actions-group {
  display: flex;
  gap: 0.6rem;
}

.card-actions-group .btn {
  flex: 1;
}

.card-marketplace-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--border-subtle);
}

.card-marketplace-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  width: 100%;
  margin-bottom: 0.2rem;
}

/* ==========================================================================
   PRODUCT ARTICLE & DETAILS PAGE
   ========================================================================== */
.product-hero {
  padding: 3rem 0 2rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}

.product-main-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.article-body h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.article-body h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.8rem;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 1.2rem;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body blockquote {
  border-left: 4px solid var(--accent-primary);
  background: hsla(252, 88%, 66%, 0.08);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
}

.code-snippet-box {
  background: hsl(224, 30%, 6%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  color: #38bdf8;
}

/* Sticky Buy Box / Sidebar */
.sticky-buy-box {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.8rem;
}

.buy-box-price-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.buy-box-current-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 850;
  color: var(--text-primary);
}

.buy-box-guarantee-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem;
  background: hsla(145, 68%, 45%, 0.1);
  border: 1px solid hsla(145, 68%, 45%, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
}

.marketplace-hub-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.marketplace-hub-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  text-align: left;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.5rem 1.2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--accent-primary);
}

/* ==========================================================================
   MODALS (DIRECT CHECKOUT & QUICK VIEW)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-glass-modal);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass), 0 0 50px hsla(252, 88%, 66%, 0.3);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem;
  position: relative;
  animation: modal-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: hsla(224, 25%, 20%, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: hsla(355, 82%, 58%, 0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: hsl(224, 30%, 6%);
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.author-attribution {
  font-weight: 600;
  color: var(--accent-secondary);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .sticky-buy-box {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-search-box {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-glass);
  }
  .hero-stats-row {
    gap: 1.5rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
