:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --text: #1a1a1a;
  --muted: #6b7280;
  --primary: #ff3d00;
  --primary-dark: #d63100;
  --accent: #1f2937;
  --border: #e5e7eb;
  --success: #10b981;
  --danger: #ef4444;
  --shadow: 0 4px 14px rgba(0,0,0,.06);
  --radius: 10px;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex; align-items: center;
}
.header-inner {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 22px;
  color: var(--text);
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #ff8a00);
  display: grid; place-items: center;
  color: #fff; font-weight: 800;
}
.brand span { letter-spacing: -0.5px; }

.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--text);
  position: relative; padding: 6px 0;
  transition: color .2s;
}
.nav a:hover { color: var(--primary); }
.nav a.active { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 8px;
  position: relative;
  transition: background .15s;
}
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  display: grid; place-items: center;
}

.menu-toggle { display: none; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #0f1115 0%, #1a1d24 60%, #2a1810 100%);
  color: #fff;
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255,61,0,.25), transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; }
.hero h1 .accent { color: var(--primary); }
.hero p { color: #cdd0d6; font-size: 18px; margin-bottom: 32px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image { aspect-ratio: 1/1; border-radius: 24px; overflow: hidden; background: rgba(255,255,255,.04); display: grid; place-items: center; padding: 30px; }
.hero-image img { width: 100%; height: 100%; object-fit: contain; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600; font-size: 15px;
  transition: transform .1s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(.98); }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--text); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-block { width: 100%; padding: 16px 24px; font-size: 16px; }

/* SECTION */
section { padding: 70px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 36px; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.5px; }
.section-head p { color: var(--muted); margin-top: 6px; }
.section-head .link { color: var(--primary); font-weight: 600; font-size: 15px; }

/* FEATURES STRIP */
.features-strip {
  background: var(--bg-alt);
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature {
  display: flex; align-items: center; gap: 14px;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: #fff; display: grid; place-items: center; flex-shrink: 0;
  box-shadow: var(--shadow);
}
.feature-icon svg { width: 22px; height: 22px; color: var(--primary); }
.feature-text strong { display: block; font-size: 14px; }
.feature-text span { font-size: 13px; color: var(--muted); }

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  border-color: transparent;
}
.product-thumb {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--bg-alt);
  overflow: hidden;
}
.product-thumb img {
  width: 100%; height: 100%; object-fit: contain; padding: 18px;
  transition: transform .35s;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 5px 10px; border-radius: 6px;
  text-transform: uppercase;
}
.product-body {
  padding: 18px;
  display: flex; flex-direction: column; flex: 1;
}
.product-title {
  font-size: 15px; font-weight: 600; line-height: 1.35;
  min-height: 42px;
  margin-bottom: 10px;
}
.product-rating {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted);
  margin-bottom: 10px;
}
.stars { color: #facc15; letter-spacing: 1px; font-size: 14px; }
.product-price {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
  margin-top: auto;
}
.price-now { font-size: 20px; font-weight: 700; color: var(--text); }
.price-was { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.price-off {
  font-size: 12px; font-weight: 700; color: var(--primary);
  background: rgba(255,61,0,.1); padding: 2px 8px; border-radius: 4px;
}
.add-btn {
  background: var(--text); color: #fff;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s;
}
.add-btn:hover { background: var(--primary); }
.add-btn svg { width: 16px; height: 16px; }

/* PRODUCT PAGE */
.breadcrumb {
  padding: 18px 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }
.breadcrumb .current { color: var(--text); }

.product-detail { padding: 16px 0 60px; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
}
.gallery {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
}
.gallery-thumbs {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 560px; overflow-y: auto;
}
.gallery-thumbs button {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  background: var(--bg-alt);
  aspect-ratio: 1/1;
  width: 90px;
  transition: border-color .15s;
}
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main {
  background: var(--bg-alt);
  border-radius: 14px;
  aspect-ratio: 1/1;
  display: grid; place-items: center;
  overflow: hidden;
  padding: 30px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }

.product-info h1 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2; letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.product-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 14px; color: var(--muted);
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.product-meta .stars { font-size: 16px; }
.detail-price {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.detail-price .price-now { font-size: 32px; }
.detail-price .price-was { font-size: 18px; }
.tax-note { color: var(--muted); font-size: 13px; margin-bottom: 26px; }

.product-options { margin-bottom: 24px; }
.option-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; display: block; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.qty button { width: 40px; height: 44px; font-size: 18px; color: var(--text); }
.qty button:hover { background: var(--bg-alt); }
.qty input {
  width: 56px; height: 44px;
  border: none; outline: none;
  text-align: center; font-size: 16px; font-weight: 600;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cta-row { display: flex; gap: 12px; margin-bottom: 28px; }
.cta-row .btn { flex: 1; }

.guarantees {
  background: var(--bg-alt); border-radius: 12px; padding: 18px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-bottom: 30px;
}
.guarantee { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.guarantee svg { width: 22px; height: 22px; color: var(--success); flex-shrink: 0; }

.product-tabs { margin-top: 60px; }
.tab-buttons { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 30px; flex-wrap: wrap; }
.tab-buttons button {
  padding: 14px 22px; font-size: 15px; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tab-buttons button.active { color: var(--text); border-color: var(--primary); }
.tab-content { display: none; max-width: 880px; }
.tab-content.active { display: block; }
.tab-content h3 { font-size: 20px; margin: 24px 0 12px; }
.tab-content p { margin-bottom: 14px; color: #374151; }
.tab-content ul { padding-left: 22px; margin-bottom: 16px; }
.tab-content ul li { margin-bottom: 8px; color: #374151; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 12px 8px; font-size: 14px; }
.spec-table td:first-child { font-weight: 600; width: 38%; color: var(--muted); }

/* CART DRAWER */
.cart-drawer-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.cart-drawer-bg.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 420px;
  background: #fff; z-index: 201;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,.12);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 18px; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-item {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img { background: var(--bg-alt); border-radius: 8px; aspect-ratio: 1/1; padding: 6px; }
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-title { font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.cart-item-meta { font-size: 13px; color: var(--muted); }
.cart-item-remove { color: var(--danger); font-size: 12px; margin-top: 4px; }
.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.cart-total .amount { color: var(--primary); }

/* FOOTER */
.site-footer {
  background: #0f1115; color: #b8bcc4;
  padding: 56px 0 28px;
  margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }
.footer-grid a:hover { color: var(--primary); }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; margin-bottom: 14px; max-width: 320px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: grid; place-items: center;
  transition: background .15s;
}
.social a:hover { background: var(--primary); }
.social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px;
}

/* TOAST */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--text); color: #fff;
  padding: 14px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  z-index: 250;
  transform: translateY(100px); opacity: 0;
  transition: transform .25s, opacity .25s;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 20px; height: 20px; color: var(--success); }

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs {
    flex-direction: row; max-height: none; overflow-x: auto;
  }
  .gallery-thumbs button { width: 70px; flex-shrink: 0; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 10px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .menu-toggle { display: grid; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
  .product-card .product-body { padding: 14px; }
  .product-title { font-size: 14px; min-height: 38px; }
  .price-now { font-size: 18px; }
  section { padding: 50px 0; }
}
