/* ==========================================================================
   Care Incubator — shared stylesheet
   ========================================================================== */

:root {
  --ci-purple-deep:   #4a148c;   /* hero / deep section bg */
  --ci-purple:        #6a1b9a;   /* topbar / nav / brand */
  --ci-purple-light:  #7e3ff2;   /* icon circles, links */
  --ci-purple-pale:   #f2eefa;   /* light section bg */
  --ci-lavender:      #ece6f7;
  --ci-blue-pale:     #e3effd;
  --ci-yellow:        #ffc700;
  --ci-yellow-dark:   #e0a800;
  --ci-navy:          #060e1c;
  --ci-navy-soft:     #10192c;
  --ci-ink:           #1b1330;
  --ci-text-muted:    #6b7280;
  --ci-border:        #e7e2f3;
  --ci-radius:        14px;
  --ci-radius-sm:     8px;
  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ci-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ci-ink);
}

a { text-decoration: none; }

.text-purple { color: var(--ci-purple) !important; }
.bg-purple-deep { background-color: var(--ci-purple-deep) !important; }
.bg-purple { background-color: var(--ci-purple) !important; }
.bg-purple-pale { background-color: var(--ci-purple-pale) !important; }
.bg-lavender { background-color: var(--ci-lavender) !important; }
.bg-blue-pale { background-color: var(--ci-blue-pale) !important; }
.bg-navy { background-color: var(--ci-navy) !important; }

/* ---------- Buttons ---------- */
.btn-ci-yellow {
  background-color: var(--ci-yellow);
  border-color: var(--ci-yellow);
  color: #1b1330;
  font-weight: 600;
}
.btn-ci-yellow:hover {
  background-color: var(--ci-yellow-dark);
  border-color: var(--ci-yellow-dark);
  color: #1b1330;
}
.btn-ci-outline {
  border: 1.5px solid #fff;
  color: #fff;
  font-weight: 600;
  background: transparent;
}
.btn-ci-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-ci-white {
  background-color: #fff;
  border: 1.5px solid #fff;
  color: var(--ci-purple);
  font-weight: 600;
}
.btn-ci-white:hover {
  background-color: #f1e6ff;
  border-color: #f1e6ff;
  color: var(--ci-purple);
}

.btn-ci-purple {
  background-color: var(--ci-purple);
  border-color: var(--ci-purple);
  color: #fff;
  font-weight: 600;
}
.btn-ci-purple:hover { background-color: #55157d; border-color: #55157d; color: #fff; }

.btn-ci-purple-outline {
  border: 1.5px solid var(--ci-purple);
  color: var(--ci-purple);
  font-weight: 600;
  background: transparent;
}
.btn-ci-purple-outline:hover { background-color: var(--ci-purple); color: #fff; }

/* ---------- Top utility bar & main nav ---------- */
.topbar {
  background-color: var(--ci-purple);
}
.topbar .form-select,
.topbar .form-control {
  border: none;
}
.topbar .search-group .form-control::placeholder { color: #8a8a8a; }
.topbar .icon-link {
  color: #fff;
  font-size: .92rem;
  opacity: .95;
}
.topbar .icon-link:hover { opacity: 1; color: #ffe27a; }

.brand-logo { height: 40px; width: auto; }

.main-nav {
  background-color: #f8f8f8;
}
.main-nav .nav-link {
  color: #3a3550;
  font-weight: 500;
  font-size: .95rem;
  padding: .85rem .5rem;
}
.main-nav .nav-link.active,
.main-nav .nav-link:hover { color: var(--ci-purple); }

.category-bar {
  background-color: var(--ci-purple);
  font-size: .85rem;
  white-space: nowrap;
  overflow-x: auto;
}
@media (max-width: 767.98px) {
  .category-bar { overflow: visible; white-space: normal; }
}
.category-bar .dropdown-menu a {
  color: #212529;
}
.category-bar .dropdown-item.active,
.category-bar .dropdown-item:active {
  color: #fff;
}
.category-bar a {
  color: #f1e6ff;
  padding: .5rem .75rem;
  display: inline-block;
}
.category-bar a:hover { color: #fff; text-decoration: underline; }
.category-bar::-webkit-scrollbar { height: 4px; }

/* ---------- Hero (home) ---------- */
.hero-home {
  background: linear-gradient(135deg, var(--ci-purple-deep) 0%, #3a0f6e 100%);
  color: #fff;
  padding: 4.5rem 0 5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,199,0,.15);
  color: var(--ci-yellow);
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero-home h1 {
  font-size: 2.6rem;
  line-height: 1.25;
  color: #fff;
}
.hero-home p.lead { color: #d9caf0; }
.hero-quicklinks a {
  color: #e6d8ff;
  font-size: .9rem;
  margin-right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.hero-quicklinks a:hover { color: #fff; }

/* ---------- Cards ---------- */
.about-box {
  background-color: var(--ci-yellow);
  border-radius: var(--ci-radius);
  padding: 2.75rem 2.5rem;
}
.about-box h2 { font-size: 2.4rem; }

.service-pill {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #fff;
  border: 1px solid var(--ci-border);
  border-radius: var(--ci-radius-sm);
  padding: .7rem .9rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ci-ink);
}
.service-pill i { color: var(--ci-purple); }

.service-card {
  background: #fff;
  border-radius: var(--ci-radius);
  padding: 2rem 1.6rem;
  height: 100%;
  box-shadow: 0 2px 10px rgba(20,10,50,.04);
  border: 1px solid var(--ci-border);
  transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { box-shadow: 0 12px 30px rgba(74,20,140,.12); transform: translateY(-3px); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ci-purple-light), var(--ci-purple));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 700; }
.service-card p { color: var(--ci-text-muted); font-size: .9rem; }

.ci-category-card {
  background: #fff;
  border-radius: var(--ci-radius);
  border: 1px solid var(--ci-border);
  border-top: 4px solid var(--ci-purple);
  padding: 1.5rem;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}
.ci-category-card > .btn { margin-top: auto; align-self: flex-start; }
.ci-category-card.accent-green { border-top-color: #16a34a; }
.ci-category-card.accent-blue  { border-top-color: #2563eb; }
.ci-category-card.accent-orange{ border-top-color: #ea580c; }
.ci-category-card.accent-teal  { border-top-color: #0d9488; }
.ci-category-card .cat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ci-purple-pale); color: var(--ci-purple);
  margin-bottom: .9rem; font-size: 1.2rem;
}
.ci-category-card ul { list-style: none; padding: 0; margin: .6rem 0 1rem; font-size: .85rem; color: var(--ci-text-muted); }
.ci-category-card ul li::before { content: "\203A"; color: var(--ci-purple); margin-right: .35rem; }
.ci-category-card .cat-thumb {
  position: absolute; right: 1.25rem; top: 1.5rem;
  width: 56px; height: 76px; object-fit: cover; border-radius: 6px;
}

.feature-tile {
  background: #fff;
  border-radius: var(--ci-radius-sm);
  padding: 1.5rem;
  height: 100%;
}
.feature-tile .icon-circle {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ci-purple-pale); color: var(--ci-purple);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .9rem; font-size: 1.1rem;
}
.feature-tile h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; }
.feature-tile p { color: var(--ci-text-muted); font-size: .87rem; margin: 0; }

.stat-strip { background: var(--ci-purple-deep); color: #fff; }
.stat-strip .stat-num { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; }
.stat-strip .stat-label { color: #d9caf0; font-size: .85rem; }

.why-list { list-style: none; padding: 0; margin: 0; }
.why-list li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; color: #3a3550; font-size: .95rem; }
.why-list li i { color: var(--ci-purple); }

.cta-buttons .btn { margin: .3rem; }

/* ---------- Footer ---------- */
.site-footer { background-color: var(--ci-navy); color: #b7bcc8; }
.site-footer h6 { color: var(--ci-yellow); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: #b7bcc8; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: .55rem; font-size: .9rem; }
.site-footer .social-circle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid #3a3f52; display: inline-flex;
  align-items: center; justify-content: center; color: #b7bcc8; margin-right: .5rem;
}
.site-footer .social-circle:hover { background: var(--ci-purple); border-color: var(--ci-purple); color: #fff; }
.site-footer .footer-bottom { border-top: 1px solid #232838; font-size: .82rem; }

.site-footer-alt { background-color: #4a4a4a; color: #e2e2e2; }
.site-footer-alt h6 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer-alt a { color: #d4d4d4; }
.site-footer-alt a:hover { color: #fff; }
.site-footer-alt .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer-alt .footer-links li { margin-bottom: .5rem; font-size: .88rem; }
.site-footer-alt .form-control { border: none; }
.site-footer-alt .social-circle {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid #cfcfcf;
  display: inline-flex; align-items: center; justify-content: center; color: #e2e2e2; margin-right: .4rem; font-size: .8rem;
}
.site-footer-alt .footer-bottom { background: #3d3d3d; font-size: .82rem; }

/* ---------- Generic page banner ---------- */
.page-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 3.5rem 0;
  color: #fff;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,10,25,.72) 0%, rgba(6,10,25,.35) 100%);
}
.page-banner .container { position: relative; z-index: 1; }

.banner-plain {
  background: linear-gradient(120deg, var(--ci-blue-pale), #f5f9ff);
  border-radius: var(--ci-radius);
  padding: 2.5rem;
}

/* ---------- Sidebar / filters ---------- */
.filter-card { background: #fff; border: 1px solid var(--ci-border); border-radius: var(--ci-radius-sm); }
.filter-card .filter-head {
  font-weight: 700; font-size: .95rem; padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--ci-border);
}
.filter-card .list-group-item {
  border: none; border-bottom: 1px solid #f1eef8;
  font-size: .87rem; color: #4b4763; padding: .55rem 1.1rem;
}
.filter-card .list-group-item:hover { color: var(--ci-purple); background: var(--ci-purple-pale); }
.filter-card .form-check-label { font-size: .87rem; color: #4b4763; }

/* ---------- Product / listing cards ---------- */
.listing-card {
  background: #fff;
  border: 1px solid var(--ci-border);
  border-radius: var(--ci-radius-sm);
  overflow: hidden;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.listing-card:hover { box-shadow: 0 10px 26px rgba(74,20,140,.12); transform: translateY(-2px); }
.listing-card .thumb-wrap {
  aspect-ratio: 4/3;
  background: var(--ci-purple-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--ci-purple);
  font-size: 2rem;
}
.listing-card .card-body h5 { font-size: .98rem; font-weight: 700; }
.listing-card .card-body .addr { font-size: .8rem; color: var(--ci-text-muted); }

.product-card {
  background: #fff;
  border: 1px solid var(--ci-border);
  border-radius: var(--ci-radius-sm);
  overflow: hidden;
  height: 100%;
  position: relative;
}
.product-card .thumb-wrap {
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  color: #fff;
}
.product-card .discount-badge {
  position: absolute; top: .6rem; left: .6rem;
  background: #e53935; color: #fff; font-size: .72rem; font-weight: 700;
  padding: .2rem .5rem; border-radius: 4px;
}
.product-card .price { font-weight: 700; color: #e53935; }
.product-card .price-old { text-decoration: line-through; color: #a8a8a8; font-size: .82rem; font-weight: 400; }
.product-card .stars { color: #ffb400; font-size: .78rem; }
.product-card .card-body h6 { font-size: .88rem; font-weight: 600; margin-bottom: .15rem; }
.product-card .card-body p.cat { font-size: .78rem; color: var(--ci-text-muted); }

.icon-strip {
  display: flex; gap: 1.1rem; overflow-x: auto; padding-bottom: .5rem;
}
.icon-strip .icon-tile {
  min-width: 96px; height: 96px; border-radius: var(--ci-radius-sm);
  background: var(--ci-purple-pale); display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--ci-purple); flex-shrink: 0;
}

.promo-banner {
  background: linear-gradient(120deg, #dfe9d8, #eef3ea);
  border-radius: var(--ci-radius);
  padding: 2.2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  font-weight: 700;
}

/* Product detail page */
.pd-gallery-thumb {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--ci-radius-sm);
  background: var(--ci-purple-pale); display: flex; align-items: center; justify-content: center;
  color: var(--ci-purple); font-size: 1.6rem; cursor: pointer; border: 2px solid transparent;
}
.pd-gallery-thumb.active { border-color: var(--ci-purple); }
.pd-main-image {
  aspect-ratio: 1/1; border-radius: var(--ci-radius);
  background: var(--ci-purple-pale); display: flex; align-items: center; justify-content: center;
  color: var(--ci-purple); font-size: 4rem;
}
.qty-selector { display: inline-flex; align-items: center; border: 1px solid var(--ci-border); border-radius: 8px; }
.qty-selector button { border: none; background: none; width: 38px; height: 38px; font-size: 1.1rem; color: var(--ci-purple); }
.qty-selector input { width: 44px; border: none; text-align: center; font-weight: 600; }

/* small helpers */
.rounded-xl { border-radius: var(--ci-radius) !important; }
.shadow-soft { box-shadow: 0 10px 30px rgba(20,10,50,.08); }
.divider-purple { width: 56px; height: 3px; background: var(--ci-purple); border-radius: 2px; }

@media (max-width: 767.98px) {
  .hero-home h1 { font-size: 1.9rem; }
  .about-box h2 { font-size: 1.9rem; }
  .stat-strip .stat-num { font-size: 1.5rem; }
}

/* Sticky header - overrides the old template's position:relative (loaded later, hence !important) */
.tj-site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  height: auto !important;
}
