/*
Theme Name: SwadeshiMarket Pro
Theme URI: https://swadeshimarket.in
Author: SwadeshiMarket Team
Author URI: https://swadeshimarket.in
Description: A high-performance, SEO-optimized WooCommerce affiliate theme for SwadeshiMarket — showcasing products from Amazon & Flipkart with a modern Indian e-commerce aesthetic.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swadeshimarket
Tags: e-commerce, woocommerce, affiliate, rtl-language-support, custom-colors, custom-logo, featured-images, full-width-template, grid-layout, one-column, two-columns, sticky-post, translation-ready
WC requires at least: 7.0
WC tested up to: 8.5
*/

/* ============================================================
   SWADESHIMARKET PRO — DESIGN SYSTEM
   ============================================================ */

:root {
  /* Brand Colors */
  --color-primary:       #e8611a;   /* Deep saffron — Indian energy */
  --color-primary-dark:  #c44e0e;
  --color-primary-light: #f5894a;
  --color-secondary:     #1a3a5c;   /* Deep navy — trust */
  --color-secondary-light: #254d7a;
  --color-accent:        #f5b800;   /* Gold — premium */
  --color-accent-dark:   #c99200;

  /* Neutrals */
  --color-bg:            #f8f7f4;
  --color-bg-white:      #ffffff;
  --color-bg-dark:       #0f1923;
  --color-surface:       #ffffff;
  --color-surface-2:     #f2f0ec;
  --color-border:        #e2ddd5;
  --color-border-dark:   #c8c0b4;

  /* Text */
  --color-text:          #1c1612;
  --color-text-muted:    #6b6257;
  --color-text-light:    #a09486;
  --color-text-inverse:  #ffffff;

  /* Badges */
  --color-amazon:        #ff9900;
  --color-flipkart:      #2874f0;
  --color-success:       #16a34a;
  --color-danger:        #dc2626;
  --color-star:          #f59e0b;

  /* Typography */
  --font-display:        'Playfair Display', Georgia, serif;
  --font-body:           'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:           'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.16);
  --shadow-glow: 0 0 40px rgba(232,97,26,.25);
  --shadow-card: 0 2px 8px rgba(28,22,18,.06), 0 8px 32px rgba(28,22,18,.05);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   150ms;
  --dur-med:    300ms;
  --dur-slow:   500ms;

  /* Layout */
  --container-xs: 480px;
  --container-sm: 640px;
  --container-md: 900px;
  --container-lg: 1200px;
  --container-xl: 1440px;
  --container-max: 1320px;

  /* Z-index layers */
  --z-base:     1;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-modal:    300;
  --z-toast:    400;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

a:hover { color: var(--color-primary-dark); }

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

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container-fluid {
  width: 100%;
  padding-inline: var(--space-lg);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }

/* Grid system */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.flex-gap { gap: var(--space-md); }
.flex-wrap { flex-wrap: wrap; }

/* ============================================================
   SITE HEADER
   ============================================================ */

#site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--dur-med) ease, background var(--dur-med) ease;
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-top {
  background: var(--color-secondary);
  color: rgba(255,255,255,.8);
  font-size: 0.8125rem;
  padding-block: 6px;
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.header-top a {
  color: rgba(255,255,255,.75);
  transition: color var(--dur-fast);
}

.header-top a:hover { color: #fff; }

.header-top-left,
.header-top-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-main {
  padding-block: var(--space-md);
}

.header-main .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-xl);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Search bar */
.header-search {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: center;
}

.header-search form {
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.header-search form:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(232,97,26,.1);
}

.header-search input[type="search"] {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.header-search input::placeholder {
  color: var(--color-text-light);
}

.header-search button[type="submit"] {
  padding: 10px 20px;
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--dur-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-search button:hover { background: var(--color-primary-dark); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.header-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background var(--dur-fast), color var(--dur-fast);
  position: relative;
}

.header-action-btn:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.header-action-btn svg, .header-action-btn .dashicons {
  font-size: 1.25rem;
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--color-primary);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Navigation */
#site-navigation {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.nav-menu {
  display: flex;
  align-items: stretch;
  list-style: none;
  gap: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--color-primary);
  background: rgba(232,97,26,.05);
}

.nav-menu > li.current-menu-item > a {
  border-bottom: 3px solid var(--color-primary);
}

/* Mega menu dropdown */
.nav-menu > li > .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--dur-med) var(--ease-out);
  z-index: var(--z-dropdown);
  list-style: none;
  padding: var(--space-sm);
}

.nav-menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast);
}

.nav-menu .sub-menu a:hover {
  background: rgba(232,97,26,.06);
  color: var(--color-primary);
  padding-left: 20px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #0f2744 50%, #1a1a2e 100%);
  overflow: hidden;
  padding-block: var(--space-3xl);
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 800px 600px at 70% 50%, rgba(232,97,26,.15), transparent),
    radial-gradient(ellipse 400px 400px at 20% 80%, rgba(245,184,0,.08), transparent);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,97,26,.12) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  from { transform: scale(1) translate(0, 0); opacity: 0.6; }
  to { transform: scale(1.2) translate(-5%, 5%); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,97,26,.2);
  border: 1px solid rgba(232,97,26,.4);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-light);
  margin-bottom: var(--space-lg);
  animation: fadeUp 0.6s var(--ease-out) both;
}

.hero-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); display: inline-block; }

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  color: white;
  animation: fadeUp 0.6s var(--ease-out) 0.1s both;
}

.hero-title .highlight {
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--space-xl);
  animation: fadeUp 0.6s var(--ease-out) 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeUp 0.6s var(--ease-out) 0.3s both;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,.1);
  animation: fadeUp 0.6s var(--ease-out) 0.4s both;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero image/product showcase */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.8s var(--ease-out) 0.3s both;
}

.hero-product-cards {
  position: relative;
  width: 380px;
}

.hero-product-card {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  gap: var(--space-md);
  align-items: center;
  animation: floatCard 6s ease-in-out infinite;
}

.hero-product-card:nth-child(2) {
  margin-top: var(--space-md);
  margin-left: var(--space-xl);
  animation-delay: -3s;
  animation-duration: 7s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-product-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

.hero-product-info {
  flex: 1;
  min-width: 0;
}

.hero-product-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.hero-product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.hero-product-badge {
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-amazon { background: var(--color-amazon); color: white; }
.badge-flipkart { background: var(--color-flipkart); color: white; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--dur-med) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.1);
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(232,97,26,.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232,97,26,.4);
  color: white;
}

.btn-secondary {
  background: var(--color-secondary);
  color: white;
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background: var(--color-secondary-light);
  border-color: var(--color-secondary-light);
  color: white;
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  color: white;
}

.btn-outline-primary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-primary:hover {
  background: var(--color-primary);
  color: white;
}

.btn-amazon {
  background: var(--color-amazon);
  color: var(--color-text);
  border-color: var(--color-amazon);
  font-weight: 700;
}

.btn-amazon:hover {
  background: #e68900;
  border-color: #e68900;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,153,0,.4);
}

.btn-flipkart {
  background: var(--color-flipkart);
  color: white;
  border-color: var(--color-flipkart);
  font-weight: 700;
}

.btn-flipkart:hover {
  background: #1a5fc8;
  border-color: #1a5fc8;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(40,116,240,.4);
}

.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn-lg { padding: 16px 32px; font-size: 1.0625rem; }
.btn-xl { padding: 18px 40px; font-size: 1.125rem; }
.btn-full { width: 100%; }
.btn-rounded { border-radius: var(--radius-full); }

/* ============================================================
   SECTION LAYOUTS
   ============================================================ */

.section {
  padding-block: var(--space-3xl);
}

.section-sm { padding-block: var(--space-2xl); }
.section-lg { padding-block: 120px; }

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
}

.section-description {
  max-width: 580px;
  margin-inline: auto;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* Section title with action */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

/* ============================================================
   CATEGORY TILES
   ============================================================ */

.categories-section {
  background: var(--color-surface);
  padding-block: var(--space-2xl);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--dur-med) var(--ease-out);
  text-align: center;
}

.category-card:hover {
  border-color: var(--color-primary);
  background: rgba(232,97,26,.04);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
}

.category-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: transform var(--dur-med) var(--ease-spring);
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(-3deg);
}

.category-name {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.category-count {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.products-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur-med) var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-dark);
}

.product-thumbnail {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  aspect-ratio: 1;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease-out);
  padding: var(--space-sm);
}

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

.product-badges {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.product-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-sale { background: var(--color-danger); color: white; }
.badge-new { background: var(--color-success); color: white; }
.badge-hot { background: var(--color-accent); color: var(--color-text); }
.badge-deal { background: var(--color-primary); color: white; }
.badge-source { 
  background: rgba(0,0,0,.7);
  color: white;
  backdrop-filter: blur(4px);
}

.product-actions {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--dur-med) var(--ease-out);
  z-index: 2;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.action-btn {
  width: 36px;
  height: 36px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: all var(--dur-fast);
  text-decoration: none;
}

.action-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Product info */
.product-info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-xs);
}

.product-category-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-xs);
  text-decoration: none;
}

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

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--color-star);
  font-size: 0.8125rem;
}

.rating-count {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: auto;
}

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

.price-original {
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.price-discount {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-success);
  background: rgba(22,163,74,.08);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.product-buy-btns {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.product-buy-btns .btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.8125rem;
  justify-content: center;
}

/* ============================================================
   DEAL BANNER
   ============================================================ */

.deals-banner {
  background: linear-gradient(135deg, #0f2744 0%, var(--color-secondary) 40%, #2d1b00 100%);
  position: relative;
  overflow: hidden;
  padding-block: var(--space-2xl);
}

.deals-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 80% 50%, rgba(245,184,0,.15) 0%, transparent 60%),
    radial-gradient(circle at 20% 50%, rgba(232,97,26,.15) 0%, transparent 60%);
  pointer-events: none;
}

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

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  min-width: 60px;
  backdrop-filter: blur(4px);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.countdown-label {
  font-size: 0.6875rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.countdown-sep {
  font-size: 1.5rem;
  color: rgba(255,255,255,.4);
  font-weight: 700;
  margin-bottom: 16px;
}

/* ============================================================
   PLATFORM TRUST SECTION
   ============================================================ */

.trust-section {
  background: white;
  padding-block: var(--space-xl);
  border-block: 1px solid var(--color-border);
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.trust-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--color-bg);
}

/* ============================================================
   FEATURED PRODUCTS / SLIDER
   ============================================================ */

.product-slider-wrapper {
  position: relative;
}

.product-slider {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-sm);
}

.product-slider::-webkit-scrollbar { display: none; }

.product-slider .product-card {
  scroll-snap-align: start;
  min-width: 220px;
}

/* Slider navigation */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% + 48px);
  left: -24px;
  pointer-events: none;
}

.slider-btn {
  width: 44px;
  height: 44px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  pointer-events: all;
  transition: all var(--dur-fast);
  font-size: 1.125rem;
}

.slider-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */

.price-comparison {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.price-comparison-header {
  background: var(--color-bg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}

.comparison-row {
  display: flex;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  gap: var(--space-md);
}

.comparison-row:last-child { border-bottom: none; }

.comparison-platform {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 120px;
  flex-shrink: 0;
}

.platform-logo {
  height: 28px;
  object-fit: contain;
}

.comparison-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  flex: 1;
}

.comparison-price .best-price {
  color: var(--color-success);
}

.comparison-action { flex-shrink: 0; }

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */

.newsletter-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding-block: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  outline: none;
  background: rgba(255,255,255,.95);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,.7);
  padding-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .logo-name {
  font-size: 1.75rem;
}

.footer-description {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: var(--space-md);
  color: rgba(255,255,255,.55);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: all var(--dur-fast);
  font-size: 0.875rem;
}

.social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: var(--space-md);
}

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

.footer-links li a {
  color: rgba(255,255,255,.55);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--dur-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links li a::before {
  content: '›';
  color: var(--color-primary);
  font-weight: 700;
}

.footer-links li a:hover { color: var(--color-primary-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-lg);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-bottom-text {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.4);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.4);
  text-decoration: none;
}

.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* Payment methods */
.payment-methods {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-lg);
}

.payment-badge {
  padding: 5px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: rgba(255,255,255,.6);
  font-weight: 600;
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */

/* Single product */
.woocommerce-product-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.woocommerce div.product .woocommerce-product-gallery__image img {
  border-radius: var(--radius-lg);
}

.woocommerce div.product .product_title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

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

.woocommerce div.product .price del {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* Affiliate button overrides */
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: all var(--dur-med) var(--ease-out);
  box-shadow: 0 4px 16px rgba(232,97,26,.3);
}

.woocommerce div.product form.cart .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232,97,26,.4);
  color: white;
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs {
  margin-top: var(--space-2xl);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 2px solid var(--color-border);
  padding: 0;
  background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: none;
  border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-weight: 600;
  color: var(--color-text-muted);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  display: inline-block;
  transition: all var(--dur-fast);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Shop archive */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.woocommerce ul.products li.product {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  transition: all var(--dur-med) var(--ease-out);
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: var(--space-md) var(--space-md) var(--space-xs);
  color: var(--color-text);
}

.woocommerce ul.products li.product .price {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: 0 var(--space-md) var(--space-md);
}

/* Breadcrumb */
.woocommerce-breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding: var(--space-md) 0;
}

.woocommerce-breadcrumb a {
  color: var(--color-text-muted);
}

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

/* Reviews */
.woocommerce #reviews #comments ol.commentlist li .comment-text {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

/* ============================================================
   SEARCH RESULTS & FILTERS
   ============================================================ */

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.filter-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.filter-tag {
  padding: 5px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--dur-fast);
  background: transparent;
}

.filter-tag:hover,
.filter-tag.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(232,97,26,.06);
}

/* Sidebar widgets */
.widget-area .widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.widget-area .widget-title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
}

/* Price range widget */
.price_slider_wrapper {
  padding-top: var(--space-sm);
}

/* ============================================================
   SEO STRUCTURED ELEMENTS
   ============================================================ */

.product-rich-snippet {
  display: none; /* Hidden schema markup container */
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding-block: var(--space-sm);
  flex-wrap: wrap;
}

.breadcrumb-list a {
  color: var(--color-text-muted);
  text-decoration: none;
}

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

.breadcrumb-separator { color: var(--color-text-light); }

/* ============================================================
   ANIMATIONS & SCROLL REVEAL
   ============================================================ */

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

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

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

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

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

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg) 25%, var(--color-surface-2) 50%, var(--color-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-white { color: white; }
.text-accent { color: var(--color-accent); }

.bg-primary { background: var(--color-primary); }
.bg-secondary { background: var(--color-secondary); }
.bg-dark { background: var(--color-bg-dark); }
.bg-surface { background: var(--color-surface); }
.bg-light { background: var(--color-bg); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

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

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

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

@media (max-width: 1200px) {
  .products-grid-5 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 1024px) {
  .header-main .container {
    grid-template-columns: auto 1fr auto;
    gap: var(--space-md);
  }
  .products-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .hero-section .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .container { padding-inline: var(--space-md); }
  
  .header-top { display: none; }
  
  .header-main .container {
    grid-template-columns: auto auto;
    gap: var(--space-md);
  }
  
  .header-search { display: none; }
  
  .menu-toggle { display: flex; }
  
  #site-navigation { display: none; }
  #site-navigation.active { display: block; }
  
  .nav-menu {
    flex-direction: column;
    padding: var(--space-md);
  }
  
  .nav-menu > li > a { padding: var(--space-md) var(--space-sm); }
  
  .products-grid,
  .products-grid-5 { grid-template-columns: repeat(2, 1fr); }
  
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .hero-stats { gap: var(--space-lg); }
  
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  
  .section { padding-block: var(--space-2xl); }

  .trust-badges { gap: var(--space-lg); }

  .category-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  
  .deals-banner .container { 
    text-align: center;
    flex-direction: column;
    align-items: center;
  }
  
  .countdown-timer { justify-content: center; }
}

@media (max-width: 480px) {
  .products-grid,
  .products-grid-5 { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
  
  .footer-grid { grid-template-columns: 1fr; }
  
  .footer-bottom { flex-direction: column; text-align: center; }
  
  .hero-title { font-size: 2rem; }
  
  .product-buy-btns { flex-direction: column; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
  #site-header, #site-footer, .newsletter-section { display: none; }
  body { background: white; }
  .product-card { break-inside: avoid; }
}
