/*
Theme Name: El Watanya Store
Theme URI: https://elwatanyafoods.com/store
Author: Nasr Soft PY Eng Ahmed Nasr
Author URI: https://elwatanyafoods.com
Description: قالب متجر لحوم الوطنية احترافي - تصميم عربي RTL بثيم أخضر تقني
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elwatanya-store
Domain Path: /languages
Requires PHP: 7.4
Requires at least: 5.8
Tags: e-commerce, woocommerce, rtl, responsive, arabic, food, blue
*/

/* ============================================
   DESIGN TOKENS - Professional Security Store
   Style: Industrial Tech / Green Theme
   ============================================ */
:root {
  /* Primary - Deep Green */
  --primary: #0D503C;
  --primary-hover: #0A3D2E;
  --primary-light: rgba(13, 80, 60, 0.08);
  --primary-gradient: linear-gradient(135deg, #0D503C 0%, #10B981 100%);

  /* Secondary - Teal/Green Accent */
  --secondary: #10B981;
  --secondary-hover: #059669;

  /* Accent - Amber for alerts */
  --accent: #F59E0B;
  --accent-hover: #D97706;

  /* Backgrounds */
  --bg: #FFFFFF;
  --bg-alt: #F8FAFB;
  --bg-dark: #0F172A;
  --bg-darker: #020617;

  /* Surfaces */
  --surface: #FFFFFF;
  --surface-hover: #F1F5F9;
  --surface-active: #E2E8F0;

  /* Borders */
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --border-dark: #CBD5E1;

  /* Text */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;

  /* Status */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  /* Typography */
  --font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Font Weights */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Spacing - 8px base */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-bold);
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul, ol {
  list-style: none;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-16) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-dark);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-inverse);
}

.btn-success {
  background: var(--secondary);
  color: var(--text-inverse);
  border-color: var(--secondary);
}

.btn-success:hover {
  background: var(--secondary-hover);
  border-color: var(--secondary-hover);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* ============================================
   HEADER
   ============================================ */
.header-top {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top a {
  color: var(--text-inverse);
  opacity: 0.8;
}

.header-top a:hover {
  opacity: 1;
}

.header-main {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-sm);
}

.header-main .container {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.logo-text span {
  color: var(--primary);
}

.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-bar form {
  display: flex;
  width: 100%;
}

.search-bar input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  padding-left: 48px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast);
  background: var(--bg);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-bar button {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  border: none;
  cursor: pointer;
}

.search-bar button:hover {
  background: var(--primary-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  position: relative;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.header-action:hover {
  color: var(--primary);
}

.header-action svg {
  width: 22px;
  height: 22px;
}

.header-action .badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: var(--weight-bold);
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-main {
  background: var(--primary);
}

.nav-main .container {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-categories {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  font-weight: var(--weight-semibold);
  color: var(--text-inverse);
  cursor: pointer;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  padding: var(--space-3) 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: var(--weight-medium);
  position: relative;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-inverse);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--text-inverse);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-2);
}

.main-navigation {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4);
  z-index: var(--z-dropdown);
}

.main-navigation.active {
  display: block;
}

/* ============================================
   HERO
   ============================================ */
/* ============================================
   HERO
   ============================================ */
.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
}

.hero-slide.active {
  display: block;
}

.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(13, 80, 60, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-text {
  color: var(--text-inverse);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-6);
  color: var(--secondary);
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-inverse);
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.hero-title span {
  color: var(--secondary);
}

.hero-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-8);
  max-width: 500px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
}

.hero-actions .btn-primary {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.hero-actions .btn-primary:hover {
  background: var(--secondary-hover);
  border-color: var(--secondary-hover);
}

.hero-actions .btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
}

.hero-slide-img {
  max-width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
}

/* ── Arrows ─────────────────────────────── */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  backdrop-filter: blur(10px);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-prev { right: 20px; }
.hero-next { left: 20px; }

/* ── Dots ────────────────────────────────── */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 100px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.hero-dot.active {
  width: 32px;
  background: var(--secondary);
  border-color: var(--secondary);
}

/* ============================================
   TRUST
   ============================================ */
.trust-section {
  background: var(--bg);
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.trust-item {
  text-align: center;
  padding: var(--space-4);
}

.trust-item strong {
  display: block;
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--primary);
  margin-bottom: var(--space-1);
  line-height: 1;
}

.trust-item span {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories-section {
  padding: var(--space-16) 0;
  background: var(--bg-alt);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.category-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.category-icon {
  width: 72px;
  height: 72px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  transition: all var(--transition-fast);
}

.category-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.category-card:hover .category-icon {
  background: var(--primary);
}

.category-card:hover .category-icon svg {
  color: white;
}

.category-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.category-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products-section {
  padding: var(--space-16) 0;
  background: var(--bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.product-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.product-image {
  position: relative;
  padding: var(--space-6);
  background: var(--bg-alt);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-height: 180px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  z-index: 2;
}

.badge-sale {
  background: var(--danger);
  color: white;
}

.badge-new {
  background: var(--secondary);
  color: white;
}

.product-wishlist {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
}

.wishlist-btn {
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.wishlist-btn:hover,
.wishlist-btn.active {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.product-info {
  padding: var(--space-4);
}

.product-category {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

.product-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  line-height: 1.5;
}

.product-title a {
  color: var(--text-primary);
}

.product-title a:hover {
  color: var(--primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.stars {
  color: var(--warning);
  font-size: var(--text-sm);
}

.rating-count {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.product-price {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.price-current {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--primary);
}

.price-old {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: var(--space-2);
}

.product-actions .btn {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
}

/* ============================================
   FEATURES
   ============================================ */
.features-section {
  padding: var(--space-16) 0;
  background: var(--bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.feature-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  background: var(--primary-gradient);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-inverse);
}

.cta-title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
}

.cta-description {
  font-size: var(--text-lg);
  opacity: 0.9;
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  background: var(--text-inverse);
  color: var(--primary);
}

.cta-section .btn:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

/* ============================================
   FLASH DEALS
   ============================================ */
.flash-deals-section {
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0a2e1f 50%, var(--bg-dark) 100%);
  position: relative;
  overflow: hidden;
}

.flash-header-content {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.flash-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.flash-countdown {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--secondary);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-1);
  font-weight: var(--weight-medium);
}

.countdown-separator {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--secondary);
  padding-bottom: var(--space-4);
}

/* ============================================
   SUGGESTIONS
   ============================================ */
.suggestions-section {
  padding: var(--space-16) 0;
  background: var(--bg);
}

/* ============================================
   CATEGORY SHOWCASE
   ============================================ */
.category-showcase-section {
  padding: var(--space-16) 0;
  background: var(--bg-alt);
}

.category-showcase-block {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.category-showcase-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.category-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.category-showcase-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: var(--space-16) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .site-logo {
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-6);
  line-height: 1.8;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.footer-contact-item svg {
  color: var(--secondary);
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  transition: background var(--transition-fast);
}

.footer-social a:hover {
  background: var(--secondary);
}

.footer-column h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-inverse);
  margin-bottom: var(--space-6);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-inverse);
}

.footer-bottom {
  padding: var(--space-6) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
.page-header {
  background: var(--bg-alt);
  padding: var(--space-12) 0 var(--space-8);
  border-bottom: 1px solid var(--border);
}

.page-header .page-title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
}

.woocommerce-breadcrumb {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.woocommerce-breadcrumb a {
  color: var(--text-secondary);
}

.woocommerce-breadcrumb a:hover {
  color: var(--primary);
}

.woocommerce-page-wrapper {
  padding: var(--space-8) 0 var(--space-16);
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: var(--space-6) !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.woocommerce ul.products li.product:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.woocommerce ul.products li.product img {
  margin: 0 !important;
  padding: var(--space-4);
  background: var(--bg-alt);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0 var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

.woocommerce ul.products li.product .price {
  padding: 0 var(--space-4);
  color: var(--primary);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}

.woocommerce ul.products li.product .button {
  margin: var(--space-3) var(--space-4) var(--space-4);
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-weight: var(--weight-semibold);
}

.woocommerce ul.products li.product .button:hover {
  background: var(--primary-hover);
}

.woocommerce .woocommerce-result-count {
  color: var(--text-secondary);
}

.woocommerce .woocommerce-ordering select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  color: var(--text-primary);
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
  margin: 0 var(--space-1);
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Single Product */
.single-product .product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.woocommerce div.product div.images {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.woocommerce-product-gallery,
.woocommerce-product-gallery[style] {
  opacity: 1 !important;
}

.woocommerce div.product div.summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.woocommerce .product_title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
}

.woocommerce .price {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--primary);
}

/* Product Tabs */
.woocommerce-tabs .tabs {
  display: flex;
  list-style: none;
  gap: 0;
  border-bottom: 2px solid var(--border);
  padding: 0;
  margin: 0 0 var(--space-6);
}

.woocommerce-tabs .tabs li {
  margin: 0;
  padding: 0;
}

.woocommerce-tabs .tabs li a {
  display: block;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.woocommerce-tabs .tabs li.active a,
.woocommerce-tabs .tabs li a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.woocommerce-Tabs-panel {
  padding: 0;
  margin-bottom: var(--space-6);
}

/* Reviews */
.woocommerce-Reviews-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
}

.woocommerce-noreviews {
  color: var(--text-secondary);
  font-style: italic;
}

.comment-respond .comment-reply-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
}

.comment-form label {
  display: block;
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
  transition: border-color 0.2s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.comment-form .form-submit {
  margin-top: var(--space-3);
}

/* Product stock status */
.woocommerce .stock {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.woocommerce .stock.out-of-stock {
  color: #EF4444;
}

.woocommerce .stock.in-stock {
  color: #10B981;
}

/* Product meta */
.woocommerce .product_meta {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-3);
}

.woocommerce .product_meta span {
  display: block;
  margin-bottom: var(--space-1);
}

/* Single product add-to-cart */
.woocommerce div.product form.cart {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.woocommerce div.product form.cart .quantity {
  display: flex;
  align-items: center;
}

.woocommerce div.product form.cart .quantity input {
  width: 60px;
  height: 42px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  height: 42px;
  padding: 0 var(--space-6);
  font-size: var(--text-sm);
}

/* Related products */
.woocommerce .related.products {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.woocommerce .related.products h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-6);
}

/* Mobile single product */
@media (max-width: 768px) {
  .single-product .product {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .woocommerce div.product div.images,
  .woocommerce div.product div.summary {
    padding: var(--space-4);
  }

  .woocommerce .product_title {
    font-size: var(--text-xl);
  }

  .woocommerce .price {
    font-size: var(--text-xl);
  }

  .woocommerce-tabs .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .woocommerce-tabs .tabs li a {
    white-space: nowrap;
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
  }
}



.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  font-weight: var(--weight-semibold);
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--primary-hover);
}

/* Cart */
.cart-page-content {
  padding: var(--space-8) 0 var(--space-16);
}

/* Empty Cart */
.cart-empty.woocommerce-info {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
}

.cart-empty.woocommerce-info::before {
  content: '';
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
  background: var(--primary-light);
  border-radius: var(--radius-full);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%230D503C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.cart-empty.woocommerce-info .cart-empty-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.cart-empty.woocommerce-info .cart-empty-desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.return-to-shop {
  text-align: center;
  margin-top: var(--space-6);
}

.return-to-shop .wc-backward {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--primary);
  color: white;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.return-to-shop .wc-backward:hover {
  background: var(--primary-hover);
}

.cart-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-6);
}

.woocommerce table.shop_table {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 600px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.woocommerce table.shop_table th {
  background: var(--bg-alt);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

.cart-actions-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.coupon {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.coupon label {
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

.coupon .input-text {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 150px;
}

.cart-buttons {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.cart-collaterals {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.cart_totals {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.cart_totals h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.proceed-to-checkout .checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-lg);
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
}

/* Checkout */
.checkout-page-content {
  padding: var(--space-8) 0 var(--space-16);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-6);
  align-items: start;
}

.checkout-form-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}

.checkout-section-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.woocommerce-checkout .form-row {
  margin-bottom: var(--space-4);
}

.woocommerce-checkout .form-row label {
  display: block;
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100%;
  padding: var(--space-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.order-review-section {
  position: sticky;
  top: var(--space-20);
}

.woocommerce-checkout #payment {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* My Account - Login/Register Forms */
.page-section .woocommerce .woocommerce-form-login,
.page-section .woocommerce .woocommerce-form-register {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.page-section .woocommerce h2 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--primary);
}

.page-section .woocommerce .form-row {
  margin-bottom: var(--space-4);
}

.page-section .woocommerce label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.page-section .woocommerce .input-text,
.page-section .woocommerce input.woocommerce-Input--text {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: inherit;
  transition: border-color var(--transition-fast);
  background: var(--bg);
  color: var(--text-primary);
}

.page-section .woocommerce .input-text:focus,
.page-section .woocommerce input.woocommerce-Input--text:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.page-section .woocommerce .woocommerce-form-login__submit,
.page-section .woocommerce .woocommerce-form-register__submit,
.page-section .woocommerce button.button {
  width: 100%;
  padding: var(--space-3) var(--space-6);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition-fast);
  margin-top: var(--space-2);
}

.page-section .woocommerce .woocommerce-form-login__submit:hover,
.page-section .woocommerce .woocommerce-form-register__submit:hover,
.page-section .woocommerce button.button:hover {
  background: var(--primary-hover);
}

.page-section .woocommerce .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.page-section .woocommerce .woocommerce-form-login__rememberme input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.page-section .woocommerce .lost_password {
  text-align: center;
  margin-top: var(--space-4);
}

.page-section .woocommerce .lost_password a {
  color: var(--primary);
  font-size: var(--text-sm);
  text-decoration: none;
  font-weight: var(--weight-medium);
}

.page-section .woocommerce .lost_password a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.page-section .woocommerce .woocommerce-form-login p {
  margin-bottom: var(--space-4);
}

.page-section .woocommerce .woocommerce-form-login p:last-child {
  margin-bottom: 0;
}

.page-section .woocommerce .woocommerce-form-login .inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* My Account - Dashboard (logged in) */
.my-account-content {
  padding: var(--space-8) 0 var(--space-16);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-6);
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.woocommerce-MyAccount-navigation li {
  border-bottom: 1px solid var(--border);
}

.woocommerce-MyAccount-navigation li:last-child {
  border-bottom: none;
}

.woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.woocommerce-MyAccount-navigation li a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.woocommerce-MyAccount-navigation li.is-active a {
  background: var(--primary-light);
  color: var(--primary);
  border-right: 3px solid var(--primary);
}

.woocommerce-MyAccount-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.woocommerce-MyAccount-content h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.woocommerce-MyAccount-content table {
  width: 100%;
  background: transparent;
}

.woocommerce-MyAccount-content table th,
.woocommerce-MyAccount-content table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.woocommerce-MyAccount-content table th {
  background: transparent;
  font-weight: var(--weight-semibold);
}

/* Wishlist Page */
.wishlist-page-content {
  padding: var(--space-8) 0 var(--space-16);
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.wishlist-empty {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}

.wishlist-empty h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.wishlist-empty p {
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

/* 404 Page */
.error-404-section {
  padding: var(--space-16) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.error-code {
  font-size: 6rem;
  font-weight: var(--weight-extrabold);
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.error-title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
}

.error-description {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

.error-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.products-grid .product-card:nth-child(1),
.woocommerce ul.products li.product:nth-child(1) { transition-delay: 0.05s; }
.products-grid .product-card:nth-child(2),
.woocommerce ul.products li.product:nth-child(2) { transition-delay: 0.1s; }
.products-grid .product-card:nth-child(3),
.woocommerce ul.products li.product:nth-child(3) { transition-delay: 0.15s; }
.products-grid .product-card:nth-child(4),
.woocommerce ul.products li.product:nth-child(4) { transition-delay: 0.2s; }
.products-grid .product-card:nth-child(5),
.woocommerce ul.products li.product:nth-child(5) { transition-delay: 0.25s; }
.products-grid .product-card:nth-child(6),
.woocommerce ul.products li.product:nth-child(6) { transition-delay: 0.3s; }
.products-grid .product-card:nth-child(7),
.woocommerce ul.products li.product:nth-child(7) { transition-delay: 0.35s; }
.products-grid .product-card:nth-child(8),
.woocommerce ul.products li.product:nth-child(8) { transition-delay: 0.4s; }

.feature-card:nth-child(1) { transition-delay: 0.05s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.15s; }
.feature-card:nth-child(4) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   NOTIFICATION
   ============================================ */
.elwatanya-notification {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-right: 4px solid var(--success);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

.elwatanya-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.elwatanya-notification.error {
  border-right-color: var(--danger);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================
   HOSTINGER BADGE HIDE
   ============================================ */
#hostinger-reach-badge,
.hostinger-reach,
.hostinger-reach-widget,
.bottom-bar,
.store-elwatanya-bottom-bar {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

  .hero-arrow { display: none; }

  .categories-grid,
  .products-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-top {
    display: none;
  }

  .header-main .container {
    justify-content: center;
    padding: var(--space-3) var(--space-4);
  }

  .site-logo {
    font-size: var(--text-lg);
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .logo-icon svg {
    width: 20px;
    height: 20px;
  }

  .search-bar {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .nav-main {
    display: none;
  }

  .search-bar input {
    padding: var(--space-2) var(--space-4);
    padding-left: 44px;
    font-size: var(--text-sm);
  }

  .search-bar button {
    width: 32px;
    height: 32px;
  }

  .header-actions {
    gap: var(--space-3);
  }

  .header-action span:not(.badge) {
    display: none;
  }

  .header-action svg {
    width: 22px;
    height: 22px;
  }

  .nav-main {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  body {
    padding-bottom: 70px;
  }

  .hero {
    padding: var(--space-8) 0;
  }

  .hero-title {
    font-size: var(--text-2xl);
    line-height: 1.3;
  }

  .hero-description {
    font-size: var(--text-sm);
    line-height: 1.7;
  }

  .hero-actions {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-3) var(--space-4);
  }

  .hero-dots { bottom: 16px; }
  .hero-dot { width: 8px; height: 8px; }
  .hero-dot.active { width: 24px; }

  .categories-grid,
  .products-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .product-card {
    border-radius: var(--radius-md);
  }

  .product-info {
    padding: var(--space-3);
  }

  .product-title {
    font-size: var(--text-sm);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-price {
    font-size: var(--text-base);
  }

  .product-actions {
    flex-direction: column;
    gap: var(--space-2);
  }

  .product-actions .btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-2);
    font-size: var(--text-xs);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .trust-item strong {
    font-size: var(--text-xl);
  }

  .trust-item span {
    font-size: var(--text-xs);
  }

  .features-grid {
    gap: var(--space-3);
  }

  .feature-card {
    padding: var(--space-4);
  }

  .feature-card h3 {
    font-size: var(--text-sm);
  }

  .feature-card p {
    font-size: var(--text-xs);
  }

  .section-title {
    font-size: var(--text-lg);
  }

  .section-subtitle {
    font-size: var(--text-sm);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
    padding: var(--space-4) 0;
  }

  .footer-bottom p {
    font-size: var(--text-xs);
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-3);
  }

  .woocommerce ul.products li.product {
    margin: 0;
  }

  .cart-collaterals {
    grid-template-columns: 1fr;
  }

  .cart-actions-row {
    flex-direction: column;
    gap: var(--space-3);
  }

  .coupon {
    width: 100%;
  }

  .coupon .input-text {
    flex: 1;
    min-width: 0;
  }

  .cart-buttons {
    width: 100%;
    justify-content: stretch;
  }

  .cart-buttons .btn {
    flex: 1;
    text-align: center;
  }

  .woocommerce table.shop_table {
    min-width: 0;
  }

  .woocommerce table.shop_table thead {
    display: none;
  }

  .woocommerce table.shop_table tbody tr {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-2);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border);
    position: relative;
  }

  .woocommerce table.shop_table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    padding: var(--space-1) 0;
    font-size: var(--text-sm);
  }

  .woocommerce table.shop_table td.product-remove {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
  }

  .woocommerce table.shop_table td.product-thumbnail {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 80px;
  }

  .woocommerce table.shop_table td.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
  }

  .woocommerce table.shop_table td.product-name {
    grid-column: 2;
    font-weight: var(--weight-semibold);
  }

  .woocommerce table.shop_table td.product-name::before {
    content: attr(data-title) ": ";
    font-weight: var(--weight-normal);
    color: var(--text-muted);
  }

  .woocommerce table.shop_table td.product-price::before,
  .woocommerce table.shop_table td.product-quantity::before,
  .woocommerce table.shop_table td.product-subtotal::before {
    content: attr(data-title) ": ";
    font-weight: var(--weight-normal);
    color: var(--text-muted);
  }

  .woocommerce table.shop_table td.product-subtotal {
    font-weight: var(--weight-bold);
    color: var(--primary);
  }

  .woocommerce .quantity {
    display: inline-flex;
    align-items: center;
  }

  .proceed-to-checkout .checkout-button {
    width: 100%;
  }

  /* Cart Empty */
  .cart-empty.woocommerce-info {
    padding: var(--space-8) var(--space-4);
  }

  .cart-empty.woocommerce-info::before {
    width: 64px;
    height: 64px;
  }

  .return-to-shop .wc-backward {
    width: 100%;
    justify-content: center;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-form-section {
    padding: var(--space-4);
  }

  .checkout-section-title {
    font-size: var(--text-base);
  }

  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    width: 100%;
    float: none;
  }

  .checkout-form-col .create-account {
    margin: var(--space-4) 0;
  }

  .checkout-form-col #account_password {
    display: block !important;
    margin-top: var(--space-3);
  }

  .my-account-content {
    grid-template-columns: 1fr;
  }

  .page-section .woocommerce .woocommerce-form-login,
  .page-section .woocommerce .woocommerce-form-register {
    padding: var(--space-6);
    margin: 0 var(--space-4);
  }

  .page-section .woocommerce h2 {
    font-size: var(--text-xl);
  }

  .single-product .product {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flash-deals-section {
    padding: var(--space-8) 0;
  }

  .flash-header-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }

  .flash-countdown {
    justify-content: center;
  }

  .countdown-number {
    width: 44px;
    height: 44px;
    font-size: var(--text-base);
  }

  .flash-deals-section .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .cta-section {
    padding: var(--space-8) 0;
    margin-bottom: 0;
  }

  .cta-content h2 {
    font-size: var(--text-xl);
  }

  .suggestions-section .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .site-footer {
    padding-bottom: var(--space-8);
  }
}

@media (max-width: 480px) {
  .header-main .container {
    padding: var(--space-2) var(--space-3);
  }

  .site-logo {
    font-size: var(--text-base);
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-icon svg {
    width: 18px;
    height: 18px;
  }

  .hero {
    padding: var(--space-6) 0;
  }

  .hero-title {
    font-size: var(--text-xl);
  }

  .hero-description {
    font-size: var(--text-xs);
  }

  .hero-actions .btn {
    padding: var(--space-3);
    font-size: var(--text-sm);
  }

  .categories-grid,
  .products-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .product-info {
    padding: var(--space-2);
  }

  .product-title {
    font-size: var(--text-xs);
  }

  .product-price {
    font-size: var(--text-sm);
  }

  .product-rating .stars svg {
    width: 12px;
    height: 12px;
  }

  .product-actions .btn {
    padding: var(--space-2);
    font-size: 10px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .trust-item {
    padding: var(--space-3);
  }

  .trust-item strong {
    font-size: var(--text-lg);
  }

  .feature-card {
    padding: var(--space-3);
  }

  .feature-icon {
    width: 40px;
    height: 40px;
  }

  .feature-icon svg {
    width: 20px;
    height: 20px;
  }

  .section-title {
    font-size: var(--text-base);
  }

  .section-subtitle {
    font-size: var(--text-xs);
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-2);
  }

  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .checkout-form-section {
    padding: var(--space-3);
  }

  .woocommerce-checkout .form-row input,
  .woocommerce-checkout .form-row select,
  .woocommerce-checkout .form-row textarea {
    padding: var(--space-2);
    font-size: var(--text-sm);
  }

  .woocommerce-checkout .form-row label {
    font-size: var(--text-xs);
  }

  .flash-deals-section .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .suggestions-section .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .flash-countdown {
    gap: var(--space-2);
  }

  .countdown-number {
    width: 40px;
    height: 40px;
    font-size: var(--text-sm);
  }

  .countdown-label {
    font-size: 9px;
  }

  .cta-content h2 {
    font-size: var(--text-lg);
  }

  .cta-content p {
    font-size: var(--text-xs);
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 80px;
  }

  .page-section .woocommerce .woocommerce-form-login,
  .page-section .woocommerce .woocommerce-form-register {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
  }

  .page-section .woocommerce h2 {
    font-size: var(--text-lg);
  }

  .cart-page-content {
    padding: var(--space-4) 0 var(--space-8);
  }

  .woocommerce table.shop_table td.product-thumbnail {
    width: 64px;
  }

  .woocommerce table.shop_table td.product-thumbnail img {
    width: 64px;
    height: 64px;
  }

  .coupon {
    flex-direction: column;
    align-items: stretch;
  }

  .coupon label {
    text-align: center;
  }
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */
body {
  padding-bottom: 70px;
}

.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: 9999;
  padding: var(--space-2) 0;
  padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 10px;
  font-weight: var(--weight-medium);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast);
  position: relative;
  min-width: 50px;
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item.active svg {
  stroke: var(--primary);
  fill: var(--primary-light);
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  transition: all var(--transition-fast);
}

.bottom-nav-search {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.bottom-nav-cart {
  position: relative;
}

.bottom-nav-badge {
  position: absolute;
  top: -2px;
  right: 50%;
  transform: translateX(calc(50% + 10px));
  background: var(--accent);
  color: white;
  font-size: 9px;
  font-weight: var(--weight-bold);
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 4px;
}

/* ============================================
   PRODUCT SLIDER
   ============================================ */
.product-slider-section {
  padding: var(--space-8) 0;
  background: var(--bg);
}

.product-slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-4);
  transition: transform 0.4s ease;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--space-2);
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-slide {
  flex: 0 0 260px;
  min-width: 260px;
  width: 260px;
}

.slider-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.slider-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.slider-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-alt);
}

.slider-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.slider-card:hover .slider-card-image img {
  transform: scale(1.05);
}

.slider-card-content {
  padding: var(--space-4);
}

.slider-card-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.slider-card-price {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--primary);
}

.slider-card-price .woocommerce-Price-currencySymbol {
  font-size: var(--text-sm);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  z-index: 10;
}

.slider-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.slider-prev {
  left: 0;
}

.slider-next {
  right: 0;
}

@media (max-width: 768px) {
  .slider-slide {
    flex: 0 0 220px;
    min-width: 220px;
  }

  .slider-card-image {
    height: 160px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .slider-slide {
    flex: 0 0 180px;
    min-width: 180px;
  }

  .slider-card-image {
    height: 140px;
  }

  .slider-card-content {
    padding: var(--space-3);
  }

  .slider-card-title {
    font-size: var(--text-xs);
  }
}

/* ============================================
   QUICK MENU (Mobile Bottom Sheet)
   ============================================ */
.quick-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.quick-menu-overlay.active {
  display: flex;
}

.quick-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.quick-menu-sheet {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: var(--bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-4) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  animation: slideUp 0.3s ease;
  max-height: 70vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.quick-menu-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto var(--space-4);
}

.quick-menu-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  text-align: center;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.quick-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.quick-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.quick-menu-item:active {
  background: var(--primary-light);
  transform: scale(0.95);
}

.quick-menu-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
}

.quick-menu-icon svg {
  width: 24px;
  height: 24px;
}

.bottom-nav-menu {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none; }
.block { display: block; }
