/* ============================================================
   Carousel & Homepage Sections CSS
   ============================================================ */

/* ── Hero Carousel ───────────────────────────────────────────── */
/* ── Hero Carousel ───────────────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  background: #070d1e;
}
.hero-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
  display: flex;
  align-items: center;
  transform: translateX(30px);
}
.hero-slide.is-active { 
  opacity: 1; 
  visibility: visible; 
  pointer-events: auto; 
  transform: translateX(0); 
  z-index: 2; 
}
.hero-slide.is-prev  { 
  opacity: 0; 
  visibility: hidden; 
  pointer-events: none; 
  transform: translateX(-30px); 
  z-index: 1; 
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background: linear-gradient(135deg, #070d1e 0%, #0c1c38 45%, #162f65 100%);
  transform: scale(1.02);
  transition: transform 8s ease;
}
/* When banner image is present — align artwork to right */
.hero-slide__bg.hero-slide__bg--img {
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}
.hero-slide.is-active .hero-slide__bg {
  transform: scale(1);
}
/* Dark gradient overlay on left side so white text stays crisp while keeping products on right fully visible */
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 7, 18, 0.90) 0%,
    rgba(3, 7, 18, 0.75) 35%,
    rgba(3, 7, 18, 0.25) 55%,
    rgba(3, 7, 18, 0.0) 80%
  );
  z-index: 1;
  pointer-events: none;
}
.hero-slide__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 50%, rgba(37,99,235,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 540px;
  padding: 0 30px;
  color: #fff;
}
.hero-slide__tag {
  display: inline-flex;
  align-items: center;
  background: rgba(37,99,235,0.35);
  border: 1px solid rgba(147,197,253,0.35);
  color: #93c5fd;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-slide__title {
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 14px;
}
.hero-slide__sub {
  font-size: 1.05rem;
  color: #cbd5e1;
  font-weight: 400;
  margin-bottom: 28px;
  line-height: 1.65;
  max-width: 540px;
}
.hero-slide__btns {
  display: flex;
  gap: 14px;
  align-items: center;
}
.hero-slide__btns .btn-primary {
  background: var(--color-primary);
  box-shadow: 0 4px 14px rgba(26,86,219,0.35);
}
.hero-slide__btns .btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,86,219,0.45);
}

/* Dots navigation */
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
  align-items: center;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.28s ease;
  padding: 0;
}
.hero-dot.is-active {
  background: #3b82f6;
  width: 28px;
  border-radius: var(--radius-full);
}

/* Prev/Next arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: #fff;
  backdrop-filter: blur(6px);
}
.hero-arrow:hover { background: rgba(255,255,255,0.25); transform: translateY(-50%) scale(1.05); }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow--prev { left: 24px; }
.hero-arrow--next { right: 24px; }

/* ── Brand Strip ─────────────────────────────────────────────── */
.brands-section {
  background: #f8fafc;
  padding: 44px 0;
  border-bottom: 1px solid var(--color-gray-200);
}
.brands-strip-wrap {
  position: relative;
}
.brands-strip-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 48px;
  background: linear-gradient(to right, transparent, rgba(248,250,252,0.95));
  pointer-events: none;
  z-index: 2;
}
.brands-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 16px 6px 4px;
}
.brands-strip::-webkit-scrollbar { display: none; }

.brand-logo-item {
  flex-shrink: 0;
  width: 140px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  padding: 8px 14px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}
.brand-logo-item:hover {
  background: #ffffff;
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,86,219,0.14);
}
.brand-logo-item img,
.brand-logo-item .brand-logo-img {
  width: 100%;
  height: 44px;
  max-width: 110px;
  object-fit: contain;
  transition: transform 0.22s ease;
  display: block;
}
.brand-logo-item:hover img,
.brand-logo-item:hover .brand-logo-img {
  transform: scale(1.06);
}
.brand-logo-item span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-gray-700);
  letter-spacing: 0.04em;
  transition: var(--transition);
}
.brand-logo-item:hover span { color: var(--color-primary); }

.strip-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  background: #fff;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: var(--transition);
  color: var(--color-gray-700);
}
.strip-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}
.strip-arrow svg { width: 16px; height: 16px; }
.strip-arrow--left  { left: -16px; }
.strip-arrow--right { right: -16px; }

/* ── Product Carousel Row ────────────────────────────────────── */
.prod-carousel-section { padding: 48px 0; }
.prod-carousel-section + .prod-carousel-section { padding-top: 48px; }

/* Section Headings */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-heading h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-heading h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--color-primary);
  border-radius: 4px;
  flex-shrink: 0;
}
.section-heading a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.section-heading a:hover {
  color: var(--color-primary-dark);
  transform: translateX(2px);
}

.prod-carousel-wrap {
  position: relative;
  margin: 0 -6px;
}
.prod-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 12px;
  width: 48px;
  background: linear-gradient(to right, transparent, rgba(248,250,252,0.95));
  pointer-events: none;
  z-index: 2;
}
.prod-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 10px 16px 20px 10px;
  scroll-padding: 0 16px;
}
.prod-carousel::-webkit-scrollbar { display: none; }
.prod-carousel .product-card {
  flex: 0 0 250px;
  width: 250px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12), 0 2px 4px rgba(15, 23, 42, 0.04);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  color: #1e293b;
}
.carousel-arrow:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.carousel-arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}
.carousel-arrow--left  { left: -14px; }
.carousel-arrow--right { right: -14px; }

/* ── Category Banner ─────────────────────────────────────────── */
.cat-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(26,86,219,0.12);
}
.cat-banner:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(26,86,219,0.2);
}
.cat-banner__icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-banner__icon svg { width: 26px; height: 26px; color: #fff; }
.cat-banner__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.cat-banner__count {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.8);
}
.cat-banner__arrow {
  margin-left: auto;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.cat-banner__arrow svg { width: 16px; height: 16px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-carousel { height: 320px; }
  .hero-slide__content {
    max-width: 85%;
    padding: 0 20px;
  }
  .hero-slide__tag {
    font-size: 0.68rem;
    padding: 3px 8px;
    margin-bottom: 8px;
  }
  .hero-slide__title {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }
  .hero-slide__sub {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-slide__btns {
    gap: 8px;
  }
  .hero-slide__btns .btn {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 10px; }

  .prod-carousel .product-card { flex: 0 0 180px; width: 180px; }
  .brand-logo-item { width: 90px; }
  .cat-banner { padding: 12px 16px; margin-bottom: 16px; }
  .cat-banner__name { font-size: 0.95rem; }
  .cat-banner__icon { width: 38px; height: 38px; border-radius: 9px; }
  .cat-banner__icon svg { width: 20px; height: 20px; }
}

@media (max-width: 480px) {
  .hero-carousel { height: 290px; }
  .hero-slide__content {
    max-width: 92%;
    padding: 0 16px;
  }
  .hero-slide__title {
    font-size: 1.2rem;
  }
  .hero-slide__sub {
    font-size: 0.78rem;
    margin-bottom: 12px;
  }
  .prod-carousel .product-card { flex: 0 0 160px; width: 160px; }
  .prod-carousel-wrap { margin: 0 -12px; }
  .prod-carousel { padding: 8px 12px 16px; gap: 12px; }
  .carousel-arrow { display: none; }
}
