/* THEME 29 — Home Decoration & Heritage Crafts
   Vibe: Warm Festive Entryway — Terracotta Clay, Antique Brass Gold,
   Deep Mango Green, Crimson Red, Toran Arch Scallops, and Warm Parchment. */

:root {
  --ink: #321e17;
  --ink-soft: #6d544b;
  --paper: #fdfaf3;          /* Warm parchment paper */
  --paper-alt: #f6efe0;      /* Warm clay linen */
  --terracotta: #b33927;     /* Traditional crimson/terracotta */
  --brass-gold: #c28e2b;     /* Antique temple brass gold */
  --mango-leaf: #2d5a27;     /* Deep festive foliage green */
  --border: #e8d9c0;
  --radius: 8px;
}

* { box-sizing: border-box; }

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

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

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

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

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(--terracotta);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(179, 57, 39, 0.3);
}
.btn-primary:hover {
  background: #962c1d;
}
.btn-whatsapp {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(50, 30, 23, 0.06);
}
.btn-whatsapp:hover {
  border-color: var(--brass-gold);
}

/* Hanging Toran Scalloped Ribbon Strip */
.toran-garland-strip {
  height: 16px;
  background-image:
    radial-gradient(circle at 12px 8px, var(--mango-leaf) 0 6px, transparent 6.5px 12px),
    radial-gradient(circle at 24px 8px, var(--terracotta) 0 5px, transparent 5.5px 12px),
    radial-gradient(circle at 36px 8px, var(--brass-gold) 0 4px, transparent 4.5px 12px);
  background-size: 48px 16px;
  background-color: var(--paper-alt);
  border-bottom: 2px solid var(--brass-gold);
}

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

/* Fixed Leaf Corner Motifs */
.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 — Heritage Craft Atmosphere */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0px 0 55px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(194, 142, 43, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(179, 57, 39, 0.1) 0%, transparent 45%),
    var(--paper-alt);
  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;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero h1 { font-size: 2.6rem; color: var(--ink); }
.hero-sub { font-size: 1.05rem; margin: 0 auto 30px; max-width: 460px; color: var(--ink-soft); }
.hero-icon {
  display: block;
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
  opacity: 0.9;
}
.hero-icon 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 Section */
.products { position: relative; overflow: hidden; padding: 20px 0 72px; }
.mandala-bg {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}
.mandala-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(--terracotta); }
.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(50, 30, 23, 0.12);
  position: relative;
}
.product-card:hover { transform: translateY(-3px); }

/* Brass Bell Pin Badge on Card Corner */
.product-card::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 18px;
  background: var(--brass-gold);
  border-radius: 50% 50% 20% 20%;
  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; font-family: "Rozha One", serif; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.product-tags .tag {
  background: var(--terracotta);
  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(--terracotta);
  font-family: "Rozha 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(--terracotta); padding: 32px 0; background: var(--paper); 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(--terracotta); }
.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(--terracotta); }
.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) {
  .toran-garland-strip { height: 10px; }
  .hero { height: 250px; padding: 8px 0 14px; }
  .hero-icon { 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; }
  .mandala-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; }
}