@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --red: #e62222;
  --red-dim: #a01515;
  --blue: #00b4ff;
  --dark: #080808;
  --dark2: #111111;
  --dark3: #1a1a1a;
  --dark4: #222222;
  --grey: #888;
  --light: #f0f0f0;
  --white: #ffffff;
  --gold: #c8a84b;
  --gradient-red: linear-gradient(135deg, #e62222, #a01515);
  --gradient-blue: linear-gradient(135deg, #00b4ff, #0066cc);
  --shadow-red: 0 0 30px rgba(230,34,34,0.3);
  --shadow-blue: 0 0 30px rgba(0,180,255,0.3);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

h1,h2,h3,h4 { font-family: 'Rajdhani', sans-serif; font-weight: 700; line-height: 1.1; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 70px;
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(230,34,34,0.2);
  transition: var(--transition);
}
.navbar.scrolled { background: rgba(8,8,8,0.98); box-shadow: 0 2px 30px rgba(0,0,0,0.5); }

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo .logo-icon { width: 40px; height: 40px; }
.nav-logo span { font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; font-weight: 700; }
.nav-logo .brand-name { color: var(--white); }
.nav-logo .brand-accent { color: var(--red); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--grey); transition: var(--transition); letter-spacing: 0.5px; text-transform: uppercase; }
.nav-links a:hover { color: var(--red); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.currency-btn {
  background: var(--dark3); border: 1px solid var(--dark4);
  color: var(--light); padding: 6px 14px; border-radius: 20px;
  font-size: 0.85rem; cursor: pointer; transition: var(--transition);
}
.currency-btn:hover { border-color: var(--red); color: var(--red); }

.cart-btn {
  position: relative; background: none; color: var(--light);
  font-size: 1.4rem; padding: 5px; transition: var(--transition);
}
.cart-btn:hover { color: var(--red); }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--red); color: var(--white);
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 0.7rem; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

.btn-primary {
  background: var(--gradient-red);
  color: var(--white); padding: 14px 32px;
  border-radius: 4px; font-weight: 600;
  font-size: 0.95rem; letter-spacing: 1px;
  text-transform: uppercase; transition: var(--transition);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(230,34,34,0.5); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white); padding: 13px 32px;
  border-radius: 4px; font-weight: 600;
  font-size: 0.95rem; letter-spacing: 1px;
  text-transform: uppercase; transition: var(--transition);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

/* HERO */
.hero {
  position: relative; height: 100vh; min-height: 650px;
  display: flex; align-items: center; overflow: hidden;
  padding-top: 70px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('hero_bike_banner.png') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.75) 50%, rgba(8,8,8,0.3) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 5%; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(230,34,34,0.15); border: 1px solid rgba(230,34,34,0.4);
  color: var(--red); padding: 6px 16px; border-radius: 20px;
  font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 1.5rem; font-weight: 600;
}
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); color: var(--white); margin-bottom: 1rem; }
.hero h1 span { color: var(--red); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(240,240,240,0.7); margin-bottom: 2.5rem; max-width: 500px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-badges { display: flex; gap: 2rem; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 8px; }
.trust-badge .icon { font-size: 1.2rem; }
.trust-badge span { font-size: 0.85rem; color: rgba(240,240,240,0.6); font-weight: 500; }

/* SECTION COMMONS */
section { padding: 100px 5%; }
.section-label {
  font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); font-weight: 600; margin-bottom: 1rem;
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 1rem; }
.section-title span { color: var(--red); }
.section-sub { color: var(--grey); font-size: 1.05rem; max-width: 550px; }

/* FEATURES */
.features-section { background: var(--dark2); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 4rem; }
.feature-card {
  background: var(--dark3); border: 1px solid var(--dark4);
  border-radius: var(--radius); padding: 2rem;
  text-align: center; transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--gradient-red); transform: scaleX(0); transition: var(--transition);
}
.feature-card:hover { border-color: rgba(230,34,34,0.4); transform: translateY(-5px); box-shadow: var(--shadow-red); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.feature-card h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; color: var(--grey); }

/* PRODUCTS */
.products-section { background: var(--dark); }
.products-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }

.product-card {
  background: var(--dark3); border: 1px solid var(--dark4);
  border-radius: var(--radius); overflow: hidden; transition: var(--transition);
  cursor: pointer;
}
.product-card:hover { border-color: rgba(230,34,34,0.4); transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

.product-img-wrap { position: relative; overflow: hidden; height: 260px; background: var(--dark4); display: flex; align-items: center; justify-content: center; }
.product-img-wrap img { width: auto; height: auto; max-width: 100%; max-height: 100%; transition: transform 0.5s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.product-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.tag { padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.tag-hot { background: var(--red); color: white; }
.tag-best { background: var(--gold); color: #111; }
.tag-new { background: var(--blue); color: white; }

.product-overlay {
  position: absolute; inset: 0; background: rgba(8,8,8,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.product-card:hover .product-overlay { opacity: 1; }
.quick-add {
  background: var(--gradient-red); color: white;
  padding: 12px 28px; border-radius: 4px;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  font-size: 0.9rem; transform: translateY(10px); transition: var(--transition);
}
.product-card:hover .quick-add { transform: translateY(0); }

.product-info { padding: 1.5rem; }
.product-info h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 0.4rem; }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.4rem; font-weight: 700; color: var(--red); font-family: 'Rajdhani', sans-serif; }
.product-rating { display: flex; align-items: center; gap: 4px; color: var(--gold); font-size: 0.85rem; }
.stock-alert { font-size: 0.78rem; color: var(--red); margin-top: 0.5rem; font-weight: 500; }
.viewers { font-size: 0.78rem; color: var(--grey); margin-top: 2px; }

/* TESTIMONIALS */
.reviews-section { background: var(--dark2); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-top: 4rem; }
.review-card {
  background: var(--dark3); border: 1px solid var(--dark4);
  border-radius: var(--radius); padding: 2rem; transition: var(--transition);
}
.review-card:hover { border-color: rgba(230,34,34,0.3); transform: translateY(-4px); }
.review-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 1rem; }
.review-text { color: rgba(240,240,240,0.8); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.7; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-red); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; color: white; }
.review-name { font-weight: 600; color: var(--white); font-size: 0.95rem; }
.review-country { font-size: 0.8rem; color: var(--grey); }

/* SHIPPING */
.shipping-section { background: var(--dark); position: relative; overflow: hidden; text-align: center; }
.shipping-section .globe-wrap { margin: 3rem auto 0; max-width: 600px; border-radius: var(--radius); overflow: hidden; }
.shipping-stats { display: flex; justify-content: center; gap: 4rem; margin-top: 3rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 700; font-family: 'Rajdhani', sans-serif; color: var(--red); }
.stat-label { font-size: 0.85rem; color: var(--grey); text-transform: uppercase; letter-spacing: 1px; }

/* CURRENCY SWITCHER PANEL */
.currency-panel {
  position: fixed; top: 70px; right: 5%; z-index: 999;
  background: var(--dark3); border: 1px solid var(--dark4);
  border-radius: var(--radius); padding: 1.2rem;
  width: 300px; display: none; box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.currency-panel.open { display: block; }
.currency-panel h4 { color: var(--white); font-size: 0.85rem; margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.currency-list { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; }
.currency-list::-webkit-scrollbar { width: 4px; }
.currency-list::-webkit-scrollbar-thumb { background: var(--red-dim); border-radius: 2px; }
.currency-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 6px; cursor: pointer;
  transition: var(--transition); color: var(--grey); font-size: 0.82rem;
}
.currency-item:hover, .currency-item.active { background: rgba(230,34,34,0.12); color: var(--white); }
.currency-item .flag { font-size: 1rem; flex-shrink: 0; }

/* WHY US */
.why-section { background: var(--dark2); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 4rem; }
.why-card {
  text-align: center; padding: 2.5rem 2rem;
  background: var(--dark3); border: 1px solid var(--dark4);
  border-radius: var(--radius); transition: var(--transition);
}
.why-card:hover { border-color: rgba(230,34,34,0.4); transform: translateY(-5px); box-shadow: var(--shadow-red); }
.why-num { font-size: 3rem; font-weight: 700; font-family: 'Rajdhani', sans-serif; color: rgba(230,34,34,0.2); margin-bottom: 0.5rem; }
.why-card h3 { color: var(--white); margin-bottom: 0.5rem; }
.why-card p { color: var(--grey); font-size: 0.9rem; }

/* CTA BANNER */
.cta-banner {
  background: var(--gradient-red); padding: 80px 5%;
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url('hero_bike_banner.png') center/cover no-repeat;
  opacity: 0.15;
}
.cta-banner h2 { font-size: clamp(2rem, 5vw, 3.5rem); color: white; position: relative; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; position: relative; font-size: 1.1rem; }
.btn-white { background: white; color: var(--red); padding: 14px 40px; border-radius: 4px; font-weight: 700; font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; transition: var(--transition); }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

/* FOOTER */
footer {
  background: var(--dark2); border-top: 1px solid var(--dark4);
  padding: 60px 5% 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--grey); font-size: 0.9rem; margin-top: 1rem; max-width: 280px; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: var(--grey); font-size: 0.9rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--red); padding-left: 4px; }
.footer-bottom { border-top: 1px solid var(--dark4); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: gap; color: var(--grey); font-size: 0.85rem; }
.social-links { display: flex; gap: 12px; }
.social-link { width: 36px; height: 36px; background: var(--dark3); border: 1px solid var(--dark4); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: var(--transition); }
.social-link:hover { border-color: var(--red); color: var(--red); background: rgba(230,34,34,0.1); }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); }

/* CART SIDEBAR */
.cart-sidebar {
  position: fixed; right: -420px; top: 0; bottom: 0;
  width: 400px; background: var(--dark2);
  border-left: 1px solid var(--dark4);
  z-index: 2000; transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1999; display: none; }
.cart-overlay.open { display: block; }
.cart-header { padding: 1.5rem; border-bottom: 1px solid var(--dark4); display: flex; align-items: center; justify-content: space-between; }
.cart-header h3 { color: var(--white); font-size: 1.2rem; }
.cart-close { background: none; color: var(--grey); font-size: 1.5rem; cursor: pointer; transition: var(--transition); }
.cart-close:hover { color: var(--red); }
.cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.cart-empty { text-align: center; color: var(--grey); padding: 3rem 1rem; }
.cart-empty .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.cart-item { display: flex; gap: 1rem; background: var(--dark3); border: 1px solid var(--dark4); border-radius: 8px; padding: 1rem; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-price { color: var(--red); font-weight: 700; font-size: 1rem; }
.cart-qty-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-qty-ctrl button { background: var(--dark4); border: none; color: var(--white); width: 24px; height: 24px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: background 0.2s; }
.cart-qty-ctrl button:hover { background: var(--red); }
.cart-qty-ctrl span { color: var(--grey); font-size: 0.9rem; font-weight: 600; width: 20px; text-align: center; }
.cart-item-remove { background: none; color: var(--grey); font-size: 1.1rem; cursor: pointer; transition: var(--transition); }
.cart-item-remove:hover { color: var(--red); }
.cart-footer { padding: 1.5rem; border-top: 1px solid var(--dark4); }
.cart-total { display: flex; justify-content: space-between; color: var(--white); font-size: 1.1rem; margin-bottom: 1rem; font-weight: 600; }
.btn-checkout { display: block; width: 100%; text-align: center; }

/* TOAST */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--dark3); border: 1px solid rgba(230,34,34,0.4);
  color: var(--white); padding: 14px 24px; border-radius: 8px;
  font-size: 0.9rem; z-index: 3000; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .toast-icon { color: #22c55e; font-size: 1.1rem; }

/* SCROLL ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* COUNTER ANIMATION */
.counter { display: inline-block; }

/* PAGE LOADER */
.page-loader {
  position: fixed; inset: 0; background: var(--dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.5s ease;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-logo { font-family: 'Rajdhani', sans-serif; font-size: 2.5rem; font-weight: 700; color: white; margin-bottom: 2rem; }
.loader-logo span { color: var(--red); }
.loader-bar { width: 200px; height: 3px; background: var(--dark4); border-radius: 2px; overflow: hidden; }
.loader-fill { height: 100%; width: 0%; background: var(--gradient-red); border-radius: 2px; animation: loaderAnim 1.5s ease forwards; }
@keyframes loaderAnim { to { width: 100%; } }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--red-dim); border-radius: 3px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: rgba(8,8,8,0.98); padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--dark4); z-index: 1000; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.4rem; }
}
@media (max-width: 600px) {
  section { padding: 70px 5%; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 1rem; }
  .shipping-stats { gap: 2rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary, .hero-ctas .btn-outline { text-align: center; }
  .cart-sidebar { width: 100%; right: -100%; }
}
