/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ivory: #faf7f2;
  --ivory-dark: #f0ebe2;
  --maroon: #6b1f2a;
  --maroon-light: #8b3040;
  --gold: #b8965a;
  --gold-light: #d4af7a;
  --text: #2c2420;
  --text-muted: #7a6e68;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--text);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }
em { font-style: italic; color: var(--maroon); }

.label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.section-header { text-align: center; margin-bottom: 3.5rem; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--maroon);
  color: #fff;
  padding: 0.85rem 2.5rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: var(--maroon-light); transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--maroon);
  color: var(--maroon);
  padding: 0.85rem 2.5rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.btn-outline:hover { background: var(--maroon); color: #fff; }

/* ===== SCROLL FADE-IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 4rem;
  background: transparent;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
  background: var(--ivory);
  padding: 1rem 4rem;
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #fff;
  transition: color 0.4s;
  text-decoration: none;
}
.navbar.scrolled .nav-logo { color: var(--maroon); }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--gold); }
.navbar.scrolled .nav-links a:hover { color: var(--maroon); }

.nav-icons { display: flex; align-items: center; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  padding: 0;
  transition: color 0.4s;
}
.navbar.scrolled .nav-toggle { color: var(--text); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 75%;
  max-width: 320px;
  height: 100vh;
  background: var(--ivory);
  z-index: 2000;
  padding: 5rem 2.5rem 2.5rem;
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -4px 0 30px rgba(0,0,0,0.1);
}
.mobile-menu.open { right: 0; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 2rem; }
.mobile-menu a {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
}
.close-menu {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text);
}
.overlay-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.overlay-bg.show { opacity: 1; pointer-events: all; }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 8vh;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { object-position: center top; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,10,8,0.72) 0%, rgba(20,10,8,0.15) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 4rem;
  max-width: 780px;
  color: #fff;
}
.hero-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.75rem;
}
.hero-content h1 { margin-bottom: 1.2rem; color: #fff; }
.hero-content h1 em { color: var(--gold-light); }
.hero-content p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.2rem;
  max-width: 480px;
}

/* ===== SEASONAL ===== */
.seasonal { padding: 7rem 4rem; background: var(--ivory); }
.seasonal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.season-card { position: relative; overflow: hidden; cursor: pointer; }
.season-img { height: 480px; overflow: hidden; }
.season-img img { transition: transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.season-card:hover .season-img img { transform: scale(1.06); }
.season-info { padding: 1.2rem 0.5rem; }
.season-info h3 { margin-bottom: 0.3rem; }
.season-info span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
  letter-spacing: 0.05em;
}
.season-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 500;
  cursor: pointer;
  transition: letter-spacing 0.3s;
  display: inline-block;
}
.season-link:hover { letter-spacing: 0.22em; }

/* ===== NEW ARRIVALS ===== */
.arrivals { padding: 5rem 4rem 7rem; background: var(--ivory-dark); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.product-card { cursor: pointer; }
.product-img { position: relative; height: 420px; overflow: hidden; }
.product-img img { transition: transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.product-card:hover .product-img img { transform: scale(1.05); }

.quick-view {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(107,31,42,0.88);
  color: #fff;
  width: 100%;
  border: none;
  text-align: center;
  padding: 0.9rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .quick-view { transform: translateY(0); }

.wishlist-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.85);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.85rem;
  color: var(--maroon);
}
.product-card:hover .wishlist-btn { opacity: 1; }
.wishlist-btn.active i { font-weight: 900; }

.product-info { padding: 1rem 0.25rem; }
.product-info h4 { margin-bottom: 0.25rem; }
.fabric {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}
.price { font-family: var(--serif); font-size: 1.1rem; color: var(--maroon); }

/* ===== ABOUT ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; }
.about-img { overflow: hidden; }
.about-img img { height: 100%; transition: transform 0.9s cubic-bezier(0.4,0,0.2,1); }
.about-img:hover img { transform: scale(1.04); }
.about-text {
  padding: 6rem 5rem;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  max-width: 420px;
  line-height: 1.8;
}

/* ===== OCCASIONS ===== */
.occasions { padding: 7rem 4rem; background: var(--ivory-dark); }
.occasions-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.occasion-card { overflow: hidden; cursor: default; }
.occ-img { position: relative; height: 520px; overflow: hidden; }
.occ-img img { transition: transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.occasion-card:hover .occ-img img { transform: scale(1.07); }
.occ-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,10,8,0.6) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  color: #fff;
  transition: background 0.4s ease;
}
.occasion-card:hover .occ-overlay {
  background: linear-gradient(to top, rgba(20,10,8,0.75) 0%, rgba(20,10,8,0.1) 60%);
}
.occ-overlay h3 { font-size: 1.6rem; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 7rem 4rem; background: var(--ivory); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.testimonial { border-top: 1px solid var(--gold); padding-top: 2rem; }
.testimonial p {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}
.testimonial span { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }

/* ===== NEWSLETTER ===== */
.newsletter { background: var(--maroon); color: #fff; text-align: center; padding: 6rem 4rem; }
.newsletter .label { color: var(--gold-light); }
.newsletter h2 { color: #fff; margin-bottom: 1rem; }
.newsletter p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-bottom: 2.5rem; }
.newsletter-form {
  display: flex;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.85rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form .btn-primary { background: var(--gold); border: 1px solid var(--gold); white-space: nowrap; }
.newsletter-form .btn-primary:hover { background: var(--gold-light); }

/* ===== FOOTER ===== */
.footer { background: #1a0f0d; color: rgba(255,255,255,0.7); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 5rem 4rem 4rem;
}
.footer-logo {
  display: inline-block;
  font-family: var(--serif);
  font-size: 2rem;
  color: #fff;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-logo:hover { color: var(--gold-light); }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; max-width: 260px; margin-bottom: 1.5rem; }
.social-icons { display: flex; gap: 1.2rem; }
.social-icon { color: rgba(255,255,255,0.45); font-size: 1rem; cursor: default; }
.footer-links h5 {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.6); transition: color 0.3s; }
.footer-links a:hover { color: #fff; }
.footer-links span { font-size: 0.82rem; color: rgba(255,255,255,0.35); cursor: default; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.footer-legal { color: rgba(255,255,255,0.35); cursor: default; }

/* ===== QUICK VIEW MODAL ===== */
.qv-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qv-modal[hidden] { display: none; }
.qv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,10,8,0.55);
  cursor: pointer;
}
.qv-panel {
  position: relative;
  background: var(--ivory);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 860px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  animation: qv-up 0.35s cubic-bezier(0.4,0,0.2,1);
}
@keyframes qv-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.qv-img-wrap { height: 480px; overflow: hidden; }
.qv-img-wrap img { object-fit: cover; width: 100%; height: 100%; }
.qv-details {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  overflow-y: auto;
}
.qv-details h3 { font-size: 1.6rem; }
.qv-details .price { font-size: 1.3rem; margin-top: 0.25rem; }
.qv-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin: 0.5rem 0 1rem; }
.qv-add-cart { align-self: flex-start; }
.qv-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.9);
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  z-index: 10;
  transition: background 0.2s;
}
.qv-close:hover { background: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .seasonal-grid, .occasions-scroll { grid-template-columns: repeat(2, 1fr); }
  .season-img { height: 360px; }
  .occ-img { height: 400px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 900px) {
  .navbar { padding: 1.2rem 2rem; }
  .navbar.scrolled { padding: 0.9rem 2rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-content { padding: 0 2rem; }
  .seasonal, .arrivals, .occasions, .testimonials { padding: 5rem 2rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about-img { height: 400px; }
  .about-text { padding: 4rem 2.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 2rem; }
  .newsletter { padding: 5rem 2rem; }
  .footer-top { padding: 4rem 2rem 3rem; }
  .footer-bottom { padding: 1.5rem 2rem; flex-direction: column; gap: 0.5rem; text-align: center; }
  .qv-panel { grid-template-columns: 1fr; max-width: 460px; }
  .qv-img-wrap { height: 300px; }
}

@media (max-width: 600px) {
  .seasonal-grid, .occasions-scroll, .products-grid { grid-template-columns: 1fr; }
  .season-img { height: 300px; }
  .occ-img { height: 340px; }
  .product-img { height: 360px; }
  .footer-top { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form .btn-primary { width: 100%; }
}
