/* ========== FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ========== ROOT VARIABLES – Black & Gold ========== */
:root {
  --bg: #0A0A0A;
  --bg-card: #141414;
  --bg-elevated: #1F1F1F;
  --gold: #D4AF37;
  --gold-light: #F5E6B8;
  --gold-dark: #B4941E;
  --accent: #C9A84C;
  --text: #F5F5F5;
  --text-muted: #B0B0B0;
  --border: #2A2A2A;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.8);
  --shadow-md: 0 8px 20px rgba(0,0,0,0.6);
  --shadow-lg: 0 15px 35px rgba(0,0,0,0.8);
  --shadow-xl: 0 25px 50px rgba(0,0,0,0.9);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.8rem;
  padding-right: 1.8rem;
}

/* ========== UTILITIES ========== */
.text-center { text-align:center; }
.mt-1 { margin-top:1rem; }
.mt-2 { margin-top:2rem; }
.mb-2 { margin-bottom:2rem; }
.hidden { display:none !important; }
.flex { display:flex; gap:1rem; flex-wrap:wrap; }
.grid { display:grid; gap:1.8rem; }

/* ========== BUTTONS ========== */
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0.8rem 2.2rem;
  border-radius:50px;
  font-weight:600;
  font-size:0.95rem;
  cursor:pointer;
  transition:all var(--transition);
  border:1px solid transparent;
  text-transform:uppercase;
  letter-spacing:0.05em;
  white-space:nowrap;
  gap:0.5rem;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0A0A0A;
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}
.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(212,175,55,0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: #0A0A0A;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
}

.btn-sm { padding:0.5rem 1.4rem; font-size:0.8rem; }
.btn-lg { padding:1rem 2.8rem; font-size:1.1rem; }

/* ========== NAVBAR ========== */
.navbar {
  position: sticky;
  top:0;
  z-index:100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  border-bottom:1px solid rgba(212,175,55,0.2);
}
.nav-container {
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:75px;
}
.logo {
  font-family: var(--font-heading);
  font-size:1.8rem;
  font-weight:700;
  color: var(--gold);
  display:flex;
  align-items:center;
  gap:0.5rem;
}
.nav-links {
  display:flex;
  gap:2.5rem;
  list-style:none;
  align-items:center;
}
.nav-links a {
  font-weight:500;
  color: var(--text-muted);
  position:relative;
  padding:0.5rem 0;
  transition:color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}
.mobile-toggle {
  display:none;
  font-size:1.5rem;
  color: var(--gold);
  cursor:pointer;
}

/* ========== HERO ========== */
.hero {
  position:relative;
  overflow:hidden;
  background: radial-gradient(circle at 30% 20%, rgba(212,175,55,0.12), transparent 60%);
  padding:7rem 0;
  text-align:center;
}
.hero-badge {
  display:inline-block;
  background: rgba(212,175,55,0.15);
  color: var(--gold);
  padding:0.4rem 1.8rem;
  border-radius: 30px;
  font-weight:600;
  font-size:0.9rem;
  margin-bottom:2rem;
  backdrop-filter: blur(5px);
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 7vw, 5rem);
  font-weight:800;
  line-height:1.1;
  margin-bottom:1.8rem;
  color: #FFFFFF;
  letter-spacing:-1px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size:1.25rem;
  color: var(--text-muted);
  max-width:650px;
  margin:0 auto 3rem;
}
.hero-actions { display:flex; gap:1.5rem; justify-content:center; flex-wrap:wrap; }

/* ========== SECTIONS ========== */
.section { padding:6rem 0; }
.section-header {
  text-align:center;
  margin-bottom:4rem;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size:2.8rem;
  font-weight:700;
  margin-bottom:1rem;
  color: #FFFFFF;
}
.section-header p { color: var(--text-muted); font-size:1.2rem; max-width:650px; margin:0 auto; }

/* ========== PRODUCT CARDS ========== */
.card-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px,1fr));
  gap:2rem;
}
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--border);
  transition:all 0.35s;
  display:flex;
  flex-direction:column;
}
.product-card:hover {
  transform:translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(212,175,55,0.1);
}
.card-img {
  position:relative;
  height:220px;
  overflow:hidden;
}
.card-img img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform 0.5s;
}
.product-card:hover .card-img img { transform:scale(1.08); }
.badge {
  position:absolute;
  top:1rem;
  left:1rem;
  padding:0.3rem 1.2rem;
  border-radius:20px;
  font-weight:700;
  font-size:0.75rem;
  text-transform:uppercase;
  z-index:2;
  backdrop-filter:blur(6px);
}
.badge.sale { background: var(--gold); color:#0A0A0A; }
.badge.popular { background: #2E2E2E; color: var(--gold); border:1px solid var(--gold); }
.badge.featured { background: #1A1A1A; color: var(--gold-light); border:1px solid var(--gold); }

.card-body { padding:1.5rem; flex:1; display:flex; flex-direction:column; }
.card-body h3 { font-size:1.3rem; font-weight:600; margin-bottom:0.3rem; }
.card-body p { color: var(--text-muted); font-size:0.9rem; margin-bottom:1rem; flex:1; }

.price-row { display:flex; align-items:baseline; gap:0.75rem; margin-bottom:1rem; }
.price-current { font-size:1.6rem; font-weight:700; color: var(--gold); }
.price-old { text-decoration:line-through; color: var(--text-muted); font-size:1rem; }

.whatsapp-order {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0.5rem;
  background: #25D366;
  color:white;
  padding:0.8rem;
  border-radius:50px;
  font-weight:600;
  transition:background 0.2s;
  margin-top:auto;
}
.whatsapp-order:hover { background: #128C7E; color:white; }

/* ========== FEATURES GRID ========== */
.features-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px,1fr));
  gap:2rem;
}
.feature-card {
  background: var(--bg-card);
  padding:2rem;
  border-radius: var(--radius-lg);
  border:1px solid var(--border);
  transition:all var(--transition);
  text-align:center;
}
.feature-card:hover { border-color: var(--gold); transform:translateY(-5px); }
.feature-icon { font-size:2.5rem; color: var(--gold); margin-bottom:1.2rem; }
.feature-card h3 { font-size:1.4rem; margin-bottom:0.7rem; }
.feature-card p { color: var(--text-muted); }

/* ========== TESTIMONIALS ========== */
.testimonial-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px,1fr));
  gap:2rem;
}
.testimonial-card {
  background: var(--bg-card);
  padding:2rem;
  border-radius: var(--radius-lg);
  border:1px solid var(--border);
  font-style:italic;
}
.testimonial-card .author {
  display:flex;
  align-items:center;
  gap:1rem;
  margin-top:1.5rem;
  font-style:normal;
}
.testimonial-card .author img {
  width:50px;
  height:50px;
  border-radius:50%;
  border:2px solid var(--gold);
}

/* ========== FAQ ========== */
.faq-list {
  max-width:800px;
  margin:0 auto;
}
.faq-item {
  background: var(--bg-card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom:1rem;
  padding:1.2rem 1.8rem;
  cursor:pointer;
  transition:all var(--transition);
}
.faq-item:hover { border-color: var(--gold); }
.faq-question {
  font-weight:600;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.faq-answer { margin-top:1rem; color: var(--text-muted); display:none; }
.faq-item.open .faq-answer { display:block; }

/* ========== CATEGORY PILLS ========== */
.categories-gallery {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:1rem;
}
.category-pill {
  padding:0.8rem 2.2rem;
  border-radius:50px;
  background: var(--bg-card);
  border:1px solid var(--border);
  font-weight:600;
  color: var(--text-muted);
  transition:all var(--transition);
  cursor:pointer;
}
.category-pill:hover,
.category-pill.active {
  background: var(--gold);
  color: #0A0A0A;
  border-color: var(--gold);
}

/* ========== FOOTER ========== */
.footer {
  background: #050505;
  color: var(--text-muted);
  padding:4rem 0 2rem;
  margin-top:5rem;
}
.footer-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px,1fr));
  gap:3rem;
}
.footer h5 {
  font-family: var(--font-heading);
  color: var(--gold);
  margin-bottom:1.2rem;
  font-size:1.2rem;
}
.footer a {
  color: var(--text-muted);
  display:block;
  margin-bottom:0.6rem;
}
.footer a:hover { color: var(--gold); }
.footer-bottom {
  text-align:center;
  padding-top:2rem;
  margin-top:2rem;
  border-top:1px solid var(--border);
  color: #777;
  font-size:0.9rem;
}

/* ========== FLOATING WHATSAPP ========== */
.floating-wa {
  position:fixed;
  bottom:2rem;
  right:2rem;
  background: #25D366;
  color:white;
  width:65px;
  height:65px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2rem;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  z-index:200;
  transition:transform 0.2s;
  animation:pulse 2s infinite;
}
.floating-wa:hover { transform:scale(1.1); }
@keyframes pulse {
  0% { box-shadow:0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow:0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow:0 0 0 0 rgba(37,211,102,0); }
}

/* ========== ADMIN PANEL (Dark Gold) ========== */
.admin-wrapper { display:flex; min-height:calc(100vh - 75px); }
.sidebar {
  width:260px;
  background: var(--bg-card);
  border-right:1px solid var(--border);
  padding:1.5rem;
}
.sidebar button {
  justify-content:flex-start;
  gap:0.8rem;
  padding:0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-weight:500;
  transition:all var(--transition);
  background:transparent;
  color: var(--text-muted);
}
.sidebar button:hover { background: var(--bg-elevated); }
.sidebar button.active {
  background: var(--gold);
  color: #0A0A0A;
  box-shadow:0 4px 12px rgba(212,175,55,0.4);
}
.main {
  flex:1;
  padding:2rem;
  background: var(--bg);
}
.dashboard-cards {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px,1fr));
  gap:1.5rem;
  margin-bottom:2rem;
}
.stat-card {
  background: var(--bg-card);
  padding:1.5rem;
  border-radius: var(--radius-lg);
  border:1px solid var(--border);
}
.stat-value { font-size:2.5rem; font-weight:700; color: var(--gold); }
.stat-label { color: var(--text-muted); }

table {
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--border);
}
table th {
  background: var(--bg-elevated);
  font-weight:600;
  text-transform:uppercase;
  font-size:0.8rem;
  letter-spacing:0.05em;
  color: var(--text-muted);
  padding:1rem;
}
table td { padding:1rem; border-bottom:1px solid var(--border); }
table tr:last-child td { border-bottom:none; }
table tr:hover td { background: rgba(212,175,55,0.03); }

.form-group { margin-bottom:1.3rem; }
.form-group label { display:block; font-weight:500; margin-bottom:0.3rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width:100%;
  padding:0.7rem 1rem;
  border:1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font-body);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline:none;
  border-color: var(--gold);
  box-shadow:0 0 0 3px rgba(212,175,55,0.2);
}

.popup-overlay {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(8px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:1000;
}
.popup {
  background: var(--bg-card);
  padding:2rem;
  border-radius: var(--radius-xl);
  width:90%;
  max-width:550px;
  box-shadow: var(--shadow-xl);
}

.dev-only { border-left:4px solid var(--gold); padding-left:1rem; margin:1.5rem 0; }

@media (max-width:768px) {
  .nav-links { display:none; }
  .nav-links.active {
    display:flex; flex-direction:column;
    position:absolute; top:75px; left:0; right:0;
    background: var(--bg-card); padding:2rem;
    border-bottom:1px solid var(--gold);
  }
  .mobile-toggle { display:block; }
  .admin-wrapper { flex-direction:column; }
  .sidebar { width:100%; border-bottom:1px solid var(--border); }
}
