/* ====== RESET & BASE ====== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a12;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

:root {
  --accent: #ff4d00;
  --accent-hover: #e04400;
  --accent-glow: rgba(255,77,0,.3);
  --bg-card: #12121e;
  --bg-card-hover: #1a1a2e;
  --border: #222240;
  --text: #e0e0e0;
  --text-muted: #8888a0;
  --text-dim: #555570;
}

/* ====== NAVBAR ====== */
.navbar {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  background: rgba(10,10,18,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,77,0,.1);
  transition: background .3s;
}
.navbar.scrolled { background: rgba(10,10,18,.95); }
.nav-inner {
  max-width: 1200px; margin:0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { flex-shrink: 0; }
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em;
  color: #fff;
}
.logo-accent {
  background: linear-gradient(135deg, #ff4d00, #ff6b00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 4px;
}
.nav-links { display: flex; gap: 32px; }
.nav-link {
  font-size: .875rem; font-weight: 500;
  color: var(--text-muted); transition: color .2s;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom:-4px; left:0; right:0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform .2s;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.cart-btn {
  position: relative; background: none; border: none;
  color: var(--text-muted); padding: 8px;
  border-radius: 8px; transition: all .2s;
}
.cart-btn:hover { color: #fff; background: rgba(255,77,0,.1); }
.cart-badge {
  position: absolute; top:0; right:0;
  background: var(--accent); color: #fff;
  font-size: .65rem; font-weight: 700;
  min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; padding: 0 4px;
  transform: scale(0); transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.cart-badge.visible { transform: scale(1); }

.mobile-menu-btn {
  display: none; background: none; border: none;
  flex-direction: column; gap: 5px; padding: 8px;
}
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--text-muted); border-radius: 2px;
  transition: all .3s;
}

/* ====== HERO ====== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset:0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,77,0,.08) 0%, transparent 60%),
              radial-gradient(ellipse at 100% 100%, rgba(255,77,0,.05) 0%, transparent 50%);
}
.hero-bg-pattern {
  position: absolute; inset:0;
  background-image:
    linear-gradient(45deg, rgba(255,77,0,.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,77,0,.03) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,77,0,.03) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,77,0,.03) 75%);
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index:2;
  max-width: 1200px; margin:0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(255,77,0,.1); border: 1px solid rgba(255,77,0,.3);
  font-size: .8rem; font-weight: 600; color: var(--accent);
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.1;
  color: #fff; margin-bottom: 20px;
  max-width: 800px;
}
.text-accent {
  background: linear-gradient(135deg, #ff4d00, #ff8a00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 600px; margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px;
  font-size: .95rem; font-weight: 600;
  transition: all .25s; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #ff4d00, #e04400);
  color: #fff; box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-outline {
  background: transparent; border: 1.5px solid rgba(255,77,0,.4);
  color: #fff;
}
.btn-outline:hover {
  border-color: var(--accent); background: rgba(255,77,0,.1);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; border: none;
  color: var(--text-muted); font-size: .85rem; padding: 8px 16px;
}
.btn-ghost:hover { color: #fff; }

.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem; font-weight: 700;
  background: linear-gradient(135deg, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: .8rem; color: var(--text-dim); }

.hero-car {
  position: absolute; bottom: 60px; right: -5%;
  width: 55%; max-width: 700px; z-index: 1;
  opacity: .6;
}
.hero-car-svg { width: 100%; height: auto; }

/* ====== SECTIONS COMMON ====== */
.section-header {
  text-align: center; max-width: 600px;
  margin: 0 auto 48px;
}
.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; color: #fff; margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); font-size: 1rem; }

/* ====== CATEGORIES ====== */
.categories {
  padding: 80px 24px;
  max-width: 1200px; margin: 0 auto;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}
.category-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 20px 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; color: var(--text-muted);
  font-size: .8rem; font-weight: 500;
  transition: all .25s;
}
.category-card:hover {
  border-color: rgba(255,77,0,.3);
  background: var(--bg-card-hover); color: #fff;
}
.category-card.active {
  border-color: var(--accent);
  background: rgba(255,77,0,.1);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ====== PRODUCTS ====== */
.products {
  padding: 80px 24px;
  max-width: 1200px; margin: 0 auto;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: all .3s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: rgba(255,77,0,.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.product-image {
  position: relative; height: 200px;
  display: flex; align-items: center; justify-content: center;
  background: #0d0d1a; overflow: hidden;
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-image svg {
  width: 60%; height: 60%; opacity: .7;
  transition: transform .4s, opacity .3s;
}
.product-card:hover .product-image svg {
  transform: scale(1.1); opacity: 1;
}
.product-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 6px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
}
.product-badge.bestseller {
  background: linear-gradient(135deg, #ff4d00, #ff6b00);
  color: #fff;
}
.product-badge.sale {
  background: #d7141a; color: #fff;
}
.product-badge.nove {
  background: #00b894; color: #fff;
}
.product-body {
  padding: 20px; flex:1;
  display: flex; flex-direction: column;
}
.product-category {
  font-size: .7rem; color: var(--accent);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: 4px;
}
.product-name {
  font-size: 1rem; font-weight: 600;
  color: #fff; margin-bottom: 6px;
  line-height: 1.3;
}
.product-desc {
  font-size: .8rem; color: var(--text-dim);
  line-height: 1.5; margin-bottom: 16px; flex:1;
}
.product-meta {
  display: flex; align-items: center;
  justify-content: space-between; margin-top: auto;
}
.product-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  color: #fff;
}
.product-price-original {
  font-size: .9rem; color: var(--text-dim);
  text-decoration: line-through; margin-left: 6px;
}
.product-add-btn {
  padding: 8px 16px; border-radius: 8px;
  background: var(--accent); color: #fff; border: none;
  font-size: .8rem; font-weight: 600;
  transition: all .2s;
}
.product-add-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}
.product-add-btn.in-cart {
  background: #00b894;
}
.product-stock {
  font-size: .75rem; color: #00b894;
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 12px;
}
.product-stock .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00b894; display: inline-block;
}

/* ====== ABOUT ====== */
.about {
  padding: 80px 24px;
  background: linear-gradient(180deg, transparent, rgba(255,77,0,.03), transparent);
}
.about-inner {
  max-width: 1200px; margin:0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.about-illustration {
  width: 100%; max-width: 400px; margin:0 auto;
}
.about-text {
  color: var(--text-muted); margin-bottom: 16px;
  font-size: .95rem; line-height: 1.8;
}
.about-text strong { color: #fff; }
.about-features {
  display: grid; gap: 12px; margin-top: 24px;
}
.about-feature {
  display: flex; align-items: center; gap: 12px;
  font-size: .9rem; color: var(--text);
}

/* ====== TESTIMONIAL ====== */
.testimonial {
  padding: 80px 24px;
}
.testimonial-inner {
  max-width: 700px; margin:0 auto; text-align: center;
  position: relative;
}
.testimonial-quote { margin:0 auto 16px; display:block; }
.testimonial blockquote {
  font-size: 1.2rem; font-style: italic;
  color: var(--text); line-height: 1.8;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #ff4d00, #ff6b00);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: #fff;
}
.testimonial-name { font-weight: 600; color: #fff; font-size: .9rem; }
.testimonial-role { font-size: .8rem; color: var(--text-dim); }

/* ====== CONTACT ====== */
.contact {
  padding: 80px 24px;
  background: var(--bg-card);
}
.contact-inner {
  max-width: 1000px; margin:0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 700; color: #fff;
  margin-bottom: 16px;
}
.contact-info > p { color: var(--text-muted); margin-bottom: 24px; }
.contact-details { display: grid; gap: 16px; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); font-size: .9rem;
}
.contact-form {
  display: flex; flex-direction: column; gap: 12px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 16px; border-radius: 10px;
  background: #0f0f1e; border: 1px solid var(--border);
  color: #fff; font-family: inherit; font-size: .9rem;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form .btn { align-self: flex-start; }

/* ====== FOOTER ====== */
.footer {
  padding: 60px 24px 24px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px; margin:0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-brand p { color: var(--text-dim); font-size: .85rem; margin-top: 12px; max-width: 280px; }
.footer-links h4 {
  font-size: .85rem; font-weight: 600; color: #fff;
  margin-bottom: 16px; text-transform: uppercase;
  letter-spacing: .05em;
}
.footer-links a {
  display: block; color: var(--text-dim);
  font-size: .85rem; padding: 4px 0;
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin:0 auto;
  display: flex; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--text-dim);
}
.footer-made { color: rgba(255,77,0,.5); }

/* ====== CART SIDEBAR ====== */
.cart-overlay {
  position: fixed; inset:0; z-index:2000;
  background: rgba(0,0,0,.6);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed; top:0; right:0; bottom:0; z-index:2001;
  width: 400px; max-width: 90vw;
  background: #12121e; border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.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(--border);
}
.cart-header h3 { font-size: 1.1rem; color: #fff; }
.cart-header button {
  background: none; border: none; color: var(--text-muted);
  padding: 4px; border-radius: 6px; transition: color .2s;
}
.cart-header button:hover { color: #fff; }
.cart-items {
  flex:1; overflow-y: auto; padding: 16px 24px;
}
.cart-empty {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  padding: 60px 0; color: var(--text-dim);
}
.cart-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.cart-item-img {
  width: 60px; height: 60px; border-radius: 8px;
  background: #0d0d1a; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-img svg { width: 70%; height: 70%; opacity: .5; }
.cart-item-info { flex:1; min-width: 0; }
.cart-item-name { font-size: .9rem; font-weight: 500; color: #fff; margin-bottom: 4px; }
.cart-item-price { font-size: .85rem; color: var(--accent); font-weight: 600; }
.cart-item-qty {
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
}
.cart-item-qty button {
  width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.cart-item-qty button:hover {
  border-color: var(--accent); color: #fff;
}
.cart-item-qty span { font-size: .9rem; color: #fff; min-width: 20px; text-align: center; }
.cart-item-remove {
  background: none; border: none; color: var(--text-dim);
  padding: 4px; align-self: flex-start;
  transition: color .2s;
}
.cart-item-remove:hover { color: #d7141a; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.cart-total {
  display: flex; justify-content: space-between;
  font-size: 1.1rem; font-weight: 600; color: #fff;
  margin-bottom: 8px;
}
.cart-total-price { color: var(--accent); }
.btn-cart-checkout { justify-content: center; width: 100%; }
.btn-cart-clear { justify-content: center; width: 100%; }
.btn-cart-clear:hover { color: #d7141a; }

/* ====== PRODUCT MODAL ====== */
.modal-overlay {
  position: fixed; inset:0; z-index:3000;
  background: rgba(0,0,0,.7);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  position: fixed; top:50%; left:50%; z-index:3001;
  transform: translate(-50%,-50%) scale(.9);
  width: 90%; max-width: 600px; max-height: 85vh;
  background: #12121e; border: 1px solid var(--border);
  border-radius: 20px; overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: all .35s cubic-bezier(.16,1,.3,1);
}
.modal.open { opacity: 1; pointer-events: all; transform: translate(-50%,-50%) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index:10;
  background: rgba(255,255,255,.05); border: none;
  color: var(--text-muted); padding: 8px; border-radius: 8px;
  transition: all .2s;
}
.modal-close:hover { background: rgba(255,77,0,.1); color: #fff; }
.modal-content { padding: 32px; }
.modal-product-image {
  width: 100%; height: 240px;
  background: #0d0d1a; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.modal-product-image svg { width: 50%; height: 50%; opacity: .8; }
.modal-product-category {
  font-size: .75rem; color: var(--accent); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px;
}
.modal-product-name {
  font-size: 1.4rem; font-weight: 700; color: #fff;
  margin-bottom: 12px;
}
.modal-product-desc {
  font-size: .9rem; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 16px;
}
.modal-product-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem; font-weight: 700; color: var(--accent);
  margin-bottom: 20px;
}
.modal-product-stock {
  color: #00b894; font-size: .85rem;
  display: flex; align-items: center; gap: 6px; margin-bottom: 20px;
}
.modal-add-btn {
  width: 100%; padding: 14px;
  border-radius: 10px; border: none;
  background: linear-gradient(135deg, #ff4d00, #e04400);
  color: #fff; font-size: 1rem; font-weight: 600;
  transition: all .25s;
}
.modal-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.modal-add-btn.in-cart { background: #00b894; }

/* ====== TOAST ====== */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index:5000;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 20px; border-radius: 10px;
  background: #1a1a2e; border: 1px solid var(--border);
  color: #fff; font-size: .9rem;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  animation: toastIn .3s ease-out;
  max-width: 360px;
}
.toast.success { border-color: #00b894; }
.toast.error { border-color: #d7141a; }
.toast.info { border-color: var(--accent); }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left:0; right:0;
    background: rgba(10,10,18,.98); padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }
  .hero-car { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}
