/* General */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f9fafb;
  color: #1e293b;
}

:root{
    --primary-gradient: linear-gradient(135deg,#06b6d4, #22d3ee);
    --primary-color: #1b92cf;
}
.product-hero {
  background: rgba(14, 165, 233, 0.4);
}

}
.product-hero h1{
   color: white;
}
.highlights i{
  font-size: 25px;
  color: var(--primary-color);
}

.product-hero-img{
   max-height:350px;
   width:auto;
   object-fit:cover;
}


/* Sidebar */
.sidebar-title{
   color:var(--primary-color);
}
.filter-sidebar {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.filter-chip-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.filter-chip,
.btn-clear-filter {
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  cursor: pointer;
  transition: all .2s ease;
}
.filter-chip:hover {
  background: #e0f2fe;
}
.filter-chip.active {
  background: var(--primary-color);
  color: #fff;
  border-color: #0ea5e9;
}

/* Toolbar */
.product-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: .8rem 1rem;
  background: #fff;
  border-radius: .75rem;

  position: sticky;
  top: 1rem;
  z-index: 10;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-img-wrap {
  position: relative;
  height: 220px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .card-img-wrap img {
    transform: scale(1.1);
}
.product-card {
  background: #fff;
  border-radius: 1rem;
  position:relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 12px rgba(0,0,0,.1);
}

.badge-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: .8rem;
  padding: .25rem .6rem;
  border-radius: .5rem;
}
.badge-popular {
  position: absolute;
  top: 12px;
  right: 10px;
  background: #f59e0b;
  color: #fff;
  font-size: .8rem;
  padding: .25rem .6rem;
  border-radius: .5rem;
}
.card-body-custom {
  padding: 1rem;
}
.card-title-custom {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: .5rem;
}
.card-subcategory {
  font-size: .85rem;
  color: #64748b;
  margin-bottom: .3rem;
}
.card-price-row {
  display: flex;
  gap: .5rem;
  align-items: baseline;
  margin-bottom: .8rem;
}
.price-final {
  font-weight: 700;
  font-size:20px;
  color: green;
}


/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
}
.empty-icon {
  font-size: 3rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}
/** detail page ***/
.detail-breadcrumb .breadcrumb-item a{
     text-decoration:none;
     color:var(--primary-color);
}
/* ── Product Top ──────────────────────────────── */
.product-top { padding: 2.5rem 0 2rem; }

.main-image-wrap {
  position: relative;
  background: #eaf4ff;
  border: 1px solid #e0f2fe;
  border-radius: 16px;
  height: 400px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.info-block{
   background: #eaf4ff;
   padding:20px;
   border-radius: 16px;
   height:520px;
}
.main-image-wrap img {
  max-height: 100%; max-width: 100%; object-fit: contain;
  transition: transform .4s ease;
}
.main-image-wrap:hover img { transform: scale(1.04); }

.img-placeholder {
  font-size: 4rem; color: #bae6fd;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.img-placeholder.small { font-size: 2rem; }

.badge-disc {
  position: absolute; top: 12px; left: 12px;
  background: #ef4444; color: #fff;
  font-size: 1rem; font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 6px;
}

.thumb-strip { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.thumb {
  width: 66px; height: 66px; object-fit: cover;
  border-radius: 10px; border: 2px solid #e0f2fe;
  cursor: pointer; transition: border-color .2s, transform .2s;
}
.thumb:hover { border-color: var(--primary-color); transform: translateY(-2px); }
.thumb.active { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(27,146,207,.15); }

/* Info */
.info-title {
  font-family: 'Sora', sans-serif;
  color: var(--primary-color);
}
.info-rating { display: flex; align-items: center; gap: .4rem; margin-bottom: 1rem; }
.info-rating .stars { color: #f59e0b; font-size: 1.3rem; }

.price-save {
  font-size: .78rem; font-weight: 700; color: #16a34a;
  background: #dcfce7; padding: .2rem .55rem; border-radius: 99px;
}

.info-meta {
  display: flex; flex-wrap: wrap; gap: .6rem;
  padding-top: .9rem; border-top: 1px solid #f1f5f9;
}
.info-meta span {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8rem; color: #64748b;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 99px; padding: .25rem .7rem;
}
.info-meta span i { color: var(--primary-color); }

.rich-content {
  font-family: 'Sora', sans-serif;
  font-size: 18px; color: #334155; line-height: 1.85;
  max-width: 800px;
}
.product-content-section{
   color:var(--primary-color);
}
/* Review Form */
.review-form-wrap {
  background: #fff; border: 1px solid #e0f2fe;
  border-radius: 16px; padding: 1.75rem;
  margin-top: 2rem;
  scroll-margin-top: 100px;
}
.form-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 1.25rem;
}
.form-label { font-size: .84rem; font-weight: 600; color: #334155; margin-bottom: .35rem; }
.form-control {
  border: 1.5px solid #e2e8f0; border-radius: 9px;
  font-size: .88rem; padding: .55rem .85rem;
  transition: border-color .2s;
}
.form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(27,146,207,.1); }

/* Star picker */
.star-picker { display: flex; gap: .2rem; margin-top: .3rem; }
.star-pick {
  font-size: 1.6rem; cursor: pointer; color: #e2e8f0;
  transition: color .15s, transform .15s;
  line-height: 1;
}
.star-pick.selected, .star-pick.hovered { color: #f59e0b; }
.star-pick:hover { transform: scale(1.15); }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 767px) {
  .info-title { font-size: 1.4rem; }
  .price-big { font-size: 1.55rem; }
  .info-actions { flex-direction: column; }
  .main-image-wrap { height: 260px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Product Highlight Pills */
.product-highlights {
    margin-top: 10px;
}

.highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    background-color: #f1f7ff;
    color: #EE6055;
    border: 1px solid #dbeafe;
    transition: all 0.3s ease;
    cursor: default;
}


.highlight-pill:hover {
    background-color: #e2efff;
    transform: translateY(-2px);
}
.product-reviews-section {
    background: #f8f9fa;
}

.review-summary-box, .leave-review{
    background: #ffffff;
    margin: 0 auto;
    padding: 40px;
    border-radius: 16px;
}

.avg-rating {
    font-family: 'Sora', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height:1;
}

.avg-rating span {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight:400;
}
.star-filled span { font-size: 1.3rem; }
.star-filled .star-filled { color: #f59e0b; }
.star-filled .star-empty  { color: #e2e8f0; }


.review-form-wrap {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}



.related-product-item { border: 1px solid transparent; transition: all .18s ease; }
.related-product-item:hover { background: #f0f9ff; border-color: #e0f2fe; }
.related-product-item:hover .related-arrow { color: var(--primary-color) !important; }

.related-product-img {
  width: 150px; height: 120px; border-radius: 10px;
  background: #f0f9ff; border: 1px solid #e0f2fe;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.related-product-img img { width: 100%; height: 100%; object-fit: contain; }
.enquiry-box{
  height:350px;
  background-color:#eaf4ff;
  border-radius:20px;
  justify-content:center;
}
.enquiry-box-title{
   color:var(--primary-color);
 }
/* ── Popular Products Section ─────────────────── */

.popular-products-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,.06) 0%, transparent 70%);
  pointer-events: none;
}

.pop-eyebrow i { color: #f97316; }
.pop-title{ color: var(--primary-color);}

/* Grid */
.pop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Card */
.pop-card {
  background: #fff;
  border: 1px solid #e0f2fe;
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  animation: popCardIn .35s ease both;
}
.pop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(6,182,212,.15);
  border-color: #67e8f9;
}
@keyframes popCardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pop-card:nth-child(1){animation-delay:.05s}
.pop-card:nth-child(2){animation-delay:.10s}
.pop-card:nth-child(3){animation-delay:.15s}
.pop-card:nth-child(4){animation-delay:.20s}
.pop-card:nth-child(5){animation-delay:.25s}
.pop-card:nth-child(6){animation-delay:.30s}
.pop-card:nth-child(7){animation-delay:.35s}
.pop-card:nth-child(8){animation-delay:.40s}

/* Image */
.pop-img-wrap {
  position: relative;
  background: #f0f9ff;
  aspect-ratio: 1/1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pop-img-wrap img {
  max-width: 100%; max-height: 200px; object-fit: contain;
  transition: transform .45s ease;
}
.pop-card:hover .pop-img-wrap img { transform: scale(1.07); }
.pop-img-placeholder { font-size: 3rem; color: #bae6fd; }

.pop-badge-hot {
  position: absolute; top: 9px; right: 9px;
  background: #fff3e0; color: #f97316;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.pop-name {
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.pop-btn-detail, .pop-btn-wa {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .28rem;
  padding: .46rem .3rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: all .2s ease;
}
.pop-btn-detail {
  background: #f0f9ff; color: var(--primary-color);
  border: 1.5px solid #bae6fd;
}
.pop-btn-detail:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.pop-btn-wa { background: #22c55e; color: #fff; }
.pop-btn-wa:hover { background: #16a34a; color: #fff; }

/* Bottom CTA bar */
.pop-cta-bar {
  flex-wrap: wrap;
  background: #f0f9ff; border: 1px solid #e0f2fe;
  border-radius: 14px;
}

.pop-empty { color: #94a3b8; font-size: .9rem; grid-column: 1/-1; text-align: center; padding: 2rem; }

/* Responsive */
@media (max-width: 767px) {
  .popular-products-section { padding: 3.5rem 0; }
  .pop-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .pop-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .pop-actions { flex-direction: column; }
}