/* Product detail pages */
:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --card: #1c1c1f;
  --border: #2a2a2e;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #f97316;
  --neon: #a3e635;
  --green: #25D366;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1100px, 94%);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo span { color: var(--accent); }

.nav-links a {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--muted);
  margin-left: 1rem;
}

.nav-links a:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
}

.btn:hover { opacity: 0.9; }
.btn-wa { background: var(--green); color: #000; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.product {
  padding: 2rem 0 4rem;
}

.back {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.back:hover { color: var(--accent); }

.product-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.main-img {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
}

.main-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
}

.thumbs img {
  height: 72px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
}

.thumbs img:hover,
.thumbs img.active {
  border-color: var(--accent);
}

.info h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.tag {
  display: inline-block;
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--neon);
  margin: 1rem 0 0.5rem;
}

.old {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 0.5rem;
  font-weight: 500;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.meta span {
  background: var(--surface);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.desc {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

.contact-box h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.contact-box p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.contact-box a { color: var(--accent); }

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a { color: var(--accent); }

.footer-line { margin-top: 0.4rem; }
.footer-copy { margin-top: 0.5rem; font-size: 0.8rem; }

/* ========== PRODUCT RESPONSIVE ========== */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .main-img img { height: 340px; }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links a {
    margin-left: 0;
    margin-right: 0.85rem;
    white-space: nowrap;
    font-size: 0.88rem;
  }
  .product { padding: 1.25rem 0 3rem; }
  .main-img img { height: 260px; }
  .thumbs {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  }
  .thumbs img { height: 64px; }
  .info h1 { font-size: 1.25rem; }
  .price { font-size: 1.6rem; }
  .actions {
    flex-direction: column;
  }
  .actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .main-img img { height: 220px; }
  .container { width: 92%; }
  input, select, textarea { font-size: 16px; }
}

@media (hover: none) and (pointer: coarse) {
  .thumbs img { min-height: 48px; }
  .btn { min-height: 44px; }
}
