/* =============================================
   WASHTUBE — PRODUCT CAROUSEL
   ============================================= */

.wt-carousel-section {
  padding: 48px 20px;
  background: #fff;
  border-top: 1px solid var(--gray-border);
}

.wt-carousel-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.wt-carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.wt-carousel-headline h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0 0 4px;
}
.wt-carousel-headline h2 span { color: var(--gold); }
.wt-carousel-headline p { font-size: 13px; color: #888; margin: 0; }

.wt-carousel-controls { display: flex; gap: 8px; flex-shrink: 0; }

.wt-car-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-border);
  background: #fff;
  color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.wt-car-btn svg { width: 18px; height: 18px; }
.wt-car-btn:hover:not(:disabled) { background: var(--blue-mid); border-color: var(--blue-mid); color: #fff; }
.wt-car-btn:disabled { opacity: 0.35; cursor: default; }

.wt-carousel-viewport { overflow: hidden; position: relative; }

.wt-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
}

/* ── SLIDE CARD ── */
.wt-car-slide {
  flex: 0 0 calc(25% - 12px);
  min-width: 0;
  background: #fff;
  border: 1.5px solid var(--gray-border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.wt-car-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,109,173,0.15);
  border-color: var(--blue-light);
}

.wt-car-badge {
  position: absolute; top: 10px; left: 10px;
  background: #e03535; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 20px; z-index: 2;
}
.wt-car-badge--pre { background: #a86b00; }

.wt-car-img {
  display: flex; align-items: center; justify-content: center;
  height: 160px; background: var(--gray-light);
  overflow: hidden; font-size: 48px; text-decoration: none;
}
.wt-car-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
  transition: transform 0.35s;
}
.wt-car-slide:hover .wt-car-img img { transform: scale(1.04); }

.wt-car-body { padding: 12px 12px 14px; }

.wt-car-name {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-dark); line-height: 1.3;
  height: 34px; overflow: hidden;
  text-decoration: none; transition: color 0.2s;
}
.wt-car-name:hover { color: var(--blue-mid); }

.wt-car-price { font-size: 16px; font-weight: 700; color: var(--blue-dark); margin-top: 6px; }
.wt-car-price del { font-size: 12px; color: #aaa; font-weight: 400; margin-right: 4px; }
.wt-car-price ins { text-decoration: none; color: #e03535; }

.wt-car-stars { display: flex; gap: 1px; margin-top: 4px; }
.wt-car-stars span { font-size: 12px; color: #ddd; }
.wt-car-stars span.filled { color: var(--gold); }

.wt-car-actions {
  display: flex; align-items: center; gap: 6px; margin-top: 10px;
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}
.wt-car-slide:hover .wt-car-actions { max-height: 50px; opacity: 1; }

.wt-carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.wt-car-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray-border); border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.wt-car-dot.active { background: var(--blue-mid); transform: scale(1.3); }

@media (max-width: 1024px) { .wt-car-slide { flex: 0 0 calc(33.333% - 11px); } }
@media (max-width: 700px) {
  .wt-car-slide { flex: 0 0 calc(50% - 8px); }
  .wt-carousel-section { padding: 32px 16px; }
  .wt-car-img { height: 120px; }
}
@media (max-width: 420px) { .wt-car-slide { flex: 0 0 100%; } }
