/* ============================================
   HOME PAGE STYLES - PRD Chapter 3
   ============================================ */

/* --- 3.1 Banner Carousel --- */
.yp-banner-section {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.yp-banner-carousel {
  position: relative;
}

.yp-banner-track {
  position: relative;
  width: 100%;
  height: 560px;
}

.yp-banner-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--yp-transition-slow);
  z-index: 1;
}

.yp-banner-slide.active {
  opacity: 1;
  z-index: 2;
}

.yp-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--yp-primary);
}

.yp-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,86,153,0.7) 0%, rgba(74,86,153,0.3) 100%);
}

.yp-banner-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  color: var(--yp-text-white);
}

.yp-banner-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--yp-text-white);
  margin-bottom: var(--yp-space-md);
  max-width: 600px;
  line-height: 1.15;
}

.yp-banner-subtitle {
  font-size: var(--yp-font-size-lg);
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--yp-space-lg);
  max-width: 500px;
}

.yp-banner-cta {
  align-self: flex-start;
}

.yp-banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: var(--yp-radius-full);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yp-text-white);
  cursor: pointer;
  transition: all var(--yp-transition-fast);
}

.yp-banner-arrow:hover {
  background: rgba(255,255,255,0.4);
}

.yp-banner-prev { left: 24px; }
.yp-banner-next { right: 24px; }

.yp-banner-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.yp-banner-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--yp-radius-full);
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: all var(--yp-transition-fast);
  padding: 0;
}

.yp-banner-dot.active {
  background: var(--yp-text-white);
  border-color: var(--yp-text-white);
  width: 28px;
  border-radius: 6px;
}

/* --- 3.2 Product Cards --- */
.yp-home-products {
  background: var(--yp-bg-light);
}

.yp-product-card {
  display: flex;
  flex-direction: column;
}

.yp-product-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
}

.yp-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--yp-transition-base);
}

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

.yp-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--yp-radius-md);
  font-size: var(--yp-font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.yp-badge-sale {
  background: var(--yp-error);
  color: var(--yp-text-white);
}

.yp-product-card__body {
  padding: var(--yp-space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.yp-product-card__title {
  font-size: var(--yp-font-size-base);
  font-weight: 600;
  margin-bottom: var(--yp-space-xs);
}

.yp-product-card__title a {
  color: var(--yp-text-primary);
}

.yp-product-card__title a:hover {
  color: var(--yp-primary);
}

.yp-product-card__rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: var(--yp-space-sm);
}

.yp-star {
  font-size: 14px;
  line-height: 1;
}

.yp-star-filled {
  color: var(--yp-secondary);
}

.yp-star-empty {
  color: var(--yp-disabled);
}

.yp-rating-count {
  font-size: var(--yp-font-size-xs);
  color: var(--yp-text-muted);
  margin-left: 4px;
}

.yp-product-card__price {
  font-size: var(--yp-font-size-md);
  font-weight: 700;
  color: var(--yp-primary);
  margin-bottom: var(--yp-space-sm);
  margin-top: auto;
}

.yp-product-card__price del {
  color: var(--yp-text-muted);
  font-weight: 400;
  font-size: var(--yp-font-size-sm);
}

.yp-product-card__price ins {
  text-decoration: none;
}

.yp-product-card__actions {
  display: flex;
  align-items: center;
  gap: var(--yp-space-sm);
}

.yp-product-card__actions .yp-btn {
  flex: 1;
}

.yp-wishlist-btn {
  background: none;
  border: 1px solid var(--yp-border);
  border-radius: var(--yp-radius-md);
  padding: 8px;
  cursor: pointer;
  color: var(--yp-text-muted);
  transition: all var(--yp-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.yp-wishlist-btn:hover,
.yp-wishlist-btn.active {
  color: var(--yp-error);
  border-color: var(--yp-error);
}

.yp-wishlist-btn.active svg {
  fill: var(--yp-error);
}

/* --- 3.3 Subscribe & Save --- */
.yp-home-subscribe {
  background: var(--yp-bg-white);
  text-align: center;
}

.yp-subscribe-badge {
  text-align: center;
  margin-bottom: var(--yp-space-xl);
}

.yp-save-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--yp-secondary) 0%, #FF8C00 100%);
  color: var(--yp-text-white);
  padding: 10px 28px;
  border-radius: 50px;
  font-size: var(--yp-font-size-lg);
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(245,166,35,0.3);
}

.yp-subscribe-step {
  text-align: center;
  padding: var(--yp-space-lg);
  position: relative;
}

.yp-subscribe-step__number {
  width: 32px;
  height: 32px;
  border-radius: var(--yp-radius-full);
  background: var(--yp-primary);
  color: var(--yp-text-white);
  font-weight: 700;
  font-size: var(--yp-font-size-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--yp-space-md);
}

.yp-subscribe-step__icon {
  margin-bottom: var(--yp-space-md);
}

.yp-subscribe-step__icon svg {
  width: 64px;
  height: 64px;
}

.yp-subscribe-step__title {
  font-size: var(--yp-font-size-lg);
  margin-bottom: var(--yp-space-sm);
}

.yp-subscribe-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--yp-space-lg);
  margin-top: var(--yp-space-xl);
}

.yp-subscribe-feature {
  display: flex;
  align-items: center;
  gap: var(--yp-space-sm);
  font-weight: 500;
  color: var(--yp-text-primary);
}

.yp-feature-check {
  width: 24px;
  height: 24px;
  border-radius: var(--yp-radius-full);
  background: var(--yp-success);
  color: var(--yp-text-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* --- 3.4 Features --- */
.yp-home-features {
  background: var(--yp-bg-light);
}

.yp-feature-card {
  text-align: center;
  padding: var(--yp-space-xl) var(--yp-space-lg);
}

.yp-feature-card__icon {
  margin-bottom: var(--yp-space-md);
}

.yp-feature-card__icon svg {
  width: 64px;
  height: 64px;
}

.yp-feature-card__title {
  font-size: var(--yp-font-size-md);
  margin-bottom: var(--yp-space-sm);
}

.yp-feature-card__desc {
  font-size: var(--yp-font-size-sm);
  color: var(--yp-text-secondary);
  line-height: 1.6;
}

/* --- 3.5 KOL Section --- */
.yp-home-kol {
  background: linear-gradient(180deg, var(--yp-bg-white) 0%, #EEF0F8 100%);
}

.yp-kol-highlights {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--yp-space-xl);
  margin-bottom: var(--yp-space-2xl);
}

.yp-kol-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--yp-space-sm);
  font-weight: 600;
  color: var(--yp-text-primary);
}

.yp-kol-highlight__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--yp-radius-full);
  background: var(--yp-bg-white);
  box-shadow: var(--yp-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--yp-transition-fast);
}

.yp-kol-highlight:hover .yp-kol-highlight__icon {
  transform: scale(1.1);
}

.yp-kol-highlight__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.yp-kol-steps {
  position: relative;
}

.yp-kol-step {
  text-align: center;
  padding: var(--yp-space-lg);
}

.yp-kol-step__number {
  width: 32px;
  height: 32px;
  border-radius: var(--yp-radius-full);
  background: var(--yp-primary);
  color: var(--yp-text-white);
  font-weight: 700;
  font-size: var(--yp-font-size-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--yp-space-md);
}

.yp-kol-step__icon {
  margin-bottom: var(--yp-space-md);
}

.yp-kol-step__icon svg {
  width: 64px;
  height: 64px;
}

.yp-kol-step__title {
  font-size: var(--yp-font-size-lg);
  margin-bottom: var(--yp-space-sm);
}

.yp-kol-step-connector {
  display: none;
}

/* --- 3.6 Reviews --- */
.yp-home-reviews {
  background: var(--yp-bg-white);
}

.yp-reviews-carousel {
  position: relative;
  overflow: hidden;
}

.yp-reviews-track {
  display: flex;
  gap: var(--yp-gutter);
  transition: transform var(--yp-transition-slow);
  padding: var(--yp-space-sm) 0;
}

.yp-review-card {
  min-width: calc(33.333% - 16px);
  flex-shrink: 0;
  padding: var(--yp-space-lg);
}

.yp-review-card__header {
  display: flex;
  align-items: center;
  gap: var(--yp-space-md);
  margin-bottom: var(--yp-space-md);
}

.yp-review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--yp-radius-full);
  object-fit: cover;
}

.yp-review-card__avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: var(--yp-radius-full);
  background: var(--yp-primary);
  color: var(--yp-text-white);
  font-size: var(--yp-font-size-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yp-review-card__name {
  display: block;
  font-size: var(--yp-font-size-base);
  color: var(--yp-text-primary);
}

.yp-review-card__date {
  font-size: var(--yp-font-size-xs);
  color: var(--yp-text-muted);
}

.yp-review-card__stars {
  margin-bottom: var(--yp-space-sm);
}

.yp-review-card__text {
  font-size: var(--yp-font-size-sm);
  color: var(--yp-text-secondary);
  line-height: 1.7;
}

.yp-reviews-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: var(--yp-bg-white);
  border: 1px solid var(--yp-border);
  border-radius: var(--yp-radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--yp-text-primary);
  box-shadow: var(--yp-shadow-sm);
  transition: all var(--yp-transition-fast);
}

.yp-reviews-arrow:hover {
  box-shadow: var(--yp-shadow-md);
  color: var(--yp-primary);
}

.yp-reviews-prev { left: 0; }
.yp-reviews-next { right: 0; }

/* --- Responsive Home --- */
@media (max-width: 1023px) {
  .yp-banner-track { height: 420px; }
  .yp-banner-title { font-size: 36px; }
  .yp-review-card { min-width: calc(50% - 12px); }
}

@media (max-width: 767px) {
  .yp-banner-track { height: 360px; }
  .yp-banner-title { font-size: 28px; }
  .yp-banner-subtitle { font-size: var(--yp-font-size-base); }
  .yp-banner-arrow { width: 36px; height: 36px; }
  .yp-banner-prev { left: 12px; }
  .yp-banner-next { right: 12px; }
  .yp-subscribe-features { gap: var(--yp-space-md); }
  .yp-kol-highlights { gap: var(--yp-space-md); }
  .yp-review-card { min-width: calc(100% - 8px); }
}
