/* ================================================================
   MERCY CHILI PRODUCTS — Additional components for the dynamic CMS
   Uses the exact same design tokens defined in style.css.
   No existing colors are changed.
   ================================================================ */

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--bilimbi-green);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); font-size: 1.6rem;
  box-shadow: 0 14px 34px rgba(94,122,42,0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 18px 40px rgba(94,122,42,0.55); }
@media (max-width: 560px) {
  .whatsapp-float { width: 52px; height: 52px; font-size: 1.4rem; right: 16px; bottom: 16px; }
}

/* ---------- Product badges (featured / discount / out of stock) ---------- */
.product-card { position: relative; }
.product-badges { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.badge-pill {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 100px; color: var(--cream); box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.badge-featured { background: var(--mango-gold); color: var(--espresso); }
.badge-sale { background: var(--chili-red); }
.product-card.out-of-stock .product-image img { filter: grayscale(0.6) brightness(0.8); }
.badge-outofstock { background: var(--espresso); }
.price-row { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-mono); }
.price-old { text-decoration: line-through; color: var(--ink-soft); font-size: 0.82rem; }
.price-new { color: var(--chili-red); font-weight: 700; font-size: 1rem; }
.btn-whatsapp[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* ---------- Why Choose Us ---------- */
.why-section { background: var(--espresso); position: relative; overflow: hidden; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card {
  background: rgba(245,239,226,0.05); border: 1px solid rgba(245,239,226,0.1);
  border-radius: var(--radius-md); padding: 30px 26px;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.why-card:hover { transform: translateY(-6px); background: rgba(245,239,226,0.08); }
.why-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--chili-red);
  display: flex; align-items: center; justify-content: center; color: var(--cream); font-size: 1.2rem; margin-bottom: 20px;
}
.why-card h3 { color: var(--cream); font-size: 1.12rem; margin-bottom: 10px; }
.why-card p { color: var(--cream-soft); font-size: 0.92rem; }

/* ---------- Gallery ---------- */
.gallery-section { background: var(--parchment-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1; box-shadow: 0 14px 34px rgba(23,18,15,0.12); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 14px 14px 12px;
  background: linear-gradient(0deg, rgba(23,18,15,0.85), rgba(23,18,15,0));
  color: var(--cream); font-size: 0.78rem; opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ---------- Dynamic stockists list ---------- */
.stockist-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; }
.stockist-card {
  background: rgba(245,239,226,0.06); border: 1px solid rgba(245,239,226,0.1);
  border-radius: var(--radius-md); padding: 22px; color: var(--cream-soft);
}
.stockist-card h4 { color: var(--cream); font-size: 1.02rem; margin-bottom: 8px; }
.stockist-card p { color: var(--cream-soft); font-size: 0.86rem; margin-bottom: 4px; }
.stockist-card a { color: var(--mango-gold); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }

/* ---------- Testimonial rating stars & avatar ---------- */
.testimonial-card .stars { color: var(--mango-gold); margin-bottom: 10px; font-size: 0.85rem; }
.testimonial-avatar-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* ---------- Empty-state guards (used only if a DB list happens to be empty) ---------- */
.empty-note { text-align: center; color: var(--ink-soft); font-size: 0.9rem; padding: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
