/* ----------------------------------------------------
   DESIGN SYSTEM & VARIABLES
   ---------------------------------------------------- */
:root {
  /* Color Palette (Light theme with warm golden highlights) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  
  --accent-gold: #d97706;
  --accent-gold-hover: #b45309;
  --accent-gold-glow: rgba(217, 119, 6, 0.15);
  
  --accent-blue: #0284c7;
  --accent-blue-glow: rgba(2, 132, 199, 0.1);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-border-hover: rgba(217, 119, 6, 0.4);
  
  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout & Shadows */
  --max-width: 1200px;
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------------------------------------------------
   GLOWING BACKGROUND ORBS
   ---------------------------------------------------- */
.glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
  animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-1 {
  background: radial-gradient(circle, var(--accent-blue-glow) 0%, rgba(0,0,0,0) 70%);
  top: -100px;
  right: -100px;
}

.orb-2 {
  background: radial-gradient(circle, var(--accent-gold-glow) 0%, rgba(0,0,0,0) 70%);
  top: 600px;
  left: -200px;
  animation-delay: -5s;
}

.orb-3 {
  background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, rgba(0,0,0,0) 70%);
  bottom: 200px;
  right: -100px;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 80px) scale(1.1); }
  100% { transform: translate(-30px, -40px) scale(0.95); }
}

/* ----------------------------------------------------
   HEADER SECTION
   ---------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  padding: 16px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-icon {
  color: var(--accent-gold);
  filter: drop-shadow(0 0 6px var(--accent-gold-glow));
}

.logo span span {
  color: var(--accent-gold);
}

nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-gold-hover);
  transform: translateY(-2px);
}

.nav-btn .badge {
  background-color: var(--accent-gold);
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
}

/* ----------------------------------------------------
   AFFILIATE WIDGET
   ---------------------------------------------------- */
.affiliate-widget {
  position: relative;
}

.widget-toggle {
  background: rgba(240, 193, 75, 0.1);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
  transition: var(--transition-smooth);
}

.widget-toggle:hover {
  background: rgba(240, 193, 75, 0.2);
}

.widget-dropdown {
  position: absolute;
  top: 100%;
  margin-top: 10px;
  right: 50%;
  transform: translateX(50%);
  width: 280px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--border-radius-md);
  padding: 16px;
  box-shadow: var(--card-shadow);
  display: none;
  z-index: 110;
}

.widget-dropdown.active {
  display: block;
  animation: dropdownIn 0.2s ease-out;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translate(50%, -10px); }
  to { opacity: 1; transform: translate(50%, 0); }
}

.widget-dropdown h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.widget-dropdown p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.tag-input-group {
  display: flex;
  gap: 8px;
}

.tag-input-group input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  padding: 6px 10px;
  font-size: 0.85rem;
  outline: none;
}

.tag-input-group input:focus {
  border-color: var(--accent-gold);
}

.tag-input-group button {
  background: var(--accent-gold);
  border: none;
  border-radius: var(--border-radius-sm);
  color: #111;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.85rem;
}

.success-msg {
  display: none;
  color: #10b981;
  font-size: 0.7rem;
  margin-top: 6px;
  font-weight: 600;
}

/* ----------------------------------------------------
   HERO SECTION
   ---------------------------------------------------- */
.hero {
  padding: 80px 0;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-tagline {
  color: var(--accent-gold);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  color: #111;
  box-shadow: 0 4px 14px 0 rgba(240, 193, 75, 0.3);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  box-shadow: 0 6px 20px 0 rgba(240, 193, 75, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: rgba(15, 23, 42, 0.05);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 20px 24px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateX(10px);
}

.stat-card h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.stat-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ----------------------------------------------------
   CATALOG CONTROLS
   ---------------------------------------------------- */
.catalog-section {
  padding: 60px 0 100px 0;
  border-top: 1px solid var(--glass-border);
}

.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 30px;
}

.search-box-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-box-container input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 16px 20px 16px 50px;
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
  font-family: var(--font-body);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: var(--transition-smooth);
}

.search-box-container input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(240, 193, 75, 0.15);
  background: var(--bg-tertiary);
}

.clear-search-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.filter-btn.active {
  background: rgba(240, 193, 75, 0.15);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  font-weight: 600;
}

.results-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ----------------------------------------------------
   PRODUCT CARDS GRID
   ---------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-blue);
  border: 1px solid rgba(2, 132, 199, 0.2);
  z-index: 10;
}

.wishlist-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 10;
}

.wishlist-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.wishlist-btn.active {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

.product-image-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background-color: var(--bg-primary);
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.08);
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.rating-stars {
  color: var(--accent-gold);
}

.rating-count {
  color: var(--text-muted);
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.product-actions {
  display: flex;
  gap: 8px;
}

.btn-card {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.btn-card-details {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--glass-border);
}

.btn-card-details:hover {
  background: var(--bg-primary);
  border-color: var(--text-muted);
}

.btn-card-buy {
  background: var(--accent-gold);
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-card-buy:hover {
  background: var(--accent-gold-hover);
}

.compare-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  align-self: flex-start;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.compare-checkbox-label:hover {
  background: rgba(255,255,255,0.05);
}

.compare-checkbox-label input {
  accent-color: var(--accent-gold);
}

/* ----------------------------------------------------
   EMPTY STATE
   ---------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ----------------------------------------------------
   MODALS (OVERLAY & WINDOWS)
   ---------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(7, 10, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow-y: auto;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 40px;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.close-modal-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  z-index: 10;
}

.close-modal-btn:hover {
  background: var(--bg-primary);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: rotate(90deg);
}

/* Modal Content Styles */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.modal-image-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-image-wrapper {
  width: 100%;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.modal-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-category {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-blue);
  letter-spacing: 1px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.modal-specs-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-specs-table tr:last-child {
  border-bottom: none;
}

.modal-specs-table td {
  padding: 8px 0;
  font-size: 0.85rem;
}

.modal-specs-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  width: 40%;
}

.modal-specs-table td:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 10px 0;
}

.pro-list, .con-list {
  background: var(--bg-tertiary);
  padding: 16px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
}

.pro-list h5 {
  color: #10b981;
  font-family: var(--font-display);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.con-list h5 {
  color: #ef4444;
  font-family: var(--font-display);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pro-list ul, .con-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pro-list li::before {
  content: '✓';
  color: #10b981;
  margin-right: 6px;
  font-weight: bold;
}

.con-list li::before {
  content: '✗';
  color: #ef4444;
  margin-right: 6px;
  font-weight: bold;
}

.modal-buy-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.modal-price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.modal-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Wishlist Modal Custom Layout */
.wishlist-modal-card {
  max-width: 600px;
}

.wishlist-header {
  margin-bottom: 24px;
}

.wishlist-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.wishlist-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.wishlist-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 450px;
  overflow-y: auto;
  margin-bottom: 24px;
}

.wishlist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-tertiary);
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
}

.wishlist-item-img {
  width: 70px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
}

.wishlist-item-detail {
  flex-grow: 1;
}

.wishlist-item-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.wishlist-item-price {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.wishlist-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wishlist-btn-buy {
  background: var(--accent-gold);
  border: none;
  border-radius: var(--border-radius-sm);
  color: #111;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.wishlist-btn-buy:hover {
  background: var(--accent-gold-hover);
}

.wishlist-btn-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-smooth);
  padding: 6px;
}

.wishlist-btn-remove:hover {
  color: #ef4444;
}

/* ----------------------------------------------------
   COMPARISON DRAWER
   ---------------------------------------------------- */
.compare-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border-top: 2px solid var(--accent-gold);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
  z-index: 180;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px 24px;
}

.compare-drawer.active {
  transform: translateY(0);
}

.compare-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.compare-drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-counter {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.compare-drawer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-clear-compare {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-clear-compare:hover {
  color: #ef4444;
}

.close-drawer-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
}

.compare-drawer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 16px;
}

.compare-drawer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-tertiary);
  padding: 8px 12px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
  position: relative;
}

.compare-card-empty {
  border: 1px dashed var(--text-muted);
  background: rgba(255,255,255,0.01);
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  height: 52px;
}

.compare-drawer-card img {
  width: 50px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
}

.compare-drawer-card h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.compare-card-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.compare-card-remove:hover {
  color: #ef4444;
}

.compare-drawer-footer {
  display: flex;
  justify-content: flex-end;
}

.btn-compare-submit {
  width: auto;
  font-size: 0.9rem;
  padding: 10px 24px;
}

.btn-compare-submit:disabled {
  background: var(--bg-tertiary);
  border-color: var(--glass-border);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

/* ----------------------------------------------------
   COMPARISON TABLE MODAL
   ---------------------------------------------------- */
.comparison-table-card {
  max-width: 950px;
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 24px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comparison-table th {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  background-color: var(--bg-tertiary);
}

.comparison-table th:first-child {
  border-top-left-radius: var(--border-radius-md);
  border-bottom-left-radius: var(--border-radius-md);
}

.comparison-table th:last-child {
  border-top-right-radius: var(--border-radius-md);
  border-bottom-right-radius: var(--border-radius-md);
}

.comparison-table td {
  font-size: 0.85rem;
  vertical-align: top;
}

.compare-row-header {
  font-weight: 600;
  color: var(--text-secondary);
}

.comparison-table img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--glass-border);
  margin-bottom: 8px;
}

.compare-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.compare-spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compare-spec-list li span {
  color: var(--text-muted);
}

.compare-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compare-bullets li::before {
  content: '•';
  color: var(--accent-gold);
  margin-right: 6px;
}

/* ----------------------------------------------------
   FOOTER SECTION
   ---------------------------------------------------- */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

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



.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 24px 0;
  background-color: var(--bg-primary);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.text-gold {
  color: var(--accent-gold);
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ---------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .stat-card {
    flex: 1 1 200px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
  .compare-drawer-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .compare-drawer-card {
    height: 48px;
  }
  .compare-card-empty {
    display: none; /* Hide empty boxes on mobile to save space */
  }
  .footer-bottom-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ----------------------------------------------------
   BUYING GUIDES STYLING
   ---------------------------------------------------- */
.guides-section {
  padding: 80px 0;
  background-color: var(--bg-secondary);
  position: relative;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  height: 100%;
}

.guide-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 40px 0 rgba(240, 193, 75, 0.12), var(--card-shadow);
}

.guide-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
}

.guide-card:hover .guide-card-image {
  filter: brightness(1.1);
}

.guide-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.guide-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.guide-card:hover h3 {
  color: var(--accent-gold);
}

.guide-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: var(--transition-smooth);
}

.guide-card:hover .read-more i {
  transform: translateX(5px);
}

/* ----------------------------------------------------
   DETAILED GUIDE PAGE LAYOUT
   ---------------------------------------------------- */
.guide-header-hero {
  position: relative;
  padding: 100px 0 60px 0;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

.guide-header-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.6) 0%, rgba(11, 15, 25, 0.85) 100%);
  z-index: 1;
}

.guide-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
}

.guide-header-content h1 {
  color: #ffffff !important;
}

.guide-header-content p {
  color: #cbd5e1 !important;
}

.guide-breadcrumbs {
  font-size: 0.8rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.guide-breadcrumbs a {
  color: #cbd5e1 !important;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.guide-breadcrumbs a:hover {
  color: var(--accent-gold);
}

.guide-header-content h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.guide-author-meta {
  font-size: 0.85rem;
  color: #cbd5e1 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.guide-author-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-body-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 24px;
}

.guide-intro-block {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
  border-left: 4px solid var(--accent-gold);
  padding-left: 20px;
}

.guide-intro-block p {
  margin-bottom: 15px;
}

.guide-intro-block strong {
  color: var(--text-primary);
}

/* Pick Cards Grid */
.product-pick-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  margin-bottom: 50px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.product-pick-card:hover {
  border-color: var(--glass-border-hover);
}

.pick-badge {
  background: var(--accent-gold);
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 16px;
  display: inline-block;
  border-bottom-right-radius: var(--border-radius-sm);
  letter-spacing: 1px;
}

.pick-badge.best-value {
  background: var(--accent-blue);
  color: #fff;
}

.pick-badge.premium {
  background: #a855f7; /* Purple */
  color: #fff;
}

.pick-card-header {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  padding: 30px;
  border-bottom: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
  .pick-card-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.pick-image-container {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 200px;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
}

.pick-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-pick-card:hover .pick-image-container img {
  transform: scale(1.05);
}

.pick-title-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pick-title-area h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--text-primary);
}

/* Specs Badges */
.specs-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.spec-badge-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.spec-badge-item strong {
  color: var(--text-primary);
  margin-right: 4px;
}

.pick-card-body {
  padding: 30px;
}

.editor-advice {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
}

.editor-advice h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent-gold);
}

/* Pros and Cons side-by-side */
.guide-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

@media (max-width: 600px) {
  .guide-pros-cons {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.pros-box, .cons-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 20px;
}

.pros-box h5, .cons-box h5 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-box h5 { color: #10b981; }
.cons-box h5 { color: #ef4444; }

.pros-box ul, .cons-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros-box li, .cons-box li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.pros-box li i { color: #10b981; margin-top: 3px; font-size: 0.75rem; }
.cons-box li i { color: #ef4444; margin-top: 3px; font-size: 0.75rem; }

/* Who Should Buy Section */
.who-buy-box {
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--border-radius-md);
  padding: 20px;
  margin-bottom: 25px;
}

.who-buy-box h5 {
  font-family: var(--font-display);
  color: var(--accent-blue);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.who-buy-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Buying Action Buttons */
.guide-action-area {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--glass-border);
}

.guide-action-area .btn {
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-guide-amazon {
  background-color: var(--accent-gold);
  color: #111;
  border: none;
}

.btn-guide-amazon:hover {
  background-color: var(--accent-gold-hover);
  box-shadow: 0 4px 15px rgba(240, 193, 75, 0.3);
}

.btn-guide-flipkart {
  background-color: #2874f0;
  color: #fff;
  border: none;
}

.btn-guide-flipkart:hover {
  background-color: #1459cb;
  box-shadow: 0 4px 15px rgba(40, 116, 240, 0.3);
}

.guide-conclusion-section {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  margin-top: 60px;
  box-shadow: var(--card-shadow);
}

.guide-conclusion-section h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--accent-gold);
}

.guide-conclusion-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

