/* ============================================================
   Beauty & Brand — Premium UI
   ============================================================ */
:root {
  --maroon: #6b1a28;
  --maroon-dark: #4a101c;
  --maroon-light: #8b2a3a;
  --gold: #c9a227;
  --gold-light: #e0c05a;
  --cream: #faf6f1;
  --cream-dark: #f0e8dc;
  --ink: #1a1a1a;
  --muted: #6b6560;
  --border: #e6ddd2;
  --white: #ffffff;
  --success: #1a5c45;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(26, 20, 16, 0.06);
  --shadow-lg: 0 12px 40px rgba(26, 20, 16, 0.1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --transition: 0.25s ease;
}

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

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }

/* Offer bar */
.offer-bar {
  background: var(--maroon-dark);
  color: #f5e6c8;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo span { color: var(--gold); font-weight: 500; }

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--maroon);
  transition: width var(--transition);
}
.main-nav a:hover { color: var(--maroon); }
.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.header-link { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.header-link:hover { color: var(--maroon); }
.header-user { font-size: 0.8rem; color: var(--muted); }

.cart-btn {
  background: var(--maroon);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition), transform var(--transition);
}
.cart-btn:hover { background: var(--maroon-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink);
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--maroon-dark);
}
.carousel-track { height: 100%; position: relative; }
.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.carousel-slide.active { opacity: 1; z-index: 1; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background var(--transition);
}
.carousel-btn:hover { background: rgba(255,255,255,0.35); }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}
.carousel-dots .dot.active { background: #fff; }

/* Sections */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}
.section-title {
  text-align: center;
  margin-bottom: 36px;
}
.section-title h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 6px;
}
.section-title p { color: var(--muted); font-size: 0.95rem; }

/* Collection chips */
.collections {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.collection-chip {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--ink);
}
.collection-chip:hover,
.collection-chip.active {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 300px;
  background: var(--cream-dark);
  position: relative;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--maroon);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}
.badge.New { background: var(--gold); color: var(--ink); }
.badge.Wedding { background: var(--success); }
.badge.Sale { background: #c0392b; }

.product-info { padding: 18px; }
.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
  line-height: 1.35;
}
.product-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--maroon);
}
.old-price {
  font-size: 0.9rem;
  color: #aaa;
  text-decoration: line-through;
}

.add-btn, .btn {
  display: inline-block;
  width: 100%;
  background: var(--maroon);
  color: #fff;
  border: none;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
  font-family: var(--font);
}
.add-btn:hover, .btn-dark:hover { background: var(--maroon-dark); }
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  width: auto;
  padding: 12px 28px;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--maroon);
  color: var(--maroon);
  width: auto;
}
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-dark { background: var(--maroon); color: #fff; width: auto; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--white);
  font-family: var(--font);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(107, 26, 40, 0.1);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Cart */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.cart-table th, .cart-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.cart-table th {
  background: var(--cream);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.cart-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.cart-summary .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.cart-summary .total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--maroon);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 8px;
}

/* COD badges */
.cod-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.cod-yes { background: #e8f5e9; color: var(--success); }
.cod-no { background: #f5f5f5; color: #888; }

/* Footer */
.site-footer {
  background: #1a1410;
  color: #c8bfb4;
  margin-top: 60px;
  padding: 56px 24px 0;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  padding-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: #c8bfb4;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 16px; margin-top: 12px; }
.footer-social a {
  color: var(--gold);
  font-weight: 600;
}
.footer-note { font-size: 0.8rem; opacity: 0.7; margin-top: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 18px;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Policy pages */
.policy-page { max-width: 720px; }
.policy-content h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--maroon);
  margin-bottom: 8px;
}
.policy-updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 28px; }
.policy-content h2 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  color: var(--ink);
}
.policy-content p, .policy-content li {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.policy-content ul { padding-left: 20px; }

/* Size chart */
.size-chart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.9rem;
}
.size-chart-table th, .size-chart-table td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: center;
}
.size-chart-table th { background: var(--cream); font-weight: 600; }
.size-guide-btn {
  background: none;
  border: none;
  color: var(--maroon);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 4px;
  font-family: var(--font);
}
#size-chart-box {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: var(--cream);
  border-radius: 8px;
  border: 1px solid var(--border);
}
#size-chart-box.open { display: block; }

.img-preview {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.img-preview img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Toast notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--success);
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  z-index: 9999;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .header-user { display: none; }
}

@media (max-width: 768px) {
  .hero-carousel { height: 280px; }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .product-image { height: 200px; }
  .section { padding: 36px 16px; }
  .section-title h2 { font-size: 1.7rem; }
  .form-row { grid-template-columns: 1fr; }
  .header-inner { padding: 12px 16px; }
  .logo { font-size: 1.35rem; }
  .carousel-btn { width: 36px; height: 36px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .product-grid { gap: 10px; }
  .product-info { padding: 12px; }
  .price { font-size: 1rem; }
}
