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

:root {
  --primary: #8B1A4A;
  --gold: #C9A84C;
  --light: #FDF6EE;
  --dark: #2C1810;
  --text: #5a3e35;
}

body { font-family: 'Poppins', sans-serif; background: #fff; color: var(--dark); }

/* NAVBAR */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 6%; background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px); box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.logo-img { height: 60px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }
.nav-icons { display: flex; gap: 1rem; align-items: center; font-size: 1.1rem; color: var(--dark); cursor: pointer; position: relative; }
.nav-icons i:hover { color: var(--primary); }
.cart-count {
  position: absolute; top: -8px; right: 18px;
  background: var(--primary); color: #fff; border-radius: 50%;
  width: 18px; height: 18px; font-size: 0.65rem; display: flex; align-items: center; justify-content: center;
}
#menuToggle { display: none; }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: space-between; padding: 8rem 6% 4rem;
  background: linear-gradient(135deg, #fdf6ee 0%, #f5e6d3 100%);
}
.hero-content { max-width: 550px; }
.hero-sub { color: var(--gold); font-weight: 500; letter-spacing: 2px; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 1rem; }
.hero-content h1 { font-family: 'Playfair Display', serif; font-size: 3.2rem; line-height: 1.2; margin-bottom: 1.2rem; color: var(--dark); }
.hero-content h1 span { color: var(--primary); }
.hero-desc { color: var(--text); margin-bottom: 2rem; line-height: 1.8; }
.btn-primary {
  background: var(--primary); color: #fff; padding: 0.8rem 2rem;
  border: none; border-radius: 30px; cursor: pointer; font-size: 0.95rem;
  text-decoration: none; display: inline-block; transition: all 0.3s;
  font-family: 'Poppins', sans-serif; font-weight: 500;
}
.btn-primary:hover { background: var(--dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(139,26,74,0.3); }
.hero-img { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-logo-img {
  width: 420px; max-width: 90vw;
  filter: drop-shadow(0 10px 30px rgba(139,26,74,0.2));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-badge {
  position: absolute; bottom: 20px; right: 20px;
  background: var(--primary); color: #fff; padding: 0.8rem 1.2rem;
  border-radius: 12px; font-size: 0.85rem; font-weight: 500;
}

/* FEATURES */
.features {
  display: flex; justify-content: center; gap: 0;
  background: var(--primary); padding: 1.5rem 6%;
}
.feature {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 0.4rem; color: #fff; font-size: 0.85rem; border-right: 1px solid rgba(255,255,255,0.2);
  padding: 1rem;
}
.feature:last-child { border-right: none; }
.feature i { font-size: 1.5rem; color: var(--gold); }

/* COLLECTIONS */
.collections { padding: 5rem 6%; background: #fff; }
.section-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; text-align: center; margin-bottom: 0.5rem; }
.section-title span { color: var(--primary); }
.section-sub { text-align: center; color: var(--text); margin-bottom: 2rem; }
.filter-tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.tab {
  padding: 0.5rem 1.5rem; border: 2px solid var(--primary); border-radius: 25px;
  background: transparent; color: var(--primary); cursor: pointer; font-family: 'Poppins', sans-serif;
  font-size: 0.85rem; transition: all 0.3s;
}
.tab.active, .tab:hover { background: var(--primary); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
.product-card {
  border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s; background: var(--light);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.15); }
.product-img {
  height: 220px; display: flex; align-items: center; justify-content: center;
  font-size: 5rem; position: relative;
}
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: #fff; font-size: 0.7rem;
  padding: 0.2rem 0.6rem; border-radius: 20px; font-weight: 500;
}
.product-info { padding: 1.2rem; }
.product-info h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 0.3rem; }
.product-info .type { color: var(--text); font-size: 0.8rem; margin-bottom: 0.6rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.price { color: var(--primary); font-weight: 700; font-size: 1.1rem; }
.add-to-cart {
  background: var(--primary); color: #fff; border: none;
  padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer;
  font-size: 0.8rem; transition: background 0.3s;
}
.add-to-cart:hover { background: var(--dark); }

/* ABOUT */
.about {
  display: flex; align-items: center; gap: 4rem;
  padding: 5rem 6%; background: var(--light);
}
.about-text { flex: 1; }
.about-text h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin-bottom: 1rem; }
.about-text h2 span { color: var(--primary); }
.about-text p { color: var(--text); line-height: 1.8; margin-bottom: 1rem; }
.stats { display: flex; gap: 2rem; margin-top: 2rem; }
.stats div { text-align: center; }
.stats h3 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--primary); }
.stats p { font-size: 0.85rem; color: var(--text); }
.about-img { flex: 0 0 300px; display: flex; justify-content: center; }
.about-circle {
  width: 280px; height: 280px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; color: rgba(255,255,255,0.6);
}

/* TESTIMONIALS */
.testimonials { padding: 5rem 6%; background: #fff; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.testimonial-card {
  background: var(--light); padding: 2rem; border-radius: 16px;
  border-left: 4px solid var(--primary); box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.testimonial-card p { color: var(--text); line-height: 1.7; font-style: italic; margin-bottom: 1rem; }
.reviewer { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; font-size: 0.85rem; }
.reviewer i { font-size: 1.5rem; color: var(--primary); }
.stars { color: var(--gold); margin-top: 0.4rem; letter-spacing: 2px; }

/* CONTACT */
.contact { padding: 5rem 6%; background: var(--light); }
.contact-wrapper { display: flex; gap: 4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.map-link { display: block; position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.12); flex: 1; min-width: 280px; max-width: 420px; text-decoration: none; }
.map-iframe { width: 100%; height: 220px; border: none; display: block; pointer-events: none; }
.map-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--primary); color: #fff;
  text-align: center; padding: 0.7rem; font-size: 0.9rem; font-weight: 500;
  transition: background 0.3s;
}
.map-link:hover .map-overlay { background: var(--dark); }
.contact-info { flex: 1; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info > div { display: flex; align-items: center; gap: 1rem; }
.contact-info i { color: var(--primary); font-size: 1.2rem; width: 20px; }
.contact-info p { color: var(--text); }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { color: var(--primary); font-size: 1.5rem; transition: color 0.3s; }
.social-icons a:hover { color: var(--gold); }
.contact-form { flex: 1; display: flex; flex-direction: column; gap: 1rem; min-width: 280px; }
.contact-form input, .contact-form textarea {
  padding: 0.9rem 1.2rem; border: 2px solid #e8d5c0; border-radius: 10px;
  font-family: 'Poppins', sans-serif; font-size: 0.9rem; outline: none;
  background: #fff; transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }

/* FOOTER */
footer { background: var(--dark); color: #ccc; text-align: center; padding: 1.5rem; font-size: 0.9rem; }
footer strong { color: var(--gold); }

/* CART MODAL */
.cart-modal {
  position: fixed; right: -400px; top: 0; height: 100vh; width: 360px;
  background: #fff; z-index: 2000; box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transition: right 0.3s; display: flex; flex-direction: column;
}
.cart-modal.open { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; background: var(--primary); color: #fff; }
.cart-header i { cursor: pointer; font-size: 1.2rem; }
#cartItems { flex: 1; overflow-y: auto; padding: 1rem; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid #f0e0d0; }
.cart-item-info h4 { font-size: 0.9rem; }
.cart-item-info p { color: var(--primary); font-weight: 600; font-size: 0.85rem; }
.remove-item { color: #e74c3c; cursor: pointer; font-size: 1.2rem; }
.cart-footer { padding: 1.5rem; border-top: 2px solid var(--light); }
.cart-footer .total { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; color: var(--dark); }
.cart-footer .total span { color: var(--primary); }
.address-form { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.address-form input {
  padding: 0.85rem 1.1rem; border: 2px solid #e8d5c0; border-radius: 10px;
  font-family: 'Poppins', sans-serif; font-size: 0.9rem; outline: none;
  background: #fff; transition: border-color 0.3s;
}
.address-form input:focus { border-color: var(--primary); }
.addr-row { display: flex; gap: 0.8rem; }
.addr-row input { flex: 1; }

/* PAYMENT MODAL */
.payment-modal {
  position: fixed; inset: 0; z-index: 3000; display: none;
  align-items: center; justify-content: center;
}
.payment-modal.open { display: flex; }
.payment-content {
  background: #fff; border-radius: 20px; width: 90%; max-width: 440px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2); overflow: hidden;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.payment-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.5rem; background: var(--primary); color: #fff;
}
.payment-header i { cursor: pointer; }
.payment-options { padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.payment-option {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  border: 2px solid #f0e0d0; border-radius: 12px; cursor: pointer;
  transition: all 0.2s; font-size: 0.95rem; color: var(--dark);
}
.payment-option:hover { border-color: var(--primary); background: #fdf6ee; }
.payment-option img { height: 28px; width: auto; object-fit: contain; }
.payment-option .pay-icon { font-size: 1.4rem; color: var(--primary); width: 28px; text-align: center; }
.payment-option span { flex: 1; font-weight: 500; }
.payment-option .fa-chevron-right { color: #ccc; font-size: 0.8rem; }

.upi-qr {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.2rem; border: 2px dashed var(--primary); border-radius: 12px;
  margin-bottom: 0.5rem;
}
.upi-qr img { width: 180px; height: 180px; border-radius: 8px; }
.upi-qr p { font-size: 0.85rem; color: var(--text); }
.upi-qr span { font-weight: 600; color: var(--primary); font-size: 0.9rem; }


.otp-body { padding: 2rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.otp-info { color: var(--text); font-size: 0.9rem; text-align: center; }
.otp-inputs { display: flex; gap: 0.8rem; }
.otp-box {
  width: 56px; height: 56px; text-align: center; font-size: 1.5rem; font-weight: 700;
  border: 2px solid #e8d5c0; border-radius: 12px; outline: none;
  font-family: 'Poppins', sans-serif; color: var(--dark); transition: border-color 0.3s;
}
.otp-box:focus { border-color: var(--primary); }
.otp-resend { font-size: 0.85rem; color: var(--text); }
.otp-resend span { color: var(--primary); cursor: pointer; font-weight: 500; }
.otp-resend span:hover { text-decoration: underline; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1500; display: none; }
.overlay.show { display: block; }
.empty-cart { text-align: center; color: var(--text); padding: 3rem 1rem; }

/* DARK MODE */
body.dark {
  --light: #1a1a2e;
  --dark: #f0e6d3;
  --text: #c9b8a8;
  background: #121212;
  color: #f0e6d3;
}
body.dark .navbar { background: rgba(18,18,18,0.95); }
body.dark .hero { background: linear-gradient(135deg, #1a1a2e 0%, #2a1a2e 100%); }
body.dark .product-card { background: #1e1e2e; }
body.dark .collections { background: #121212; }
body.dark .testimonials { background: #121212; }
body.dark .testimonial-card { background: #1e1e2e; }
body.dark .contact-form input,
body.dark .contact-form textarea { background: #1e1e2e; border-color: #3a3a5a; color: #f0e6d3; }
body.dark .address-form input { background: #1e1e2e; border-color: #3a3a5a; color: #f0e6d3; }
body.dark .cart-modal { background: #1a1a2e; }
body.dark .cart-item { border-color: #2a2a4e; }
body.dark .payment-content { background: #1a1a2e; }
body.dark .payment-option { border-color: #3a3a5a; color: #f0e6d3; }
body.dark .payment-option:hover { background: #2a2a4e; }
body.dark .otp-box { background: #1e1e2e; border-color: #3a3a5a; color: #f0e6d3; }
body.dark footer { background: #0a0a0a; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: #fff; padding: 1rem 2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; }
  #menuToggle { display: block; }
  .hero { flex-direction: column; text-align: center; padding: 7rem 6% 3rem; }
  .hero-circle { width: 250px; height: 250px; }
  .hero-content h1 { font-size: 2.2rem; }
  .features { flex-wrap: wrap; }
  .about { flex-direction: column; }
  .contact-wrapper { flex-direction: column; }
  .stats { gap: 1rem; }
}
