/* ==========================================================================
   TODO ULTRA — ELEGANT WHITE LUXURY E-COMMERCE STYLESHEET
   Premium Elegance • Pristine White Design • Full Responsive for All Devices
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* --- DESIGN SYSTEM & CSS VARIABLES --- */

/* Elegant White Theme (Default) */
:root {
  --bg-main: #fafbfe;
  --bg-surface: #ffffff;
  --bg-surface-raised: #f3f5f9;
  --bg-surface-glass: rgba(255, 255, 255, 0.92);
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fd;

  --border-subtle: rgba(15, 23, 42, 0.07);
  --border-glow: rgba(79, 70, 229, 0.3);
  --border-gold: rgba(202, 138, 4, 0.3);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --accent-cyan: #4f46e5;
  --accent-blue: #6366f1;
  --accent-purple: #7c3aed;
  --accent-neon-purple: #a78bfa;
  --accent-gold: #ca8a04;
  --accent-gold-gradient: linear-gradient(135deg, #eab308 0%, #f59e0b 100%);
  --accent-cyber-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --accent-luxe-gradient: linear-gradient(135deg, #ca8a04 0%, #dc2626 100%);
  --accent-purple-gradient: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);

  --badge-prime-bg: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.03);
  --shadow-neon: 0 0 20px rgba(79, 70, 229, 0.12);
  --shadow-gold: 0 0 20px rgba(202, 138, 4, 0.15);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Luxury Theme */
[data-theme="dark"] {
  --bg-main: #0a0d14;
  --bg-surface: #121824;
  --bg-surface-raised: #1a2234;
  --bg-surface-glass: rgba(18, 24, 36, 0.85);
  --bg-card: #151d2c;
  --bg-card-hover: #1c273c;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.4);
  --border-gold: rgba(245, 166, 35, 0.4);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-cyan: #818cf8;
  --accent-blue: #6366f1;
  --accent-gold: #f5a623;
  --accent-gold-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  --accent-cyber-gradient: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
  --accent-purple-gradient: linear-gradient(135deg, #7c3aed 0%, #c084fc 100%);
  --badge-prime-bg: linear-gradient(90deg, #6366f1 0%, #a78bfa 100%);

  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-neon: 0 0 25px rgba(99, 102, 241, 0.25);
  --shadow-gold: 0 0 25px rgba(245, 166, 35, 0.25);
}



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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

button { cursor: pointer; }

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

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

/* --- TOP ANNOUNCEMENT BAR --- */
.top-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  padding: 7px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-bar-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.top-bar-notice i {
  color: var(--accent-cyan);
  animation: pulseIcon 2.5s infinite ease-in-out;
}

.top-bar-notice strong {
  color: var(--text-main);
  font-weight: 700;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-bar-links a, .top-bar-links button {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  transition: color var(--transition-fast);
}

.top-bar-links a:hover, .top-bar-links button:hover {
  color: var(--accent-cyan);
}

/* Top Bar Controls */
.top-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.control-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.control-pill select {
  color: var(--text-main);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
}

.control-pill select option {
  background: var(--bg-surface);
  color: var(--text-main);
}

/* Theme Toggle Switch */
.theme-toggle-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px;
  user-select: none;
}

.theme-toggle-track {
  position: relative;
  width: 58px;
  height: 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: 2px solid rgba(245, 158, 11, 0.3);
  transition: all var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .theme-toggle-track {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: #f59e0b;
  transition: all var(--transition-smooth);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .theme-toggle-thumb {
  left: calc(100% - 22px);
  color: #818cf8;
}

.theme-toggle-thumb .fa-sun {
  display: inline;
}

.theme-toggle-thumb .fa-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle-thumb .fa-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle-thumb .fa-moon {
  display: inline;
}

.theme-toggle-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.theme-toggle-switch:hover .theme-toggle-label {
  color: var(--text-main);
}

.theme-toggle-switch:hover .theme-toggle-track {
  box-shadow: 0 2px 16px rgba(245, 158, 11, 0.35);
}

[data-theme="dark"] .theme-toggle-switch:hover .theme-toggle-track {
  box-shadow: 0 2px 16px rgba(99, 102, 241, 0.45);
}

/* --- MAIN NAVIGATION HEADER --- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  transition: all var(--transition-smooth);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 8px 0;
}

.header-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-cyber-gradient);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #ffffff;
  box-shadow: var(--shadow-neon);
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(45deg);
  animation: shineLogo 4s infinite;
}

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

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--accent-cyber-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.logo-tagline {
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

/* Delivery Address Selector */
.delivery-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.delivery-picker:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.delivery-picker i {
  color: var(--accent-cyan);
  font-size: 1rem;
}

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

.delivery-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 500;
}

.delivery-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

/* Ultra Smart Search Bar */
.search-container {
  flex: 1;
  position: relative;
  min-width: 200px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface-raised);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 16px;
  transition: all var(--transition-smooth);
}

.search-box:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-neon);
  background: var(--bg-surface);
}

.category-select {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-right: 1px solid var(--border-subtle);
  padding-right: 12px;
  margin-right: 12px;
  background: transparent;
  cursor: pointer;
  max-width: 140px;
  white-space: nowrap;
}

.category-select option {
  background: var(--bg-surface);
  color: var(--text-main);
}

.search-input {
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-main);
  background: transparent;
  padding: 6px 0;
  min-width: 0;
}

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

.voice-search-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  margin-right: 4px;
  flex-shrink: 0;
}

.voice-search-btn:hover {
  color: var(--accent-cyan);
  background: rgba(79, 70, 229, 0.08);
}

.voice-search-btn.listening {
  color: var(--danger);
  animation: pulseIcon 1s infinite;
}

.search-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--accent-cyber-gradient);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition-bounce);
}

.search-btn:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-neon);
}

/* Instant Search Results Dropdown */
.search-results-popup {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  display: none;
  z-index: 120;
  max-height: 420px;
  overflow-y: auto;
  animation: fadeInDown 0.2s ease-out;
}

.search-results-popup.active { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-surface-raised);
  transform: translateX(4px);
}

.search-result-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-surface-raised);
}

.search-result-info { flex: 1; }

.search-result-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.search-result-price {
  font-weight: 700;
  color: var(--accent-cyan);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.header-action-btn:hover {
  background: var(--bg-surface-raised);
  border-color: var(--border-subtle);
}

.action-icon-wrapper {
  position: relative;
  font-size: 1.2rem;
  color: var(--text-main);
  display: grid;
  place-items: center;
}

.badge-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent-cyber-gradient);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--bg-surface);
}

.action-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.action-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.action-main {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.vip-badge-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-gold-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold);
  transition: all var(--transition-bounce);
  letter-spacing: 0.5px;
}

.vip-badge-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 28px rgba(202, 138, 4, 0.4);
}

.ai-copilot-trigger-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-purple-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.2);
  transition: all var(--transition-bounce);
}

.ai-copilot-trigger-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 28px rgba(167, 139, 250, 0.4);
}

/* --- SUB NAVIGATION CATEGORY BAR --- */
.sub-nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 5px 0;
  font-size: 0.86rem;
}

.sub-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sub-nav-wrapper::-webkit-scrollbar { display: none; }

.all-categories-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.all-categories-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.nav-links-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  white-space: nowrap;
}

.category-filter-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.category-filter-nav:hover {
  color: var(--text-main);
  background: var(--bg-surface-raised);
}

.category-filter-nav.active {
  background: var(--accent-cyber-gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: var(--shadow-neon);
}

.hot-deal-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--danger);
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
  animation: pulseGold 3s infinite;
  white-space: nowrap;
}

.hot-deal-link:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.lucky-wheel-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-purple);
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.2);
  cursor: pointer;
  white-space: nowrap;
}

.lucky-wheel-link:hover {
  background: var(--accent-purple-gradient);
  color: #fff;
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.3);
}

/* --- HERO SECTION --- */
.hero-section {
  margin-top: 24px;
  position: relative;
}

.hero-slider-container {
  position: relative;
  height: clamp(280px, 42vw, 480px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.04);
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0.1) 100%);
}

[data-theme="dark"] .slide-overlay {
  background: linear-gradient(90deg, rgba(10, 13, 20, 0.96) 0%, rgba(10, 13, 20, 0.75) 40%, rgba(10, 13, 20, 0.1) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 clamp(24px, 4vw, 54px);
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-cyber-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: var(--shadow-neon);
}

.slide-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--text-main);
  letter-spacing: -1px;
}

.slide-desc {
  font-size: clamp(0.88rem, 1.1vw, 1.02rem);
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.slide-price-tag {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}

.price-current {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--accent-cyan);
}

.price-old {
  font-size: 1.1rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.slide-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-cyber-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-neon);
  transition: all var(--transition-bounce);
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 30px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

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

.btn-gold {
  background: var(--accent-gold-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  box-shadow: 0 4px 30px rgba(202, 138, 4, 0.45);
}

/* Slider Controls */
.slider-arrows {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: grid;
  place-items: center;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.slider-arrow-btn:hover {
  background: var(--accent-cyan);
  color: #ffffff;
  border-color: var(--accent-cyan);
  transform: scale(1.1);
}

/* --- VALUE PROPS / TRUST BADGES --- */
.trust-badges-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  transition: all var(--transition-smooth);
}

.trust-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.trust-info h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.trust-info p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --- CATEGORIES TILES --- */
.category-tiles-section {
  margin-top: 48px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.section-title i {
  color: var(--accent-cyan);
}

.view-all-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-all-link:hover { transform: translateX(4px); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.category-tile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.category-tile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-cyber-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.category-tile-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-md);
}

.category-tile-card:hover::before { opacity: 1; }

.tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-surface-raised);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  transition: all var(--transition-bounce);
}

.category-tile-card:hover .tile-icon {
  transform: scale(1.12) rotate(5deg);
  background: var(--accent-cyber-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-neon);
}

.tile-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

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

/* --- FLASH DEALS SECTION --- */
.flash-sale-section {
  margin-top: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 32px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.flash-sale-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.flash-title-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.flash-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--danger);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  animation: pulseGold 2.5s infinite;
}

.flash-timer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-cyan);
  box-shadow: var(--shadow-sm);
}

.timer-colon {
  font-weight: 800;
  color: var(--accent-cyan);
}

.flash-products-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* --- MAIN CATALOG LAYOUT --- */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  margin-top: 48px;
  align-items: start;
}

/* SIDEBAR FILTERS */
.filters-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px;
  position: sticky;
  top: 85px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-reset-filters {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 700;
  cursor: pointer;
}

.btn-reset-filters:hover { text-decoration: underline; }

.filter-group {
  margin-bottom: 22px;
}

.filter-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.filter-checkbox-label:hover { color: var(--text-main); }

.custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-subtle);
  display: grid;
  place-items: center;
  background: var(--bg-surface-raised);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.custom-checkbox i {
  display: none;
  color: #ffffff;
  font-size: 0.55rem;
}

input[type="checkbox"]:checked + .custom-checkbox,
input[type="radio"]:checked + .custom-checkbox {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.3);
}

input[type="checkbox"]:checked + .custom-checkbox i,
input[type="radio"]:checked + .custom-checkbox i {
  display: block;
}

/* Price Range */
.price-slider-wrapper { padding: 6px 0; }

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.price-input-box {
  flex: 1;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.85rem;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.stars-group {
  display: flex;
  gap: 2px;
  color: var(--warning);
  font-size: 0.78rem;
}

/* --- CATALOG PRODUCTS MAIN --- */
.catalog-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
}

.results-count {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.results-count strong {
  color: var(--accent-cyan);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sort-select-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sort-select {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
}

.view-layout-toggle {
  display: flex;
  gap: 3px;
  background: var(--bg-surface-raised);
  padding: 3px;
  border-radius: var(--radius-sm);
}

.layout-btn {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: all var(--transition-fast);
}

.layout-btn.active, .layout-btn:hover {
  background: var(--bg-surface);
  color: var(--accent-cyan);
}

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

.products-grid.list-view {
  grid-template-columns: 1fr;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
  box-shadow: var(--shadow-sm);
}

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

/* Card Image */
.product-image-box {
  position: relative;
  height: 220px;
  background: var(--bg-surface-raised);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  background: var(--accent-cyber-gradient);
  color: #ffffff;
}

.card-badge-tag.badge-gold {
  background: var(--accent-gold-gradient);
  color: #ffffff;
}

.card-badge-tag.badge-hot {
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  color: #fff;
}

/* Quick Actions */
.card-quick-actions {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  transform: translateY(50px);
  opacity: 0;
  transition: all var(--transition-bounce);
  z-index: 3;
}

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

.quick-action-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.quick-action-btn:hover {
  background: var(--accent-cyan);
  color: #ffffff;
  border-color: var(--accent-cyan);
  transform: scale(1.12);
}

.quick-action-btn.active {
  color: var(--danger);
  background: rgba(220, 38, 38, 0.1);
  border-color: var(--danger);
}

/* Card Body */
.product-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.prime-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--badge-prime-bg);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

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

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

.product-stars { color: var(--warning); }

.product-reviews-count { color: var(--text-dim); }

.stock-indicator-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-surface-raised);
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  overflow: hidden;
}

.stock-fill {
  height: 100%;
  background: var(--accent-cyber-gradient);
  border-radius: var(--radius-full);
}

.product-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.card-pricing {
  display: flex;
  flex-direction: column;
}

.card-price-current {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.card-price-old {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.btn-add-cart {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: all var(--transition-bounce);
}

.btn-add-cart:hover {
  background: var(--accent-cyber-gradient);
  color: #ffffff;
  border-color: var(--accent-cyan);
  transform: scale(1.08);
  box-shadow: var(--shadow-neon);
}

/* --- COMPARE DOCK --- */
.compare-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 95;
  transition: transform var(--transition-bounce);
  backdrop-filter: blur(20px);
}

.compare-dock.active {
  transform: translateX(-50%) translateY(0);
}

.compare-dock-items {
  display: flex;
  gap: 10px;
}

.compare-slot {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-raised);
  border: 1.5px dashed var(--border-subtle);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.compare-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-slot .remove-slot-btn {
  position: absolute;
  top: 2px; right: 2px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 50%;
  width: 16px; height: 16px;
  font-size: 0.55rem;
  display: grid;
  place-items: center;
}

/* --- AI COPILOT PANEL --- */
.copilot-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 370px;
  height: 540px;
  background: var(--bg-surface);
  border: 1px solid var(--accent-purple);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(124, 58, 237, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 150;
  transform: translateY(620px) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-bounce);
  overflow: hidden;
}

.copilot-panel.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.copilot-header {
  background: var(--accent-purple-gradient);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copilot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copilot-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
}

.copilot-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
}

.copilot-status {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 5px;
}

.copilot-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.copilot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.copilot-bubble {
  max-width: 85%;
  padding: 11px 14px;
  border-radius: var(--radius-lg);
  font-size: 0.86rem;
  line-height: 1.45;
  animation: fadeInUp 0.25s ease-out;
}

.copilot-bubble.bot {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.copilot-bubble.user {
  background: var(--accent-cyber-gradient);
  color: #ffffff;
  font-weight: 600;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.copilot-quick-prompts {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  overflow-x: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-raised);
  scrollbar-width: none;
}

.copilot-quick-prompts::-webkit-scrollbar { display: none; }

.quick-prompt-chip {
  font-size: 0.72rem;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-prompt-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.copilot-input-bar {
  padding: 10px 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
  background: var(--bg-surface);
}

.copilot-input {
  flex: 1;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 0.86rem;
  color: var(--text-main);
}

.copilot-send-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent-purple-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform var(--transition-bounce);
}

.copilot-send-btn:hover { transform: scale(1.1); }

/* --- MODAL BASE --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

[data-theme="dark"] .modal-backdrop {
  background: rgba(4, 7, 14, 0.75);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.96) translateY(16px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: clamp(20px, 3vw, 36px);
}

.modal-backdrop.active .modal-window {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
  transform: rotate(90deg);
}

/* --- 3D STUDIO MODAL --- */
.studio-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

.studio-canvas-area {
  position: relative;
  background: var(--bg-surface-raised);
  border-radius: var(--radius-lg);
  height: 340px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.studio-preview-img {
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.1s linear, filter 0.3s ease;
  user-select: none;
}

.studio-controls-overlay {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  backdrop-filter: blur(10px);
}

.studio-ctrl-btn {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.studio-ctrl-btn:hover { color: var(--accent-cyan); }

.colorway-picker {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.colorway-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-bounce);
}

.colorway-dot.active {
  border-color: var(--accent-cyan);
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.4);
}

/* --- DRONE RADAR --- */
.drone-tracker-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.radar-map-canvas {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-lg);
  background: #050811;
  border: 1px solid var(--accent-cyan);
  box-shadow: inset 0 0 20px rgba(79, 70, 229, 0.1);
}

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

.telemetry-card {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.telemetry-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* --- LUCKY WHEEL --- */
.wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px;
}

.wheel-wrapper {
  position: relative;
  width: 280px; height: 280px;
  margin: 20px 0;
}

.wheel-canvas {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 5px solid var(--accent-cyan);
  box-shadow: var(--shadow-neon);
  transition: transform 4s cubic-bezier(0.15, 0.9, 0.25, 1);
}

.wheel-needle {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid var(--accent-cyan);
  z-index: 10;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

/* --- COMPARE TABLE --- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

.compare-table th, .compare-table td {
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.86rem;
}

.compare-table th:first-child, .compare-table td:first-child {
  text-align: left;
  font-weight: 700;
  background: var(--bg-surface-raised);
  width: 200px;
}

.winner-badge {
  background: rgba(5, 150, 105, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- CART DRAWER --- */
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  z-index: 250;
  transform: translateX(100%);
  transition: transform var(--transition-bounce);
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item-card {
  display: flex;
  gap: 12px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px;
}

.cart-item-img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-surface-raised);
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.cart-item-price {
  font-weight: 800;
  color: var(--accent-cyan);
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
}

.cart-drawer-footer {
  padding: 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-raised);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 800;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 300;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--accent-cyan);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease-out;
  pointer-events: auto;
}

.toast i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

/* --- FOOTER --- */
.site-footer {
  margin-top: 72px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

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

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
  display: inline-block;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 12px rgba(220, 38, 38, 0.15); }
  50% { box-shadow: 0 0 24px rgba(220, 38, 38, 0.4); }
}

@keyframes shineLogo {
  0% { transform: translateX(-100%) rotate(45deg); }
  30%, 100% { transform: translateX(100%) rotate(45deg); }
}

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

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS — FULL DEVICE COVERAGE
   ============================================================ */

/* === ULTRAWIDE 2K+ (>1440px) === */
@media (min-width: 1600px) {
  .container {
    max-width: 1560px;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* === LARGE LAPTOPS / DESKTOPS (1280-1440px) === */
@media (max-width: 1280px) {
  .header-wrapper {
    gap: 14px;
  }
  .delivery-picker {
    display: none;
  }
  .action-text-wrapper {
    display: none;
  }
  .catalog-layout {
    grid-template-columns: 240px 1fr;
    gap: 20px;
  }
}

/* === TABLETS & SMALL LAPTOPS (1024px) === */
@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
  .sidebar-header {
    grid-column: 1 / -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-badges-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .studio-container {
    grid-template-columns: 1fr;
  }
  .studio-canvas-area {
    height: 260px;
  }
  .copilot-panel {
    width: 340px;
    height: 500px;
  }
}

/* === TABLETS (768px - 1024px) === */
@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .top-bar-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .top-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  .header-wrapper {
    flex-wrap: wrap;
    gap: 10px;
  }
  .brand-logo {
    order: 1;
  }
  .header-actions {
    order: 2;
    margin-left: auto;
  }
  .search-container {
    order: 3;
    flex: 0 0 100%;
    min-width: 100%;
  }
  .vip-badge-btn span,
  .ai-copilot-trigger-btn span {
    display: none;
  }
  .hero-slider-container {
    height: 360px;
  }
  .slide-content {
    padding: 0 24px;
  }
  .slide-title {
    font-size: 1.8rem;
  }
  .slide-desc {
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .flash-products-scroll {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .compare-dock {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }
  .modal-window {
    max-width: 100%;
    margin: 0 10px;
    border-radius: var(--radius-lg);
  }
  .copilot-panel {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 12px;
    height: 480px;
  }
}

/* === MOBILE PHONES (max-width: 480px) === */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .top-bar-notice span {
    font-size: 0.72rem;
  }
  .top-controls {
    gap: 6px;
  }
  .control-pill {
    padding: 3px 8px;
    font-size: 0.72rem;
  }
  .main-header {
    padding: 8px 0;
  }
  .logo-text {
    font-size: 1.2rem;
  }
  .logo-tagline {
    display: none;
  }
  .header-action-btn {
    padding: 6px 8px;
  }
  .search-box {
    padding: 3px 4px 3px 12px;
  }
  .category-select {
    display: none;
  }
  .search-input {
    font-size: 0.85rem;
  }
  .search-btn {
    width: 36px; height: 36px;
  }
  .voice-search-btn {
    width: 32px; height: 32px;
  }
  .sub-nav {
    padding: 4px 0;
  }
  .all-categories-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .category-filter-nav {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .hot-deal-link,
  .lucky-wheel-link {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
  .hero-slider-container {
    height: 300px;
    border-radius: var(--radius-lg);
  }
  .slide-tag {
    font-size: 0.65rem;
    padding: 4px 10px;
  }
  .slide-title {
    font-size: 1.4rem;
  }
  .price-current {
    font-size: 1.4rem;
  }
  .slide-actions {
    gap: 8px;
  }
  .btn-primary,
  .btn-secondary {
    padding: 10px 16px;
    font-size: 0.8rem;
  }
  .trust-badges-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .trust-card {
    padding: 12px 14px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .tile-icon {
    width: 40px; height: 40px;
    font-size: 1rem;
  }
  .tile-name {
    font-size: 0.82rem;
  }
  .flash-sale-section {
    padding: 18px;
    border-radius: var(--radius-lg);
  }
  .flash-sale-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .flash-products-scroll {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px;
  }
  .toolbar-controls {
    justify-content: space-between;
  }
  .product-image-box {
    height: 200px;
  }
  .cart-drawer {
    width: 100%;
  }
  .compare-dock {
    width: calc(100% - 24px);
    bottom: 12px;
    flex-direction: column;
    gap: 8px;
  }
  .copilot-panel {
    width: calc(100vw - 16px);
    right: 8px;
    bottom: 8px;
    height: 450px;
  }
  .modal-window {
    padding: 18px;
  }
  .wheel-wrapper {
    width: 240px; height: 240px;
  }
  .compare-table {
    font-size: 0.78rem;
  }
  .compare-table th, .compare-table td {
    padding: 8px 10px;
  }
  .telemetry-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .site-footer {
    padding: 40px 0 20px;
    margin-top: 48px;
  }
}

/* === VERY SMALL PHONES (max-width: 360px) === */
@media (max-width: 360px) {
  html {
    font-size: 14px;
  }
  .logo-icon {
    width: 36px; height: 36px;
    font-size: 1.1rem;
  }
  .hero-slider-container {
    height: 260px;
  }
  .slide-title {
    font-size: 1.2rem;
  }
  .slide-desc {
    display: none;
  }
  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }
  .wheel-wrapper {
    width: 200px; height: 200px;
  }
}

/* === LANDSCAPE PHONES (short height) === */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-slider-container {
    height: 240px;
  }
  .trust-badges-bar {
    grid-template-columns: repeat(4, 1fr);
  }
  .modal-window {
    max-height: 95vh;
  }
  .copilot-panel {
    height: 340px;
  }
}

/* === PRINT STYLES === */
@media print {
  .top-bar, .main-header, .sub-nav, .copilot-panel, .cart-drawer,
  .compare-dock, .toast-container, .slider-arrows, .card-quick-actions {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .product-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}
