@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('https://static.figma.com/font/PlusJakartaSans_wght__2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('https://static.figma.com/font/Inter_1') format('woff2');
}

:root {
  --background: #FFFFFF;
  --foreground: #111111;
  --card: #F7F7F7;
  --card-foreground: #111111;
  --primary: #111111;
  --primary-foreground: #FFFFFF;
  --secondary: #F4F4F4;
  --secondary-foreground: #111111;
  --muted: #F0F0F0;
  --muted-foreground: #777777;
  --accent: #FF5A00;
  --accent-foreground: #FFFFFF;
  --border: rgba(17,17,17,0.1);
  --ring: #FF5A00;
  --radius: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes counter {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.animate-fade-up { animation: fadeUp 0.7s cubic-bezier(.22,1,.36,1) forwards; }
.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-slide-left { animation: slideLeft 0.7s cubic-bezier(.22,1,.36,1) forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-marquee { animation: marquee 28s linear infinite; }
.animate-spin-slow { animation: spin-slow 20s linear infinite; }

.font-display { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }

/* Track line background pattern */
.track-pattern {
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 48px,
    rgba(255,90,0,0.04) 48px,
    rgba(255,90,0,0.04) 50px
  );
}

/* Glassmorphism */
.glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.4);
}
.glass-dark {
  background: rgba(17,17,17,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Magnetic button */
.btn-magnetic {
  transition: transform 0.2s cubic-bezier(.22,1,.36,1), box-shadow 0.2s ease;
}
.btn-magnetic:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,90,0,0.35);
}

/* Product card */
.product-card {
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(17,17,17,0.12);
}

/* Category card */
.cat-card {
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.cat-card:hover .cat-img {
  transform: scale(1.08);
}
.cat-img {
  transition: transform 0.6s cubic-bezier(.22,1,.36,1);
}

/* Nav underline */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF5A00;
  transition: width 0.3s cubic-bezier(.22,1,.36,1);
}
.nav-link:hover::after { width: 100%; }

/* Diagonal section */
.diagonal-top {
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 100%);
}
.diagonal-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #FF5A00 0%, #FF8A40 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Star rating */
.star { color: #FFB800; }

/* Timer */
.timer-box {
  background: #111;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1.5rem;
  line-height: 1;
  min-width: 52px;
  text-align: center;
}

/* Floating badge */
.float-badge {
  animation: float 3s ease-in-out infinite;
}

/* Image hover second */
.product-img-wrap { position: relative; overflow: hidden; }
.product-img-wrap img:nth-child(2) {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.product-card:hover .product-img-wrap img:nth-child(2) { opacity: 1; }
.product-card:hover .product-img-wrap img:nth-child(1) { opacity: 0; }
