/* ==========================================================================
   Lumoto - Trang chu (redesign)
   Bootstrap 4.6 + CSS thuan. Chi ap dung trong body.home de khong anh huong
   cac trang khac. Dinh huong theo ui-ux-pro-max: Hero-centric + value strip,
   premium dark + mau nhan cam thuong hieu, motion vua phai (IntersectionObserver),
   ton trong prefers-reduced-motion.
   ========================================================================== */

.home {
  /* Be mat & chu */
  --surface: #f6f7f3;
  --surface-2: #eef0e9;
  --card: #ffffff;
  --ink-2: #2a302b;
  --dark: #121613;
  --dark-2: #1c211d;
  --on-dark-muted: #c3c8bf; /* 10.3:1 tren --dark */
  /* Hinh khoi */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  /* Do noi (mot thang duy nhat) */
  --shadow-1: 0 1px 2px rgba(18, 22, 19, 0.06), 0 1px 3px rgba(18, 22, 19, 0.06);
  --shadow-2: 0 4px 12px rgba(18, 22, 19, 0.08), 0 2px 4px rgba(18, 22, 19, 0.05);
  --shadow-3: 0 18px 40px rgba(18, 22, 19, 0.14), 0 6px 12px rgba(18, 22, 19, 0.06);
  /* Chuyen dong */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 160ms;
  --dur-2: 280ms;
  --dur-3: 560ms;
  background: var(--card);
}

/* ---------- Kieu chu chung ---------- */
.home h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  text-wrap: balance;
}
.home .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--orange-strong);
}
.home .eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.home .eyebrow--light {
  color: #fff;
}
.home .section-heading {
  margin-bottom: 36px;
}
.home .section-heading p {
  font-size: 17px;
}
.home .section-heading__more {
  text-align: right;
}

/* ---------- Nut ---------- */
.home .btn {
  border-radius: var(--radius-pill);
  transition: background-color var(--dur-1), color var(--dur-1),
    border-color var(--dur-1), transform var(--dur-1) var(--ease-out),
    box-shadow var(--dur-2);
}
.home .btn:active {
  transform: scale(0.97);
}
.home .btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  min-height: 52px;
}
.home .btn-primary {
  box-shadow: 0 6px 18px rgba(209, 65, 0, 0.32);
}
.home .btn-primary:hover {
  box-shadow: 0 10px 24px rgba(209, 65, 0, 0.4);
}
.home .btn-ghost-light {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: transparent;
}
.home .btn-ghost-light:hover,
.home .btn-ghost-light:focus {
  color: var(--dark);
  background: #fff;
  border-color: #fff;
}
.home .btn-dark:hover {
  background: #000;
  color: #fff;
}
.home .text-link {
  border-bottom-width: 2px;
  border-bottom-color: currentColor;
  transition: color var(--dur-1), gap var(--dur-2) var(--ease-out);
}
.home .text-link:hover {
  gap: 12px;
}

/* ---------- Header: noi khi cuon ---------- */
.home .site-header {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  transition: box-shadow var(--dur-2), border-color var(--dur-2);
}
.home .site-header.is-scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 6px 24px rgba(18, 22, 19, 0.08);
}
.home .site-header__trial {
  border-radius: var(--radius-pill);
}
.home .site-header__cart-count {
  background: var(--orange-strong);
  color: #fff;
}

/* ---------- Banner slider ---------- */
.home .banner-slider {
  position: relative;
  background: var(--dark);
}
.home .banner-slider__link img {
  background: var(--dark);
}
.home .banner-slider__slide:not([hidden]) {
  animation: home-fade var(--dur-3) var(--ease-out);
}
@keyframes home-fade {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}
.home .banner-slider__bottom {
  position: absolute;
  right: 24px;
  bottom: 20px;
  border: 0;
  z-index: 2;
}
.home .banner-slider__controls {
  padding: 4px 6px;
  gap: 2px;
  border-radius: var(--radius-pill);
  background: rgba(18, 22, 19, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
}
.home .banner-slider__controls button {
  border-radius: var(--radius-pill);
  color: #fff;
  transition: background-color var(--dur-1);
}
.home .banner-slider__controls button:hover {
  background: rgba(255, 255, 255, 0.14);
}
.home .banner-slider__dot {
  color: #c9cdc5;
  border-bottom: 0;
  font-weight: 600;
  font-size: 14px;
  position: relative;
}
.home .banner-slider__dot.selected {
  color: #fff;
}
.home .banner-slider__dot.selected::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

/* ---------- Hero intro (value strip) ---------- */
.home .hero-intro {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  color: #fff;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 79, 0, 0.22), transparent 60%),
    radial-gradient(40% 80% at 0% 100%, rgba(255, 79, 0, 0.1), transparent 70%),
    var(--dark);
}
.home .hero-intro h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 20px;
  text-wrap: balance;
}
.home .hero-intro h1 em {
  font-style: normal;
  color: var(--orange);
}
.home .hero-intro__lead {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-dark-muted);
  margin-bottom: 28px;
}
.home .hero-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.home .hero-intro__usps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.home .hero-intro__usps li {
  flex: 0 0 calc(50% - 7px);
  min-width: 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color var(--dur-2), border-color var(--dur-2),
    transform var(--dur-2) var(--ease-out);
}
.home .hero-intro__usps li:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 79, 0, 0.5);
  transform: translateY(-2px);
}
.home .hero-intro__icon {
  flex: 0 0 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 79, 0, 0.16);
  color: #ff8a52; /* 7.4:1 tren --dark */
}
.home .hero-intro__icon .icon {
  font-size: 20px;
}
.home .hero-intro__usps strong {
  display: block;
  font: 600 26px/1.1 var(--font-heading);
  margin-bottom: 4px;
}
.home .hero-intro__usps span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--on-dark-muted);
}
.home .hero-intro__note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--on-dark-muted);
}

/* ---------- Catalogue ---------- */
.home .catalogue {
  padding: 88px 0 72px;
  background: var(--surface);
}
.home .catalogue__filters {
  padding-left: 15px;
  padding-right: 15px;
  gap: 8px;
  border: 0;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.home .catalogue__filters button {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--ink);
  font-weight: 500;
  transition: background-color var(--dur-1), color var(--dur-1),
    border-color var(--dur-1);
}
.home .catalogue__filters button:hover {
  border-color: var(--ink);
}
.home .catalogue__filters.nav-pills .nav-link.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  border-radius: var(--radius-pill);
}
.home .catalogue__filters sup {
  top: -0.6em;
  margin-left: 2px;
  font-weight: 700;
  color: inherit;
  opacity: 0.8;
}
.home .catalogue__filters > span {
  font-weight: 600;
  color: var(--ink-2);
}
.home .catalogue__tools {
  margin-bottom: 28px;
}
.home .catalogue__tools select {
  border-radius: var(--radius-sm);
  border-color: var(--line);
  height: 48px;
  min-height: 48px;
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.home .catalogue__tools select:hover {
  border-color: var(--gray);
}
.home .catalogue__tools select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(57, 113, 188, 0.25);
}

/* The san pham */
.home .product-card {
  padding-top: 0;
  margin-bottom: 30px;
  display: flex;
}
.home .product-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px;
  background: var(--card);
  border: 1px solid #e3e6dd;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2);
}
.home .product-card__inner:hover,
.home .product-card__inner:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
  border-color: transparent;
}
.home .product-card__photo {
  height: 210px;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 70%, #ffffff 0%, transparent 70%),
    linear-gradient(180deg, #eef0e9, #e4e7de);
}
.home .product-card__photo img {
  transition: transform var(--dur-3) var(--ease-out);
}
.home .product-card__inner:hover .product-card__photo img {
  transform: scale(1.06);
}
.home .product-card__photo > .product-card__battery {
  border-radius: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-1);
}
.home .product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--orange-strong);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
}
.home .product-card__title {
  margin: 16px 4px 4px;
}
.home .product-card__title h3 {
  font-size: 28px;
}
.home .product-card__compare {
  padding: 6px 10px;
  min-height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  transition: border-color var(--dur-1), color var(--dur-1), background var(--dur-1);
}
.home .product-card__compare:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.home .product-card__compare:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.home .price-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 4px 6px;
}
.home .product-price {
  font: 700 26px/1.2 var(--font-heading);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.home .price-block__old {
  font-size: 14px;
  color: var(--gray);
}
.home .product-card__colors {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.home .product-card__color {
  width: 36px;
  min-height: 44px;
}
.home .product-card__swatch {
  width: 20px;
  height: 20px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent;
  transition: box-shadow var(--dur-1);
}
.home .product-card__color[aria-pressed="true"] .product-card__swatch {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink);
}
.home .product-card__color:hover .product-card__swatch {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gray);
}
.home .product-card__color:disabled {
  opacity: 1;
  cursor: default;
}
.home .product-card__more-colors {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}
.home .product-card__metrics {
  margin-top: auto;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 6px 12px;
}
.home .product-card__metric .icon {
  color: var(--orange-strong);
}
.home .product-card__actions {
  border: 0;
  padding: 10px 0 0;
  gap: 8px;
}
.home .product-card__actions :is(a, button) {
  flex: 1;
  justify-content: center;
  border-radius: var(--radius-pill);
  min-height: 44px;
  transition: background-color var(--dur-1), color var(--dur-1),
    border-color var(--dur-1), transform var(--dur-1);
}
.home .product-card__actions :is(a, button):active {
  transform: scale(0.97);
}
.home .product-card__detail {
  border: 1.5px solid var(--line);
}
.home .product-card__detail:hover {
  border-color: var(--ink);
  background: transparent !important;
  color: var(--ink) !important;
}
.home .product-card__add {
  background: var(--ink);
  color: #fff;
}
.home .product-card__actions .product-card__add:hover {
  background: var(--orange-strong);
  color: #fff;
}
.home .catalogue__note {
  border: 0;
  padding: 0;
  text-align: center;
}

/* ---------- Chon xe theo nhu cau ---------- */
.home .needs {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background:
    radial-gradient(50% 80% at 100% 100%, rgba(0, 0, 0, 0.18), transparent 70%),
    var(--orange-strong);
}
.home .needs h2 {
  font-size: clamp(38px, 4.4vw, 56px);
}
.home .needs > .container > .row > .col-lg-5 > p {
  font-size: 18px;
}
.home .needs__tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
}
.home .needs__tabs button {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  font-size: 28px;
  transition: background-color var(--dur-2), color var(--dur-2),
    border-color var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.home .needs__tabs button:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}
.home .needs__tabs.nav-pills .nav-link[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  padding-left: 20px;
  border-radius: var(--radius-md);
}
.home .needs__tabs.nav-pills .nav-link[aria-selected="true"] span {
  color: var(--orange-strong);
}
.home .needs__tabs span {
  font-weight: 700;
  min-width: 22px;
}
.home .needs__tabs .icon {
  transition: transform var(--dur-2) var(--ease-out);
}
.home .needs__tabs [aria-selected="true"] .icon {
  transform: translateX(4px);
}
.home .needs__panel {
  padding-left: 48px;
}
.home .needs__image {
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}
.home .needs__image img {
  animation: home-fade var(--dur-3) var(--ease-out);
}
.home .needs__copy {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.14);
}
.home .needs__copy p {
  margin-bottom: 0;
}
.home .needs__copy a {
  margin-top: 8px;
  min-height: 44px;
}

/* ---------- Trai nghiem: cop & pin ---------- */
.home .experience {
  padding: 96px 0;
}
.home .vehicle-feature figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
}
.home .vehicle-feature__number {
  display: inline-block;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--orange-strong);
}
.home .battery-config {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid #e3e6dd;
}
.home .battery-config dl > div {
  margin-bottom: 14px !important;
}
.home .battery-config dl > div > * {
  display: block;
}
.home .battery-config dt {
  padding: 18px 18px 2px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--card);
  color: var(--orange-strong);
  font-variant-numeric: tabular-nums;
}
.home .battery-config dd {
  padding: 0 18px 18px;
  min-height: 64px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--card);
  color: var(--ink-2);
}

/* ---------- Showroom (premium dark) ---------- */
.home .showroom {
  padding: 96px 0 72px;
  background: var(--dark);
}
.home .showroom figure img {
  border-radius: var(--radius-lg);
}
.home .showroom h2 {
  font-size: clamp(44px, 5vw, 64px);
}
.home .showroom p {
  font-size: 17px;
  color: var(--on-dark-muted);
}
.home .showroom .btn-primary {
  margin-top: 8px;
}
.home .showroom__services {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 56px 0 0;
  border: 0;
}
.home .showroom__services > div {
  flex: 0 0 calc(25% - 10.5px);
  max-width: none;
  padding: 28px 24px 26px;
  margin: 0;
  border-radius: var(--radius-md);
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.home .showroom__services > div:hover {
  border-color: rgba(255, 79, 0, 0.55);
  transform: translateY(-3px);
}
@media (max-width: 991.98px) {
  .home .showroom__services > div {
    flex-basis: calc(50% - 7px);
  }
}
@media (max-width: 575.98px) {
  .home .showroom__services {
    margin-top: 32px;
  }
  .home .showroom__services > div {
    flex-basis: 100%;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}
.home .showroom__services span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 79, 0, 0.14);
  color: #ff8a52;
  font-size: 22px;
}
.home .showroom__services h3 {
  margin: 18px 0 8px;
  font-size: 26px;
}

/* ---------- Gallery (bento) ---------- */
.home .gallery {
  padding: 96px 0 80px;
  background: var(--surface);
}
.home .gallery__tile > button {
  border-radius: var(--radius-md);
}
.home .gallery__tile img {
  transition: transform var(--dur-3) var(--ease-out);
}
.home .gallery__tile button:hover img,
.home .gallery__tile button:focus-visible img {
  transform: scale(1.06);
}
.home .gallery__overlay {
  inset: auto 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(18, 22, 19, 0.85));
  font-weight: 600;
  font-size: 15px;
}
@media (min-width: 992px) {
  /* Bento bang float (validate cam CSS Grid): o 1 chiem 2x2, o 8 chiem 2 cot.
     Moi o co padding 8px => khe 16px; o doi cao 2 hang + 1 khe. */
  .home .gallery__grid {
    --tile-h: clamp(170px, 15vw, 220px);
    display: block;
    margin: 0 -8px;
  }
  .home .gallery__grid::after {
    content: "";
    display: table;
    clear: both;
  }
  .home .gallery__tile {
    float: left;
    width: 25%;
    max-width: none;
    height: calc(var(--tile-h) + 16px);
    padding: 8px;
    margin: 0;
  }
  .home .gallery__tile > button {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
  .home .gallery__tile:nth-child(1) {
    width: 50%;
    height: calc(var(--tile-h) * 2 + 32px);
  }
  .home .gallery__tile:nth-child(8) {
    width: 50%;
  }
  .home .gallery__tile:nth-child(1) .gallery__overlay {
    font-size: 20px;
    padding: 60px 22px 20px;
  }
}

/* ---------- Tin tuc ---------- */
.home .news {
  padding: 96px 0 64px;
}
.home .news article {
  display: flex;
}
.home .news__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid #e3e6dd;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2),
    border-color var(--dur-2);
}
.home .news__link:hover,
.home .news__link:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
  border-color: transparent;
  color: inherit;
}
.home .news article img {
  aspect-ratio: 16 / 10;
  transition: transform var(--dur-3) var(--ease-out);
}
.home .news__link:hover img {
  transform: scale(1.04);
}
.home .news small,
.home .news h3,
.home .news__read-link {
  padding-left: 22px;
  padding-right: 22px;
}
.home .news small {
  margin: 20px 0 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.home .news h3 {
  font-size: 26px;
  min-height: 0;
  flex: 1;
}
.home .news__read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 22px;
  color: var(--orange-strong);
}
.home .news__link:hover .news__read-link .icon {
  transform: translateX(4px);
}
.home .news__read-link .icon {
  transition: transform var(--dur-2) var(--ease-out);
}

/* ---------- Lien he ---------- */
.home .contact {
  padding: 96px 0;
  background:
    radial-gradient(50% 90% at 0% 0%, rgba(255, 255, 255, 0.12), transparent 70%),
    var(--orange-strong);
}
.home .contact h2 {
  font-size: clamp(38px, 4.4vw, 52px);
}
.home .contact__intro > p {
  font-size: 18px;
  max-width: 340px;
}
.home .contact__actions .btn {
  padding: 14px 26px;
}
.home .branch-card {
  position: relative;
  padding: 12px 27px 14px;
  margin-bottom: 20px;
  color: var(--ink);
}
.home .branch-card > * {
  position: relative;
}
.home .branch-card::before {
  content: "";
  position: absolute;
  inset: 0 15px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}
.home .branch-card__image {
  border-radius: calc(var(--radius-lg) - 8px);
  margin-bottom: 18px;
}
.home .branch-card p {
  color: var(--gray);
  font-size: 15px;
}
.home .branch-card a {
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.home .contact .branch-card a:hover {
  color: var(--orange-strong);
  text-decoration: none;
}
.home .branch-card__directions .icon,
.home .branch-card__phone .icon {
  color: var(--orange-strong);
}

/* ---------- Footer ---------- */
.home .site-footer {
  background: var(--surface);
}
.home #footer-map {
  border-radius: var(--radius-md);
}

/* ---------- Thanh hanh dong tren dien thoai ---------- */
.home .mobile-cta {
  display: none;
}
@media (max-width: 767.98px) {
  .home .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 33;
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(18, 22, 19, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2);
  }
  .home .mobile-cta.is-hidden {
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
  }
  .home .mobile-cta a {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    touch-action: manipulation;
  }
  .home .mobile-cta__call {
    background: rgba(255, 255, 255, 0.1);
  }
  .home .mobile-cta__trial {
    flex-grow: 1.3;
    background: var(--orange-strong);
  }
  .home .mobile-cta a:hover {
    color: #fff;
  }
  .home .site-footer {
    padding-bottom: 96px;
  }
  /* Khay so sanh / toast nam tren thanh hanh dong */
  .home .compare-tray {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  .home .cart-toast {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- Hieu ung xuat hien khi cuon ---------- */
.home.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-3) var(--ease-out),
    transform var(--dur-3) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.home.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .home .hero-intro {
    padding: 48px 0;
  }
  .home .hero-intro__copy {
    margin-bottom: 32px;
  }
  .home .needs__tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .home .needs__tabs button {
    width: auto;
    flex: 1 1 auto;
    font-size: 22px;
    padding: 12px 16px;
  }
  .home .needs__tabs button:hover {
    transform: none;
  }
  .home .needs__panel {
    padding: 32px 15px 0;
  }
  .home .battery-config {
    margin-top: 12px;
  }
  .home .showroom__copy {
    padding: 32px 15px 0;
  }
}
@media (max-width: 767.98px) {
  .home .section-heading__more {
    text-align: left;
    margin-top: 12px;
  }
}
@media (max-width: 575.98px) {
  .home .banner-slider__bottom {
    right: 12px;
    bottom: 12px;
  }
  .home .banner-slider__controls button {
    min-width: 40px;
    padding: 4px;
  }
  .home .hero-intro__usps {
    gap: 10px;
  }
  .home .hero-intro__usps li {
    flex-basis: 100%;
    padding: 16px;
  }
  .home .hero-intro__actions .btn {
    flex: 1 1 100%;
  }
  .home .catalogue,
  .home .experience,
  .home .news,
  .home .gallery,
  .home .needs,
  .home .showroom,
  .home .contact {
    padding-top: 56px;
    padding-bottom: 48px;
  }
  .home .catalogue__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px 4px;
    scrollbar-width: none;
  }
  .home .catalogue__filters::-webkit-scrollbar {
    display: none;
  }
  .home .catalogue__filters button {
    flex: 0 0 auto;
  }
  .home .product-card__photo {
    height: 230px;
  }
  .home .needs__tabs button {
    font-size: 20px;
  }
  .home .battery-config {
    padding: 20px;
  }
  .home .battery-config dt {
    font-size: 30px;
    padding: 14px 14px 2px;
  }
  .home .battery-config dd {
    padding: 0 14px 14px;
    font-size: 14px;
  }
  .home .branch-card + .branch-card {
    margin-top: 8px;
  }
}

/* ---------- Giam chuyen dong ---------- */
@media (prefers-reduced-motion: reduce) {
  .home *,
  .home *::before,
  .home *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .home.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
