/* =============================================================================
   SmartHomeSewa — Products & Testimonials Redesign
   ============================================================================= */

/* ─────────────────────────────────────────────────────────────────────────── */
/* PRODUCTS SECTION                                                             */
/* ─────────────────────────────────────────────────────────────────────────── */
.shs-products {
  background: #f8fafc;
  padding: 80px 0;
}
.shs-products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.shs-products-head-left .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.shs-products-head-left h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -.025em;
  margin: 0 0 6px;
}
.shs-products-head-left p {
  font-size: .9375rem;
  color: #64748b;
  margin: 0;
}
.shs-products-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  border: 1.5px solid #2563eb;
  padding: 8px 18px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .18s, color .18s;
  flex-shrink: 0;
}
.shs-products-view-all:hover { background: #2563eb; color: #fff; }

/* Carousel track */
.shs-prod-track-wrap {
  position: relative;
  overflow: hidden;
}
.shs-prod-track {
  display: flex;
  gap: 20px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}

/* Product card */
.shs-prod-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 220px;
  background: #fff;
  border: 1.5px solid #e9ecef;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.shs-prod-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,.1);
  border-color: #2563eb;
}

/* Image area */
.shs-prod-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shs-prod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.shs-prod-card:hover .shs-prod-img { transform: scale(1.05); }

/* Placeholder when image fails */
.shs-prod-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #93c5fd;
  gap: 8px;
}
.shs-prod-placeholder i { font-size: 2.5rem; }
.shs-prod-placeholder span {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #60a5fa;
}

/* Category badge on image */
.shs-prod-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(37,99,235,.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

/* Card body */
.shs-prod-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.shs-prod-name {
  font-size: .9375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shs-prod-price {
  font-size: 1.125rem;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.shs-prod-desc {
  font-size: .8125rem;
  color: #94a3b8;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 14px;
}
.shs-prod-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #eff6ff;
  color: #2563eb;
  font-size: .8125rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .18s, color .18s;
  text-align: center;
}
.shs-prod-card:hover .shs-prod-btn {
  background: #2563eb;
  color: #fff;
}

/* Prev / Next controls */
.shs-prod-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.shs-prod-ctrl {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #374151;
  cursor: pointer;
  transition: all .18s;
}
.shs-prod-ctrl:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}
.shs-prod-ctrl:disabled { opacity: .35; cursor: default; }
.shs-prod-dots {
  display: flex;
  gap: 6px;
}
.shs-prod-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: background .18s, width .18s;
  border: none;
}
.shs-prod-dot.active { background: #2563eb; width: 24px; border-radius: 4px; }

/* ─────────────────────────────────────────────────────────────────────────── */
/* TESTIMONIALS SECTION                                                         */
/* ─────────────────────────────────────────────────────────────────────────── */
.shs-testimonials {
  background: #0f172a;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
/* Decorative blobs */
.shs-testimonials::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%);
  pointer-events: none;
}
.shs-testimonials::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(13,148,136,.12) 0%, transparent 70%);
  pointer-events: none;
}

.shs-testi-head {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}
.shs-testi-head .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,.2);
  border: 1px solid rgba(37,99,235,.35);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.shs-testi-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.025em;
  margin-bottom: 10px;
}
.shs-testi-head p {
  font-size: .9375rem;
  color: rgba(255,255,255,.55);
  max-width: 480px;
  margin: 0 auto;
}

/* Grid */
.shs-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* Card */
.shs-testi-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .22s, border-color .22s, transform .22s;
  position: relative;
}
.shs-testi-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(37,99,235,.45);
  transform: translateY(-4px);
}
/* Quote mark */
.shs-testi-card::before {
  content: '\201C';
  position: absolute;
  top: 20px; right: 24px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(37,99,235,.2);
  font-family: Georgia, serif;
  pointer-events: none;
}

/* Stars */
.shs-testi-stars {
  display: flex;
  gap: 3px;
}
.shs-testi-stars i { color: #fbbf24; font-size: 13px; }

/* Quote text */
.shs-testi-text {
  font-size: .9375rem;
  color: rgba(255,255,255,.8);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Author row */
.shs-testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* Avatar — initials-based with deterministic gradient */
.shs-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -.01em;
}
/* Avatar colour variants rotated by index */
.shs-avatar-0 { background: linear-gradient(135deg, #2563eb, #0d9488); }
.shs-avatar-1 { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.shs-avatar-2 { background: linear-gradient(135deg, #0d9488, #0ea5e9); }
.shs-avatar-3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.shs-avatar-4 { background: linear-gradient(135deg, #10b981, #0d9488); }
.shs-avatar-5 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

/* Avatar when real image available */
.shs-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.shs-testi-info {}
.shs-testi-name {
  font-size: .9375rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.shs-testi-role {
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
  line-height: 1.3;
}

/* Video + CTA row below grid */
.shs-testi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.shs-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: opacity .18s;
}
.shs-video-btn:hover { opacity: .85; }
.shs-video-play-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 0 0 8px rgba(37,99,235,.2);
  flex-shrink: 0;
  padding-left: 3px; /* optical center play icon */
}
.shs-video-text .title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.shs-video-text .sub {
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}
.shs-testi-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}
.shs-testi-cta:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* RESPONSIVE                                                                   */
/* ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .shs-prod-card { flex: 0 0 calc(33.333% - 14px); }
  .shs-testi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .shs-products { padding: 56px 0; }
  .shs-testimonials { padding: 56px 0; }
  .shs-prod-card { flex: 0 0 calc(50% - 10px); }
  .shs-testi-grid { grid-template-columns: 1fr; }
  .shs-products-head { flex-direction: column; align-items: flex-start; }
  .shs-testi-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 479px) {
  .shs-prod-card { flex: 0 0 calc(100% - 0px); }
}
