:root {
  --bg: #fff;
  --black: #111;
  --gold: #c5a46d;
  --gray: #999;
  --font-main: 'Poppins', sans-serif;
  --font-title: 'Playfair Display', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  color: var(--black);
  background: var(--bg);
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-family: var(--font-title);
  font-size: 32px;
  color: var(--black);
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--gold); }

#cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

/* HERO */
.hero {
  height: 85vh;
  background: url('https://images.unsplash.com/photo-1512436991641-6745cdb1723f?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 600px;
}
.hero-text h1 {
  font-family: var(--font-title);
  font-size: 42px;
  margin-bottom: 10px;
}
.hero-text p { font-size: 18px; color: #eee; margin-bottom: 20px; }
.btn {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}
.btn:hover { transform: scale(1.05); background: #b89458; }

/* COLLECTION */
.collection {
  padding: 60px 0;
}
.collection h2 {
  text-align: center;
  font-family: var(--font-title);
  font-size: 32px;
  margin-bottom: 40px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
  gap: 20px;
}
.product {
  overflow: hidden;
  border-radius: 10px;
  background: #fafafa;
  transition: transform 0.3s;
  cursor: pointer;
}
.product:hover { transform: translateY(-6px); }
.product img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.3s;
}
.product:hover img { transform: scale(1.05); }
.product-info {
  padding: 14px;
  text-align: center;
}
.product-info h4 { font-weight: 500; margin-bottom: 6px; }
.product-info span { color: var(--gold); font-weight: 600; }

/* ABOUT / CONTACT */
.about, .contact {
  padding: 50px 0;
  text-align: center;
}
.about p, .contact p { max-width: 600px; margin: 0 auto; color: var(--gray); }

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  background: #111;
  color: #fff;
  font-size: 14px;
}

/* CART MODAL */
.cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.cart-modal.active { display: flex; }
.cart-panel {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: min(400px, 90%);
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.cart-panel h3 { margin-bottom: 16px; }
.close {
  position: absolute;
  right: 14px;
  top: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.cart-item {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  align-items: center;
}
.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
