/* ============================================================
   SHOPVAULT — HOMEPAGE ULTRA PREMIUM DESIGN SYSTEM
   Black #0B0B0B · Red #E50914 · White #FFFFFF
   ============================================================ */

/* ─── CSS Variables (Homepage-specific) ──────────────────────── */
:root {
  --hp-gap: clamp(16px, 2vw, 28px);
  --hp-radius: 24px;
  --hp-trans: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SLIDER — Full-Width Cinematic
   ═══════════════════════════════════════════════════════════════ */
.hp-hero {
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}
.hp-hero-wrap {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}
.hp-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 21/7;
  overflow: hidden;
  background: #0a0a0a;
}
@media (max-width: 900px) {
  .hp-slider { aspect-ratio: 16/9; border-radius: 0; }
}
@media (max-width: 500px) {
  .hp-slider { aspect-ratio: 1/1; }
}

.hp-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--hp-trans), transform 0.9s ease;
  transform: scale(1.03);
  text-decoration: none;
  display: block;
}
.hp-slide.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}

/* Blurred background layer behind product slides */
.hp-slide-bg-blur {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  filter: blur(60px) brightness(0.7) saturate(1.6);
  z-index: 0;
}
.hp-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.hp-slide.is-product .hp-slide-bg {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right 5% center;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6));
}
@media (max-width: 768px) {
  .hp-slide.is-product .hp-slide-bg {
    background-position: center top 5%;
    background-size: auto 50%;
  }
}

/* Slide content overlay */
.hp-slide-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(20px, 6vw, 100px);
}
@media (max-width: 768px) {
  .hp-slide-content {
    justify-content: flex-end;
    padding: 28px 20px;
    text-align: center;
    align-items: center;
    background: linear-gradient(0deg, #000 0%, rgba(0,0,0,0.75) 35%, transparent 100%);
  }
}

/* Slide tag badge */
.hp-slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #E50914, #ff4444);
  padding: 6px 14px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  box-shadow: 0 8px 25px rgba(229,9,20,0.45);
  width: fit-content;
}
.hp-slide-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: hpDotPulse 1.8s ease infinite;
}
@keyframes hpDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70%      { box-shadow: 0 0 0 8px transparent; }
}

/* Slide headline */
.hp-slide-head {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  max-width: 550px;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.55);
  margin-bottom: 12px;
}

/* Price row */
.hp-slide-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hp-slide-price {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  color: #fff;
}
.hp-slide-price-old {
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  text-decoration: line-through;
  font-weight: 500;
}

/* CTA button */
.hp-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #000;
  padding: 14px 32px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.3s;
  width: fit-content;
}
.hp-slide-btn:hover {
  background: #E50914;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(229,9,20,0.45);
}

/* Slider controls */
.hp-slider-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.hp-slider-ctrl:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(229,9,20,0.4);
}
.hp-slider-prev { left: 20px; }
.hp-slider-next { right: 20px; }
@media (max-width: 768px) {
  .hp-slider-ctrl { width: 38px; height: 38px; }
  .hp-slider-prev { left: 8px; }
  .hp-slider-next { right: 8px; }
}

/* Dot indicators */
.hp-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hp-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.5s var(--hp-trans);
  padding: 0;
}
.hp-dot.active {
  background: #fff;
  width: 28px;
}

/* Hero fallback */
.hp-hero-fallback {
  text-align: center;
  padding: clamp(40px, 8vw, 80px) 20px;
}
.hp-hero-fallback h2 {
  font-size: clamp(24px, 4vw, 40px);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY RIBBON
   ═══════════════════════════════════════════════════════════════ */
.hp-cat-ribbon {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: relative;
  z-index: 5;
}
.hp-cat-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}
.hp-cat-track::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .hp-cat-track { justify-content: center; flex-wrap: wrap; }
}

.hp-cat-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s;
  border-radius: 12px;
  min-width: 64px;
}
.hp-cat-chip:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.hp-cat-chip-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.3s;
}
.hp-cat-chip:hover .hp-cat-chip-icon {
  background: rgba(229,9,20,0.1);
  border-color: rgba(229,9,20,0.3);
  box-shadow: 0 6px 20px rgba(229,9,20,0.15);
  transform: scale(1.08);
}

/* ═══════════════════════════════════════════════════════════════
   STATS STRIP — Live Counters
   ═══════════════════════════════════════════════════════════════ */
.hp-stats {
  background: linear-gradient(135deg, rgba(229,9,20,0.06), rgba(229,9,20,0.02));
  border-top: 1px solid rgba(229,9,20,0.12);
  border-bottom: 1px solid rgba(229,9,20,0.12);
  padding: clamp(20px, 3vw, 36px) 0;
}
.hp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 600px) {
  .hp-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
}

.hp-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hp-stat-emoji {
  font-size: 28px;
  margin-bottom: 4px;
  transition: transform 0.3s;
}
.hp-stat-item:hover .hp-stat-emoji {
  transform: scale(1.2) translateY(-3px);
}
.hp-stat-num {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-head);
  line-height: 1;
}
.hp-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION BASE
   ═══════════════════════════════════════════════════════════════ */
.hp-section {
  padding: clamp(40px, 5vw, 70px) 0;
}
.hp-section-sm {
  padding: clamp(24px, 3vw, 40px) 0;
}
.hp-section-alt {
  background: var(--bg-secondary);
}
.hp-sec-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(20px, 3vw, 32px);
  gap: 12px;
  flex-wrap: wrap;
}
.hp-sec-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hp-sec-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}
.hp-sec-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: gap 0.25s;
  flex-shrink: 0;
}
.hp-sec-link:hover { gap: 10px; }

/* ═══════════════════════════════════════════════════════════════
   PRODUCT CAROUSELS — New Arrivals, Best Sellers, Featured, Trending
   ═══════════════════════════════════════════════════════════════ */

/* Section container */
.hp-prod-block {
  position: relative;
}

/* ── Scroll Wrapper: flex row, buttons are flex items ────────── */
.hp-scroll-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -4px; /* compensate for scroll padding */
}

/* ── Scrollable product track ────────────────────────────────── */
.hp-scroll-wrap .products-scroll {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 16px 4px 24px;
  flex: 1;
  min-width: 0;
  /* snap for crisp scrolling */
  scroll-snap-type: x mandatory;
}
.hp-scroll-wrap .products-scroll::-webkit-scrollbar { display: none; }

/* ── Card: fixed width, flex column ─────────────────────────── */
.hp-scroll-wrap .products-scroll .product-card {
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease;
  display: flex !important;
  flex-direction: column !important;
  scroll-snap-align: start;
  position: relative;
}
.hp-scroll-wrap .products-scroll .product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 48px rgba(0,0,0,0.2),
              0 0 0 2px var(--accent);
  z-index: 2;
}

/* ── Card image ──────────────────────────────────────────────── */
.hp-scroll-wrap .product-card .product-card-image {
  position: relative !important;
  width: 100%;
  height: 200px !important;
  min-height: 200px;
  background: var(--bg-secondary);
  overflow: hidden;
  flex-shrink: 0;
}
.hp-scroll-wrap .product-card .product-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.5s ease;
}
.hp-scroll-wrap .product-card:hover .product-card-image img {
  transform: scale(1.1);
}

/* ── Card body ───────────────────────────────────────────────── */
.hp-scroll-wrap .product-card .product-card-body {
  padding: 12px 12px 6px !important;
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px;
}

/* Brand */
.hp-scroll-wrap .product-card .product-brand {
  font-size: 9px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Name */
.hp-scroll-wrap .product-card .product-name {
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-scroll-wrap .product-card .product-name a {
  color: var(--text-primary);
  text-decoration: none;
}
.hp-scroll-wrap .product-card .product-name a:hover { color: var(--accent); }

/* Rating */
.hp-scroll-wrap .product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

/* Price row */
.hp-scroll-wrap .product-card .product-price {
  display: flex !important;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.hp-scroll-wrap .product-card .price-sale {
  font-size: 15px !important;
  font-weight: 800;
  color: var(--text-primary);
}
.hp-scroll-wrap .product-card .price-orig {
  font-size: 11px !important;
  color: var(--text-muted);
  text-decoration: line-through;
}
.hp-scroll-wrap .product-card .price-disc {
  font-size: 10px !important;
  font-weight: 700;
  color: var(--success);
  background: rgba(34,197,94,0.12);
  padding: 2px 6px;
  border-radius: 20px;
}

/* ── Card footer ─────────────────────────────────────────────── */
.hp-scroll-wrap .product-card .product-card-footer {
  padding: 0 10px 10px !important;
}
.hp-scroll-wrap .product-card .add-to-cart-btn {
  padding: 9px 10px !important;
  font-size: 11px !important;
  border-radius: 10px !important;
  font-weight: 700;
}

/* ── Wishlist btn ────────────────────────────────────────────── */
.hp-scroll-wrap .product-card .wishlist-float-btn {
  top: 8px !important;
  right: 8px !important;
  width: 30px !important;
  height: 30px !important;
  font-size: 13px !important;
}

/* ── Navigation Arrow Buttons ────────────────────────────────── */
.hp-scroll-btn {
  /* Flex item — sits beside the scroll track */
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1;
  /* Align with image center */
  margin-top: -8px;
}
.hp-scroll-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px rgba(229,9,20,0.4);
  transform: scale(1.1);
}
.hp-scroll-btn:active { transform: scale(0.95); }

/* ── Mobile: hide arrows, rely on swipe ──────────────────────── */
@media (max-width: 600px) {
  .hp-scroll-btn {
    display: none !important;
  }
  .hp-scroll-wrap {
    gap: 0;
    margin: 0;
  }
  .hp-scroll-wrap .products-scroll .product-card {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
  }
  .hp-scroll-wrap .product-card .product-card-image {
    height: 160px !important;
    min-height: 160px;
  }
  .hp-scroll-wrap .product-card .price-sale { font-size: 14px !important; }
  .hp-scroll-wrap .product-card .product-name { font-size: 12px !important; }
  .hp-scroll-wrap .products-scroll { gap: 12px; padding: 10px 2px 20px; }
}
@media (max-width: 380px) {
  .hp-scroll-wrap .products-scroll .product-card {
    width: 144px !important;
    min-width: 144px !important;
    max-width: 144px !important;
  }
  .hp-scroll-wrap .product-card .product-card-image {
    height: 144px !important;
    min-height: 144px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   BENTO TRUST GRID — 6 Premium Cards
   ═══════════════════════════════════════════════════════════════ */
.hp-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .hp-bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .hp-bento { grid-template-columns: 1fr; } }

.hp-bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(18px, 2.5vw, 28px);
  overflow: hidden;
  transition: all var(--hp-trans);
  cursor: default;
}
.hp-bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  border-color: rgba(229,9,20,0.25);
}
.hp-bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.hp-bento-card:hover::before { opacity: 1; }

/* Color variants */
.hp-bento-card.hp-bento-accent::before { background: linear-gradient(135deg, rgba(229,9,20,0.06), transparent 60%); }
.hp-bento-card.hp-bento-green::before  { background: linear-gradient(135deg, rgba(34,197,94,0.06), transparent 60%); }
.hp-bento-card.hp-bento-blue::before   { background: linear-gradient(135deg, rgba(59,130,246,0.06), transparent 60%); }
.hp-bento-card.hp-bento-purple::before { background: linear-gradient(135deg, rgba(168,85,247,0.06), transparent 60%); }
.hp-bento-card.hp-bento-amber::before  { background: linear-gradient(135deg, rgba(245,158,11,0.06), transparent 60%); }
.hp-bento-card.hp-bento-teal::before   { background: linear-gradient(135deg, rgba(20,184,166,0.06), transparent 60%); }

.hp-bento-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  transition: all var(--hp-trans);
}
.hp-bento-card:hover .hp-bento-icon-wrap { transform: scale(1.1); }

.hp-bento-accent .hp-bento-icon-wrap { background: rgba(229,9,20,0.12); color: #E50914; }
.hp-bento-green .hp-bento-icon-wrap  { background: rgba(34,197,94,0.12); color: #22c55e; }
.hp-bento-blue .hp-bento-icon-wrap   { background: rgba(59,130,246,0.12); color: #3b82f6; }
.hp-bento-purple .hp-bento-icon-wrap { background: rgba(168,85,247,0.12); color: #a855f7; }
.hp-bento-amber .hp-bento-icon-wrap  { background: rgba(245,158,11,0.12); color: #f59e0b; }
.hp-bento-teal .hp-bento-icon-wrap   { background: rgba(20,184,166,0.12); color: #14b8a6; }

.hp-bento-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.hp-bento-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   FLASH DEALS SECTION
   ═══════════════════════════════════════════════════════════════ */
.hp-flash {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0d0000 0%, #1a0000 40%, #0d0000 100%);
}
.hp-flash::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 300px;
  background: radial-gradient(ellipse at 50% 0%, rgba(229,9,20,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hp-flash-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* LIVE badge */
.hp-flash-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 99px;
  animation: hpPulseLive 2s ease infinite;
}
.hp-flash-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: hpPulseLive 2s ease infinite;
}
@keyframes hpPulseLive {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,9,20,0.5); }
  70%      { box-shadow: 0 0 0 10px transparent; }
}

/* Countdown timer */
.hp-flash-timer {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hp-timer-block {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.hp-timer-block span {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.hp-timer-block small {
  font-size: 8px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}
.hp-timer-sep {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT SCROLL WRAPPER
   ═══════════════════════════════════════════════════════════════ */
.hp-scroll-wrap { 
  position: relative;
  /* Allow overflow so nav buttons (-20px) are visible outside */
  padding: 0 24px;
  margin: 0 -24px;
}
.hp-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}
.hp-scroll-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}
.hp-scroll-prev { left: 0; }
.hp-scroll-next { right: 0; }
@media (max-width: 768px) {
  .hp-scroll-btn { display: none; }
  .hp-scroll-wrap { padding: 0; margin: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT BLOCKS — With accent top border
   ═══════════════════════════════════════════════════════════════ */
.hp-prod-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--hp-radius);
  padding: clamp(16px, 2.5vw, 28px);
  position: relative;
  /* overflow:hidden removed — was clipping scroll nav buttons */
}
.hp-prod-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.hp-prod-block.hp-block-trend::before { background: linear-gradient(90deg, #E50914, #ff6b35); }
.hp-prod-block.hp-block-feat::before  { background: linear-gradient(90deg, #3b82f6, #8b5cf6); }
.hp-prod-block.hp-block-best::before  { background: linear-gradient(90deg, #22c55e, #14b8a6); }
.hp-prod-block.hp-block-new::before   { background: linear-gradient(90deg, #a855f7, #ec4899); }
.hp-prod-block .products-scroll { padding: 8px 0 4px; }

/* ═══════════════════════════════════════════════════════════════
   MID BANNERS
   ═══════════════════════════════════════════════════════════════ */
.hp-mid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.hp-mid-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/7;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all var(--hp-trans);
}
.hp-mid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.hp-mid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--hp-trans);
}
.hp-mid-card:hover img { transform: scale(1.06); }
.hp-mid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 55%);
}
.hp-mid-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(16px, 3vw, 28px) clamp(16px, 3vw, 24px);
}
.hp-mid-text strong {
  display: block;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.hp-mid-text small {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   WHY CHOOSE US
   ═══════════════════════════════════════════════════════════════ */
.hp-why { background: var(--bg-primary); }
.hp-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.hp-why-card {
  text-align: center;
  padding: clamp(20px, 3vw, 32px) 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all var(--hp-trans);
  position: relative;
  overflow: hidden;
}
.hp-why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0;
  transition: all var(--hp-trans);
}
.hp-why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
  border-color: rgba(229,9,20,0.2);
}
.hp-why-card:hover::after {
  opacity: 1;
  width: 60px;
}
.hp-why-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
  background: rgba(229,9,20,0.08);
  border: 1px solid rgba(229,9,20,0.15);
  transition: all var(--hp-trans);
}
.hp-why-card:hover .hp-why-icon {
  background: rgba(229,9,20,0.15);
  transform: scale(1.1);
}
.hp-why-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.hp-why-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   WALLET PROMO BANNER
   ═══════════════════════════════════════════════════════════════ */
.hp-wallet {
  padding: 0 0 clamp(40px, 5vw, 70px);
}
.hp-wallet-inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #0d0003 0%, #1a0008 50%, #0d0003 100%);
  border: 1px solid rgba(229,9,20,0.2);
  border-radius: var(--hp-radius);
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
@media (max-width: 768px) {
  .hp-wallet-inner { grid-template-columns: 1fr; text-align: center; }
}
.hp-wallet-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 25% 50%, rgba(229,9,20,0.08) 0%, transparent 60%);
}
.hp-wallet-left {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .hp-wallet-left { flex-direction: column; align-items: center; }
}
.hp-wallet-emoji {
  font-size: 52px;
  line-height: 1;
  flex-shrink: 0;
}
.hp-wallet-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.hp-wallet-desc {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 480px;
}
.hp-wallet-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .hp-wallet-tags { justify-content: center; }
}
.hp-wallet-tag {
  background: rgba(229,9,20,0.1);
  border: 1px solid rgba(229,9,20,0.2);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.hp-wallet-right {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  min-width: 220px;
}
.hp-wallet-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(20px);
  text-align: center;
}
.hp-wallet-card-label {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-weight: 600;
}
.hp-wallet-card-amt {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-head);
  margin-bottom: 16px;
}
.hp-wallet-card-actions {
  display: flex;
  gap: 10px;
}
.hp-wallet-card-actions .btn {
  flex: 1;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════════════════════════ */
.hp-newsletter {
  padding: clamp(40px, 5vw, 70px) 0;
}
.hp-nl-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--hp-radius);
  background: linear-gradient(135deg, rgba(229,9,20,0.1), rgba(229,9,20,0.03));
  border: 1px solid rgba(229,9,20,0.18);
  padding: clamp(36px, 5vw, 60px) clamp(20px, 4vw, 48px);
  text-align: center;
}
.hp-nl-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(229,9,20,0.12) 0%, transparent 65%);
}
.hp-nl-content { position: relative; z-index: 1; }
.hp-nl-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.hp-nl-title {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.hp-nl-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.hp-nl-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 12px;
}
@media (max-width: 500px) {
  .hp-nl-form { flex-direction: column; }
}
.hp-nl-input {
  flex: 1;
  min-width: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 14px 22px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s;
}
.hp-nl-input:focus { border-color: var(--accent); }
.hp-nl-input::placeholder { color: var(--text-faint); }
.hp-nl-note {
  font-size: 12px;
  color: var(--text-faint);
}

/* ═══════════════════════════════════════════════════════════════
   FAB — Back to Top
   ═══════════════════════════════════════════════════════════════ */
.hp-fab {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 768px) {
  .hp-fab { bottom: 24px; }
}
.hp-fab-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all var(--hp-trans);
  cursor: pointer;
}
.hp-fab-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.12);
}
.hp-fab-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE OVERRIDES
   ═══════════════════════════════════════════════════════════════ */
[data-theme="light"] .hp-hero         { background: #f5f5f5; }
[data-theme="light"] .hp-cat-ribbon   { background: #fff; border-bottom-color: #eee; }
[data-theme="light"] .hp-cat-chip-icon { background: #f5f5f5; border-color: #e5e7eb; }
[data-theme="light"] .hp-cat-chip:hover .hp-cat-chip-icon { background: #fff; border-color: var(--accent); }
[data-theme="light"] .hp-stats        { background: linear-gradient(135deg, rgba(229,9,20,0.03), rgba(229,9,20,0.01)); border-color: rgba(229,9,20,0.08); }
[data-theme="light"] .hp-sec-title    { color: #111; }
[data-theme="light"] .hp-bento-card   { background: #fff; border-color: #e5e7eb; }
[data-theme="light"] .hp-bento-card:hover { border-color: rgba(229,9,20,0.2); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
[data-theme="light"] .hp-why-card     { background: #fff; border-color: #e5e7eb; }
[data-theme="light"] .hp-prod-block   { background: #fff; border-color: #e5e7eb; }
[data-theme="light"] .hp-mid-card     { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
[data-theme="light"] .hp-nl-inner     { background: linear-gradient(135deg, rgba(229,9,20,0.04), rgba(229,9,20,0.01)); border-color: rgba(229,9,20,0.12); }

/* Flash light mode */
[data-theme="light"] .hp-flash        { background: linear-gradient(160deg, #fff5f5, #fff0f0, #fff5f5); }
[data-theme="light"] .hp-flash::after { background: radial-gradient(ellipse at 50% 0%, rgba(229,9,20,0.05) 0%, transparent 70%); }
[data-theme="light"] .hp-timer-block  { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .hp-timer-block span { color: #111; }
[data-theme="light"] .hp-timer-block small { color: #888; }

/* Wallet light mode */
[data-theme="light"] .hp-wallet-inner    { background: linear-gradient(140deg, #fff5f5, #fffafa); border-color: rgba(229,9,20,0.15); }
[data-theme="light"] .hp-wallet-title    { color: #111; }
[data-theme="light"] .hp-wallet-desc     { color: #555; }
[data-theme="light"] .hp-wallet-tag      { background: rgba(229,9,20,0.06); border-color: rgba(229,9,20,0.15); color: #444; }
[data-theme="light"] .hp-wallet-card     { background: #fff; border-color: #e5e7eb; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
[data-theme="light"] .hp-wallet-card-label { color: #888; }
[data-theme="light"] .hp-wallet-card-amt  { color: #111; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE-FIRST FINAL POLISH (≤ 480px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hp-slider { aspect-ratio: 4/3; }
  .hp-slide-head { font-size: clamp(20px, 6.5vw, 28px) !important; max-width: 100%; }
  .hp-slide-tag  { font-size: 9px; padding: 5px 10px; }
  .hp-slide-btn  { padding: 11px 20px; font-size: 12px; }
  .hp-slide-price { font-size: 18px; }
  .hp-cat-chip { min-width: 52px; padding: 6px 8px; font-size: 10px; }
  .hp-cat-chip-icon { width: 40px; height: 40px; font-size: 18px; }
  .hp-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .hp-stat-num { font-size: 26px; }
  .hp-bento { gap: 10px; }
  .hp-bento-card { padding: 14px; border-radius: 16px; }
  .hp-flash-header { gap: 10px; }
  .hp-flash-timer { gap: 4px; }
  .hp-timer-block span { font-size: 16px; }
  .hp-wallet-inner { padding: 24px 16px; border-radius: 18px; }
  .hp-wallet-emoji { font-size: 36px; }
  .hp-wallet-title { font-size: 20px; }
  .hp-nl-form { flex-direction: column; }
  .hp-nl-input { text-align: center; width: 100%; }
  .hp-sec-title { font-size: 18px; }
  .products-scroll .product-card { width: 150px; min-width: 150px; }
  .hp-mid-grid { grid-template-columns: 1fr; }
  .hp-mid-card { aspect-ratio: 16/7; }
  .hp-fab-btn { width: 40px; height: 40px; font-size: 17px; }
  .hp-section { padding: 32px 0; }
  .hp-section-sm { padding: 20px 0; }
  /* Wishlist float button: compact on tiny screens */
  .wishlist-float-btn { width: 32px; height: 32px; font-size: 14px; top: 7px; right: 7px; }
}

/* ─── Prevent text overflow in product cards ─────────────────── */
.product-name a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-brand {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
