/* styles.css - Black & Gold shared styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
  --bg: #000;
  --gold: #f9e27d;
  --gold-2: #f7d34c;
  --muted: #9b9b9b;
  --accent: linear-gradient(90deg, var(--gold), var(--gold-2));
  --radius: 15px;

  /* header height used for anchor/scroll offset; JS updates this at runtime */
  --header-height: 68px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--gold);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* If you have standalone pages (FAQ) that use .wrap, this prevents the sticky
   header from covering anchor-targeted content. */
.wrap {
  /* small top offset to account for sticky header + visual breathing room */
  padding-top: calc(var(--header-height) + 24px);
}

/* ===== Sticky Header ===== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(249, 226, 125, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

/* --- header-aware anchor padding (prevents content being hidden under sticky header) --- */
:root {
  /* keep this, it's updated by JS too */
  --header-height: 68px;
}
/* make anchor jumps respect header height */
html { scroll-padding-top: calc(var(--header-height) + 12px); }
/* main content safety margin for focused/anchored elements */
main[role="main"], .faq-wrap { scroll-margin-top: calc(var(--header-height) + 12px); }

/* Logo */
.logo a {
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(249, 226, 125, 0.4);
}
.logo span { color: var(--gold-2); }

/* Icons */
.icon-btn {
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0.25rem;
}
.icon-btn:hover {
  color: var(--gold-2);
  transform: scale(1.12);
}
.header-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-self: end;
}
.menu-btn { font-size: 1.5rem; justify-self: start; }
.logo { justify-self: center; }

/* Mobile Header tweaks */
@media (max-width: 768px) {
  .logo a { font-size: 1.5rem; }
  .icon-btn { font-size: 1.1rem; }
  .header-container { padding: 0.65rem 0.9rem; }
}

/* ===== Mobile Nav Drawer ===== */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100vh;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.6);
  transition: left 0.35s ease;
  z-index: 1200;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-nav.open { left: 0; }

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1100;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.close-nav {
  align-self: flex-end;
  font-size: 1.4rem;
  color: var(--gold);
}
.mobile-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu a {
  color: var(--gold);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.25s ease;
}
.mobile-menu a:hover { color: var(--gold-2); }

/* Small button inside menu */
.mobile-menu .btn.small {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  text-align: center;
}

/* ===== Hero Section ===== */
.header {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #000 0%, #111 40%, #0a0a0a 100%);
}
.header h1 {
  font-size: 3.2rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 18px rgba(249, 226, 125, 0.28);
}
.header p {
  color: #cfcfcf;
  max-width: 760px;
  margin-bottom: 1rem;
}
.hero-btn {
  background: var(--accent);
  color: #0b0b0b;
  padding: 0.9rem 1.8rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
}

/* ===== Category Filters (scrollable) ===== */
.category-filters {
  background-color: #000;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem auto 3rem auto;
  padding: 1rem 1rem 1rem 1.4rem;
  border-top: 1px solid rgba(249, 226, 125, 0.1);
  border-bottom: 1px solid rgba(249, 226, 125, 0.1);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.category-filters::-webkit-scrollbar { display: none; }

.filter-btn {
  scroll-snap-align: start;
  background: transparent;
  border: 1px solid rgba(249, 226, 125, 0.3);
  color: var(--gold);
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-btn:hover {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 0 15px rgba(249, 226, 125, 0.4);
  transform: translateY(-2px);
}
.filter-btn.active {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 0 20px rgba(249, 226, 125, 0.3);
  border: 1px solid rgba(249, 226, 125, 0.6);
}

/* ===== Product Cards ===== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.4rem;
  padding: 3.2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.card {
  background: linear-gradient(180deg, #111, #090909);
  border-radius: 12px;
  padding: 1.6rem;
  border: 1px solid rgba(249, 226, 125, 0.12);
  text-align: center;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.card h3 { color: var(--gold); margin-bottom: 0.4rem; }
.card p { color: #ccc; margin-bottom: 1rem; }
.card .btn {
  background: var(--accent);
  color: #0a0a0a;
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* ===== Product Page Layout ===== */
.container {
  max-width: 1100px;
  margin: 2.8rem auto;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  align-items: flex-start;
}
.product-image {
  flex: 1 1 440px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(249, 226, 125, 0.12);
}
.product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.product-meta { flex: 1 1 420px; min-width: 280px; }
.product-meta h1 {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.product-meta p { color: #ccc; margin-bottom: 1rem; }
.price {
  font-size: 1.6rem;
  color: var(--gold-2);
  margin-bottom: 0.8rem;
}
.buy-btn {
  background: var(--accent);
  color: #0a0a0a;
  padding: 0.9rem 1.6rem;
  border-radius: 40px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/* ===== Reviews ===== */
.reviews {
  max-width: 1100px;
  margin: 0 auto 5rem auto;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(249, 226, 125, 0.15);
}
.reviews h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--gold);
}
.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.review {
  background: linear-gradient(180deg, #111 0%, #090909 100%);
  border: 1px solid rgba(249, 226, 125, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}
.review h4 { color: var(--gold); font-size: 1.1rem; margin-bottom: 0.5rem; }
.review p { color: #ccc; font-size: 0.95rem; line-height: 1.6; }

/* ===== Add Review Form ===== */
.add-review {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(249, 226, 125, 0.1);
}
.add-review h3 { margin-bottom: 1.5rem; color: var(--gold); }
form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
input, textarea {
  background: #111;
  border: 1px solid rgba(249, 226, 125, 0.2);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--gold);
  font-size: 1rem;
}
textarea { height: 120px; resize: none; }
form button {
  align-self: center;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  cursor: pointer;
}
form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(249, 226, 125, 0.36);
}

/* ===== FAQ / Accordion helpers (safe defaults used by faq.html) ===== */

/* accordion item container */
.accordion-item {
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.03);
  margin-bottom: 12px;
  transition: box-shadow .28s, border-color .18s;
}

/* open state */
.accordion-item.open {
  box-shadow: 0 10px 30px rgba(212,175,55,0.06);
  border-color: var(--gold-2);
}

/* header button inside each accordion */
.acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 18px;
  font-size: 16px;
  color: var(--gold);
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  outline: 0;
}

/* little icon on the right side */
.acc-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.03);
  transition: transform .25s, background .2s, color .2s;
  color: var(--gold);
  font-weight: 700;
}

/* icon when open */
.accordion-item.open .acc-icon {
  transform: rotate(45deg);
  background: linear-gradient(180deg, rgba(247,211,92,0.06), transparent);
  color: var(--gold-2);
  border-color: var(--gold-2);
}

/* content area - allow internal scrolling and smooth height animation */
.acc-content {
  max-height: 0;
  overflow: auto; /* allow scrolling for long answers */
  -webkit-overflow-scrolling: touch;
  padding: 0 18px;
  transition: max-height .36s cubic-bezier(.2,.9,.3,1), padding .28s;
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.6;
}
.accordion-item.open .acc-content { padding: 12px 18px 18px 18px; }

/* subtle divider used in faq card */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.06), transparent);
  margin: 20px 0;
  border-radius: 2px;
}

/* small helper inside faq */
.support {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(249, 226, 125, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 0 18px rgba(249, 226, 125, 0.08);
}

.support .badge {
  background: radial-gradient(circle at 30% 30%, var(--gold-2), var(--gold));
  color: #111;
  padding: 5px 12px;
  border-radius: 999px; /* pill shape, not a perfect circle */
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
  box-shadow: 0 0 10px rgba(249, 226, 125, 0.35);
  transition: all 0.25s ease;
}

.support .badge:hover {
  box-shadow: 0 0 16px rgba(249, 226, 125, 0.5);
  transform: translateY(-1px);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #999;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.small { font-size: 0.95rem; color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .header { height: auto; padding: 3rem 1rem; }
  .container { flex-direction: column; padding: 1.2rem; }
  .product-image { width: 100%; }

  /* mobile: make sure mobile nav occupies right size */
  .mobile-nav { width: 78vw; left: -100vw; }
  .mobile-nav.open { left: 0; }
}