/* ============================================
   Swappo — Vinted-inspired Design System
   Clean, flat, minimal
   ============================================ */

/* --- DESIGN TOKENS --- */
:root {
  /* Colors — Primary (teal) */
  --primary: #09B1BA;
  --primary-dark: #078A91;
  --primary-darker: #056A70;
  --primary-light: #E6F7F8;
  --primary-lighter: #F0FBFC;
  --primary-glow: rgba(9, 177, 186, 0.15);

  /* Colors — Secondary & Accent */
  --secondary: #FF4B55;
  --accent: #FF8C00;

  /* Colors — Neutrals */
  --bg: #FFFFFF;
  --bg-light: #F7F7F7;
  --bg-card: #FFFFFF;
  --text: #171717;
  --text-secondary: #555555;
  --text-muted: #999999;
  --border: #EBEBEB;
  --border-hover: #CCCCCC;

  /* Status Colors */
  --success: #17C653;
  --warning: #FFB800;
  --danger: #FF4B55;

  /* Shadows — minimal */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --shadow-xl: 0 12px 32px rgba(0,0,0,0.12);

  /* Border Radius — consistent 8px */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 100px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* Animation Durations */
  --dur-fast: 150ms;
  --dur-normal: 200ms;
  --dur-slow: 300ms;
  --dur-slower: 500ms;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Transitions */
  --transition-fast: all var(--dur-fast) ease;
  --transition: all var(--dur-normal) ease;
  --transition-slow: all var(--dur-slow) ease;
  --transition-spring: all var(--dur-normal) ease;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: pageLoad 0.4s ease;
}

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: var(--font); background: none; }
input, select, textarea { font-family: var(--font); }

/* Custom Selection */
::selection {
  background: rgba(9, 177, 186, 0.15);
  color: var(--text);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* Focus Ring */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Glass Utilities (kept for compatibility, simplified) */
.glass {
  background: rgba(255, 255, 255, 0.95);
}
.glass-strong {
  background: rgba(255, 255, 255, 0.98);
}

/* --- LAYOUT --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* --- SCROLL REVEAL INITIAL STATES --- */
[data-animate] {
  opacity: 0;
  transition: opacity var(--dur-slower) var(--ease-out),
              transform var(--dur-slower) var(--ease-out);
}
[data-animate="fade-up"] { transform: translateY(20px); }
[data-animate="fade-down"] { transform: translateY(-20px); }
[data-animate="fade-left"] { transform: translateX(20px); }
[data-animate="fade-right"] { transform: translateX(-20px); }
[data-animate="scale-in"] { transform: scale(0.95); }
[data-animate="zoom-in"] { transform: scale(0.9); }
[data-animate].is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* --- SKELETON LOADING --- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite ease-in-out;
  border-radius: var(--radius);
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card { border-radius: var(--radius); overflow: hidden; }
.skeleton-card .skeleton-img { aspect-ratio: 2/3; width: 100%; }
.skeleton-card .skeleton-line { height: 12px; margin: 8px 4px 4px; width: 80%; }
.skeleton-card .skeleton-line-short { height: 10px; margin: 4px; width: 50%; }

/* --- TOAST NOTIFICATIONS --- */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform var(--dur-slow) ease;
  overflow: hidden;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}
.toast--visible { transform: translateX(0); }
.toast--success { border-left: 4px solid var(--success); }
.toast--success i { color: var(--success); }
.toast--error { border-left: 4px solid var(--danger); }
.toast--error i { color: var(--danger); }
.toast--info { border-left: 4px solid var(--primary); }
.toast--info i { color: var(--primary); }
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  animation: toastTimer 4s linear forwards;
}
@keyframes toastTimer {
  from { width: 100%; }
  to { width: 0; }
}

/* ========================
   BUTTONS — Flat
   ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              color var(--dur-fast) ease;
  border: 1px solid transparent;
  line-height: 1.4;
  position: relative;
}

.btn:active { transform: scale(0.97); }

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

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

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-light); }

.btn-danger { background: var(--secondary); color: white; }
.btn-danger:hover { background: #e6434c; }

.btn-sm { padding: 6px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Loading state */
.btn.is-loading { pointer-events: none; opacity: 0.7; }
.btn.is-loading::before {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  margin-right: 8px;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ========================
   NAVBAR — Solid white
   ======================== */
.navbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--dur-slow) ease;
}
.navbar--scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.navbar-logo:hover {
  color: var(--primary-dark);
}

/* Search bar — centered, large */
.navbar-search {
  flex: 1;
  max-width: 620px;
  position: relative;
}
.navbar-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: #F2F2F2;
  transition: border-color var(--dur-fast) ease,
              background var(--dur-fast) ease;
  color: var(--text);
}
.navbar-search input::placeholder {
  color: var(--text-muted);
}
.navbar-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}
.navbar-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--dur-fast) ease;
}
.navbar-search input:focus ~ i,
.navbar-search:focus-within i { color: var(--primary); }

/* Nav links */
.navbar-nav { display: flex; align-items: center; gap: 4px; list-style: none; }
.navbar-nav a {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  font-size: 0.85rem; color: var(--text-secondary); border-radius: var(--radius);
  transition: var(--transition); white-space: nowrap;
}
.navbar-nav a:hover { color: var(--primary); background: var(--bg-light); }
.navbar-nav a.active { color: var(--primary); font-weight: 600; }

/* Credits badge */
.navbar-credits {
  display: flex; align-items: center; gap: 5px;
  background: var(--primary-light); padding: 6px 14px;
  border-radius: var(--radius-full); font-weight: 600;
  color: var(--primary); font-size: 0.82rem; white-space: nowrap;
}
.navbar-credits:hover {
  background: var(--primary);
  color: white;
}

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

/* Navbar icon links */
.navbar-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--text-secondary); font-size: 1.1rem;
  transition: var(--transition); position: relative;
}
.navbar-icon:hover { color: var(--primary); background: var(--bg-light); }
.navbar-icon .badge-count {
  position: absolute; top: 0; right: 0;
  background: var(--secondary); color: white;
  font-size: 0.6rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Categories bar — clean underline tabs */
.categories-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.categories-bar::-webkit-scrollbar { display: none; }
.categories-bar-inner { display: flex; align-items: center; gap: 0; height: 44px; }

.cat-link {
  padding: 0 16px; font-size: 0.85rem; color: var(--text-secondary);
  white-space: nowrap; height: 100%; display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.cat-link:hover { color: var(--text); border-bottom-color: var(--border-hover); }
.cat-link.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.navbar-toggle { display: none; font-size: 1.3rem; color: var(--text); padding: 8px; }

/* ========================
   HERO — Simple overlay card
   ======================== */
.hero {
  position: relative;
  min-height: 480px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Floating shapes — hidden (kept for HTML compatibility) */
.hero-shape {
  display: none;
}
.hero-shape--1,
.hero-shape--2,
.hero-shape--3 {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  background: white;
  padding: 48px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-left: 80px;
  animation: heroSlideIn 0.6s ease both;
}
@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.hero-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; }

/* ========================
   SECTION STYLES
   ======================== */
.section { padding: 56px 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.section-link {
  font-size: 0.85rem; color: var(--primary); font-weight: 500;
  transition: var(--transition);
}
.section-link:hover { text-decoration: underline; }

/* ========================
   HOW IT WORKS — Clean
   ======================== */
.how-it-works { padding: 56px 0; background: var(--bg-light); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius);
  background: white;
}

.step-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
}

.step-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.step-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ========================
   PRODUCT CARDS — Minimal Vinted style
   ======================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: white;
  transition: box-shadow var(--dur-normal) ease,
              transform var(--dur-normal) ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-img {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg-light);
  position: relative;
  border-radius: var(--radius) var(--radius) 0 0;
}
.product-img img,
.product-img .placeholder {
  width: 100%; height: 100%; object-fit: cover;
}

.product-img .placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; background: var(--bg-light);
}

/* Favorite button — top-right */
.product-fav {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--text-muted);
  z-index: 2;
  transition: color var(--dur-fast) ease,
              background var(--dur-fast) ease;
}
.product-fav:hover {
  color: var(--secondary);
  background: white;
}
.product-fav.is-liked {
  color: var(--secondary);
  animation: heartPulse 0.4s ease;
}
@keyframes heartPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.product-fav .count { display: none; }

/* Badges */
.product-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 4px 10px; border-radius: var(--radius-xs);
  font-size: 0.7rem; font-weight: 600; z-index: 2;
  letter-spacing: 0.02em;
}
.badge-giveaway {
  background: var(--secondary); color: white;
}
.badge-boost {
  background: var(--accent); color: white;
}
.badge-new {
  background: var(--primary); color: white;
}

.product-info { padding: 10px 8px 8px; }
.product-brand { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.product-details { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.product-points {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.82rem; font-weight: 600; color: var(--primary);
}
.product-points i { font-size: 0.75rem; }
.product-price-original { font-size: 0.78rem; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.product-location {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.75rem; color: var(--text-muted); margin-top: 2px;
}
.product-location i { font-size: 0.65rem; }

/* ========================
   LOCATION BAR
   ======================== */
.location-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 0; font-size: 0.85rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.location-bar i { color: var(--primary); }
.location-bar .location-name { font-weight: 600; color: var(--text); }
.location-bar .location-change { color: var(--primary); font-weight: 500; cursor: pointer; margin-left: 4px; }
.location-bar .location-change:hover { text-decoration: underline; }
.location-dot { color: var(--text-muted); font-size: 1rem; }

.distance-filter { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.radius-btn {
  padding: 5px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 500;
  color: var(--text-secondary); background: white;
  transition: var(--transition); white-space: nowrap;
}
.radius-btn:hover { border-color: var(--primary); color: var(--primary); }
.radius-btn.active {
  background: var(--primary); border-color: var(--primary); color: white;
}

/* ========================
   GIVEAWAY BANNER — Flat
   ======================== */
.giveaway-banner {
  background: #FFF5F0;
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  position: relative;
  overflow: hidden;
}
.giveaway-banner::before {
  display: none;
}
.giveaway-banner-text h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.giveaway-banner-text p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; max-width: 460px; }
.giveaway-stats { display: flex; gap: 32px; }
.giveaway-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--secondary); }
.giveaway-stat-label { font-size: 0.78rem; color: var(--text-muted); }

/* ========================
   CATEGORIES GRID
   ======================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.category-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: white;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color var(--dur-fast) ease;
}
.category-card:hover {
  border-color: var(--primary);
}
.category-icon {
  font-size: 1.5rem;
}
.category-card h3 { font-size: 0.85rem; font-weight: 600; margin-bottom: 1px; }
.category-card span { font-size: 0.75rem; color: var(--text-muted); }

/* ========================
   CTA — Flat primary
   ======================== */
.cta {
  padding: 64px 0;
  background: var(--primary);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  display: none;
}
.cta h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.cta p { opacity: 0.9; margin-bottom: 24px; font-size: 0.95rem; }
.cta .btn-primary { background: white; color: var(--primary); }
.cta .btn-primary:hover { background: #F5F5F5; }

/* ========================
   VIDEO PROMO BANNER
   ======================== */
.video-banner {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  margin: 0;
}

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

.video-banner-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.video-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 56px 20px;
  color: white;
}

.video-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.2); }
  50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}

.video-banner-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.video-banner-content p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.video-banner-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  transition: all 0.2s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

.video-banner-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

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

.vb-stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vb-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.75;
  margin-top: 2px;
}

.vb-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
  .video-banner {
    min-height: 380px;
  }
  .video-banner-content h2 {
    font-size: 1.5rem;
  }
  .video-banner-content p {
    font-size: 0.9rem;
  }
  .video-banner-stats {
    gap: 20px;
  }
  .vb-stat-number {
    font-size: 1.3rem;
  }
  .video-banner-actions .btn-lg {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .video-banner-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  .vb-stat-divider {
    display: none;
  }
}

/* ========================
   FOOTER
   ======================== */
.footer { border-top: 1px solid var(--border); padding: 40px 0 24px; background: white; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; line-height: 1.6; }
.footer-col h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.82rem; transition: color var(--dur-fast) ease; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  color: var(--text-muted); font-size: 1rem;
  transition: color var(--dur-fast) ease;
}
.footer-social a:hover {
  color: var(--primary);
}

/* ========================
   FORM ELEMENTS
   ======================== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 500; font-size: 0.85rem; margin-bottom: 6px; color: var(--text); }

.form-input, .form-select {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; background: white; color: var(--text);
  transition: border-color var(--dur-fast) ease;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-input.is-invalid {
  border-color: var(--danger);
  animation: inputShake 0.4s ease;
}
@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ========================
   FILTER CHIPS
   ======================== */
.filters-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 16px 0; }
.filter-chip {
  padding: 7px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 500;
  background: white; cursor: pointer; color: var(--text-secondary);
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

/* ========================
   PAGINATION
   ======================== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.page-btn, .page-link {
  width: 36px; height: 36px; border-radius: var(--radius);
  border: 1px solid var(--border); background: white;
  font-weight: 500; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
  text-decoration: none; color: var(--text);
}
.page-btn:hover, .page-link:hover {
  border-color: var(--primary); color: var(--primary);
}
.page-btn.active, .page-link.active {
  background: var(--primary); border-color: var(--primary); color: white;
}
.page-link.arrow { width: auto; padding: 0 14px; font-size: 0.82rem; }

/* ========================
   FREE BADGE GLOW (Giveaway)
   ======================== */
.badge-giveaway-glow {
  animation: freeGlow 2s ease-in-out infinite;
}
@keyframes freeGlow {
  0%, 100% { box-shadow: 0 2px 8px rgba(255,75,85,0.2); }
  50% { box-shadow: 0 2px 20px rgba(255,75,85,0.5); }
}

/* ========================
   CONFETTI (for giveaway claim)
   ======================== */
.confetti-particle {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 10000;
  animation: confettiFall var(--dur, 1s) var(--ease-out) forwards;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx, 50px), var(--ty, 200px)) rotate(var(--tr, 720deg)) scale(0.3); }
}

/* ========================
   MOBILE MENU — Slide from right
   ======================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: white;
  z-index: 200;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform var(--dur-slow) ease;
  padding: 24px;
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) ease;
}
.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 24px;
  margin-left: auto;
}
.mobile-menu-close:hover {
  background: var(--bg-light);
}
.mobile-menu-nav {
  list-style: none;
}
.mobile-menu-nav li {
  margin-bottom: 4px;
}
.mobile-menu-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text);
  border-radius: var(--radius);
  transition: background var(--dur-fast) ease;
}
.mobile-menu-nav a:hover {
  background: var(--bg-light);
}
.mobile-menu-nav a.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-content { margin-left: 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-search { display: none; }
  .navbar-search { display: none; }
  .navbar-actions > *:not(.lang-dropdown) { display: none !important; }
  .navbar-inner { gap: 8px; }
  .navbar-toggle { display: block; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; padding: 40px 0; }
  .hero-content { margin-left: 0; margin: 0 24px; max-width: 100%; padding: 32px; }
  .hero-content h1 { font-size: 1.6rem; }
  .giveaway-banner { flex-direction: column; text-align: center; padding: 28px; }
  .giveaway-stats { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .categories-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* ========================
   COOKIE CONSENT BANNER
   ======================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f8f8f8;
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  z-index: 10001;
  font-size: 0.85rem;
  display: none;
}
.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.cookie-banner-content p {
  margin: 0;
  flex: 1;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.cookie-banner-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.cookie-banner-content a:hover { text-decoration: underline; }
.cookie-banner-buttons {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner-buttons { width: 100%; }
  .cookie-banner-buttons button { flex: 1; }
}

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