/* ============================================
   GOLDEN AGE — Premium Luxury Theme
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Abel&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* --- Custom Properties --- */
:root {
  --gold: #c9a96e;
  --gold-light: #f1d1a2;
  --gold-dark: #a07d4a;
  --burgundy: #A7144C;
  --black: #0a0a0a;
  --charcoal: #1a1a1a;
  --dark-gray: #2a2a2a;
  --medium-gray: #3a3a3a;
  --light-gray: #8a8a8a;
  --off-white: #e8e8e8;
  --cream: #f5f0e8;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Abel', sans-serif;
  background-color: var(--black);
  color: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

a { color: var(--gold); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--gold-light); }

::selection { background: var(--gold); color: var(--black); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* --- Utility Classes --- */
.font-cinzel { font-family: 'Cinzel', serif; }
.font-cormorant { font-family: 'Cormorant Garamond', serif; }
.text-gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.bg-gold { background-color: var(--gold); }
.bg-charcoal { background-color: var(--charcoal); }
.bg-dark { background-color: var(--black); }
.border-gold { border-color: var(--gold); }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Section Divider --- */
.gold-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}

.gold-divider-left {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* --- Buttons --- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 40px;
  background: var(--gold);
  color: var(--black);
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}
.btn-gold:hover::before { left: 100%; }
.btn-gold:hover { background: var(--gold-light); color: var(--black); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,169,110,0.3); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 40px;
  background: transparent;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.4s ease;
}
.btn-outline:hover { background: var(--gold); color: var(--black); }

/* --- Hero Section --- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.3) 40%, rgba(10,10,10,0.7) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  color: var(--cream);
  margin-bottom: 20px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 40px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

/* --- Product Card --- */
.product-card {
  position: relative;
  background: var(--charcoal);
  border: 1px solid rgba(201,169,110,0.1);
  overflow: hidden;
  transition: all 0.5s ease;
}
.product-card:hover {
  border-color: rgba(201,169,110,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.product-card .card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--black);
}
.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.8s ease;
}
.product-card:hover .card-image img {
  transform: scale(1.08);
}
.product-card .card-body {
  padding: 20px;
}
.product-card .card-category {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.product-card .card-title {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--off-white);
  line-height: 1.4;
  margin-bottom: 12px;
  min-height: 2.4em;
}
.product-card .card-price {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}
.product-card .featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--black);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  text-transform: uppercase;
  z-index: 2;
}

/* --- Section Styling --- */
.section-heading {
  text-align: center;
  margin-bottom: 60px;
}
.section-heading .subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--charcoal);
  border: 1px solid rgba(201,169,110,0.15);
  padding: 40px;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

/* --- Category Banner --- */
.category-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.4), rgba(10,10,10,0.7));
}
.category-banner h2 {
  position: relative;
  z-index: 1;
  color: var(--cream);
  font-size: clamp(1.5rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #c9a96e, #a8893e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(201,169,110,0.4);
  animation: whatsapp-pulse 2s infinite;
  transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #0a0a0a; }

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(201,169,110,0.4); }
  50% { box-shadow: 0 4px 40px rgba(201,169,110,0.6), 0 0 60px rgba(201,169,110,0.2); }
}

/* --- Animations --- */
/* JS adds .fade-ready to <html> once IntersectionObserver is set up.
   Without JS the elements stay fully visible (safe fallback). */
.fade-ready .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-ready .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Drawer --- */
#mobile-menu {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  scrollbar-width: none;
}
#mobile-menu::-webkit-scrollbar { display: none; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-section { min-height: 600px; }
  .btn-gold, .btn-outline { padding: 12px 28px; font-size: 0.7rem; }
}

/* --- Admin Override (keep admin pages functional) --- */
body.admin-body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f3f4f6;
  color: #111827;
}
