/* ============================================
   OFERTAS RUNNING — Design System
   Dark premium theme with coral accents
   ============================================ */

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

/* --- CSS Variables --- */
:root {
  /* Colors — Dark Theme */
  --bg-primary: #060910;
  --bg-secondary: #0d1117;
  --bg-tertiary: #151b28;
  --bg-card: rgba(21, 27, 40, 0.7);
  --bg-card-hover: rgba(30, 38, 55, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-border: rgba(255, 255, 255, 0.08);

  /* Accent Colors */
  --accent-primary: #ff6b35;
  --accent-secondary: #ff8c42;
  --accent-gradient: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffab5e 100%);
  --accent-glow: rgba(255, 107, 53, 0.3);

  /* Semantic Colors */
  --color-discount: #10b981;
  --color-discount-bg: rgba(16, 185, 129, 0.12);
  --color-rating: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;

  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-inverse: #0a0e17;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px var(--accent-glow);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1280px;
  --header-height: 72px;
}

/* --- Reset / Normalize --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 2rem);
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(6, 9, 16, 0.8);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--bg-glass-border);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: rgba(6, 9, 16, 0.95);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
}

.logo-text span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-discount-bg);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-discount);
}

.header-badge .pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--color-discount);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255, 107, 53, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(255, 140, 66, 0.06) 0%, transparent 50%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
}

/* Animated grid/particles in background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-lg);
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.8s ease-out;
}

.hero-eyebrow .fire {
  font-size: 1.1rem;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title .highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--bg-glass-border);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

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

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--font-size-base);
  border-radius: var(--radius-xl);
}

/* ============================================
   FILTERS SECTION
   ============================================ */
.filters-section {
  position: relative;
  z-index: 10;
  padding: var(--space-2xl) 0;
}

.filters-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
  min-width: 180px;
}

.filter-group label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.filter-select,
.filter-input {
  flex: 1;
  padding: 0.6rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), background var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.filter-select {
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  cursor: pointer;
}

.filter-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.filter-select:focus,
.filter-input:focus {
  border-color: var(--accent-primary);
  background: rgba(255, 107, 53, 0.05);
}

.filter-input::placeholder {
  color: var(--text-tertiary);
}

.search-wrapper {
  position: relative;
  flex: 2;
  min-width: 220px;
}

.search-wrapper .filter-input {
  padding-left: 1rem;
  width: 100%;
}

.filter-sort {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.results-count {
  text-align: center;
  padding: var(--space-md) 0;
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
}

.results-count strong {
  color: var(--accent-primary);
  font-weight: 700;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.offers-section {
  padding: var(--space-xl) 0 var(--space-4xl);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title .emoji {
  margin-right: var(--space-sm);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
}

.empty-state .emoji {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.empty-state h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  color: var(--text-secondary);
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(30px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 53, 0.25);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 107, 53, 0.08);
}

.product-card.visible:hover {
  transform: translateY(-6px);
}

/* Discount badge */
.discount-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 5;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-discount);
  color: white;
  font-size: var(--font-size-xs);
  font-weight: 800;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

/* Store badge */
.store-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 5;
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

/* Product image area */
.product-image-wrap {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
  pointer-events: none;
}

.product-image-wrap img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform var(--transition-slow);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.08) rotate(-2deg);
}

/* Product info */
.product-info {
  padding: var(--space-lg);
}

.product-brand {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.product-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.product-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px var(--space-sm);
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

/* Specs row */
.product-specs {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--bg-glass-border);
}

.product-spec {
  text-align: center;
  flex: 1;
}

.product-spec-value {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.product-spec-label {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--color-rating);
  font-size: var(--font-size-sm);
}

.star.empty {
  color: var(--text-tertiary);
  opacity: 0.3;
}

.rating-value {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
}

/* Price row */
.product-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.price-current {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.price-current .currency {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.price-original {
  font-size: var(--font-size-base);
  color: var(--text-tertiary);
  text-decoration: line-through;
  font-weight: 500;
}

.price-save {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-discount);
  background: var(--color-discount-bg);
  padding: 2px var(--space-sm);
  border-radius: var(--radius-full);
}

/* CTA button on card */
.product-cta {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent-gradient);
  color: var(--text-inverse);
  font-size: var(--font-size-sm);
  font-weight: 700;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.product-cta:hover {
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.product-cta .arrow {
  transition: transform var(--transition-fast);
}

.product-cta:hover .arrow {
  transform: translateX(4px);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.how-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--bg-glass-border) 50%, transparent 100%);
}

.how-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.how-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-3xl);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.how-step {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
}

.how-step.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.how-step:hover {
  border-color: rgba(255, 107, 53, 0.2);
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-lg);
}

.how-step-number {
  width: 48px;
  height: 48px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--text-inverse);
  margin: 0 auto var(--space-lg);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.how-step-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.how-step h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.how-step p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   NEWSLETTER / CTA SECTION
   ============================================ */
.newsletter-section {
  padding: var(--space-4xl) 0;
}

.newsletter-card {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(59, 130, 246, 0.06) 100%);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
  animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.newsletter-card.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.newsletter-content {
  position: relative;
  z-index: 1;
}

.newsletter-card h2 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.newsletter-card p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 450px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.newsletter-form input::placeholder {
  color: var(--text-tertiary);
}

.newsletter-form input:focus {
  border-color: var(--accent-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--bg-glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--bg-glass-border);
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}

.affiliate-disclaimer {
  max-width: 600px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent-primary);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Card entrance animation stagger */
.product-card:nth-child(1) { transition-delay: 0ms; }
.product-card:nth-child(2) { transition-delay: 60ms; }
.product-card:nth-child(3) { transition-delay: 120ms; }
.product-card:nth-child(4) { transition-delay: 180ms; }
.product-card:nth-child(5) { transition-delay: 240ms; }
.product-card:nth-child(6) { transition-delay: 300ms; }
.product-card:nth-child(7) { transition-delay: 360ms; }
.product-card:nth-child(8) { transition-delay: 420ms; }
.product-card:nth-child(9) { transition-delay: 480ms; }
.product-card:nth-child(10) { transition-delay: 540ms; }
.product-card:nth-child(11) { transition-delay: 600ms; }
.product-card:nth-child(12) { transition-delay: 660ms; }

/* ============================================
   MODAL / PRODUCT DETAIL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-base);
}

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

.modal-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-image {
  height: 300px;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-image img {
  max-width: 70%;
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.modal-body {
  padding: var(--space-2xl);
}

.modal-body .product-brand {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
}

.modal-body .product-name {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.modal-spec-card {
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  text-align: center;
}

.modal-spec-card .value {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--accent-primary);
}

.modal-spec-card .label {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.modal-price-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  background: rgba(255, 107, 53, 0.06);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
}

.modal-cta {
  width: 100%;
  padding: 1rem;
  font-size: var(--font-size-base);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .how-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

/* Mobile large */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .header-badge {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Mobile nav overlay */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 9, 16, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-2xl);
    gap: var(--space-xl);
    z-index: 999;
    animation: fadeIn 0.2s ease-out;
  }

  .nav-links.mobile-open a {
    font-size: var(--font-size-xl);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .filters-bar {
    flex-direction: column;
    gap: var(--space-md);
  }

  .filter-group {
    width: 100%;
    min-width: unset;
  }

  .search-wrapper {
    width: 100%;
    min-width: unset;
  }

  .offers-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .modal-specs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .modal-price-section {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .section-header {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* Mobile small */
@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .product-image-wrap {
    height: 180px;
  }

  .price-current {
    font-size: var(--font-size-2xl);
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Toast Notification --- */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-primary);
  color: var(--text-primary);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 107, 53, 0.2);
  z-index: 9999;
  transition: transform var(--transition-base), opacity var(--transition-base);
  opacity: 0;
  pointer-events: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-align: center;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- Legal Pages Content --- */
.legal-page {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-3xl);
  backdrop-filter: blur(10px);
}

.legal-content h1 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-content h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.legal-content p, .legal-content li {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.legal-content ul {
  list-style: disc;
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

