/* ─── Emoji Background ─────────────────────────────────────────────── */
.emoji-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.float-emoji {
  position: absolute;
  bottom: -80px;
  user-select: none;
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}

@keyframes floatUp {
  0%   { transform: translateY(0)    translateX(0)              rotate(0deg);   opacity: inherit; }
  10%  { opacity: inherit; }
  80%  { opacity: inherit; }
  100% { transform: translateY(-110vh) translateX(var(--drift))  rotate(var(--rotate)); opacity: 0; }
}

/* ─── Hero ──────────────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 40px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,212,255,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%,  rgba(156,92,255,.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 20% 90%,  rgba(0,230,118,.06) 0%, transparent 60%);
}

.home-hero__content { max-width: 760px; margin: 0 auto 48px; }

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.2);
  border-radius: 100px;
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 24px;
  animation: fadeInDown .6s ease both;
}

.home-hero__title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: bold;
  color: var(--text-pri);
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInDown .7s .1s ease both;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero__sub {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 32px;
  animation: fadeInDown .7s .2s ease both;
}

.home-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
  animation: fadeInDown .7s .3s ease both;
}

.btn-hero { padding: 12px 28px; font-size: 15px; }

.home-hero__cats {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInDown .7s .4s ease both;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-sec);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.cat-pill:hover {
  border-color: var(--cyan);
  color: var(--text-pri);
  background: var(--bg-hover);
  text-decoration: none;
}

/* Stats bar */
.home-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 40px;
  backdrop-filter: blur(8px);
  animation: fadeInUp .7s .5s ease both;
  flex-wrap: wrap;
  justify-content: center;
}

.home-stat { text-align: center; }
.home-stat__val {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-pri);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-stat__label { font-size: 12px; color: var(--text-mut); margin-top: 2px; }
.home-stat__divider { width: 1px; height: 40px; background: var(--border); }

/* ─── Sections ──────────────────────────────────────────────────────── */
.home-section { position: relative; z-index: 1; padding: 56px 0; }
.home-section--alt { background: rgba(255,255,255,.015); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

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

.home-section-tag {
  font-size: 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.home-section-title {
  font-size: 26px;
  font-weight: bold;
  color: var(--text-pri);
}

/* ─── Featured Products Grid ────────────────────────────────────────── */
.home-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.home-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.home-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,212,255,.35);
  box-shadow: 0 12px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(0,212,255,.1);
}

.home-product-card__img {
  position: relative; height: 160px;
  background: var(--bg-hover); overflow: hidden;
}
.home-product-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.home-product-card:hover .home-product-card__img img { transform: scale(1.06); }
.home-product-card__placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 48px; color: var(--text-mut);
}
.home-product-card__top {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,193,7,.9); color: #000;
  font-size: 11px; font-weight: bold; padding: 3px 8px;
  border-radius: 100px;
}
.home-product-card__badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; font-weight: bold;
  padding: 3px 8px; border-radius: 100px;
}
.home-product-card__badge.badge-hot  { background: rgba(255,61,90,.85);  color: #fff; }
.home-product-card__badge.badge-new  { background: rgba(0,212,255,.85);  color: #000; }
.home-product-card__badge.badge-sale { background: rgba(0,230,118,.85);  color: #000; }

.home-product-card__body { padding: 14px; }
.home-product-card__cat { font-size: 11px; color: var(--text-mut); margin-bottom: 4px; }
.home-product-card__title {
  font-size: 14px; font-weight: bold; color: var(--text-pri);
  margin-bottom: 10px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.home-product-card__footer { display: flex; justify-content: space-between; align-items: center; }
.hpc-price { font-size: 17px; font-weight: bold; color: var(--text-pri); }
.hpc-unit { font-size: 11px; color: var(--text-sec); }
.home-product-card__rating { font-size: 13px; color: var(--amber); }

/* ─── New arrivals list ─────────────────────────────────────────────── */
.home-new-list { display: flex; flex-direction: column; gap: 8px; }

.home-new-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.home-new-item:hover {
  border-color: rgba(0,212,255,.25);
  background: var(--bg-hover);
}

.home-new-item__img {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--bg-hover); border-radius: 8px;
  border: 1px solid var(--border); overflow: hidden;
}
.home-new-item__img img { width: 100%; height: 100%; object-fit: cover; }
.home-new-item__placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 22px;
}
.home-new-item__info { flex: 1; min-width: 0; }
.home-new-item__title { font-size: 14px; font-weight: bold; color: var(--text-pri); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-new-item__desc { font-size: 12px; color: var(--text-sec); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-new-item__right { flex-shrink: 0; text-align: right; }

/* ─── Reviews ───────────────────────────────────────────────────────── */
.home-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.home-review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeInUp .5s ease both;
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.home-review-card::before {
  content: '"';
  position: absolute;
  top: -10px; right: 16px;
  font-size: 80px;
  color: rgba(0,212,255,.06);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}
.home-review-card:hover {
  border-color: rgba(0,212,255,.25);
  transform: translateY(-2px);
}

.home-review-card__stars { font-size: 16px; color: var(--amber); letter-spacing: 2px; }
.home-review-card__title { font-size: 14px; font-weight: bold; color: var(--text-pri); }
.home-review-card__text { font-size: 13px; color: var(--text-sec); line-height: 1.6; flex: 1; }
.home-review-card__footer { display: flex; align-items: center; gap: 10px; margin-top: auto; }

/* ─── CTA ───────────────────────────────────────────────────────────── */
.home-cta {
  position: relative; z-index: 1;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,212,255,.08) 0%, transparent 70%),
    var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 80px 24px;
  text-align: center;
}
.home-cta__inner { max-width: 560px; margin: 0 auto; }
.home-cta__emoji { font-size: 52px; margin-bottom: 16px; }
.home-cta__title { font-size: 32px; font-weight: bold; color: var(--text-pri); margin-bottom: 12px; }
.home-cta__sub { color: var(--text-sec); margin-bottom: 28px; font-size: 15px; line-height: 1.6; }

/* ─── Animations ────────────────────────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .home-stats { gap: 16px; padding: 16px 20px; }
  .home-stat__divider { display: none; }
  .home-products-grid { grid-template-columns: 1fr 1fr; }
  .home-new-item__desc { display: none; }
}
@media (max-width: 480px) {
  .home-products-grid { grid-template-columns: 1fr; }
}
