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

body {
  font-family: 'Inter', sans-serif;
  background: #0A0A0A;
  color: #E8E6E1;
}

:root {
  --bg-dark: #0A0A0A;
  --bg-card: #141414;
  --gold: #D4AF37;
  --gold-light: #F3E5AB;
  --border-light: #2A2A2A;
  --text-muted: #A0A0A0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.header {
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 18px 0;
}

.logo h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo p {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--gold);
}

.search-wrapper {
  flex: 1;
  max-width: 450px;
  display: flex;
  background: #1A1A1A;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  padding: 4px 8px 4px 20px;
}

.search-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 8px;
  color: white;
  outline: none;
}

.search-wrapper button {
  background: var(--gold);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  color: #0A0A0A;
}

.icons {
  display: flex;
  gap: 28px;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #E8E6E1;
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--gold);
  color: #0A0A0A;
  font-size: 0.65rem;
  border-radius: 50%;
  padding: 2px 7px;
  font-weight: bold;
}

.categories {
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
}

.cat-pill {
  padding: 8px 28px;
  border-radius: 40px;
  background: #141414;
  color: #E8E6E1;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid var(--border-light);
}

.cat-pill.active, .cat-pill:hover {
  background: var(--gold);
  color: #0A0A0A;
  border-color: var(--gold);
}

.hero {
  background: linear-gradient(135deg, #1a1a1a, #0A0A0A);
  margin: 32px 0;
  border-radius: 32px;
  padding: 64px 48px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
}

.hero h2 span { color: var(--gold); }

.location-bar {
  background: #111111;
  border-radius: 60px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
  border: 1px solid var(--border-light);
}

.detect-btn {
  background: var(--gold);
  border: none;
  padding: 8px 24px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
}

.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 24px 0;
  gap: 16px;
}

.sort-select {
  background: #1A1A1A;
  border: 1px solid var(--border-light);
  padding: 10px 20px;
  border-radius: 40px;
  color: white;
  cursor: pointer;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  margin: 40px 0 60px;
}

.product-card {
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s;
  border: 1px solid var(--border-light);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 20px 35px -15px rgba(212, 175, 55, 0.2);
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-info { padding: 20px; }
.product-title { font-weight: 600; font-size: 1.1rem; }
.price { font-size: 1.4rem; font-weight: 700; color: var(--gold); margin: 8px 0; }
.rating { color: var(--gold); margin-bottom: 12px; }
.variant-select {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  background: #1A1A1A;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  color: white;
}

.btn-cart {
  flex: 2;
  background: var(--gold);
  border: none;
  padding: 10px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
}

.btn-wish {
  background: #2A2A2A;
  border: none;
  width: 44px;
  border-radius: 40px;
  cursor: pointer;
  color: var(--gold);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 1100;
  visibility: hidden;
  opacity: 0;
  transition: 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.open { visibility: visible; opacity: 1; }

.modal-card {
  background: #111111;
  max-width: 550px;
  width: 90%;
  border-radius: 32px;
  padding: 32px;
  border: 1px solid var(--gold);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--gold);
}

.modal-header button {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--gold);
  cursor: pointer;
}

.cart-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.checkout-btn {
  background: var(--gold);
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 40px;
  font-weight: 700;
  margin-top: 20px;
  cursor: pointer;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0A0A0A;
  padding: 12px 28px;
  border-radius: 60px;
  font-weight: 600;
  z-index: 1200;
  opacity: 0;
  transition: 0.2s;
}

footer {
  background: #050505;
  text-align: center;
  padding: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--border-light);
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .hero h2 { font-size: 2rem; }
  .nav-bar { flex-direction: column; }
}