
/* ===== Homepage Enhanced Styles ===== */
.banner-carousel {
  position: relative; border-radius: 4px; overflow: hidden; height: 280px;
  background: #eee;
}
.banner-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .6s ease;
}
.banner-slide.active { opacity: 1; }
.banner-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.banner-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6);
  cursor: pointer; transition: width .2s, background .2s;
}
.banner-dots span.active { width: 20px; border-radius: 4px; background: #ee4d2d; }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 44px; background: rgba(0,0,0,.35); color: #fff;
  border: none; cursor: pointer; font-size: 16px; transition: background .2s;
}
.banner-arrow:hover { background: rgba(0,0,0,.55); }
.banner-arrow.prev { left: 0; }
.banner-arrow.next { right: 0; }

/* Feature strip */
.feature-strip {
  max-width: 1200px; margin: 12px auto; padding: 0 16px;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 0;
  background: #fff; border-radius: 4px; overflow: hidden;
}
.feature-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 8px; font-size: 12.5px; color: #333; text-align: center;
  cursor: pointer; transition: background .15s;
}
.feature-item:hover { background: #fafafa; }
.feature-item .f-ic {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; color: #fff;
}
.fic-1 { background: linear-gradient(135deg,#ff6a00,#ee4d2d); }
.fic-2 { background: linear-gradient(135deg,#26c6da,#00acc1); }
.fic-3 { background: linear-gradient(135deg,#ffce00,#ff9800); }
.fic-4 { background: linear-gradient(135deg,#66bb6a,#43a047); }
.fic-5 { background: linear-gradient(135deg,#ab47bc,#8e24aa); }
.fic-6 { background: linear-gradient(135deg,#42a5f5,#1e88e5); }
.fic-7 { background: linear-gradient(135deg,#ef5350,#e53935); }
.fic-8 { background: linear-gradient(135deg,#ff7043,#f4511e); }

/* Mall banner section */
.mall-section {
  max-width: 1200px; margin: 16px auto; padding: 0 16px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.mall-card {
  background: #fff; border-radius: 4px; overflow: hidden; cursor: pointer;
  transition: box-shadow .2s, transform .2s; position: relative;
}
.mall-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); transform: translateY(-2px); }
.mall-card .mall-img { width: 100%; aspect-ratio: 2/1; object-fit: cover; }
.mall-card .mall-caption { padding: 10px 12px; font-size: 13px; color: #ee4d2d; font-weight: 500; }
.mall-tag {
  position: absolute; top: 8px; left: 8px;
  background: #ee4d2d; color: #fff; font-size: 10px; padding: 2px 6px;
  border-radius: 2px; font-weight: 700;
}

/* Section header */
.sec-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid #f1f1f1;
}
.sec-head .title {
  font-size: 16px; color: #555; text-transform: uppercase; font-weight: 500; letter-spacing: 1px;
}
.sec-head .title.red { color: #ee4d2d; text-transform: none; letter-spacing: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.sec-head .title.red i { color: #ffce00; font-size: 22px; }
.sec-head .see-all { color: #ee4d2d; font-size: 13px; display: flex; align-items: center; gap: 4px; }
.sec-head .countdown { display: flex; gap: 4px; margin-left: 10px; }
.sec-head .countdown span { background: #333; color: #fff; padding: 3px 6px; border-radius: 3px; font-size: 12px; min-width: 26px; text-align: center; font-weight: 500; }

/* Flash sale progress bar */
.fs-progress {
  background: #ffe1d5; height: 16px; border-radius: 8px; margin-top: 6px; overflow: hidden; position: relative;
}
.fs-progress-bar {
  height: 100%; background: linear-gradient(90deg,#ff7337,#ee4d2d); border-radius: 8px;
}
.fs-progress-text {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 11px; color: #fff; font-weight: 600; text-shadow: 0 1px 1px rgba(0,0,0,.3);
}

/* Daily discover 6 columns */
.products-6 { grid-template-columns: repeat(6, 1fr); }

/* Promo banner */
.promo-banner { max-width: 1200px; margin: 16px auto; padding: 0 16px; }
.promo-banner img { width: 100%; border-radius: 4px; }

/* Load more */
.load-more { max-width: 1200px; margin: 16px auto; padding: 0 16px; text-align: center; }
.load-more .btn {
  padding: 12px 50px; background: #fff; color: #ee4d2d;
  border: 1px solid #ee4d2d; font-size: 14px;
}
.load-more .btn:hover { background: #fff4f0; }

@media (max-width: 900px) {
  .banner-carousel { height: 180px; }
  .feature-strip { grid-template-columns: repeat(4, 1fr); padding: 0 8px; margin: 8px auto; }
  .feature-item { padding: 12px 4px; font-size: 11px; }
  .feature-item .f-ic { width: 40px; height: 40px; font-size: 18px; }
  .mall-section { grid-template-columns: repeat(2, 1fr); margin: 8px; padding: 0; }
  .products-6 { grid-template-columns: repeat(2, 1fr); }
  .sec-head { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
  .sec-head .title { font-size: 14px; }
  .sec-head .title.red { font-size: 16px; }
  .banner-arrow { display: none; }
}
