/* THEME 20 — Diya & Rangoli
   Vibe: Festival special category — Diwali night: deep wine-maroon and
   ivory, marigold-and-diya garland strip instead of a printed rule, a
   diya (oil lamp) silhouette as the corner motif, rangoli dot-mandala
   as a faint centered background texture. No real product photos yet
   (placeholder trial) — same slots ready for real photos later. */

:root {
  --ink: #3a1420;
  --ink-soft: #8a5a63;
  --paper: #fdf6ee;
  --paper-alt: #f7ead5;
  --maroon: #5c1626;
  --maroon-dark: #3a1420;
  --marigold: #e8a33d;
  --rose: #d2536b;
  --gold: #cf9a3e;
  --border: #e8d3b0;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Karla", -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

.theme-tag {
  position: fixed;
  bottom: 12px;
  right: 12px;
  background: var(--maroon);
  color: #fff;
  font-size: 0.72rem;
  padding: 6px 14px;
  border-radius: 999px;
  z-index: 50;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: "Yeseva One", serif;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--maroon-dark);
}

p { margin: 0 0 16px; color: var(--ink-soft); }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--marigold); color: var(--maroon-dark); box-shadow: 0 8px 18px rgba(232,163,61,0.35); }
.btn-whatsapp { background: var(--maroon); color: #fff; box-shadow: 0 8px 18px rgba(92,22,38,0.3); }

/* Marigold-and-diya garland strip, standing in for a printed rule */
.garland-strip {
  height: 16px;
  background-image: repeating-radial-gradient(
    circle at 12px 8px, var(--marigold) 0 4px, transparent 4.5px 12px
  ),
  repeating-radial-gradient(
    circle at 26px 8px, var(--rose) 0 3px, transparent 3.5px 12px
  );
  background-size: 24px 16px;
  background-color: var(--maroon-dark);
}

/* Header, brand, and nav chrome now live in css/category-nav.css, shared
   by every category page so they're identical everywhere. */

/* Fixed corner diyas — small oil-lamp silhouettes, same technique as
   the other category themes: fixed, faint, mostly bleeding off-edge */
.decor-motif { pointer-events: none; }
.decor-motif svg { display: block; width: 100%; height: 100%; }
.corner-motif {
  position: fixed;
  width: 130px;
  height: 130px;
  opacity: 0.18;
  z-index: 0;
}
.corner-motif.top-left { top: -30px; left: -30px; }
.corner-motif.bottom-right { bottom: -30px; right: -30px; transform: rotate(180deg); }

/* Hero — deep maroon night sky with a faint rangoli-dot scatter */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0px 0 75px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 25%, rgba(232,163,61,0.10) 0 2px, transparent 2px),
    radial-gradient(circle at 82% 65%, rgba(210,83,107,0.10) 0 2px, transparent 2px),
    radial-gradient(circle at 55% 15%, rgba(232,163,61,0.08) 0 2px, transparent 2px),
    var(--maroon);
  background-size: 46px 46px, 60px 60px, 38px 38px, auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  height: 401px;
}
.hero .container { position: relative; z-index: 1; }
.hero-kicker { display: inline-block; font-size: 0.85rem; color: var(--marigold); margin-bottom: 18px; letter-spacing: 0.05em; text-transform: uppercase; }
.hero h1 { font-size: 2.6rem; color: var(--paper); }
.hero-sub { font-size: 1.05rem; margin: 0 auto 30px; max-width: 460px; color: rgba(253,246,238,0.8); }
.hero-diya {
  display: block;
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
  opacity: 0.9;
}
.hero-diya svg { width: 100%; height: 100%; }

.about { position: relative; overflow: hidden; padding: 56px 0; text-align: center; display: flex; flex-direction: column; justify-content: center; min-height: 320px; }
.about .container { max-width: 640px; position: relative; z-index: 1; }

/* Products — a faint centered rangoli-mandala watermark, low enough
   opacity to never compete with the cards or heading above it */
.products { position: relative; overflow: hidden; padding: 20px 0 72px; }
.rangoli-bg {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}
.rangoli-bg svg { width: 100%; height: 100%; }
.products h2 { text-align: center; margin-bottom: 8px; font-size: 2.3rem; position: relative; z-index: 1; }
.product-search-wrap { display: flex; justify-content: center; margin: 16px 0 12px; position: relative; z-index: 1; }
.product-search {
  width: 100%; max-width: 360px; padding: 10px 18px; border-radius: 999px;
  border: 2px solid var(--border); background: var(--paper); color: var(--ink); font-family: inherit; font-size: 0.92rem;
}
.product-search:focus { border-color: var(--marigold); }
.no-results { text-align: center; color: var(--ink-soft); margin: -8px 0 24px; position: relative; z-index: 1; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 22px rgba(58,20,32,0.12);
  position: relative;
}
.product-card:hover { transform: translateY(-3px); }

/* small diya-flame chip pinned at the card's corner */
.product-card::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 18px;
  background: radial-gradient(ellipse at 50% 70%, var(--marigold) 0 55%, var(--rose) 70%, transparent 90%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  z-index: 2;
}

.product-image { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.product-image.placeholder {
  background: repeating-linear-gradient(
    135deg, var(--paper-alt), var(--paper-alt) 10px, #efdcb8 10px, #efdcb8 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; display: none; }
.product-image img.loaded { display: block; }
.product-image:not(.placeholder) span { display: none; }

.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.product-tags .tag {
  background: var(--maroon); color: #fff; font-size: 0.68rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
}
.product-desc { font-size: 0.88rem; flex: 1; margin-bottom: 16px; }

.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-price {
  font-weight: 700;
  color: var(--maroon);
  font-family: "Yeseva One", serif;
  font-size: 1.05rem;
}
.product-footer .btn { padding: 9px 18px; font-size: 0.78rem; white-space: nowrap; }

/* Custom CTA */
.custom-cta { position: relative; overflow: hidden; padding: 60px 0 88px; text-align: center; background: var(--paper-alt); border-top: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; min-height: 345px; }
.custom-cta .container { max-width: 600px; position: relative; z-index: 1; }

/* Footer */
.site-footer { border-top: 1px solid var(--maroon); padding: 32px 0; display: flex; flex-direction: column; justify-content: center; min-height: 200px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--maroon); }
.footer-contact { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.footer-contact a { color: var(--ink-soft); text-decoration: none; }
.footer-contact a:hover { color: var(--maroon); }
.footer-policies { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 4px; }
.footer-note { font-size: 0.8rem; margin: 0; }

@media (max-width: 600px) {
  .garland-strip { height: 10px; }
  .hero { height: 250px; padding: 8px 0 14px; }
  .hero-diya { width: 26px; height: 26px; margin-bottom: 6px; }
  .hero-kicker { font-size: 0.68rem; margin-bottom: 6px; }
  .hero h1 { font-size: 1.5rem; }
  .hero-sub { font-size: 0.82rem; margin: 0 auto 14px; }
  .rangoli-bg { width: 280px; height: 280px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .product-footer .btn { align-self: stretch; text-align: center; font-size: 0.72rem; padding: 9px 8px; }
  .product-image { aspect-ratio: 1 / 1; }
  .product-body { padding: 10px; }
  .product-body h3 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    line-height: 1.25;
    min-height: 2.4rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .product-tags { display: none; }
  .product-tags .tag { font-size: 0.6rem; padding: 2px 8px; }
  .product-desc {
    font-size: 0.76rem;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .product-price { font-size: 0.95rem; }
}
