/* ─── LED Carousel Section ─── */
.led-carousel-section {
  max-width: 1200px;
  margin: 30px auto 40px;
  padding: 0;
  overflow: hidden;
}

.led-carousel-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px 0;
  padding: 0;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Carousel wrapper with arrows ─── */
.led-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* ─── Track container (overflow hidden) ─── */
.led-carousel-track-container {
  overflow: hidden;
  flex: 1;
  margin: 0 5px;
}

/* ─── Track (scrollable row) ─── */
.led-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  will-change: transform;
}

/* ─── Product card ─── */
.led-carousel-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.led-carousel-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.led-carousel-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 15px;
}

.led-carousel-link:hover {
  text-decoration: none;
  color: inherit;
}

/* ─── Product image ─── */
.led-carousel-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.led-carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ─── Product title ─── */
.led-carousel-product-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

/* ─── Price ─── */
.led-carousel-price {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  display: block;
}

.led-carousel-price del {
  color: #999;
  font-weight: 400;
  font-size: 13px;
  margin-right: 6px;
}

.led-carousel-price ins {
  text-decoration: none;
  color: #c00;
}

/* ─── Arrow buttons ─── */
.led-carousel-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 2px solid #333;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  padding: 0;
  z-index: 2;
}

.led-carousel-arrow:hover {
  background: #333;
  color: #fff;
}

.led-carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* ─── Brand card overrides ─── */
.led-carousel-brand-card {
  flex: 0 0 calc(16.666% - 17px);
  border: 1px solid #eee;
  background: #fff;
}

.led-carousel-brand-link {
  padding: 12px;
}

.led-carousel-brand-logo {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.led-carousel-brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ─── Tablet: 3 cards ─── */
@media (max-width: 1024px) {
  .led-carousel-card {
    flex: 0 0 calc(33.333% - 14px);
  }

  .led-carousel-brand-card {
    flex: 0 0 calc(25% - 15px);
  }
}

/* ─── Mobile: 2 cards, larger for visibility ─── */
@media (max-width: 768px) {
  .led-carousel-section {
    margin: 20px auto 30px;
    padding: 0 10px;
  }

  .led-carousel-title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .led-carousel-card {
    flex: 0 0 calc(50% - 10px);
  }

  .led-carousel-track {
    gap: 12px;
  }

  .led-carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .led-carousel-track-container {
    margin: 0 5px;
  }

  .led-carousel-product-title {
    font-size: 13px;
  }

  .led-carousel-price {
    font-size: 15px;
  }

  .led-carousel-brand-card {
    flex: 0 0 calc(33.333% - 8px);
  }
}

/* ─── Small mobile: still 2 cards but tighter ─── */
@media (max-width: 480px) {
  .led-carousel-card {
    flex: 0 0 calc(50% - 8px);
  }

  .led-carousel-link {
    padding: 10px;
  }

  .led-carousel-track {
    gap: 8px;
  }

  .led-carousel-arrow {
    width: 30px;
    height: 30px;
    font-size: 18px;
    border-width: 1.5px;
  }
}
