/* ==========================================================================
   PRODUCTS CATALOG STYLE
   ========================================================================== */

.products-hero {
  background: linear-gradient(rgba(6, 18, 36, 0.85), rgba(15, 23, 42, 0.95)), url('../images/products/product-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 8rem 0 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.products-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.products-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.products-hero p {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

.products-hero__actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

/* Category Filters */
.filter-section {
  padding: 4rem 0 2rem 0;
}

.filter-header {
  margin-bottom: 2.5rem;
}

.filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.filter-btn:hover {
  background: #fff;
  border-color: var(--color-primary, #0f172a);
  color: var(--color-primary, #0f172a);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--color-primary, #0f172a), var(--color-primary-2, #38bdf8));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Products Grid */
.products-section {
  padding: 2rem 0 6rem 0;
}

.products-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.products-heading h2 {
  font-size: 2.5rem;
  margin: 1rem 0;
  font-weight: 800;
}

.products-heading p {
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1.25rem;
  overflow: hidden;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  border-color: rgba(56, 189, 248, 0.2);
}

.product-image {
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
  margin-bottom: 1.5rem;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image i {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card:hover .product-image i {
  transform: scale(1.12);
}

.product-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.product-card p {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-card a {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary, #0f172a);
  font-weight: 700;
  transition: color 0.3s ease, transform 0.3s ease;
  width: fit-content;
  align-self: center;
}

.product-card a:hover, .product-card:hover a {
  color: var(--color-primary-2, #38bdf8);
  transform: translateX(4px);
}

/* Why Choose Us Section */
.why-choose-premium-section {
  padding: 7rem 0;
  background: radial-gradient(circle at 90% 10%, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.value-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 1rem;
  padding: 2.2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.04);
  border-color: rgba(56, 189, 248, 0.15);
}

.value-card i {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--color-primary, #0f172a), var(--color-primary-2, #38bdf8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.value-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.8rem;
}

.value-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Testimonial slider spacing */
.testimonial-section {
  position: relative;
  overflow: hidden;
}

.testimonial-card {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0 auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 1.5rem;
  padding: 3rem 4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  text-align: center;
}

.testimonial-quote {
  font-size: 3rem;
  color: rgba(56, 189, 248, 0.15);
  display: block;
  margin-bottom: 1rem;
}

#testimonialText {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #334155;
  font-style: italic;
  margin-bottom: 2rem;
  border: 0;
  padding: 0;
}

.stars {
  color: #f59e0b;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.client {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

#clientAvatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.client-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 1.1rem;
}

.client-name small {
  display: block;
  font-weight: 500;
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  color: #475569;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--color-primary, #0f172a);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.slider-btn.prev {
  left: -24px;
}

.slider-btn.next {
  right: -24px;
}

/* Stats Counter Banner */
.stats-banner {
  background: linear-gradient(135deg, #091e3a 0%, #061224 100%);
  color: #fff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 30%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  font-size: 1.1rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Responsiveness */
@media (max-width: 992px) {
  .products-hero h1 {
    font-size: 2.5rem;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .slider-btn {
    position: static;
    transform: none;
    margin: 1.5rem 0.5rem 0 0.5rem;
  }
  .testimonial-card {
    padding: 2.5rem 2rem;
  }
  .slider-btn.prev, .slider-btn.next {
    display: inline-grid;
  }
}

@media (max-width: 640px) {
  .products-hero h1 {
    font-size: 2rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .products-hero__actions {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1.5rem;
  }
}
