/* ═══════════════════════════════════════════════════════════
   Makeup Store — Homepage Premium Theme
   Feminine · Professional · E-commerce
   ═══════════════════════════════════════════════════════════ */

:root {
  --rose: #e91e8c;
  --rose-dark: #c2185b;
  --rose-light: #fce4ef;
  --blush: #fff0f5;
  --mauve: #b57edc;
  --lavender: #f3e8ff;
  --gold: #c9a87c;
  --cream: #fffbfc;
  --ink: #2d2a32;
  --ink-muted: #6b6570;
  --shadow-rose: 0 8px 32px rgba(233, 30, 140, 0.12);
  --shadow-soft: 0 4px 24px rgba(45, 42, 50, 0.06);
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ── Hero ── */
.home-hero {
  position: relative;
  overflow: hidden;
  background: #1a0f14;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: hero-slide-fade 20s infinite;
  will-change: opacity, transform;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6.25s; }
.hero-slide:nth-child(3) { animation-delay: 12.5s; }
.hero-slide:nth-child(4) { animation-delay: 18.75s; }

@keyframes hero-slide-fade {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  6% {
    opacity: 1;
  }
  20% {
    opacity: 1;
    transform: scale(1.1);
  }
  26% {
    opacity: 0;
    transform: scale(1.12);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

.home-hero-overlay--light {
  background:
    linear-gradient(135deg, rgba(230, 216, 231, 0.82) 0%, rgba(243, 232, 255, 0.78) 50%, rgba(252, 228, 239, 0.75) 100%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

.home-hero-label {
  display: block;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: #4b2c6e;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.home-hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: #4b2c6e;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(255, 245, 248, 0.88) 0%, rgba(252, 232, 240, 0.82) 40%, rgba(243, 229, 249, 0.78) 100%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero .container {
  position: relative;
  z-index: 2;
}

.min-vh-hero { padding: 3rem 0 3.5rem; }

.home-hero-title {
  font-family: 'Vazir', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.3;
  color: #4b2c6e;
  margin-bottom: 0.5rem;
}

.text-gradient {
  font-family: inherit;
  font-weight: inherit;
  background: linear-gradient(135deg, var(--rose) 0%, var(--mauve) 50%, #e91e8c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero-desc {
  font-size: 1.05rem;
  color: #3d3842;
  line-height: 1.9;
  max-width: 560px;
  margin-bottom: 2rem;
}

.home-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(233, 30, 140, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(233, 30, 140, 0.4);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(233, 30, 140, 0.25);
  color: var(--rose-dark);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
  background: #fff;
  border-color: var(--rose);
  color: var(--rose-dark);
}

.home-hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.home-hero-stats .stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.home-hero-stats .stat span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(233, 30, 140, 0.2);
}

/* ── USP strip ── */
.home-usp-section {
  position: relative;
  z-index: 5;
}

.home-usp-section--mid {
  margin-top: 0;
  background: var(--cream);
}

/* فاصله یکسان بین همه کادرهای صفحه اصلی */
.home-categories-section,
.home-flash-sale,
.home-usp-section--mid,
.home-section.home-products,
.home-section.home-brands,
.home-section.home-blog {
  padding: 1.25rem 0;
}

.home-usp-section--mid,
.home-flash-sale,
.home-section.home-products {
  background: var(--cream);
}

.home-usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.usp-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 1.2rem 1.35rem;
  background: #fff;
  border: 1px solid rgba(233, 30, 140, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(233, 30, 140, 0.08);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.usp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(233, 30, 140, 0.14);
  border-color: rgba(233, 30, 140, 0.22);
}

.usp-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.usp-icon-1 { background: linear-gradient(135deg, #fce4ef, #f8bbd9); color: #c2185b; }
.usp-icon-2 { background: linear-gradient(135deg, #f3e5f5, #e1bee7); color: #7b1fa2; }
.usp-icon-3 { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: #e65100; }
.usp-icon-4 { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); color: #2e7d32; }

.usp-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.usp-body strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.usp-card:nth-child(4) .usp-body strong {
  white-space: nowrap;
  font-size: 0.88rem;
}

.usp-body span {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

@media (max-width: 991px) {
  .home-usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .home-usp-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .usp-card { padding: 1rem 1.1rem; }
  .usp-icon { width: 46px; height: 46px; font-size: 1.2rem; }
}

/* ── Section headers ── */
.home-section {
  padding: 5rem 0;
  background: var(--cream);
}

.home-section.home-products,
.home-section.home-brands,
.home-section.home-blog {
  padding: 1.25rem 0;
}

.home-section:nth-child(even) { background: #fff; }

.home-products-box {
  background: linear-gradient(180deg, #fff 0%, #fff9fc 100%);
  border: 1px solid rgba(233, 30, 140, 0.16);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(233, 30, 140, 0.08);
  padding: 1.25rem;
  overflow: hidden;
}

.home-products-box-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding-bottom: 1rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(233, 30, 140, 0.1);
}

.home-products-box-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.home-products-box-title .home-section-label {
  margin-bottom: 0;
}

.home-section-label--products {
  color: #c2185b;
  background: linear-gradient(135deg, #ffe0ef 0%, #ffd6e8 50%, #f8d7ff 100%);
  border: 1px solid rgba(194, 24, 91, 0.28);
}

.home-products-box-heading {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}

.home-products-box-body {
  padding-top: 0.75rem;
}

.home-section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.home-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.home-section-sub {
  color: var(--ink-muted);
  font-size: 1rem;
}

/* ── Colorful beauty section headers ── */
.home-section-header--beauty {
  position: relative;
  z-index: 1;
}

.home-section-label--beauty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 16px rgba(233, 30, 140, 0.12);
}

.home-section-label--brands {
  color: #a61e4d;
  background: linear-gradient(135deg, #ffc2d9 0%, #f3d4ff 50%, #ffd6e8 100%);
  border: 1px solid rgba(194, 24, 91, 0.35);
}

.home-section-label--blog {
  color: #7b1fa2;
  background: linear-gradient(135deg, #e1bee7 0%, #ffb3d9 55%, #f8bbd0 100%);
  border: 1px solid rgba(156, 39, 176, 0.35);
}

.home-section-title--beauty {
  font-weight: 800;
  line-height: 1.35;
  background: linear-gradient(135deg, #ad1457 0%, #c2185b 25%, #9c27b0 50%, #d63384 75%, #b0124a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-brands-header .home-section-title--beauty {
  background: linear-gradient(135deg, #a61e4d 0%, #c2185b 22%, #9c27b0 48%, #d63384 72%, #ad1457 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-blog-header .home-section-title--beauty {
  background: linear-gradient(135deg, #b0124a 0%, #c2185b 28%, #8e24aa 55%, #d63384 78%, #ad1457 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-section-header--beauty::after {
  display: none;
}

.home-section-sub--beauty {
  margin-top: 0.85rem;
  color: #6d4a5e;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ── Categories (below hero / banner) ── */
.home-categories-section {
  position: relative;
  margin-top: 0;
  z-index: 1;
}

.home-categories-box {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.5rem 0 0.25rem;
}

.home-cat-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x;
}
.home-cat-scroll::-webkit-scrollbar { height: 0; display: none; }
.home-cat-scroll::-webkit-scrollbar-thumb { background: transparent; }

.home-cat-grid {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  flex-wrap: nowrap;
  width: max-content;
  min-width: 100%;
  padding: 0.25rem 0.5rem;
}

.home-cat-item {
  text-decoration: none;
  text-align: center;
  flex: 0 0 auto;
  width: 112px;
  transition: transform 0.25s;
}

.home-cat-item:hover {
  transform: translateY(-4px);
  text-decoration: none;
}

.home-cat-visual {
  display: block;
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 8px;
}

.home-cat-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: visible;
  border: none;
  box-shadow: none;
  transition: transform 0.25s;
}

.home-cat-item:hover .home-cat-circle {
  transform: scale(1.03);
}

.home-cat-circle img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  transform: none;
}

.home-cat-item--madar-koodak .home-cat-circle img {
  width: 162px;
  height: 108px;
}

.home-cat-name {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #4a3f55;
  line-height: 1.5;
}

.home-categories-section + .home-flash-sale {
  padding-top: 1.25rem;
}

@media (max-width: 991px) {
  .home-categories-section {
    margin-top: 0;
  }

  .home-categories-section .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .home-categories-box {
    padding-inline: 0;
  }

  .home-cat-scroll {
    scroll-snap-type: x proximity;
    scroll-padding-inline: 1rem;
    padding-inline: 1rem;
  }

  .home-cat-grid {
    justify-content: flex-start;
    gap: 1.15rem;
    padding-inline: 0.25rem;
    min-width: max-content;
  }

  .home-cat-item {
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

@media (max-width: 576px) {
  .home-cat-grid {
    gap: 1rem;
    padding-inline: 0.15rem;
  }

  .home-cat-item {
    width: 96px;
  }

  .home-cat-visual {
    width: 96px;
    height: 96px;
  }

  .home-cat-circle img {
    width: 92px;
    height: 92px;
  }

  .home-cat-item--madar-koodak .home-cat-circle img {
    width: 138px;
    height: 92px;
  }

  .home-cat-name {
    font-size: 0.76rem;
  }
}

/* legacy cat color helpers */
.cat-color-1 { background: linear-gradient(135deg, #f48fb1, #e91e8c); }
.cat-color-2 { background: linear-gradient(135deg, #ce93d8, #9c27b0); }
.cat-color-3 { background: linear-gradient(135deg, #90caf9, #5c6bc0); }
.cat-color-4 { background: linear-gradient(135deg, #ffab91, #ff7043); }
.cat-color-5 { background: linear-gradient(135deg, #80cbc4, #26a69a); }
.cat-color-6 { background: linear-gradient(135deg, #fff59d, #fbc02d); color: #5d4037 !important; }
.cat-color-7 { background: linear-gradient(135deg, #ef9a9a, #e53935); }
.cat-color-8 { background: linear-gradient(135deg, #b39ddb, #7e57c2); }

.home-cat-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

/* ── Flash sale ── */
.home-flash-sale {
  background: var(--cream);
}

.flash-sale-banner {
  background: #fff;
  border: 1px solid rgba(233, 30, 140, 0.18);
  border-radius: var(--radius-xl);
  padding: 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 36px rgba(45, 42, 50, 0.1);
}

.flash-sale-layout {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  min-height: 280px;
  position: relative;
  z-index: 2;
}

.flash-sale-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    url('../images/flash-banner-pattern.svg') right center / cover no-repeat,
    linear-gradient(135deg, #2d2a32 0%, #4a2040 50%, #2d2a32 100%);
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
}

.flash-sale-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 85% 50%, rgba(233, 30, 140, 0.28) 0%, transparent 65%),
    radial-gradient(circle at 15% 20%, rgba(206, 147, 216, 0.12) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.flash-sale-promo > * {
  position: relative;
  z-index: 1;
}

.flash-sale-promo-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.75rem;
  color: #ffd54f;
}

.flash-sale-promo-title {
  font-family: 'Vazir', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.4;
}

.flash-sale-promo-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.flash-sale-promo-more:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.flash-sale-carousel-wrap {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: stretch;
  background: #fff;
  border-inline-end: 1px solid rgba(233, 30, 140, 0.1);
}

.flash-sale-carousel {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  direction: rtl;
}

.flash-sale-carousel::-webkit-scrollbar {
  display: none;
}

.flash-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.flash-carousel-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.flash-carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: translateY(-50%);
  box-shadow: none;
}

.flash-carousel-btn--next {
  left: 0.75rem;
  right: auto;
}

.flash-carousel-btn--prev {
  right: 0.75rem;
  left: auto;
}

.flash-sale-card {
  flex: 0 0 190px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  border-inline-start: 1px solid rgba(233, 30, 140, 0.1);
  transition: background 0.2s, box-shadow 0.2s;
}

.flash-sale-card:hover {
  background: #fff9fc;
  color: var(--ink);
}

.flash-sale-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  padding: 1rem 1rem 0.5rem;
}

.flash-sale-card-media img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  transition: transform 0.25s;
}

.flash-sale-card:hover .flash-sale-card-media img {
  transform: scale(1.04);
}

.flash-sale-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.35rem 0.85rem 1rem;
  flex: 1;
}

.flash-sale-card-title {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5rem;
}

.flash-sale-card-price {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.flash-sale-card-old {
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.flash-sale-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.flash-sale-card-badge {
  flex-shrink: 0;
  background: #ef4056;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  line-height: 1.4;
}

.flash-sale-card-current {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.flash-sale-card-current small {
  font-size: 0.68rem;
  font-weight: 500;
}

.flash-sale-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 1rem;
}

.flash-title {
  font-family: 'Vazir', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  max-width: 100%;
  line-height: 1.35;
}

.flash-desc {
  opacity: 0.8;
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 26rem;
}

.flash-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.flash-sale-promo .flash-countdown {
  width: 100%;
  gap: 2px;
}

.flash-sale-promo .countdown-item {
  min-width: 0;
  flex: 1 1 0;
  padding: 6px 4px;
}

.flash-sale-promo .countdown-item span {
  font-size: 1rem;
}

.flash-sale-promo .countdown-item small {
  font-size: 0.58rem;
}

.flash-sale-promo .countdown-sep {
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}

.flash-sale-banner::before,
.flash-sale-banner::after {
  display: none;
}

.flash-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(233, 30, 140, 0.3);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.flash-label i { color: #ffd54f; }

.countdown-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
  min-width: 52px;
}

.countdown-item span {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.countdown-item small {
  font-size: 0.65rem;
  opacity: 0.7;
  text-transform: uppercase;
}

.countdown-sep {
  font-size: 1.5rem;
  font-weight: 700;
  opacity: 0.5;
}

.btn-flash {
  background: linear-gradient(135deg, var(--rose), #ff6b9d);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
}

.btn-flash:hover { color: #fff; transform: translateY(-2px); }

/* Installment notes — left column */
.flash-sale-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-inline-end: 1rem;
}

.flash-pay-notes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 560px;
}

.flash-pay-note {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1.1rem 1.4rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  color: #fff;
  line-height: 1.55;
}

.flash-pay-note--top {
  flex-wrap: nowrap;
  font-size: 1.25rem;
  font-weight: 500;
}

.flash-pay-note-text {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.flash-pay-note-badge {
  flex-shrink: 0;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(233, 30, 140, 0.9), rgba(255, 107, 157, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(233, 30, 140, 0.35);
}

.flash-pay-note--bottom {
  font-size: 1.15rem;
  font-weight: 400;
  justify-content: flex-start;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(233, 30, 140, 0.12));
}

.flash-pay-note--bottom span {
  white-space: nowrap;
}

.flash-pay-note--bottom i {
  flex-shrink: 0;
  font-size: 1.6rem;
  color: #ffd54f;
}

.flash-pay-note--footnote {
  font-size: 1.1rem;
  font-weight: 400;
  justify-content: flex-start;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(233, 30, 140, 0.12));
}

.flash-pay-note--footnote i {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: #ffd54f;
}

.flash-benefit-notes {
  gap: 0.5rem;
  width: 100%;
  max-width: 560px;
  align-items: stretch;
}

.flash-benefit-note {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(233, 30, 140, 0.12));
}

.flash-benefit-note i {
  flex-shrink: 0;
  font-size: 1.15rem;
  color: #ffd54f;
}

.flash-benefit-note strong {
  font-weight: 600;
  line-height: 1.4;
}

.flash-benefit-note-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.flash-benefit-note-text small {
  font-size: 0.88em;
  opacity: 0.88;
  line-height: 1.4;
}

.flash-benefit-note span {
  min-width: 0;
}

/* ── Product tabs ── */
.home-product-tabs {
  gap: 4px;
  background: var(--rose-light);
  padding: 4px;
  border-radius: 50px;
  margin-inline-start: auto;
}

.home-product-tabs .nav-link {
  border: none;
  border-radius: 50px !important;
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 20px;
  transition: all 0.2s;
}

.home-product-tabs .nav-link.active {
  background: #fff;
  color: var(--rose);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 576px) {
  .home-product-tabs .nav-link {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.home-section-more-wrap {
  margin-top: 1rem;
}

.home-section-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rose);
  text-decoration: none;
  background: #fff;
  border: 2px solid rgba(233, 30, 140, 0.35);
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(233, 30, 140, 0.08);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.home-section-more:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), #ff6b9d);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(233, 30, 140, 0.25);
  transform: translateY(-2px);
}

/* ── Home product card ── */
.home-product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-rose);
}

.home-product-media {
  position: relative;
  overflow: hidden;
}

.home-product-img-wrap {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.home-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-product-card:hover .home-product-img-wrap img {
  transform: scale(1.08);
}

.home-product-placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--rose-light), var(--lavender));
  font-size: 3rem;
  color: var(--rose);
}

.home-product-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge-sale {
  background: var(--rose);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-new {
  background: var(--gold);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-tab-new {
  background: #7b1fa2;
}

.badge-tab-popular {
  background: #fff;
  color: var(--rose);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  box-shadow: var(--shadow-soft);
}

.badge-limited {
  background: #e65100;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.home-product-action,
.btn-home-wishlist {
  position: absolute;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}

.home-product-card:hover .home-product-action,
.home-product-card:hover .btn-home-wishlist {
  opacity: 1;
  transform: translateY(0);
}

.btn-home-cart {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--rose);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(233, 30, 140, 0.4);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.btn-home-cart:hover {
  background: var(--rose-dark);
  transform: scale(1.08);
}

.btn-home-wishlist {
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-muted);
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.btn-home-wishlist.active,
.btn-home-wishlist:hover {
  color: var(--rose);
}

.btn-home-wishlist.active { color: var(--rose); }

.home-product-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 6px;
}

.home-product-brand {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-decoration: none;
}

.home-product-brand:hover { color: var(--rose); }

.home-product-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-product-title a {
  color: var(--ink);
  text-decoration: none;
}

.home-product-title a:hover { color: var(--rose); }

.home-product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.home-product-rating .stars {
  color: #ffc107;
  font-size: 0.75rem;
  letter-spacing: -1px;
}

.home-product-rating .rating-count {
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.home-product-price {
  margin-top: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-top: 0.5rem;
}

.home-product-price .price-old {
  text-decoration: line-through;
  color: #bbb;
  font-size: 0.8rem;
  margin: 0;
}

.home-product-price .price-current {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--rose);
}

.btn-view-all {
  border: 2px solid var(--rose);
  color: var(--rose);
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 50px;
  background: transparent;
  transition: all 0.2s;
}

.btn-view-all:hover {
  background: var(--rose);
  color: #fff;
}

/* ── Promo banners ── */
.promo-card {
  display: block;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  min-height: 220px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-rose);
}

.promo-card-1 {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 50%, #f48fb1 100%);
}

.promo-card-2 {
  background: linear-gradient(135deg, #ede7f6 0%, #d1c4e9 50%, #b39ddb 100%);
}

.promo-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(45, 42, 50, 0.6);
}

.promo-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0.75rem 0 1rem;
  line-height: 1.35;
}

.promo-link {
  font-weight: 700;
  color: var(--rose-dark);
  font-size: 0.9rem;
}

/* ── Brands grid ── */
.home-brands {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff9fb 0%, #fff5f8 45%, #faf5ff 100%) !important;
}

.home-brands-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 70% at 15% 40%, rgba(233, 30, 140, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 45% 60% at 90% 70%, rgba(181, 126, 220, 0.08) 0%, transparent 50%);
}

.home-brands-header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
}

.home-brands-header .home-section-label--beauty,
.home-brands-header .home-section-title--beauty {
  margin-bottom: 0;
}

.home-brands-box {
  background: linear-gradient(180deg, #fff 0%, #fff9fc 100%);
  border: 1px solid rgba(233, 30, 140, 0.16);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(233, 30, 140, 0.08);
  padding: 1.5rem 1.25rem 1.25rem;
  overflow: hidden;
}

.home-brands-header .home-section-sub {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.brands-grid {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: minmax(100px, 1fr);
  gap: 0.75rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.brand-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  height: auto;
  padding: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 245, 250, 0.92) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(233, 30, 140, 0.14);
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(233, 30, 140, 0.06);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.brand-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 30, 140, 0.35);
  box-shadow: 0 10px 28px rgba(233, 30, 140, 0.14);
  color: var(--rose-dark);
}

.brand-tile-media {
  display: block;
  width: 100%;
  height: 58px;
  overflow: hidden;
}

.brand-name {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ink-muted);
  transition: color 0.2s;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  padding: 0.45rem 0.5rem 0.55rem;
  white-space: nowrap;
}

.brand-tile:hover .brand-name {
  color: var(--rose-dark);
}

.brand-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  max-height: none;
  filter: none;
  transition: transform 0.25s;
}

.brand-tile:hover img {
  transform: scale(1.06);
}

@media (max-width: 575.98px) {
  .home-brands-box {
    padding: 1.15rem 0.85rem 0.85rem;
    border-radius: 18px;
  }

  .brands-grid {
    gap: 0.55rem;
    max-width: 100%;
    grid-auto-columns: minmax(88px, 1fr);
  }

  .brand-tile {
    border-radius: 14px;
  }

  .brand-tile-media {
    height: 48px;
  }

  .brand-name {
    font-size: 0.72rem;
    padding: 0.35rem 0.35rem 0.45rem;
  }
}

/* ── Trust ── */
.home-trust { background: var(--blush) !important; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.trust-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s;
}

.trust-item:hover { transform: translateY(-4px); }

.trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--rose-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--rose);
}

.trust-item h6 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Blog cards ── */
.home-blog {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fffafc 0%, #fff5fa 40%, #f9f2ff 100%) !important;
}

.home-blog-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 65% at 10% 20%, rgba(233, 30, 140, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 55% at 92% 75%, rgba(155, 89, 182, 0.1) 0%, transparent 52%),
    radial-gradient(ellipse 40% 45% at 50% 100%, rgba(255, 107, 157, 0.07) 0%, transparent 50%);
}

.home-blog-box {
  background: linear-gradient(180deg, #fff 0%, #fff9fc 100%);
  border: 1px solid rgba(233, 30, 140, 0.16);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(233, 30, 140, 0.08);
  padding: 1.5rem 1.25rem 1.25rem;
  overflow: hidden;
}

.home-blog-header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
}

.home-blog-header .home-section-label--beauty,
.home-blog-header .home-section-title--beauty {
  margin-bottom: 0;
}

.home-blog-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(233, 30, 140, 0.08);
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  border: 1px solid rgba(233, 30, 140, 0.1);
}

.home-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-rose);
}

.home-blog-img-wrap {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.home-blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.home-benefit-panel {
  margin-top: 1rem;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-xl);
  background:
    url('../images/flash-banner-pattern.svg') right center / cover no-repeat,
    linear-gradient(135deg, #2d2a32 0%, #4a2040 50%, #2d2a32 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.home-benefit-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 85% 50%, rgba(233, 30, 140, 0.28) 0%, transparent 65%),
    radial-gradient(circle at 15% 20%, rgba(206, 147, 216, 0.12) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.home-benefit-panel .flash-pay-notes {
  position: relative;
  z-index: 1;
}

.home-benefit-panel .flash-benefit-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
}

.home-benefit-panel .flash-benefit-note {
  padding: 0.75rem 0.85rem;
  font-size: 0.88rem;
}

@media (max-width: 575px) {
  .home-benefit-panel {
    padding: 1.15rem 0.85rem;
  }

  .home-blog-box {
    padding: 1.15rem 0.85rem 0.85rem;
    border-radius: 18px;
  }

  .home-benefit-panel .flash-benefit-notes {
    gap: 0.5rem;
  }

  .home-benefit-panel .flash-benefit-note {
    padding: 0.65rem 0.7rem;
    font-size: 0.82rem;
  }

  .home-benefit-panel .flash-benefit-note i {
    font-size: 1rem;
  }
}

.home-blog-card:hover .home-blog-img-wrap img { transform: scale(1.06); }

.home-blog-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--lavender), var(--rose-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--mauve);
}

.home-blog-body { padding: 0.85rem 1rem 1rem; }

.home-blog-body time {
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.home-blog-body h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0.35rem 0 0.55rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.home-blog-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.home-blog-body h3 a:hover { color: var(--rose); }

.home-blog-top {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-blog-top-label .home-section-label--blog {
  margin-bottom: 0;
}

.home-blog-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1.25rem;
}

.home-blog-top-row .home-blog-header {
  grid-column: 2;
  grid-row: 1;
}

.home-blog-top-row .btn-view-all--blog {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  margin: 0;
}

.home-blog-top-spacer {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  visibility: hidden;
  pointer-events: none;
}

.home-blog-header--inline::after {
  display: none;
}

.home-blog-top-line {
  width: 72px;
  height: 4px;
  margin: 0.65rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #c2185b, #9c27b0, #d63384, #ad1457);
}

.btn-view-all--blog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: auto;
  white-space: nowrap;
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
}

@media (max-width: 767px) {
  .home-blog-top-row {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 0.85rem;
  }

  .home-blog-top-spacer {
    display: none;
  }

  .home-blog-top-line {
    display: none;
  }

  .home-blog-top-row .home-blog-header,
  .home-blog-top-row .btn-view-all--blog {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }
}

.read-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rose);
  text-decoration: none;
}

.read-more:hover { color: var(--rose-dark); }

/* ── Scroll reveal ── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .min-vh-hero { padding: 2rem 0 2.5rem; }
  .flash-sale-banner {
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(45, 42, 50, 0.08);
  }
  .flash-sale-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .flash-sale-promo {
    border-inline-start: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: start;
  }
  .flash-sale-carousel-wrap {
    border-inline-end: none;
    border-top: 1px solid rgba(233, 30, 140, 0.1);
  }
  .flash-sale-promo-icon {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }
  .flash-sale-promo-title {
    flex: 1;
    min-width: 120px;
    text-align: center;
  }
  .flash-sale-promo .flash-countdown {
    width: auto;
    flex: 1 1 100%;
    justify-content: center;
    flex-wrap: nowrap;
  }
  .flash-sale-promo-more {
    margin-top: 0;
  }
  .flash-sale-card {
    flex-basis: 160px;
  }
  .flash-sale-card-media {
    height: 130px;
  }
  .flash-carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .flash-pay-notes { max-width: 100%; margin-inline: auto; }

  .home-products-box {
    padding: 1rem 0.85rem 1.15rem;
    border-radius: 18px;
  }

  .home-products-box-head {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .home-products-box-title {
    justify-content: center;
  }

  .home-product-tabs {
    margin-inline: auto;
    justify-content: center;
  }

  .home-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .home-product-card {
    border-radius: 12px;
  }

  .home-product-card:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
  }

  .home-product-body {
    padding: 0.45rem 0.4rem 0.55rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .home-product-meta,
  .home-product-price .price-old,
  .home-product-action,
  .btn-home-wishlist,
  .badge-new {
    display: none !important;
  }

  .home-product-title {
    font-size: 0.68rem;
    line-height: 1.35;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-product-price {
    margin-top: auto;
    text-align: center;
  }

  .home-product-price .price-current {
    font-size: 0.72rem;
  }

  .home-product-price .price-current small {
    font-size: 0.6rem;
  }

  .home-product-badges {
    top: 4px;
    right: 4px;
    gap: 3px;
  }

  .badge-sale {
    font-size: 0.55rem;
    padding: 2px 5px;
    border-radius: 4px;
  }

  .home-product-placeholder {
    min-height: 0;
    font-size: 1.4rem;
  }

  .home-section-more {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .home-categories-section,
  .home-flash-sale,
  .home-usp-section--mid,
  .home-section.home-products,
  .home-section.home-brands,
  .home-section.home-blog {
    padding: 1rem 0;
  }

  .flash-sale-banner { padding: 1.25rem 1rem; }
  .flash-sale-content { padding-inline: 0.25rem; }
  .flash-title { font-size: clamp(1.15rem, 5.2vw, 1.45rem); }
  .countdown-item { min-width: 56px; padding: 8px 10px; }
  .countdown-item span { font-size: 1.25rem; }
  .promo-card { padding: 1.5rem; min-height: 160px; }
  .promo-card h3 { font-size: 1.2rem; }
}

@media (max-width: 380px) {
  .home-product-tabs {
    flex-wrap: nowrap;
    width: 100%;
    gap: 2px;
    padding: 3px;
  }

  .home-product-tabs .nav-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .home-product-tabs .nav-link {
    font-size: 0.72rem;
    padding: 8px 4px;
    white-space: nowrap;
    width: 100%;
    text-align: center;
  }
}
