:root {
  --gold: #c9a24b;
  --gold-dark: #a8801f;
  --maroon: #5a0f1f;
  --cream: #fbf6ec;
  --text: #2b2b2b;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Header */
.site-header {
  background: var(--maroon);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.logo span { color: var(--gold); }
nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 24px;
  font-size: 0.95rem;
}
nav a:hover { color: var(--gold); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--maroon), #2d0610);
  color: #fff;
  text-align: center;
  padding: 110px 0;
}
.hero-small {
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.4rem;
  margin: 14px 0;
}
.hero-text { max-width: 560px; margin: 0 auto 28px; font-weight: 300; }
.btn {
  display: inline-block;
  background: var(--gold);
  color: #2b1500;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}
.btn:hover { background: var(--gold-dark); color: #fff; }

/* Sections */
.collection, .about, .contact { padding: 70px 0; }
.about, .contact { text-align: center; }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.3rem;
  color: var(--maroon);
  text-align: center;
  margin-bottom: 30px;
}
.about p, .contact p { max-width: 650px; margin: 8px auto; }
.contact a { color: var(--maroon); }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-btn {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--maroon);
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.3s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--gold);
  color: #2b1500;
}

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
}
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 24px rgba(0,0,0,0.14); }
.card img { width: 100%; height: 260px; object-fit: cover; display: block; }
.card-body { padding: 16px; }
.card-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--maroon);
}
.card-body p { font-size: 0.9rem; color: #666; }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--maroon);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
}
.card.sold img { filter: grayscale(0.8); opacity: 0.7; }
.card.sold .badge { background: #777; }
.loading { text-align: center; grid-column: 1 / -1; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 14px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-box img { width: 100%; max-height: 380px; object-fit: cover; }
.modal-info { padding: 20px; }
.modal-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  color: var(--maroon);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Footer */
footer {
  background: var(--maroon);
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.4rem; }
  nav a { margin-left: 14px; font-size: 0.85rem; }
  .logo { font-size: 1.2rem; }
}
