/* ===== Reset & Variables ===== */
:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fdba74;
  --secondary: #1d3557;
  --accent: #457b9d;
  --dark: #0b0e14;
  --dark2: #161b22;
  --dark3: #21262d;
  --gray: #8b949e;
  --gray-light: #c9d1d9;
  --light: #f0f6fc;
  --white: #ffffff;
  --success: #2ea043;
  --warning: #d2991d;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.25);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--dark);
  color: var(--gray-light);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ===== Cusor glow effect ===== */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,57,70,0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: opacity 0.3s;
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.scroll-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* stagger delays for cards */
.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.10s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.20s; }
.delay-5 { transition-delay: 0.25s; }
.delay-6 { transition-delay: 0.30s; }
.delay-7 { transition-delay: 0.35s; }
.delay-8 { transition-delay: 0.40s; }
.delay-9 { transition-delay: 0.45s; }
.delay-10 { transition-delay: 0.50s; }
.delay-11 { transition-delay: 0.55s; }
.delay-12 { transition-delay: 0.60s; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.35s var(--bounce);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
  animation: btnPulse 2.5s ease-in-out infinite;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(230, 57, 70, 0.55);
  animation: none;
}
.btn-primary:active { transform: translateY(-1px) scale(0.98); }

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35); }
  50% { box-shadow: 0 4px 28px rgba(230, 57, 70, 0.55); }
}

.btn-outline {
  border: 2px solid var(--gray-light);
  color: var(--gray-light);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.06);
  transform: translateY(-3px);
}
.btn-white {
  background: var(--white);
  color: var(--dark);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255,255,255,0.15);
  animation: whitePulse 3s ease-in-out infinite;
}
.btn-white:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(255,255,255,0.3);
  animation: none;
}

@keyframes whitePulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(255,255,255,0.15); }
  50% { box-shadow: 0 4px 28px rgba(255,255,255,0.3); }
}

.btn-block { display: block; width: 100%; text-align: center; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ===== Sale Ticker ===== */
.sale-ticker {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  background: linear-gradient(90deg, #ea580c, #f97316, #fdba74, #f97316, #ea580c);
  background-size: 200% 100%;
  animation: tickerBg 2s ease-in-out infinite;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@keyframes tickerBg {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.sale-ticker-track {
  display: inline-flex;
  gap: 48px;
  animation: tickerScroll 12s linear infinite;
}
.sale-ticker-track-2 {
  animation: tickerScroll2 12s linear infinite;
}

.sale-ticker-track span {
  font-size: 13px;
  font-weight: 800;
  color: white;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes tickerScroll2 {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Push header down for ticker */
.header { top: 34px; }
.header.scrolled { top: 34px; }

@media (max-width: 768px) {
  .header { top: 30px; }
  .header.scrolled { top: 30px; }
  .sale-ticker { padding: 4px 0; }
  .sale-ticker-track span { font-size: 12px; }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.header.scrolled {
  background: rgba(22, 27, 34, 0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 10px 0;
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.logo span { color: var(--primary); }
.logo i {
  color: var(--primary);
  font-size: 22px;
  animation: logoFloat 3s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.nav { display: flex; gap: 32px; }
.nav-link {
  color: var(--gray-light);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.35s var(--bounce);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-icon {
  position: relative;
  font-size: 20px;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s var(--bounce);
  padding: 8px;
}
.cart-icon:hover { color: var(--primary); transform: scale(1.15); }
.cart-icon:active { transform: scale(0.9); }
.cart-count {
  position: absolute;
  top: 0; right: 0;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--bounce);
  box-shadow: 0 2px 8px rgba(230,57,70,0.5);
}
.cart-count.bump {
  transform: scale(1.5);
  animation: countBump 0.5s var(--bounce);
}
@keyframes countBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.6); }
  100% { transform: scale(1); }
}

.menu-toggle { display: none; background: none; color: var(--white); font-size: 24px; }

/* ===== Cart Sidebar ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 400px; max-width: 100%;
  height: 100vh;
  background: var(--dark2);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow-lg);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--dark3);
}
.cart-header h3 { color: var(--white); font-size: 18px; display: flex; align-items: center; gap: 8px; }
.cart-header h3 i { color: var(--primary); animation: cartShake 2s ease-in-out infinite; }

@keyframes cartShake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

.cart-close {
  background: var(--dark3);
  color: var(--gray-light);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--bounce);
}
.cart-close:hover { background: var(--primary); color: white; transform: rotate(90deg); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty {
  text-align: center;
  color: var(--gray);
  padding: 60px 0;
  font-size: 16px;
  animation: emptyBounce 2s ease-in-out infinite;
}
@keyframes emptyBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dark3);
  animation: slideInRight 0.35s ease;
}
@keyframes slideInRight {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.cart-item-img {
  width: 70px; height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--dark3);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cart-item:hover .cart-item-img img { transform: scale(1.1); }
.cart-item-info { flex: 1; }
.cart-item-info h4 { color: var(--white); font-size: 14px; margin-bottom: 4px; }
.cart-item-info .price { color: var(--primary); font-weight: 700; font-size: 15px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-item-qty button {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--dark3);
  color: var(--gray-light);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--bounce);
}
.cart-item-qty button:hover { background: var(--primary); color: white; transform: scale(1.15); }
.cart-item-qty button:active { transform: scale(0.9); }
.cart-item-qty span { color: var(--white); font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
  background: none;
  color: var(--gray);
  font-size: 14px;
  transition: all 0.3s var(--bounce);
  padding: 4px;
}
.cart-item-remove:hover { color: var(--primary); transform: scale(1.2) rotate(10deg); }

.cart-footer { padding: 20px 24px; border-top: 1px solid var(--dark3); }
.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 18px;
  color: var(--white);
  font-weight: 700;
}
.cart-total span:last-child { color: var(--primary); font-size: 22px; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

/* Animated particle canvas */
#particlesCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(230, 57, 70, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(69, 123, 157, 0.10) 0%, transparent 60%),
              radial-gradient(ellipse at 50% 100%, rgba(230, 57, 70, 0.05) 0%, transparent 50%);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(230, 57, 70, 0.15);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(230, 57, 70, 0.25);
  animation: badgeGlow 2s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.3); }
  50% { box-shadow: 0 0 16px 4px rgba(230,57,70,0.15); }
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 50%, var(--white) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

.hero-text p {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 32px;
  max-width: 500px;
}
.hero-btns { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 40px; }
.stat {
  position: relative;
  transition: transform 0.3s var(--bounce);
}
.stat:hover { transform: translateY(-4px); }
.stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--white), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat span { color: var(--gray); font-size: 14px; }

.hero-image {
  position: relative;
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-image img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(230,57,70,0.08);
  transition: all 0.5s ease;
}
.hero-image:hover { animation-play-state: paused; }
.hero-image:hover img {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(230,57,70,0.15);
}

/* Floating orbs behind hero image */
.hero-image::before {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(230,57,70,0.15), transparent);
  border-radius: 50%;
  top: -30px; right: -30px;
  z-index: -1;
  animation: orbFloat1 8s ease-in-out infinite;
}
.hero-image::after {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(69,123,157,0.15), transparent);
  border-radius: 50%;
  bottom: -20px; left: -20px;
  z-index: -1;
  animation: orbFloat2 6s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -20px); }
  66% { transform: translate(-10px, 10px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-15px, -15px); }
  66% { transform: translate(10px, 20px); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotateY(-5deg); }
  50% { transform: translateY(-15px) rotateY(-3deg); }
}

/* ===== Features ===== */
.features {
  padding: 80px 0;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s var(--bounce);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.feature-card:hover::before { transform: translateX(100%); }
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 16px;
  transition: all 0.4s var(--bounce);
  display: inline-block;
}
.feature-card:hover i {
  transform: scale(1.2) rotate(-10deg);
  filter: drop-shadow(0 0 8px rgba(230,57,70,0.4));
}
.feature-card h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 8px;
}
.feature-card p { color: var(--gray); font-size: 14px; }

/* ===== Products ===== */
.products { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--white), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-header p { color: var(--gray); font-size: 16px; }

.product-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  background: var(--dark2);
  color: var(--gray-light);
  border: 1px solid var(--dark3);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.35s var(--bounce);
  position: relative;
  overflow: hidden;
}
.filter-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
  border-radius: 50px;
}
.filter-btn:hover::after { opacity: 0.1; }
.filter-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(230,57,70,0.4);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--bounce);
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
/* Glow border on hover */
.product-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(230,57,70,0.5), transparent, rgba(69,123,157,0.3));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}
.product-card:hover::after { opacity: 1; }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
  animation: badgePopIn 0.5s var(--bounce);
  background: var(--primary);
  color: white;
}
.product-badge.new { background: var(--accent); }
.product-badge.sale { background: var(--warning); color: var(--dark); animation: salePulse 1.5s ease-in-out infinite; }

@keyframes badgePopIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes salePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(210,153,29,0.5); }
  50% { box-shadow: 0 0 12px 3px rgba(210,153,29,0.3); }
}

.product-img {
  height: 220px;
  background: var(--dark3);
  overflow: hidden;
  position: relative;
}
.product-img .img-main,
.product-img .img-hover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-img .img-main {
  position: relative;
  opacity: 1;
  z-index: 1;
}
.product-img .img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 2;
}
.product-card:hover .product-img .img-main {
  opacity: 0;
  transform: scale(1.08);
}
.product-card:hover .product-img .img-hover {
  opacity: 1;
  transform: scale(1.08);
}

/* Quick view overlay */
.product-img::after {
  content: 'Xem nhanh';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 15px;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.product-card:hover .product-img::after { opacity: 1; }

.product-info { padding: 16px 20px 20px; position: relative; z-index: 1; }
.product-category {
  font-size: 12px;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.product-info h3 {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  margin: 6px 0 8px;
  line-height: 1.3;
  transition: color 0.3s;
}
.product-card:hover .product-info h3 { color: var(--primary-light); }
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--warning);
  margin-bottom: 12px;
}
.product-rating .stars i { font-size: 12px; }
.product-rating span { color: var(--gray); margin-left: 4px; }
.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.product-price .current {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}
.product-price .original {
  color: var(--gray);
  font-size: 14px;
  text-decoration: line-through;
}

/* ===== About ===== */
.about { padding: 80px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  position: relative;
}
.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.5s ease;
}
.about-image:hover img {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Decorative ring behind image */
.about-image::before {
  content: '';
  position: absolute;
  width: 120%; height: 120%;
  border: 2px dashed rgba(230,57,70,0.15);
  border-radius: var(--radius);
  top: -10%; left: -10%;
  animation: spinSlow 30s linear infinite;
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.about-text h2 {
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.about-text > p { color: var(--gray); margin-bottom: 24px; font-size: 16px; }
.about-list { list-style: none; margin-bottom: 32px; }
.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-light);
  padding: 8px 0;
  font-size: 15px;
  transition: all 0.3s ease;
}
.about-list li:hover {
  transform: translateX(6px);
  color: var(--white);
}
.about-list li i {
  color: var(--success);
  font-size: 18px;
  transition: all 0.3s var(--bounce);
}
.about-list li:hover i { transform: scale(1.3) rotate(10deg); }

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  margin: 0 20px;
}
/* Shine sweep */
.cta::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.06) 45%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.06) 55%, transparent 60%);
  animation: shineSweep 4s ease-in-out infinite;
}
@keyframes shineSweep {
  0% { transform: translateX(-100%) translateY(-100%); }
  100% { transform: translateX(100%) translateY(100%); }
}

.cta .container { max-width: 700px; position: relative; }
.cta h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 28px; font-size: 17px; }

/* ===== Contact ===== */
.contact { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--dark2);
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid var(--dark3);
  transition: all 0.35s var(--bounce);
}
.contact-item:hover {
  transform: translateX(6px);
  border-color: rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
}
.contact-item i {
  color: var(--primary);
  font-size: 20px;
  margin-top: 2px;
  transition: all 0.3s var(--bounce);
}
.contact-item:hover i { transform: scale(1.2); }
.contact-item strong { display: block; color: var(--white); margin-bottom: 2px; }
.contact-item span { color: var(--gray); font-size: 14px; }

.contact-form {
  background: var(--dark2);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--dark3);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
}
.contact-form:focus-within {
  border-color: rgba(230,57,70,0.3);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.06);
}
.contact-form .form-row { display: flex; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--dark3);
  border: 1px solid transparent;
  color: var(--white);
  font-size: 15px;
  transition: all 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.08);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* ===== Footer ===== */
.footer {
  background: var(--dark2);
  border-top: 1px solid var(--dark3);
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--gray); margin: 16px 0 20px; font-size: 14px; line-height: 1.7; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--dark3);
  color: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s var(--bounce);
}
.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-4px) rotate(8deg);
  box-shadow: 0 6px 20px rgba(230,57,70,0.4);
}
.footer-links h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}
.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s var(--bounce);
}
.footer-links:hover h4::after { width: 40px; }
.footer-links a {
  display: block;
  color: var(--gray);
  font-size: 14px;
  padding: 6px 0;
  transition: all 0.3s var(--bounce);
}
.footer-links a:hover { color: var(--primary); padding-left: 6px; }
.footer-bottom {
  border-top: 1px solid var(--dark3);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { color: var(--gray); font-size: 14px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--success);
  color: white;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(46,160,67,0.3);
}
.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== Page transition overlay ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s, visibility 0.4s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--dark3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0; right: -300px;
    width: 280px; height: 100vh;
    background: var(--dark2);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1500;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateX(-300px); }
  .menu-toggle { display: block; }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 36px; }
  .hero-text p { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-image::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { margin: 0; border-radius: 0; }
  .cta h2 { font-size: 26px; }
  .section-header h2 { font-size: 30px; }
  .cart-sidebar { width: 100%; }
  #particlesCanvas { display: none; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .stat strong { font-size: 22px; }
}
