:root {
  --bg-main: #fafafa;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f4f4f5;
  --text-main: #111111;
  --text-muted: #666666;
  --accent-gold: #c0a062;
  --accent-gold-hover: #a88a52;
  --border-color: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.05);
  
  --shadow-sm: 0 8px 30px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 8px 30px rgba(192, 160, 98, 0.2);
  
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-gold);
  color: #fff;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, .brand-text {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--text-main);
}
.subtitle {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-gold);
  margin-bottom: 15px;
  font-weight: 600;
}
.divider {
  width: 40px;
  height: 2px;
  background: var(--accent-gold);
  margin: 20px auto;
  transition: width var(--transition);
}
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 3rem; margin-bottom: 10px; }
.section-title:hover .divider { width: 80px; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  z-index: 1;
}
.btn-primary {
  background: var(--text-main);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-gold);
  color: #fff;
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border-color: var(--text-main);
}
.btn-secondary:hover {
  background: var(--text-main);
  color: #fff;
  transform: translateY(-2px);
}
.btn-large { padding: 18px 40px; font-size: 1rem; }

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0; width: 100%;
  padding: 25px 0;
  background: transparent;
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 15px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 30px;
  display: flex; justify-content: space-between; align-items: center;
}
.brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.brand-logo { height: 40px; border-radius: 5px; }
.brand-text { font-size: 1.8rem; letter-spacing: 2px; }
.nav-links { display: flex; gap: 3rem; align-items: center; }
.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute; width: 0; height: 1px;
  bottom: -4px; left: 0;
  background: var(--accent-gold);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--accent-gold); }
.nav-links a:hover::after { width: 100%; }

.nav-icons { display: flex; align-items: center; gap: 20px; }
.cart-icon { position: relative; color: var(--text-main); cursor: pointer; transition: color var(--transition); display: flex; }
.cart-icon:hover { color: var(--accent-gold); }
.cart-badge {
  position: absolute; top: -8px; right: -12px;
  background: var(--accent-gold); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

/* HERO */
.hero {
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background-image: url('assets/hero_background.webp');
  background-size: cover; background-position: center;
  /* background-attachment: fixed removed — causes jank on mobile */
  position: relative;
}
/* Stronger overlay for light theme since text needs to stand out or blend */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(250, 250, 250, 0.6), var(--bg-main));
}
.hero-content {
  position: relative; z-index: 1; max-width: 800px; padding: 0 20px;
  animation: heroFadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 { font-size: 5.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--text-main); text-shadow: 0 4px 20px rgba(255,255,255,0.7); }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; font-weight: 400; text-shadow: 0 4px 15px rgba(255,255,255,0.7); }

/* PRODUCTS */
.products { padding: 120px 30px; max-width: 1200px; margin: 0 auto; }
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px;
}
.product-card {
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  transform: translateX(-100%); transition: transform 0.6s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: rgba(192, 160, 98, 0.3); }
.product-card:hover::before { transform: translateX(100%); }
.product-img-wrapper {
  overflow: hidden; border-radius: 4px; margin-bottom: 25px;
  background: var(--bg-surface-elevated);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
}
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.product-card:hover .product-img { transform: scale(1.04); }
.product-info { text-align: center; }
.category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-gold); margin-bottom: 10px; display: block; }
.product-info h3 { font-size: 1.5rem; margin-bottom: 10px; transition: color var(--transition); color: var(--text-main); }
.product-card:hover h3 { color: var(--accent-gold); }
.product-info .price { font-size: 1.2rem; font-weight: 400; color: var(--text-muted); }

/* FEATURES */
.features {
  background: var(--bg-surface);
  padding: 100px 30px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px; text-align: center; max-width: 1200px; margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.features::after {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(192,160,98,0.05), transparent 60%);
  pointer-events: none;
}
.feature-icon { font-size: 3.5rem; margin-bottom: 20px; }
.feature-item h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--text-main); }
.feature-item p { color: var(--text-muted); font-size: 1rem; }

/* ABOUT */
.about { padding: 140px 30px; position: relative; }
.about-container { max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.about-text h2 { font-size: 3.5rem; margin-bottom: 20px; }
.about-text p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 15px; }

/* FOOTER */
footer {
  background: var(--bg-surface);
  padding: 80px 30px 40px;
  border-top: 1px solid var(--border-color);
}
.footer-content { max-width: 1200px; margin: 0 auto 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; }
.brand-col p { margin-top: 20px; color: var(--text-muted); max-width: 300px; }
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; color: var(--text-main); font-weight: 600; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 15px; transition: var(--transition); }
.footer-col a:hover { color: var(--accent-gold); }
.social-links { display: flex; gap: 20px; }
.social-links a { color: var(--text-muted); transition: color var(--transition); }
.social-links a:hover { color: var(--accent-gold); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 30px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* ANIMATIONS (Scroll Reveal) */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* CART SIDEBAR */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px); z-index: 1050;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; top: 0; right: 0;
  width: 100%; max-width: 450px; height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  z-index: 1060;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}
.cart-sidebar.active { transform: translateX(0); }
.cart-header {
  padding: 30px; border-bottom: 1px solid var(--border-color);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h3 { font-size: 1.8rem; }
.close-cart { background: none; border: none; font-size: 2.5rem; color: var(--text-main); cursor: pointer; transition: color var(--transition); }
.close-cart:hover { color: var(--accent-gold); transform: scale(1.1); }
.cart-items { flex: 1; overflow-y: auto; padding: 30px; display: flex; flex-direction: column; gap: 25px; }
.cart-item { display: flex; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid var(--border-color); }
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border-color); background: var(--bg-surface-elevated); }
.cart-item-details { flex: 1; }
.cart-item-title { font-size: 1rem; margin-bottom: 5px; font-family: 'Inter', sans-serif; font-weight: 500; color: var(--text-main); }
.cart-item-price { color: var(--text-muted); font-size: 0.9rem; }
.cart-item-col { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.remove-item { background: none; border: none; color: #cc0000; font-size: 0.85rem; cursor: pointer; text-decoration: underline; opacity: 0.8; transition: opacity var(--transition); }
.remove-item:hover { opacity: 1; }
.cart-footer { padding: 30px; border-top: 1px solid var(--border-color); background: var(--bg-main); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.3rem; margin-bottom: 25px; font-family: 'Playfair Display', serif; color: var(--text-main); }
.btn-checkout { width: 100%; text-align: center; }

/* RESPONSIVE */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1001; }
.hamburger .bar { width: 30px; height: 2px; background: var(--text-main); transition: var(--transition); }
@media (max-width: 992px) {
  .hero h1 { font-size: 4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; 
    background: var(--bg-surface);
    flex-direction: column; justify-content: center; align-items: center;
    transform: translateX(100%); transition: var(--transition);
    gap: 4rem; z-index: 1000;
  }
  .nav-links.active { transform: translateX(0); }
  .nav-links a { font-size: 1.5rem; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero h1 { font-size: 3.2rem; }
  
  /* CRITICAL: Keep grid 2 cols on mobile and gap smaller for better visual density */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { padding: 12px; }
  .product-info h3 { font-size: 1rem; margin-bottom: 5px; }
  .product-info .price { font-size: 0.95rem; }
  .product-img-wrapper { margin-bottom: 12px; }
  .category { font-size: 0.6rem; margin-bottom: 4px; }
  .products { padding: 80px 15px; }
  
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-links { justify-content: center; }
  .features { grid-template-columns: 1fr; gap: 30px; padding: 60px 20px; }
  .about { padding: 80px 20px; }
  .section-title h2 { font-size: 2.2rem; }
  .about-text h2 { font-size: 2.4rem; }
}
