/* ============================================================
   IceDelights CMS - Ice Cream & Cakes Theme
   Brand colors come from CSS variables set in header.php
   (managed via Admin > Site Settings > Theme Colors)
   ============================================================ */

:root {
  --cream: #fff7ef;
  --cream-2: #ffeef5;
  --choc: #4a2c2a;
}

html, body { height: 100%; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: #3d2b2a;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .logo-text, .hero-title, .section-title {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
}

/* ---------- Top bar & Nav ---------- */
.topbar { background: var(--brand-dark); color: #fff; }
.topbar-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.topbar-item { display: inline-flex; align-items: center; white-space: nowrap; }
.topbar-ico { color: var(--brand); font-size: 1.05rem; }
.social-circles a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: #fff; text-decoration: none; font-size: .8rem; margin-left: 6px; transition: .2s; }
.social-circles a:hover { background: var(--brand); border-color: var(--brand); }
@media (max-width: 767px) {
  .topbar-grid { grid-template-columns: 1fr; text-align: center; gap: 4px; }
  .topbar-left, .topbar-right { text-align: center !important; }
  .topbar-left { display: none; }
}
.topbar-link { color: #fff; text-decoration: none; opacity: .9; }
.topbar-link:hover { opacity: 1; color: #fff; }
.social-icons a { color: #fff; margin-left: 12px; font-size: 1rem; }
.social-icons a:hover { color: var(--brand2); }

.main-nav {
  background: #fff;
  box-shadow: 0 2px 14px rgba(74,44,42,.08);
}
.main-nav .nav-link { font-weight: 700; color: var(--brand-dark); }
.main-nav .nav-link:hover { color: var(--brand); }
.site-logo { height: var(--logo-h, 52px); max-height: 120px; width: auto; }
.site-logo-mobile { height: var(--logo-h-m, 42px); max-height: 100px; width: auto; }
.btn-catalog { background: var(--brand-dark); color: #fff; border: none; font-weight: 700; }
.btn-catalog:hover { background: var(--brand); color: #fff; }
/* Gallery */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 991px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .gal-grid { grid-template-columns: repeat(2, 1fr); } }
.gal-card { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.08); background: #fff; }
.gal-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; display: block; }
.gal-card:hover img { transform: scale(1.06); }
.gal-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: .85rem; font-weight: 700; }
.gal-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.logo-text { font-size: 1.5rem; font-weight: 800; color: var(--brand); }

.btn-brand {
  background: var(--brand);
  border: none;
  color: #fff;
  font-weight: 700;
}
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-outline-brand {
  border: 2px solid var(--brand);
  color: var(--brand);
  font-weight: 700;
  background: transparent;
}
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* ---------- Hero slider ---------- */
.hero-img { height: 480px; object-fit: cover; }
@media (max-width: 991px) { .hero-img { height: 380px; } }
@media (max-width: 767px) { .hero-img { height: 300px; } }
.hero-caption {
  background: rgba(74,44,42,.45);
  border-radius: 18px;
  padding: 20px 26px;
  max-width: 560px;
  left: 6%;
  right: auto;
  bottom: 14%;
  backdrop-filter: blur(2px);
}
.hero-title { font-weight: 800; }
.hero-fallback {
  min-height: 420px;
  background: linear-gradient(135deg, var(--cream-2), var(--cream) 60%);
}

/* ---------- Sections ---------- */
.home-section { padding: 64px 0; }
.section-tint { background: var(--cream-2); }
.section-title { font-weight: 800; color: var(--brand-dark); }
.section-sub { color: #8a6f6d; max-width: 620px; margin: 0 auto; }
.lead-sub { color: #8a6f6d; font-weight: 600; }

/* Signature: melting-drip divider under section titles */
.drip-divider {
  display: inline-block;
  width: 96px;
  height: 12px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 12px 12px, var(--brand) 6px, transparent 7px),
    radial-gradient(circle at 48px 14px, var(--brand2) 7px, transparent 8px),
    radial-gradient(circle at 84px 12px, var(--brand) 6px, transparent 7px),
    linear-gradient(var(--brand), var(--brand));
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 5px;
  background-position: 0 4px, 0 2px, 0 4px, 0 0;
}

/* ---------- Category cards ---------- */
.cat-card {
  display: block;
  background: #fff;
  border-radius: 22px;
  padding: 22px 16px;
  text-align: center;
  color: inherit;
  box-shadow: 0 4px 18px rgba(74,44,42,.07);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 10px 26px rgba(74,44,42,.14); }
.cat-img-wrap {
  width: 110px; height: 110px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  border: 4px solid var(--brand2);
}
.cat-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cat-emoji { font-size: 2.4rem; color: var(--brand); }
.cat-name { color: var(--brand-dark); font-weight: 700; }

/* ---------- Promo banners ---------- */
.promo-banner {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(74,44,42,.10);
  transition: transform .2s ease;
}
.promo-banner:hover { transform: scale(1.015); }
.promo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banners-section { padding: 32px 0; }

/* ---------- Product cards ---------- */
.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(74,44,42,.07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 26px rgba(74,44,42,.14); }
.prod-img-wrap { height: 200px; overflow: hidden; background: var(--cream-2); }
.prod-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .prod-img-wrap img { transform: scale(1.06); }
.prod-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 2.5rem; color: var(--brand2);
}
.prod-title { color: var(--brand-dark); text-decoration: none; font-weight: 700; }
.prod-title:hover { color: var(--brand); }
.price-tag { color: var(--brand); }
.cat-badge { background: var(--cream-2); color: var(--brand); font-weight: 700; }

/* ---------- About ---------- */
.about-img { box-shadow: 0 10px 30px rgba(74,44,42,.15); }
.about-art {
  height: 320px;
  background: linear-gradient(135deg, var(--brand2), var(--cream-2));
  font-size: 5rem; color: #fff;
}
.rich-content p { margin-bottom: .6rem; }

/* ---------- Testimonials slider (4-col, auto, arrows) ---------- */
.ts-viewport { overflow: hidden; }
.ts-track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}
.ts-item { flex: 0 0 25%; max-width: 25%; padding: 0 10px; }
@media (max-width: 991px) { .ts-item { flex: 0 0 50%; max-width: 50%; } }
@media (max-width: 575px) { .ts-item { flex: 0 0 100%; max-width: 100%; } }
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(74,44,42,.08);
  display: flex; flex-direction: column;
  border-top: 4px solid var(--brand2);
}
.ts-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden; margin-bottom: 10px;
  background: var(--brand);
  color: #fff; font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.ts-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ts-text { color: #6b5251; font-size: .95rem; }
.ts-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(74,44,42,.2);
}
.ts-arrow:hover { background: var(--brand-dark); }
.ts-prev { left: -8px; }
.ts-next { right: -8px; }

/* ---------- Blog cards ---------- */
.blog-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(74,44,42,.07);
  transition: transform .2s ease;
}
.blog-card:hover { transform: translateY(-5px); }
.blog-img-wrap { height: 210px; overflow: hidden; background: var(--cream-2); }
.blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Franchise CTA ---------- */
.franchise-cta {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
}
.cta-btn { color: var(--brand); }

/* ---------- Inner pages ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--cream-2), var(--cream));
  padding: 42px 0;
  border-bottom: 4px dotted var(--brand2);
}
.page-hero h1 { color: var(--brand-dark); font-weight: 800; }
.breadcrumb a { color: var(--brand); text-decoration: none; }

/* Product details */
.pd-main-img {
  width: 100%; border-radius: 22px; object-fit: cover;
  max-height: 440px; box-shadow: 0 8px 26px rgba(74,44,42,.12);
}
.pd-thumb {
  width: 84px; height: 84px; object-fit: cover;
  border-radius: 14px; cursor: pointer;
  border: 3px solid transparent; transition: border-color .15s;
}
.pd-thumb.active, .pd-thumb:hover { border-color: var(--brand); }
.rating-summary { font-size: 1.05rem; }
.review-card {
  background: #fff; border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 3px 12px rgba(74,44,42,.06);
}
.star-input { direction: rtl; display: inline-flex; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 1.6rem; color: #d8c8c0; cursor: pointer; }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: #ffc107; }

.accordion-button:not(.collapsed) {
  background: var(--cream-2);
  color: var(--brand-dark);
  font-weight: 700;
}

/* Franchise page */
.franchise-form-card {
  background: #fff; border-radius: 22px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(74,44,42,.12);
  border-top: 6px solid var(--brand);
}
.benefit-card {
  background: #fff; border-radius: 18px; padding: 22px;
  box-shadow: 0 4px 14px rgba(74,44,42,.07);
  height: 100%;
}
.benefit-card i { font-size: 1.9rem; color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #fff; }
.footer-scoop {
  height: 22px;
  background:
    radial-gradient(circle at 10% 0, var(--cream) 14px, transparent 15px),
    radial-gradient(circle at 30% 0, var(--cream) 14px, transparent 15px),
    radial-gradient(circle at 50% 0, var(--cream) 14px, transparent 15px),
    radial-gradient(circle at 70% 0, var(--cream) 14px, transparent 15px),
    radial-gradient(circle at 90% 0, var(--cream) 14px, transparent 15px);
  background-color: var(--brand-dark);
}
.footer-head { color: var(--brand2); font-weight: 800; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; font-size: .92rem; }
.footer-links a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-links a:hover { color: var(--brand2); }
.footer-social a { margin-left: 0; margin-right: 14px; font-size: 1.15rem; }
.footer-bottom { background: rgba(0,0,0,.22); }
.footer-bottom-link { color: rgba(255,255,255,.8); text-decoration: none; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 999;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  text-decoration: none;
}
.wa-float:hover { color: #fff; transform: scale(1.07); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
/* ---- Clean product card (add to the end of assets/css/style.css) ---- */
.pcard-link { display: block; text-decoration: none; color: inherit; }
.pcard {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pcard-link:hover .pcard {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.pcard-img {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 10px;
}
.pcard-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.pcard-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand2, #7ed6c1);
  color: #fff; font-size: 2rem; border-radius: 10px;
}
.pcard-body { padding: 6px 16px 20px; }
.pcard-pill {
  display: inline-block;
  background: rgba(231, 84, 128, .12);
  color: var(--brand, #e75480);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.pcard-title {
  margin: 0;
  font-weight: 800;
  color: var(--brand-dark, #4a2c2a);
  font-size: 1rem;
  line-height: 1.3;
}
