/* Hu3Hmong — Homepage */

body.home {
  background: var(--white);
  color: var(--gray-700);
}

/* ── Header ── */
.home-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(249, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(75, 31, 94, 0.08);
}

.home-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}

.home-header__logo img {
  height: 56px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.home-header__logo:hover img { transform: scale(1.04); }

.home-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.home-nav__link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(75, 31, 94, 0.75);
  border-radius: 999px;
  transition: var(--transition);
}

.home-nav__link:hover,
.home-nav__link--active {
  color: var(--purple-950);
  background: rgba(75, 31, 94, 0.05);
}

.home-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* ── Language Switch (desktop pill row) ── */
.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(75, 31, 94, 0.04);
  border-radius: 999px;
  padding: 3px;
  margin-right: 8px;
}

.lang-switch__btn {
  padding: 6px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(75, 31, 94, 0.6);
  border-radius: 999px;
  transition: var(--transition);
  white-space: nowrap;
}

.lang-switch__btn.active {
  background: var(--gold);
  color: var(--purple-950);
}

/* ── Language Dropdown (mobile only) ── */
.lang-dropdown {
  display: none;
  position: relative;
}

.lang-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: rgba(75, 31, 94, 0.05);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--purple-950);
  border: 1px solid rgba(75, 31, 94, 0.12);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.lang-dropdown__trigger:hover {
  background: rgba(75, 31, 94, 0.08);
}

.lang-dropdown__trigger i {
  font-size: 0.5rem;
  transition: transform 0.25s ease;
}

.lang-dropdown.is-open .lang-dropdown__trigger i {
  transform: rotate(180deg);
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid rgba(75, 31, 94, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(75, 31, 94, 0.14);
  padding: 6px;
  min-width: 110px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

.lang-dropdown.is-open .lang-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(75, 31, 94, 0.7);
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.lang-dropdown__item:hover {
  background: rgba(75, 31, 94, 0.06);
  color: var(--purple-950);
}

.lang-dropdown__item.active {
  background: rgba(201, 163, 78, 0.15);
  color: var(--purple-950);
}

.lang-dropdown__item .lang-short {
  display: inline-block;
  min-width: 28px;
  padding: 2px 6px;
  background: var(--gold);
  color: var(--purple-950);
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 6px;
  text-align: center;
  letter-spacing: 0.04em;
}

.lang-dropdown__item:not(.active) .lang-short {
  background: rgba(75, 31, 94, 0.08);
  color: rgba(75, 31, 94, 0.6);
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(75, 31, 94, 0.85);
  border-radius: 50%;
  font-size: 1.125rem;
  transition: var(--transition);
}

.icon-btn:hover {
  background: rgba(75, 31, 94, 0.05);
  color: var(--purple-950);
  transform: translateY(-2px);
}

.icon-btn .badge {
  top: 4px;
  right: 4px;
  background: var(--red);
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--purple-950);
  font-size: 1.25rem;
}

/* Search overlay */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
}

.search-panel.is-open {
  visibility: visible;
  pointer-events: auto;
}

.search-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
}

.search-panel.is-open .search-panel__backdrop { opacity: 1; }

.search-panel__box {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: var(--white);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  box-shadow: var(--shadow);
}

.search-panel.is-open .search-panel__box { transform: translateY(0); }

.search-panel__form {
  display: flex;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.search-panel__input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(75, 31, 94, 0.15);
  border-radius: 999px;
  background: #ffffff;
  color: var(--purple-950);
  font-size: 1rem;
  outline: none;
}

.search-panel__input::placeholder { color: rgba(75, 31, 94, 0.4); }

.search-panel__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 163, 78, 0.15);
}

.search-panel__close {
  color: rgba(75, 31, 94, 0.6);
  font-size: 1.25rem;
  padding: 10px;
}

/* ── Hero Carousel ── */
.hero-shell {
  width: 100%;
  height: clamp(480px, 57vw, 610px);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  overflow: hidden;
  border: 1px solid rgba(75, 31, 94, 0.1);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: #fbf8f2;
  box-shadow: 0 18px 50px rgba(75, 31, 94, 0.12);
}

.hero-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 4vw, 62px) clamp(38px, 5vw, 76px);
  overflow: hidden;
  color: var(--purple-950);
  background: linear-gradient(135deg, #fffdf8, #f7f0e5);
}

.hero-intro::before, .hero-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(201, 163, 78, 0.24);
  transform: rotate(45deg);
}
.hero-intro::before { top: -105px; left: -100px; }
.hero-intro::after { right: -120px; bottom: -115px; }

.hero-intro__pattern {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 46px;
  opacity: .42;
  border-right: 1px solid rgba(201, 163, 78, .25);
  background-color: rgba(201, 163, 78, .04);
  background-image:
    linear-gradient(45deg, transparent 42%, rgba(181, 138, 50, .6) 43% 47%, transparent 48%),
    linear-gradient(-45deg, transparent 42%, rgba(181, 138, 50, .6) 43% 47%, transparent 48%),
    linear-gradient(45deg, transparent 66%, rgba(181, 138, 50, .38) 67% 70%, transparent 71%),
    linear-gradient(-45deg, transparent 66%, rgba(181, 138, 50, .38) 67% 70%, transparent 71%);
  background-size: 30px 30px;
  background-position: 0 0, 0 15px, 15px 0, 15px 15px;
}

.hero-intro__eyebrow { margin-bottom: 18px; color: #a47c28; font-size: .69rem; font-weight: 700; letter-spacing: .14em; }
.hero-intro__title { margin-bottom: 18px; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3.45rem); line-height: 1.04; font-weight: 700; }
.hero-intro__title span, .hero-intro__title em { display: block; }
.hero-intro__title span { white-space: nowrap; }
.hero-intro__title em { margin-top: 7px; color: #b58a32; font-weight: 600; }
.hero-intro__text { max-width: 450px; margin-bottom: 26px; color: rgba(75,31,94,.72); font-size: .97rem; line-height: 1.7; }
.hero-intro__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-intro__primary, .hero-intro__secondary { padding: 12px 18px; border: 1px solid var(--purple-950); font-size: .73rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; transition: var(--transition); }
.hero-intro__primary { background: var(--red); border-color: var(--red); color: #fff; }
.hero-intro__secondary { color: var(--purple-950); }
.hero-intro__primary:hover, .hero-intro__secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(75,31,94,.14); }
.hero-intro__features { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(75,31,94,.12); }
.hero-intro__features span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hero-intro__features i { flex: 0 0 auto; color: var(--purple-950); font-size: 1.05rem; }
.hero-intro__features b { font-size: .64rem; line-height: 1.25; }

.hero {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--purple-950);
}

.hero__track { position: relative; height: 100%; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.hero__slide--active { opacity: 1; visibility: visible; }

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease;
}

.hero__slide--active .hero__bg { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    rgba(75, 31, 94, 0.92) 0%,
    rgba(111, 60, 140, 0.78) 50%,
    rgba(198, 40, 57, 0.25) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  max-width: 440px;
  margin-left: clamp(30px, 5vw, 64px);
  padding: 34px 58px 68px 0;
  color: #ffffff;
}

.hero__badge {
  display: inline-block;
  width: fit-content;
  padding: 6px 18px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--purple-950);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  animation: pulse-badge 2s ease-in-out infinite;
}

.hero__badge--red {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #ffffff;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 163, 78, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(201, 163, 78, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero__title span {
  display: block;
  background: linear-gradient(135deg, var(--red), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title em {
  display: block;
  font-style: normal;
  font-size: 0.65em;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  margin-top: 6px;
}

.hero__sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.countdown__box {
  text-align: center;
  min-width: 72px;
  padding: 12px 14px;
  background: rgba(75, 31, 94, 0.2);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
}

.countdown__num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown__lbl {
  font-size: 0.625rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.countdown__sep {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 50%, var(--gold) 100%);
  background-size: 200% auto;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(198, 40, 57, 0.4);
  transition: all 0.35s ease;
}

.btn-cta:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(198, 40, 57, 0.5);
}

#placeOrderBtn:disabled,
#placeOrderBtn:disabled:hover {
  cursor: not-allowed;
  background: #9ca3af;
  color: #ffffff;
  box-shadow: none;
  transform: none;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(75, 31, 94, 0.3);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 1.25rem;
  border: 1px solid rgba(75, 31, 94, 0.2);
  transition: var(--transition);
}

.hero__arrow:hover { background: rgba(201, 163, 78, 0.3); color: var(--gold); }
.hero__arrow--prev { left: 12px; }
.hero__arrow--next { right: 12px; }

.hero__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: var(--transition);
}

.hero__dot--active {
  background: var(--gold);
  width: 28px;
  border-radius: 999px;
}

/* ── Categories ── */
.categories {
  padding: 64px 0;
  background: #ffffff;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--purple-950);
}

.section-head__label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-head__desc {
  max-width: 620px;
  margin: 10px auto 0;
  color: rgba(75, 31, 94, 0.68);
  font-size: 0.95rem;
  line-height: 1.65;
}

.categories__intro {
  margin-bottom: 32px;
}

.categories__intro .section-head__label {
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.08em;
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 255px;
  border: 1px solid rgba(201, 163, 78, .18);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 32px rgba(75, 31, 94, 0.08);
}

.cat-card__img {
  display: block;
  position: relative;
  inset: auto;
  width: calc(100% - 16px);
  aspect-ratio: 4 / 3;
  margin: 8px 8px 0;
  border-radius: 6px 6px 0 0;
  background-size: cover;
  background-position: center;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.cat-card:hover .cat-card__img { transform: scale(1.08); }

.cat-card__overlay {
  display: none;
}

.cat-card__content {
  position: relative;
  inset: auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0 14px 18px;
  text-align: center;
}

.cat-card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: -25px 0 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--purple-950);
  box-shadow: 0 5px 16px rgba(20, 5, 25, .2);
  transition: transform .3s ease, background .3s ease;
}

.cat-card:hover .cat-card__icon { transform: translateY(-3px) rotate(-5deg); background: var(--gold); }

.cat-card__label {
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--purple-950);
  text-transform: uppercase;
  line-height: 1.3;
}

.cat-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  margin-top: 7px;
  padding: 0;
  color: var(--red);
  background: transparent;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .3s ease, background .3s ease;
}

.cat-card:hover .cat-card__action { transform: translateX(2px); background: transparent; }
.cat-card--custom .cat-card__action { color: var(--red); background: transparent; }
.cat-card--custom:hover .cat-card__action { background: transparent; color: var(--red-dark); }

/* ── Custom Banner ── */
.custom-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 680px;
  margin: 36px auto 0;
  padding: 16px 28px;
  background: linear-gradient(135deg, rgba(75, 31, 94, 0.03) 0%, rgba(201, 163, 78, 0.08) 100%);
  border: 1px dashed rgba(201, 163, 78, 0.5);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.custom-banner:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(75, 31, 94, 0.05) 0%, rgba(201, 163, 78, 0.12) 100%);
  box-shadow: 0 8px 24px rgba(75, 31, 94, 0.05);
}

.custom-banner__content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.custom-banner__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--purple-950);
  color: var(--gold);
  font-size: 1.1rem;
}

.custom-banner__text {
  text-align: left;
}

.custom-banner__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--purple-950);
  margin-bottom: 2px;
}

.custom-banner__desc {
  font-size: 0.78rem;
  color: rgba(75, 31, 94, 0.7);
}

.custom-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.custom-banner__btn:hover {
  background: var(--red-dark);
  box-shadow: 0 4px 12px rgba(198, 40, 57, 0.25);
  transform: translateX(2px);
}

@media (max-width: 768px) {
  .custom-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 20px;
  }
  .custom-banner__content {
    flex-direction: column;
    gap: 10px;
  }
  .custom-banner__text {
    text-align: center;
  }
  .custom-banner__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Video / Our Story ── */
.story {
  padding: 72px 0;
  background: var(--gray-50);
}

.story__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: center;
}

.story__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--purple-950);
  margin-bottom: 16px;
}

.story__text {
  color: rgba(75, 31, 94, 0.8);
  line-height: 1.8;
  font-size: 1rem;
}

.story__player {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 2px solid var(--gold);
}

.story__player video,
.story__player iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* ── Core Values ── */
.values {
  padding: 72px 0;
  background: var(--white);
  border-top: 1px solid rgba(75, 31, 94, 0.08);
  border-bottom: 1px solid rgba(75, 31, 94, 0.08);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 36px 24px;
  background: #ffffff;
  border: 1px solid rgba(75, 31, 94, 0.08);
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  box-shadow: var(--shadow);
}

.value-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 163, 78, 0.35);
  box-shadow: 0 16px 32px rgba(75, 31, 94, 0.08);
}

.value-card__icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 16px rgba(75, 31, 94, 0.05);
}

.value-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.value-card:hover .value-card__icon img { transform: scale(1.1); }

.value-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple-950);
  margin-bottom: 10px;
}

.value-card__text {
  font-size: 0.9375rem;
  color: rgba(75, 31, 94, 0.7);
  line-height: 1.6;
}

/* ── Flash Sale ── */
.flash {
  padding: 72px 0 96px;
  background: #f3eff6;
}

.flash__head { text-align: center; margin-bottom: 44px; }

.flash__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--red), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.flash__sub {
  color: rgba(75, 31, 94, 0.6);
  font-size: 0.9375rem;
}

.flash__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.flash-card {
  background: #ffffff;
  border: 1px solid rgba(75, 31, 94, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: var(--shadow);
}

.flash-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 163, 78, 0.4);
  box-shadow: 0 12px 30px rgba(75, 31, 94, 0.06);
}

.flash-card__img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(75, 31, 94, 0.03);
}

.flash-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s ease;
}

.flash-card:hover .flash-card__img-wrap img { transform: none; }

.flash-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 999px;
}

.flash-card__body { padding: 16px; }

.flash-card__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--purple-950);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.flash-card__prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.flash-card__price {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--red);
}

.flash-card__price--old {
  font-size: 0.875rem;
  color: rgba(75, 31, 94, 0.4);
  text-decoration: line-through;
}

.flash-card__stock {
  margin-bottom: 14px;
}

.flash-card__stock-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: rgba(75, 31, 94, 0.6);
  margin-bottom: 6px;
}

.flash-card__bar {
  height: 6px;
  background: rgba(75, 31, 94, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.flash-card__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 999px;
  transition: width 1s ease;
}

.flash-card__btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.flash-card__btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(198, 40, 57, 0.35);
}

/* ── Footer (doubleboss-style) ── */
.home-footer {
  padding: 64px 0 0;
  background: var(--white);
  border-top: 1px solid rgba(75, 31, 94, 0.08);
  position: relative;
}

.home-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 40, 57, 0.2), var(--gold), rgba(198, 40, 57, 0.2), transparent);
}

.home-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.home-footer__brand { max-width: 320px; }

.home-footer__logo {
  display: inline-block;
  margin-bottom: 16px;
}

.home-footer__logo img {
  height: 56px;
  width: auto;
  transition: transform 0.3s ease;
}

.home-footer__logo:hover img { transform: scale(1.04); }

.home-footer__tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(75, 31, 94, 0.65);
  margin-bottom: 20px;
}

.home-footer__social {
  display: flex;
  gap: 10px;
}

.home-footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(75, 31, 94, 0.04);
  border: 1px solid rgba(75, 31, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(75, 31, 94, 0.6);
  font-size: 0.9375rem;
  transition: all 0.25s ease;
}

.home-footer__social-link:hover {
  background: rgba(201, 163, 78, 0.15);
  border-color: rgba(201, 163, 78, 0.4);
  color: var(--gold);
  transform: translateY(-2px);
}

.home-footer__heading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--purple-950);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.home-footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-footer__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: rgba(75, 31, 94, 0.7);
  line-height: 1.5;
}

.home-footer__list i {
  color: var(--gold);
  font-size: 0.875rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.home-footer__list a {
  color: rgba(75, 31, 94, 0.7);
  transition: color 0.2s;
}

.home-footer__list a:hover { color: var(--purple-800); }

.home-footer__links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-footer__links-list a {
  font-size: 0.875rem;
  color: rgba(75, 31, 94, 0.7);
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.home-footer__links-list a:hover {
  color: var(--purple-800);
  padding-left: 4px;
}

.home-footer__newsletter-desc {
  font-size: 0.8125rem;
  color: rgba(75, 31, 94, 0.6);
  line-height: 1.6;
  margin-bottom: 16px;
}

.home-footer__newsletter {
  display: flex;
  gap: 8px;
}

.home-footer__newsletter input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(75, 31, 94, 0.15);
  border-radius: 10px;
  color: var(--purple-950);
  font-size: 0.8125rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.home-footer__newsletter input::placeholder {
  color: rgba(75, 31, 94, 0.4);
}

.home-footer__newsletter input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 163, 78, 0.12);
}

.home-footer__newsletter button {
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 10px;
  white-space: nowrap;
  transition: transform 0.25s, box-shadow 0.25s;
}

.home-footer__newsletter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 40, 57, 0.35);
}

.home-footer__bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(75, 31, 94, 0.08);
  text-align: center;
}

.home-footer__copy {
  font-size: 0.8125rem;
  color: rgba(75, 31, 94, 0.5);
}

/* ── Mobile nav drawer ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1500;
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-nav.is-open .mobile-nav__backdrop { opacity: 1; }

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--white);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: -8px 0 32px rgba(75, 31, 94, 0.10);
}

.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }

.mobile-nav__close {
  color: rgba(75, 31, 94, 0.6);
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.mobile-nav__link {
  display: block;
  padding: 14px 0;
  font-weight: 600;
  color: var(--purple-950);
  border-bottom: 1px solid rgba(75, 31, 94, 0.08);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-shell { height: 540px; grid-template-columns: 42% 58%; }
  .hero-intro { padding: 34px; }
  .hero-intro__pattern { width: 30px; background-size: 24px 24px; background-position: 0 0, 0 12px, 12px 0, 12px 12px; }
  .hero-intro__title span { white-space: normal; }
  .hero-intro__features { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .hero__content { margin-left: 46px; padding-right: 48px; }
  .categories__grid { grid-template-columns: repeat(3, 1fr); }
  .flash__grid { grid-template-columns: repeat(2, 1fr); }
  .story__inner { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .home-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .home-footer__brand { grid-column: span 2; max-width: none; }
}

/* ── Tablet / Mobile breakpoint ── */
@media (max-width: 768px) {
  /* Header */
  .home-header__inner {
    min-height: 60px;
    gap: 10px;
    padding: 0 16px;
  }
  .home-header__logo img {
    height: 44px;
    max-width: 80px;
  }
  .home-nav { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-nav { display: block; }

  /* Ẩn lang-switch dạng pill, hiện dropdown */
  .lang-switch { display: none; }
  .lang-dropdown { display: block; }

  .home-header__actions { gap: 4px; }
  .icon-btn { width: 36px; height: 36px; font-size: 1rem; }

  /* Hero */
  .hero-shell { width: min(100% - 24px, 620px); height: auto; margin-top: 16px; grid-template-columns: 1fr; }
  .hero-intro { min-height: 390px; padding: 36px 30px; }
  .hero-intro__pattern { width: 24px; opacity: .32; }
  .hero-intro__features { grid-template-columns: repeat(3, 1fr); }
  .hero { height: 510px; }
  .hero__track { height: 100%; }
  .hero__content { margin-left: 52px; padding: 28px 52px 60px 0; max-width: 430px; }
  .hero__arrow { width: 36px; height: 36px; font-size: 1rem; }
  .hero__arrow--prev { left: 10px; }
  .hero__arrow--next { right: 10px; }

  /* Countdown */
  .countdown { gap: 7px; }
  .countdown__box { min-width: 54px; padding: 9px 8px; }
  .countdown__num { font-size: 1.25rem; }

  /* Sections */
  .categories { padding: 40px 0; }
  .categories__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cat-card { min-height: 230px; }
  .cat-card__content { padding: 0 8px 14px; }
  .cat-card__icon { width: 42px; height: 42px; margin-top: -21px; margin-bottom: 8px; font-size: .85rem; }
  .cat-card__label { font-size: .72rem; }
  .cat-card__action { margin-top: 6px; font-size: .6rem; }
  .story { padding: 48px 0; }
  .values { padding: 48px 0; }
  .flash { padding: 48px 0 64px; }

  /* Story */
  .story__inner { gap: 28px; }

  /* Values */
  .values__grid { grid-template-columns: 1fr; max-width: 340px; gap: 16px; }
  .value-card { padding: 24px 16px; }
  .value-card__icon { width: 90px; height: 90px; }

  /* Footer */
  .home-footer { padding-top: 40px; }
  .home-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .home-footer__brand { grid-column: span 1; }
}

/* ── Small mobile ── */
@media (max-width: 480px) {
  .home-header__inner { min-height: 54px; }
  .home-header__logo img { height: 38px; max-width: 68px; }

  .categories__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-card { min-height: 190px; }
  .cat-card__img { width: calc(100% - 10px); margin: 5px 5px 0; }
  .cat-card__content { padding: 0 5px 10px; }
  .cat-card__icon { width: 34px; height: 34px; margin-top: -17px; margin-bottom: 6px; border-width: 2px; }
  .cat-card__label { min-height: 2.5em; font-size: .6rem; }
  .cat-card__action { width: 100%; gap: 4px; font-size: .5rem; }
  .flash__grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero-intro { min-height: 360px; padding: 30px 22px; }
  .hero-intro__title { font-size: clamp(1.8rem, 9vw, 2.45rem); }
  .hero-intro__text { font-size: .88rem; line-height: 1.55; margin-bottom: 20px; }
  .hero-intro__actions { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-intro__features { display: none; }
  .hero { height: 440px; }
  .hero__track { height: 100%; }
  .hero__content { margin-left: 36px; padding-right: 36px; }
  .hero__title { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .hero__sub { font-size: 0.875rem; margin-bottom: 16px; }
  .hero__badge { font-size: 0.65rem; padding: 5px 13px; margin-bottom: 14px; }
  .btn-cta { padding: 12px 24px; font-size: 0.8125rem; gap: 7px; }

  /* Countdown compact */
  .countdown { gap: 5px; margin-bottom: 18px; }
  .countdown__box { min-width: 46px; padding: 7px 6px; }
  .countdown__num { font-size: 1.05rem; }
  .countdown__lbl { font-size: 0.55rem; }
  .countdown__sep { font-size: 1.1rem; }

  /* Section heads */
  .section-head { margin-bottom: 24px; }
  .flash__head { margin-bottom: 28px; }

  /* Flash cards */
  .flash-card__body { padding: 12px; }
  .flash-card__price { font-size: 1.1rem; }

  /* Footer */
  .home-footer { padding-top: 36px; }
  .home-footer__newsletter { flex-direction: column; }
  .home-footer__newsletter button { width: 100%; }
}

/* ── Compact homepage lead: featured collections + ad slider ── */
.hero-intro[hidden] { display: none; }

.categories--featured {
  padding: 30px 0 24px;
  background: #fff;
}

.categories__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 16px;
}

.categories__head .section-head__label { grid-column: 1; margin-bottom: 3px; }

.categories__title {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  color: var(--purple-950);
}

.categories__all {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  padding-bottom: 3px;
  color: var(--red);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.categories--featured .categories__grid { gap: 12px; }

.categories--featured .cat-card {
  min-height: 150px;
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(75, 31, 94, .08);
}

.categories--featured .cat-card:hover { transform: translateY(-4px); }

.categories--featured .cat-card__img {
  width: calc(100% - 12px);
  margin: 6px 6px 0;
  aspect-ratio: 16 / 8;
}

.categories--featured .cat-card__content { padding: 0 8px 10px; }

.categories--featured .cat-card__icon {
  width: 34px;
  height: 34px;
  margin: -17px 0 6px;
  border-width: 2px;
  font-size: .75rem;
}

.categories--featured .cat-card__label {
  min-height: 2.3em;
  font-size: .68rem;
}

.categories--featured .cat-card__action { margin-top: 3px; font-size: .56rem; }

.hero-shell {
  display: block;
  width: min(100% - 40px, 1160px);
  height: clamp(300px, 27vw, 360px);
  margin: 56px auto 64px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(75, 31, 94, .16);
}

.hero {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.hero__content {
  max-width: 520px;
  margin-left: clamp(52px, 8vw, 108px);
  padding: 22px 56px 38px 0;
}

.hero__badge { margin-bottom: 8px; padding: 5px 14px; font-size: .66rem; }
.hero__title { margin-bottom: 7px; font-size: clamp(1.75rem, 3.2vw, 2.65rem); }
.hero__sub { margin-bottom: 12px; font-size: .9rem; }
.countdown { margin-bottom: 12px; gap: 6px; }
.countdown__box { min-width: 50px; padding: 6px 8px; border-width: 1px; }
.countdown__num { font-size: 1.1rem; }
.countdown__sep { font-size: 1rem; }
.hero .btn-cta { padding: 10px 24px; font-size: .75rem; }
.hero__dots { bottom: 14px; }

@media (max-width: 768px) {
  .categories--featured { padding: 20px 0 18px; }
  .categories__head { margin-bottom: 12px; }
  .categories__all { font-size: .65rem; }
  .categories--featured .categories__grid {
    display: flex;
    gap: 10px;
    margin-right: calc((100vw - 100%) / -2);
    padding-right: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .categories--featured .categories__grid::-webkit-scrollbar { display: none; }
  .categories--featured .cat-card { flex: 0 0 clamp(110px, 35vw, 138px); min-height: clamp(115px, 36vw, 142px); scroll-snap-align: start; }
  .hero-shell { width: calc(100% - 24px); height: clamp(230px, 70vw, 290px); margin-top: 38px; margin-bottom: 46px; }
  .hero { height: 100%; }
  .hero__content { margin-left: 44px; padding: 18px 46px 34px 0; }
}

@media (max-width: 480px) {
  .categories__title { font-size: 1.25rem; }
  .categories--featured .cat-card { flex-basis: 124px; min-height: 132px; }
  .categories--featured .cat-card__label { font-size: .6rem; }
  .hero-shell { height: 260px; border-radius: 10px; }
  .hero__content { margin-left: 34px; padding-right: 34px; }
  .hero__title { font-size: 1.55rem; }
  .hero__sub { display: none; }
  .hero__arrow { width: 30px; height: 30px; font-size: .8rem; }
  .hero__arrow--prev { left: 5px; }
  .hero__arrow--next { right: 5px; }
}

/* ── Homepage order: shock-price products first ── */
main {
  display: flex;
  flex-direction: column;
}

.flash--homepage-lead { order: 1; }
.categories { order: 2; }
.story { order: 3; }
.values { order: 4; }
.hero-shell { order: 5; }

.flash--homepage-lead {
  padding: 26px 0 24px;
  background: linear-gradient(180deg, #fff8f3, #f3eff6);
  border-bottom: 1px solid rgba(75, 31, 94, .08);
}

.flash--homepage-lead .flash__head {
  margin-bottom: 16px;
  text-align: left;
}

.flash--homepage-lead .flash__title {
  margin-bottom: 2px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.flash--homepage-lead .flash__sub { font-size: .8rem; }

.flash--homepage-lead .flash__slider {
  position: relative;
}

.flash--homepage-lead .flash__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-950), #7a3f8e);
  color: #ffffff;
  font-size: 1.1rem;
  box-shadow: 0 14px 30px rgba(75, 31, 94, .28);
  transform: translateY(-50%);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.flash--homepage-lead .flash__nav--prev { left: -10px; }
.flash--homepage-lead .flash__nav--next { right: -10px; }

.flash--homepage-lead .flash__nav:hover {
  transform: translateY(-50%) scale(1.06);
  border-color: rgba(201, 163, 78, .65);
  background: linear-gradient(135deg, #7a3f8e, var(--purple-950));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(75, 31, 94, .34);
}

.flash--homepage-lead .flash__nav:focus-visible {
  outline: 3px solid rgba(201, 163, 78, .35);
  outline-offset: 3px;
}

.flash--homepage-lead .flash__nav:disabled {
  transform: translateY(-50%) scale(.96);
  cursor: not-allowed;
  opacity: .42;
  background: rgba(75, 31, 94, .48);
  color: rgba(255, 255, 255, .86);
  border-color: rgba(255, 255, 255, .22);
  box-shadow: none;
}

.flash--homepage-lead .flash__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  grid-template-columns: none;
  gap: 12px;
  padding: 2px 2px 10px;
  overflow-x: hidden;
  scroll-snap-type: none;
  scrollbar-width: none;
  cursor: default;
}

.flash--homepage-lead .flash__grid::-webkit-scrollbar {
  display: none;
}

.flash--homepage-lead .flash-card {
  min-width: 240px;
  border-radius: 10px;
  box-shadow: 0 5px 16px rgba(75, 31, 94, .07);
}

.flash--homepage-lead .flash-card__img-wrap {
  width: 100%;
  height: 420px;
  aspect-ratio: auto;
}
.flash--homepage-lead .flash-card__tag { top: 7px; left: 7px; padding: 3px 8px; font-size: .56rem; }
.flash--homepage-lead .flash-card__body { display: none; }

@media (max-width: 768px) {
  .flash--homepage-lead { padding: 20px 0 18px; }
  .flash--homepage-lead .flash__head { margin-bottom: 12px; }
  .flash--homepage-lead .flash__nav {
    width: 40px;
    height: 40px;
    font-size: .9rem;
  }
  .flash--homepage-lead .flash__nav--prev { left: 0; }
  .flash--homepage-lead .flash__nav--next { right: 0; }
  .flash--homepage-lead .flash__slider {
    padding: 0 4px;
  }
  .flash--homepage-lead .flash__grid {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-right: 0;
    padding-right: 8px;
  }
  .flash--homepage-lead .flash-card {
    flex: 0 0 clamp(148px, 42vw, 176px);
    width: clamp(148px, 42vw, 176px);
    min-width: clamp(148px, 42vw, 176px);
    max-width: clamp(148px, 42vw, 176px);
  }
  .flash--homepage-lead .flash-card__img-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }
}
