/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
  --gold: #d4af37;
  --dark-gold: #b8941f;
  --light-gold: #f4e4c1;
  --gray: #2c2c2c;
  --medium-gray: #4a4a4a;
  --light-gray: #f9f9f9;
  --white: #ffffff;
  --black: #1a1a1a;
  --shadow: rgba(0, 0, 0, 0.1);
  --gold-shadow: rgba(212, 175, 55, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lora", serif;
  color: var(--gray);
  background-color: var(--white);
  line-height: 1.6;
  width: 100%;
  padding-top: 85px; /* Space for fixed header */
  overflow-x: hidden;
}

/* =========================================
   2. SHARED HEADER STYLES
   ========================================= */
header {
  background: linear-gradient(135deg, var(--gray) 0%, var(--black) 100%);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 0;
  z-index: 1000;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Compact Scroll Mode */
header.scrolled {
  padding: 8px 0;
  background: rgba(44, 44, 44, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-circle {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--gold-shadow);
}

.logo-icon {
  color: var(--white);
  font-size: 24px;
  font-weight: bold;
  font-family: "Playfair Display", serif;
}

.header-center {
  display: flex;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Mobile Header Elements */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 24px;
  cursor: pointer;
}

.mobile-catalog-btn {
  display: none;
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--black);
  padding: 80px 24px;
  transition: right 0.3s ease;
  z-index: 999;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 8px;
}

.close-menu {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 32px;
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
  display: none;
}

.overlay.active {
  display: block;
}

/* =========================================
   3. GLOBAL BUTTONS & COMPONENTS
   ========================================= */
.btn {
  padding: 10px 24px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 10px;
}

.btn:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--gold-shadow);
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--dark-gold);
  border-color: var(--dark-gold);
  color: var(--white);
}

/* Whatsapp Floating Button */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: all 0.3s ease;
  border: 2px solid var(--white);
}

.whatsapp-btn:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* =========================================
   4. HOME PAGE (MAIN.HTML) SPECIFICS
   ========================================= */

/* Main Hero */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  max-width: 100% !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?q=80&w=1700&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  border-bottom: 4px solid var(--gold);
}

.hero-content {
  max-width: 900px;
  padding: 40px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gold);
}

.hero p {
  font-size: 20px;
  margin-bottom: 32px;
  color: #f0f0f0;
  font-weight: 300;
}

/* Section Titles */
section {
  padding: 100px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  text-align: center;
  margin-bottom: 64px;
  color: var(--black);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
}

/* Products Slider (Main Page) */
.product-slider-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0; /* CHANGED: Removed 40px padding so images go to the edge */
}

.products-grid {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 24px; /* Slightly tighter gap */
  padding-bottom: 20px;

  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.products-grid::-webkit-scrollbar {
  display: none;
}

/* Product Card (Main Page) */
.product-card {
  min-width: 300px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--gold);
}

.product-img {
  width: 100%;
  height: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 0.9;
}

.product-btn {
  padding: 12px 28px;
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.product-card:hover .product-btn {
  transform: translateY(0);
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-title {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  margin-bottom: 8px;
}

.product-price {
  color: var(--dark-gold);
  font-weight: 600;
}

/* Scroll Arrows - Now Overlaying the Image */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;

  /* CHANGED: Glass effect instead of solid white */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid var(--gold);

  border-radius: 50%;
  color: var(--gold);
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.scroll-btn:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-50%) scale(1.1);
}

/* CHANGED: Positions moved inside the image area */
.scroll-btn.left {
  left: 10px; /* Moves arrow inside the left edge */
}

.scroll-btn.right {
  right: 10px; /* Moves arrow inside the right edge */
}

/* Ensure arrows are visible on mobile if desired */
@media (max-width: 768px) {
  .scroll-btn {
    display: flex; /* Force show arrows on mobile */
    width: 35px; /* Smaller arrows on mobile */
    height: 35px;
    font-size: 16px;
  }
}
/* Partner Brands Section (Main Page) */
#brands {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background:
    linear-gradient(to bottom, rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.7)),
    url("https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

#brands .section-title {
  color: var(--gold);
  margin-bottom: 60px;
}

#brands .section-title::after {
  background: var(--white);
  opacity: 0.5;
}

.brands-slider {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  position: relative;
  scrollbar-width: none;
}

.brands-slider::-webkit-scrollbar {
  display: none;
}

.brands-track {
  display: inline-flex;
  gap: 100px;
  animation: scrollLoop 30s linear infinite;
}

@keyframes scrollLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.brand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.4s ease;
  border-radius: 50%;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  transform: translateZ(0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.brand-btn:hover {
  transform: scale(1.1);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  background: var(--white);
}

.brand-img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.brand-btn:hover .brand-img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-card {
  padding: 40px;
  text-align: center;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  background: var(--white);
  border-radius: 10px;
}

.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  color: var(--gold);
}

.feature-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  margin-bottom: 16px;
}

/* =========================================
   5. BRAND PAGES (VAAYURA, AMASE, ETC)
   ========================================= */

.brand-hero {
  position: relative;
  height: 60vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  border-bottom: 4px solid var(--gold);
}

/* This is a default background, specific pages override it inline if needed */
.brand-hero {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1618219944342-824e40f13285?q=80&w=2000&auto=format&fit=crop");
}

.brand-logo-large {
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 64px;
  color: var(--gold);
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.brand-hero p {
  font-size: 22px;
  max-width: 700px;
  color: #ddd;
  font-weight: 300;
}

.brand-story {
  max-width: 1000px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
}

.brand-story h2 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  color: var(--black);
  margin-bottom: 24px;
}

.brand-story p {
  font-size: 18px;
  color: var(--medium-gray);
  margin-bottom: 32px;
}

.download-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--black);
  font-family: "Playfair Display", serif;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: var(--dark-gold);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.collection-section {
  background: var(--light-gray);
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  color: var(--black);
  position: relative;
  display: inline-block;
}

.section-header h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
}

.brand-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

/* Unique card styles for the brand grid pages */
.card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-bottom: 1px solid #f0f0f0;
}

.card-info {
  padding: 24px;
  text-align: center;
}

.card-title {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--black);
}

.card-meta {
  color: var(--dark-gold);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================
   6. SHARED FOOTER STYLES
   ========================================= */
footer {
  background: var(--black);
  color: #ccc;
  padding: 80px 24px 24px;
  border-top: 4px solid var(--gold);
  width: 100%;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col h4 {
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

/* =========================================
   7. RESPONSIVE UTILITIES (TABLET & MOBILE)
   ========================================= */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .header-center,
  .header-actions {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .mobile-catalog-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    font-family: "Playfair Display", serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
    margin-left: auto;
    margin-right: 16px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .brand-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .brand-info {
    position: static;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  /* Mobile Product Grid (2 cols) */
  .products-grid {
    /* Main page horizontal scroll items */
  }
  .product-card {
    min-width: 240px;
  }

  /* Brand Page Grid */
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .brand-hero h1 {
    font-size: 42px;
  }
  .brand-logo-large {
    width: 100px;
    height: 100px;
    padding: 15px;
  }

  /* Smaller Cards on Mobile */
  .card-img {
    height: 180px;
  }
  .card-info {
    padding: 16px;
  }
  .card-title {
    font-size: 16px;
  }

  /* Main Product Cards Mobile */
  .product-img {
    height: 160px;
  }
  .product-info {
    padding: 10px;
  }
  .product-title {
    font-size: 15px;
  }
  .product-price {
    font-size: 14px;
  }

  section {
    padding: 40px 12px;
  }

  .whatsapp-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .scroll-btn {
    display: none;
  }
}
