/* =========================================================================
   Product detail — Hero
   ========================================================================= */

/* --- Hero detail variant -------------------------------------------------- */
.hero--detail {
  position: relative;
  /* Fit theo ti le man hinh giong hero trang chu */
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
}

.hero--detail > .hero__slide {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  box-sizing: border-box;
}

.hero--detail .hero__container {
  padding: 120px 15px 24px 15px;
}

/* Màu tiêu đề và breadcrumb được chọn riêng cho từng sản phẩm trong ACF. */
.hero--detail--custom-text-color .hero__title,
.hero--detail--custom-text-color .hero__breadcrumb-inline .breadcrumb__link,
.hero--detail--custom-text-color .hero__breadcrumb-inline .breadcrumb__current {
  color: var(--product-hero-text-color);
}

.hero--detail--custom-text-color .hero__breadcrumb-inline .breadcrumb__sep path {
  stroke: var(--product-hero-text-color);
}

/* --- Content left column -------------------------------------------------- */
.hero__content--left {
  margin-left: 0;
  margin-right: auto;
  align-items: flex-start;
  text-align: left;
  width: 50%;
  max-width: 640px;
  gap: 12px;
}

/* --- Button variant for detail hero --------------------------------------- */
.hero--detail .hero__btn {
  background: #FFFFFF;
  color: #293948;
  border: 0;
}

.hero--detail .hero__btn:hover,
.hero--detail .hero__btn:focus {
  background: #D85401;
  color: #FFFFFF;
}

/* --- Breadcrumb (inline in right column) ---------------------------------- */
.hero__breadcrumb-inline {
  margin-bottom: 8px;
  opacity: 0.7;
}

/* --- Price ---------------------------------------------------------------- */
.hero__price {
  color: #D85401;
  font-family: var(--font-hn);
  font-weight: 700;
  font-size: 24px;
  line-height: 135%;
  letter-spacing: 0.01em;
}

.hero__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.hero__price--old {
  color: #9E9E9E;
  text-decoration: line-through;
  font-weight: 400;
  font-size: 18px;
}

/* --- Specs bar (full-width row at bottom) --------------------------------- */
.hero__specs-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: auto;
  padding-bottom: 48px;
  box-sizing: border-box;
}

.hero__specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 30px;
  padding: 20px 30px;
  border-radius: 20px;
  background: rgba(50, 63, 72, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: 100%;
  box-sizing: border-box;
}

.hero__spec {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  position: relative;
}

/* --- BYD-style reveal khi trang vua load --------------------------------- */
.hero__spec-label,
.hero__spec-desc {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(18px);
  animation: heroSpecReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__spec:nth-child(1) .hero__spec-label { animation-delay: 0.35s; }
.hero__spec:nth-child(1) .hero__spec-desc  { animation-delay: 0.50s; }
.hero__spec:nth-child(2) .hero__spec-label { animation-delay: 0.50s; }
.hero__spec:nth-child(2) .hero__spec-desc  { animation-delay: 0.65s; }
.hero__spec:nth-child(3) .hero__spec-label { animation-delay: 0.65s; }
.hero__spec:nth-child(3) .hero__spec-desc  { animation-delay: 0.80s; }
.hero__spec:nth-child(4) .hero__spec-label { animation-delay: 0.80s; }
.hero__spec:nth-child(4) .hero__spec-desc  { animation-delay: 0.95s; }
.hero__spec:nth-child(5) .hero__spec-label { animation-delay: 0.95s; }
.hero__spec:nth-child(5) .hero__spec-desc  { animation-delay: 1.10s; }

@keyframes heroSpecReveal {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__spec-label,
  .hero__spec-desc {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.hero__spec:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0;
  right: -15px;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
}

.hero__spec-label {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 20px;
  line-height: 138%;
  letter-spacing: 0.01em;
}

.hero__spec-desc {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
}

/* --- Responsive ----------------------------------------------------------- */
@media screen and (max-width: 1280px) {
  .hero--detail .hero__container {
    padding: 96px 15px 32px 15px;
  }

  .hero__content--left {
    width: 55%;
  }
}

@media screen and (max-width: 1024px) {
  .hero--detail .hero__container {
    padding: 84px 15px 32px 15px;
  }

  .hero__content--left {
    width: 60%;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__specs {
    column-gap: 20px;
    padding: 20px 20px;
  }

  .hero__spec:not(:last-child)::after {
    right: -10px;
  }
}

@media screen and (max-width: 900px) {
  .hero--detail .hero__container {
    padding: 72px 15px 24px 15px;
  }

  .hero__content--left {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }

  .hero--detail .hero__bg {
    opacity: 0.5;
  }

  .hero__specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
    column-gap: 20px;
  }

  .hero__spec:not(:last-child)::after {
    display: none;
  }

  .hero__spec:nth-child(odd) {
    position: relative;
  }

  .hero__spec:nth-child(odd)::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: -10px;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
  }
}

@media screen and (max-width: 767px) {
  .hero--detail .hero__container {
    padding: 60px 15px 24px 15px;
  }

  .hero__specs-wrap {
    padding-bottom: 32px;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__desc {
    font-size: 15px;
  }

  .hero__price {
    font-size: 20px;
  }

  .hero__price--old {
    font-size: 16px;
  }

  .hero__specs {
    padding: 16px 16px;
    column-gap: 16px;
  }

  .hero__spec-label {
    font-size: 17px;
  }

  .hero__spec-desc {
    font-size: 14px;
  }
}
