/* ============================================================
   Luxury Brand - Elegant Dark/Gold Theme
   ============================================================ */

:root {
  --bg: #faf9f6;
  --bg-alt: #f0ece2;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-muted: #999;
  --border: #e0dcd4;
  --primary: #8b7355;
  --primary-dark: #6d5a43;
  --primary-light: #b09a7a;
  --primary-bg: #f5f0e8;
  --accent: #c9a96e;
  --gold: #c9a96e;
  --success: #5a7a5a;
  --danger: #8b3a3a;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
  --radius: 2px;
  --radius-sm: 2px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg: #0d0d0d;
  --bg-alt: #1a1a1a;
  --bg-card: #1a1a1a;
  --text: #f0ece2;
  --text-secondary: #a0a0a0;
  --text-muted: #666;
  --border: #2a2a2a;
  --primary-bg: #1a1510;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.4s, color 0.4s;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
[data-theme="dark"] .header { background: rgba(13,13,13,0.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text); }
.logo-text { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; letter-spacing: 0.15em; }
.logo-sub { font-size: 0.65rem; letter-spacing: 0.4em; color: var(--text-secondary); text-transform: uppercase; margin-top: -2px; }
.nav { display: flex; gap: 36px; }
.nav a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em;
  transition: var(--transition); text-transform: uppercase;
}
.nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-select {
  padding: 6px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  color: var(--text); font-size: 0.8rem; cursor: pointer;
  transition: var(--transition); letter-spacing: 0.05em;
}

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: var(--text);
}
.theme-toggle:hover { border-color: var(--gold); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.cart-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: var(--text); position: relative;
}
.cart-btn:hover { border-color: var(--gold); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--gold); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { width: 22px; height: 1.5px; background: var(--text); transition: var(--transition); }

/* ---- Hero ---- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; text-align: center;
  padding-top: 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-bg), var(--bg), var(--bg-alt));
}
.hero-bg::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.08), transparent 70%);
  transform: translate(-50%, -50%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-label {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.3em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 32px;
  border: 1px solid var(--gold); padding: 8px 24px;
}
.hero h1 {
  font-family: var(--font-display); font-size: 4.5rem; font-weight: 400;
  line-height: 1.1; margin-bottom: 28px; letter-spacing: 0.02em;
}
.hero p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 40px; font-weight: 300; }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  color: var(--text-muted); animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ---- Marquee ---- */
.marquee {
  overflow: hidden; padding: 16px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.marquee-inner {
  display: flex; gap: 40px; white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-inner span { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--text-secondary); text-transform: uppercase; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 40px; border-radius: var(--radius);
  font-weight: 500; font-size: 0.8rem; text-decoration: none;
  cursor: pointer; transition: var(--transition); border: none;
  letter-spacing: 0.15em; text-transform: uppercase;
  background: var(--text); color: var(--bg);
}
.btn:hover { background: var(--gold); color: #fff; }
.btn-full { width: 100%; }

/* ---- Sections ---- */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-alt); }
.section-label {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-bottom: 16px;
}
.label-line { width: 60px; height: 1px; background: var(--gold); }
.label-text {
  font-size: 0.75rem; letter-spacing: 0.3em; color: var(--gold);
  text-transform: uppercase;
}
.section-label-sm {
  font-size: 0.7rem; letter-spacing: 0.3em; color: var(--gold);
  text-transform: uppercase; display: block; margin-bottom: 16px;
}
.section-subtitle {
  text-align: center; color: var(--text-secondary); font-size: 1rem;
  margin-bottom: 48px; font-weight: 300;
}

/* ---- Category Filter ---- */
.category-filter { display: flex; gap: 8px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 24px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  color: var(--text-secondary); font-size: 0.75rem; cursor: pointer;
  transition: var(--transition); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--text); color: var(--bg); border-color: var(--text);
}

/* ---- Products Grid ---- */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}
.product-card { cursor: pointer; transition: var(--transition); }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-image {
  height: 380px; background: var(--bg-alt);
  overflow: hidden; position: relative; margin-bottom: 20px;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.product-image .placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--text-muted); font-size: 3rem;
}
.product-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--gold); color: #fff;
  padding: 4px 16px; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.product-info { padding: 0 4px; }
.product-category { font-size: 0.7rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 8px; }
.product-name {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 500;
  margin-bottom: 8px; letter-spacing: 0.02em;
}
.product-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; font-weight: 300; line-height: 1.6; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.1rem; font-weight: 500; color: var(--text); }
.product-price .compare { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; margin-left: 10px; font-weight: 300; }
.add-cart-btn {
  padding: 10px 24px; border-radius: var(--radius-sm);
  border: 1px solid var(--text); background: transparent;
  cursor: pointer; font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; transition: var(--transition); color: var(--text);
  font-weight: 500;
}
.add-cart-btn:hover { background: var(--text); color: var(--bg); }

/* ---- About ---- */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-left h2 { font-family: var(--font-display); font-size: 2.8rem; font-weight: 400; line-height: 1.2; margin-top: 12px; }
.about-right p { color: var(--text-secondary); font-size: 1.05rem; font-weight: 300; line-height: 1.8; margin-bottom: 40px; }
.stats { display: flex; gap: 40px; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--gold); margin-bottom: 4px; }
.stat-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }

/* ---- Contact ---- */
.contact-form { max-width: 640px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block; font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 8px; color: var(--text-secondary);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  color: var(--text); font-size: 0.95rem; transition: var(--transition);
  font-family: var(--font-body);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}

/* ---- Footer ---- */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; }
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }

/* ---- Cart Drawer ---- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.cart-overlay.active { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: -420px; width: 420px; max-width: 90vw;
  height: 100vh; background: var(--bg-card); z-index: 201;
  box-shadow: var(--shadow-lg); transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex; flex-direction: column;
}
.cart-drawer.active { right: 0; }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px; border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.05em; }
.cart-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }
.cart-items { flex: 1; overflow-y: auto; padding: 24px; }
.cart-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 80px; height: 100px; overflow: hidden; flex-shrink: 0; background: var(--bg-alt); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-family: var(--font-display); font-size: 1rem; margin-bottom: 4px; }
.cart-item-price { color: var(--primary); font-weight: 500; font-size: 0.95rem; }
.cart-item-qty { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cart-item-qty button {
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  cursor: pointer; font-size: 1rem; color: var(--text);
}
.cart-item-qty span { font-weight: 500; min-width: 20px; text-align: center; }
.cart-item-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.8rem; margin-top: 6px; letter-spacing: 0.05em; }
.cart-footer { padding: 24px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 500; margin-bottom: 20px; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--text-muted); font-family: var(--font-display); font-size: 1.1rem; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 300; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 40px; max-width: 520px; width: 90%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.modal-header h3 { font-family: var(--font-display); font-size: 1.4rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }
.order-summary { background: var(--bg-alt); padding: 20px; margin-bottom: 24px; font-size: 0.9rem; }

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  background: var(--text); color: var(--bg); padding: 16px 28px;
  border-radius: var(--radius-sm); font-weight: 500; font-size: 0.9rem;
  letter-spacing: 0.05em; transform: translateY(100px); opacity: 0;
  transition: all 0.4s; box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---- Loading ---- */
.loading { text-align: center; padding: 80px 0; grid-column: 1 / -1; }
.spinner {
  width: 40px; height: 40px; border: 2px solid var(--border);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.active {
    display: flex; flex-direction: column;
    position: absolute; top: 80px; left: 0; right: 0;
    background: var(--bg-card); padding: 24px;
    border-bottom: 1px solid var(--border); gap: 20px; text-align: center;
  }
  .menu-toggle { display: flex; }
  .hero h1 { font-size: 3rem; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-left h2 { font-size: 2rem; }
  .stats { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { gap: 20px; flex-wrap: wrap; justify-content: center; }
}
