/* ==========================================================
   Jamdani House — Design Tokens
   ========================================================== */
:root {
  --maroon: #6B1E2B;
  --maroon-dark: #4A1420;
  --gold: #C9A227;
  --gold-soft: #E3CD8E;
  --cream: #F8F1E4;
  --cream-deep: #EFE3CC;
  --charcoal: #2B2420;
  --olive: #4B6B43;
  --terracotta: #B5651D;

  --font-display: "Cormorant Garamond", "Tiro Bangla", serif;
  --font-body: "Hind Siliguri", "Inter", sans-serif;

  --radius: 4px;
  --shadow-soft: 0 8px 24px rgba(43, 36, 32, 0.10);
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--maroon-dark);
  letter-spacing: 0.01em;
}

a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--terracotta); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* ==========================================================
   Signature element: woven lattice divider
   A repeating diamond motif evoking the jamdani handloom weave
   ========================================================== */
.weave-divider {
  height: 14px;
  width: 100%;
  background-image:
    linear-gradient(45deg, var(--gold) 25%, transparent 25%, transparent 75%, var(--gold) 75%),
    linear-gradient(45deg, var(--gold) 25%, transparent 25%, transparent 75%, var(--gold) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
  background-color: var(--maroon-dark);
  opacity: 0.9;
}

.weave-divider.thin { height: 6px; background-size: 8px 8px; background-position: 0 0, 4px 4px; }

/* ==========================================================
   Navbar
   ========================================================== */
.site-navbar {
  background: var(--cream);
  border-bottom: 1px solid var(--gold-soft);
}
.site-navbar .navbar-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--maroon-dark) !important;
}
.site-navbar .navbar-brand .brand-bn {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.site-navbar .nav-link {
  color: var(--charcoal) !important;
  font-weight: 500;
  margin: 0 0.4rem;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--maroon) !important;
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  background: linear-gradient(160deg, var(--maroon-dark) 0%, var(--maroon) 65%, var(--terracotta) 130%);
  color: var(--cream);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(201,162,39,0.08) 25%, transparent 25%, transparent 75%, rgba(201,162,39,0.08) 75%),
    linear-gradient(45deg, rgba(201,162,39,0.08) 25%, transparent 25%, transparent 75%, rgba(201,162,39,0.08) 75%);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  pointer-events: none;
}
.hero h1 {
  color: var(--cream);
  font-size: 3rem;
  font-weight: 700;
}
.hero .lead {
  color: var(--gold-soft);
  font-size: 1.15rem;
  max-width: 540px;
}
.hero .btn-cta {
  background: var(--gold);
  color: var(--maroon-dark);
  border: none;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius);
}
.hero .btn-cta:hover { background: var(--gold-soft); }

@media (max-width: 576px) {
  .hero { padding: 3rem 0 2.5rem; text-align: center; }
  .hero h1 { font-size: 2.1rem; }
  .hero .lead { margin: 0 auto 1.5rem; }
}

/* ==========================================================
   Section headings
   ========================================================== */
.section-heading { margin-bottom: 2.2rem; }
.section-heading h2 { font-size: 2.1rem; margin: 0.2rem 0 0; }

/* ==========================================================
   Product cards
   ========================================================== */
.product-card {
  background: #fff;
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.product-card .img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-deep);
}
.product-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-card .img-wrap .badge-status {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  font-weight: 600;
}
.badge-available { background: var(--olive); color: #fff; }
.badge-sold-out { background: var(--charcoal); color: var(--gold-soft); }

.product-card .card-body { padding: 1rem 1.1rem 1.2rem; }
.product-card .product-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
}
.product-card .product-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--maroon-dark);
  margin: 0.2rem 0 0.3rem;
}
.product-card .product-price {
  font-weight: 600;
  color: var(--charcoal);
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn-maroon {
  background: var(--maroon);
  color: #fff;
  border: none;
  font-weight: 600;
}
.btn-maroon:hover { background: var(--maroon-dark); color: #fff; }

.btn-whatsapp {
  background: #2EAE52;
  color: #fff;
  border: none;
  font-weight: 600;
}
.btn-whatsapp:hover { background: #25963f; color: #fff; }

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--maroon-dark);
  background: transparent;
  font-weight: 600;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--maroon-dark); }

/* ==========================================================
   Filters
   ========================================================== */
.filter-bar {
  background: #fff;
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.filter-bar .form-select,
.filter-bar .form-control {
  border-color: var(--cream-deep);
}
.filter-bar .form-select:focus,
.filter-bar .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.2);
}

/* ==========================================================
   Product detail page
   ========================================================== */
.product-gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--cream-deep);
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.7rem; flex-wrap: wrap; }
.product-gallery-thumbs img {
  width: 64px; height: 80px; object-fit: cover;
  border-radius: 2px; cursor: pointer;
  border: 2px solid transparent;
}
.product-gallery-thumbs img.active { border-color: var(--gold); }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  background: var(--charcoal);
  color: var(--cream-deep);
  padding: 3rem 0 1.5rem;
}
.site-footer h5 {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.site-footer a { color: var(--cream-deep); }
.site-footer a:hover { color: var(--gold); }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(248,241,228,0.12);
  margin-top: 2rem;
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: rgba(248,241,228,0.6);
}

/* ==========================================================
   Floating WhatsApp button
   ========================================================== */
.float-whatsapp {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 56px; height: 56px;
  background: #2EAE52;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 1050;
  transition: transform 0.15s ease;
}
.float-whatsapp:hover { transform: scale(1.08); color: #fff; }

/* ==========================================================
   Forms (contact)
   ========================================================== */
.heritage-card {
  background: #fff;
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  padding: 2rem;
}

/* ==========================================================
   Alerts
   ========================================================== */
.alert-heritage {
  background: var(--cream-deep);
  border: 1px solid var(--gold-soft);
  color: var(--maroon-dark);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .product-card, .float-whatsapp { transition: none; }
}
