/* 
  RK Jewel - Dark Luxury Design System
  Colors: #0a0a0a, #111111, #fffff0, #d4af37 (Gold)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --text-primary: #fffff0;
  --text-secondary: #a0a0a0;
  --accent-gold: #d4af37;
  --accent-champagne: #f7e7ce;
  --accent-bronze: #cd7f32;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-luxury: 0 10px 30px rgba(212, 175, 55, 0.1);
  --glass-bg: rgba(17, 17, 17, 0.7);
  --glass-border: 1px solid rgba(212, 175, 55, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--accent-gold);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-gold);
}

ul {
  list-style: none;
}

/* Glassmorphism Classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border);
}

/* Typography */
.text-gold { color: var(--accent-gold); }
.text-champagne { color: var(--accent-champagne); }
.text-center { text-align: center; }
.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent-gold);
  margin: 15px auto 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid var(--accent-gold);
  background: transparent;
  color: var(--accent-gold);
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-solid {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.btn-solid:hover {
  background: transparent;
  color: var(--accent-gold);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 20px 5%;
}

header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  padding: 15px 5%;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-icons i {
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-icons i:hover {
  color: var(--accent-gold);
  transform: scale(1.1);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    background: var(--bg-primary);
    padding: 40px 5%;
    transition: var(--transition-smooth);
  }
  .nav-links.active {
    left: 0;
  }
  .menu-toggle {
    display: block;
  }
  .navbar {
    flex-wrap: wrap;
  }
  .nav-icons {
    /* Show on mobile, but scale slightly */
    display: flex;
    gap: 15px;
  }
  .nav-icons i {
    font-size: 1rem;
  }
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 80px 0;
}

/* Product Card */
.product-card {
  position: relative;
  border: var(--glass-border);
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.product-card:hover {
  box-shadow: var(--shadow-luxury);
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 350px;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.product-price {
  font-family: var(--font-body);
  font-size: 1.1rem;
}

.price-regular {
  text-decoration: line-through;
  color: var(--text-secondary);
  margin-right: 10px;
  font-size: 0.9rem;
}

.price-sale {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.6);
  animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.hero-content {
  text-align: center;
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

/* Luxury Divider */
.luxury-divider {
  width: 100%;
  height: 2px;
  background: radial-gradient(ellipse at center, rgba(212,175,55,1) 0%, rgba(10,10,10,0) 80%);
  position: relative;
  margin: 30px 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.luxury-divider::after {
  content: '✦';
  color: var(--accent-gold);
  font-size: 1.8rem;
  background: var(--bg-primary);
  padding: 0 15px;
}

/* Search Dropdown Overlay */
.search-overlay {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  background: var(--bg-primary);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: top 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
  border-bottom: 1px solid var(--accent-gold);
}
.search-overlay.active {
  top: 100%;
}
@media (max-width: 768px) {
  .search-overlay {
    top: -200px; /* Hide further up on mobile to avoid accidental show */
    padding: 15px;
  }
  .search-overlay.active {
    top: 70px; /* Drop below the header */
    height: auto;
  }
}
.search-form {
  display: flex;
  width: 100%;
  max-width: 600px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--accent-gold);
  border-radius: 30px;
  overflow: hidden;
}
.search-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px 25px;
  color: var(--text-primary);
  font-size: 1.1rem;
  outline: none;
}
.search-form input::placeholder {
  color: rgba(255,255,255,0.5);
}
.search-form button {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border: none;
  padding: 0 25px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s;
}
.search-form button:hover {
  background: #fff;
}
#closeSearch {
  background: transparent;
  color: var(--text-secondary);
}
#closeSearch:hover {
  background: transparent;
  color: var(--accent-gold);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Horizontal Scroller */
.scroller-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.scroller-container::-webkit-scrollbar {
  display: none;
}

@media (min-width: 769px) {
  .scroller-container::-webkit-scrollbar {
    display: block;
    height: 6px;
  }
  .scroller-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
  }
  .scroller-container::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
  }
}

.scroller-item {
  min-width: 300px;
  scroll-snap-align: start;
}

/* Category Card New Design */
.category-card {
  position: relative;
  min-width: 300px;
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: var(--glass-border);
}
.category-card-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}
.category-card:hover .category-card-bg {
  transform: scale(1.1);
}
.category-card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2;
  transition: background 0.4s ease;
}
.category-card:hover .category-card-overlay {
  background: rgba(0,0,0,0.6);
}
.category-card-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 20px;
}
.category-card-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-primary);
  text-shadow: 0 4px 15px rgba(0,0,0,0.8);
  transition: color 0.4s ease;
}
.category-card:hover .category-card-title {
  color: var(--accent-gold);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  padding: 60px 5% 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
