/* ========== CSS VARIABLES ========== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a25;
  --bg-card-hover: #22222f;
  --text-primary: #f0f0f5;
  --text-secondary: #9999aa;
  --text-muted: #666677;
  --accent: #c9a84c;
  --accent-light: #e0c06a;
  --accent-dark: #a08030;
  --border: #2a2a35;
  --shadow: rgba(0,0,0,0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-height: 60px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; font-family: var(--font); }
ul { list-style: none; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  transition: var(--transition);
}
.nav-logo {
  font-size: 1.2rem; font-weight: 700; letter-spacing: 0.5px;
  color: var(--accent);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--text-primary); font-weight: 400; }
.nav-logo-img {
  height: 36px; width: auto; object-fit: contain;
  display: block;
  filter: brightness(1.1);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition); letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--accent); }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; padding: 4px;
}
.menu-toggle span {
  width: 22px; height: 2px; background: var(--text-primary);
  transition: var(--transition); border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(20px);
  padding: 20px 24px; flex-direction: column; gap: 16px;
  border-bottom: 1px solid var(--border);
  transform: translateY(-10px); opacity: 0;
  transition: var(--transition);
}
.mobile-nav.active { display: flex; transform: translateY(0); opacity: 1; }
.mobile-nav a {
  font-size: 1rem; color: var(--text-secondary); padding: 8px 0;
  border-bottom: 1px solid var(--border); transition: var(--transition);
}
.mobile-nav a:hover { color: var(--accent); }

/* ========== HERO ========== */
.hero {
  position: relative; width: 100%;
  min-height: 85vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-top: var(--nav-height);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1025 40%, #0f0a1a 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(100,80,200,0.06) 0%, transparent 50%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 60px 24px;
  max-width: 700px;
}
.hero-badge {
  display: inline-block; padding: 6px 18px;
  background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.25);
  border-radius: 50px; font-size: 0.75rem; font-weight: 600;
  color: var(--accent); letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease both;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s 0.15s ease both;
}
.hero p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary); max-width: 500px; margin: 0 auto 32px;
  animation: fadeInUp 0.8s 0.3s ease both;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; background: var(--accent);
  color: #0a0a0f; font-weight: 700; font-size: 0.9rem;
  border-radius: 50px; letter-spacing: 0.5px;
  transition: var(--transition);
  animation: fadeInUp 0.8s 0.45s ease both;
}
.hero-cta:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.3); }
.hero-cta svg { width: 18px; height: 18px; }

/* Floating particles */
.hero-particles {
  position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none;
}
.particle {
  position: absolute; width: 3px; height: 3px;
  background: rgba(201,168,76,0.3); border-radius: 50%;
  animation: float-particle 8s infinite ease-in-out;
}

@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-60px) scale(1.5); opacity: 0.8; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== SECTION ========== */
.section { padding: 60px 20px; max-width: 1280px; margin: 0 auto; }
.section-header {
  text-align: center; margin-bottom: 40px;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700;
  margin-bottom: 8px;
}
.section-header p { color: var(--text-secondary); font-size: 0.95rem; }
.section-divider {
  width: 50px; height: 3px; background: var(--accent);
  margin: 12px auto 0; border-radius: 2px;
}

/* ========== PRODUCT GRID ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--accent-dark); box-shadow: 0 12px 40px var(--shadow); }
.product-card:active { transform: scale(0.98); }

.card-img-wrap {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--bg-secondary);
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .card-img-wrap img { transform: scale(1.08); }
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0; transition: var(--transition);
}
.product-card:hover .card-overlay { opacity: 1; }
.card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px; text-align: center;
}
.card-label span {
  font-size: 0.8rem; font-weight: 600; color: var(--text-primary);
  background: rgba(0,0,0,0.5); padding: 4px 12px;
  border-radius: 20px; backdrop-filter: blur(8px);
}

/* Skeleton */
.skeleton-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
}
.skeleton-img {
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card-hover) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Load More */
.load-more-wrap { text-align: center; margin-top: 40px; }
.btn-load-more {
  padding: 14px 40px; background: transparent;
  border: 1px solid var(--accent); color: var(--accent);
  font-weight: 600; font-size: 0.9rem; border-radius: 50px;
  transition: var(--transition); letter-spacing: 0.3px;
}
.btn-load-more:hover { background: var(--accent); color: var(--bg-primary); }
.btn-load-more:disabled { opacity: 0.4; cursor: not-allowed; }

/* Product count */
.product-count {
  text-align: center; margin-bottom: 20px;
  font-size: 0.85rem; color: var(--text-muted);
}

/* ========== FOOTER ========== */
.footer {
  margin-top: 60px; padding: 40px 24px;
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  text-align: center;
}
.footer-logo { font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.footer-logo-img {
  height: 44px; width: auto; object-fit: contain;
  margin: 0 auto 12px; display: block;
  filter: brightness(1.1);
}
.footer p { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-top: 16px; }
.footer-links a { font-size: 0.8rem; color: var(--text-secondary); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }

/* ========== SCROLL TO TOP ========== */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition); box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-light); transform: translateY(-2px); }
.scroll-top svg { width: 20px; height: 20px; }

/* ========== PRODUCT DETAIL PAGE ========== */
.detail-page { margin-top: var(--nav-height); padding: 20px; max-width: 1100px; margin-left: auto; margin-right: auto; }

/* Back button */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; font-size: 0.85rem; color: var(--text-secondary);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 50px; transition: var(--transition); margin-bottom: 20px;
}
.back-btn:hover { color: var(--accent); border-color: var(--accent-dark); }
.back-btn svg { width: 16px; height: 16px; }

/* Detail layout */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

/* Gallery */
.gallery-main {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card); border: 1px solid var(--border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }

.gallery-thumbs {
  display: flex; gap: 8px; margin-top: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -ms-overflow-style: none; scrollbar-width: none;
  padding-bottom: 4px;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  flex-shrink: 0; width: 64px; height: 64px;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid var(--border); cursor: pointer;
  scroll-snap-align: start; transition: var(--transition);
  background: var(--bg-secondary);
}
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Gallery nav arrows */
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); transition: var(--transition); z-index: 5;
  border: 1px solid rgba(255,255,255,0.1);
}
.gallery-nav:hover { background: var(--accent); color: var(--bg-primary); }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-nav svg { width: 18px; height: 18px; }

/* Detail info panel */
.detail-info { padding: 8px 0; }
.detail-id {
  font-size: 0.75rem; font-weight: 600; color: var(--accent);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px;
}
.detail-title {
  font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; line-height: 1.3;
}
.detail-desc {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px;
}
.detail-features { margin-bottom: 24px; }
.detail-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-secondary);
}
.detail-features li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* WhatsApp CTA */
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; background: #25d366; color: #fff;
  font-weight: 700; font-size: 0.9rem; border-radius: 50px;
  transition: var(--transition); width: 100%; justify-content: center;
}
.whatsapp-btn:hover { background: #20bd5a; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,0.3); }
.whatsapp-btn svg { width: 20px; height: 20px; }

/* Sticky mobile WhatsApp */
.whatsapp-sticky {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  padding: 12px 16px; background: rgba(10,10,15,0.95);
  backdrop-filter: blur(16px); border-top: 1px solid var(--border);
}
.whatsapp-sticky .whatsapp-btn { width: 100%; }

/* Related products */
.related-section { margin-top: 50px; }
.related-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}

/* ========== MOBILE SLIDER ========== */
.mobile-slider {
  display: none; position: relative; overflow: hidden;
  border-radius: var(--radius); background: var(--bg-card);
  touch-action: pan-y; border: 1px solid var(--border);
}
.slider-track {
  display: flex; transition: transform 0.35s ease;
  will-change: transform;
}
.slider-slide {
  flex-shrink: 0; width: 100%; aspect-ratio: 1/1;
}
.slider-slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 10px 0;
  position: absolute; bottom: 8px; left: 0; right: 0;
}
.slider-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.35); transition: var(--transition);
  border: none;
}
.slider-dot.active { background: var(--accent); width: 20px; border-radius: 4px; }

/* Image counter badge */
.img-counter {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.6); color: #fff;
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 600;
  backdrop-filter: blur(8px); z-index: 5;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  
  .hero { min-height: 60vh; }
  .hero-content { padding: 40px 20px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.9rem; margin-bottom: 24px; }
  .hero-cta { padding: 12px 28px; font-size: 0.85rem; }

  .section { padding: 40px 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  
  .detail-layout { grid-template-columns: 1fr; gap: 16px; }
  .gallery-main { display: none; }
  .gallery-thumbs { display: none; }
  .mobile-slider { display: block; }
  
  .detail-info { padding: 4px 0; }
  .detail-title { font-size: 1.2rem; margin-bottom: 12px; }
  
  .whatsapp-btn.desktop-wa { display: none; }
  .whatsapp-sticky { display: block; }
  
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  
  .footer { padding: 30px 16px; margin-top: 40px; }
  .scroll-top { bottom: 70px; }
}

/* Small mobile */
@media (max-width: 480px) {
  :root { --nav-height: 54px; }
  .navbar { padding: 0 16px; }
  .nav-logo { font-size: 1rem; }
  .nav-logo-img { height: 30px; }
  
  .hero { min-height: 50vh; }
  .hero-content { padding: 30px 16px; }
  .hero-badge { font-size: 0.65rem; padding: 5px 14px; margin-bottom: 16px; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.82rem; }
  
  .section { padding: 30px 10px; }
  .section-header h2 { font-size: 1.3rem; }
  .product-grid { gap: 8px; }
  
  .card-label span { font-size: 0.7rem; padding: 3px 8px; }
  .gallery-thumb { width: 52px; height: 52px; }
  .detail-title { font-size: 1.1rem; }
  .detail-desc { font-size: 0.82rem; }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
