.page-heading__inner {
  background-color: #fff;
}

.breadcrumb {
  padding: 10px 0;
  background-color: #fff;
  border: none;
  border-radius: 10px;
}

.breadcrumb__list {
  padding: 0;
  background-color: transparent;
  margin-bottom: 0;
  font-size: 14px;
  opacity: 1;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  gap: 6px;
}

.breadcrumb__item {
  color: #222222;
  font-size: 15px;
  font-weight: 400;
  display: flex;
  align-items: center;
}

.breadcrumb__link {
  color: #222222;
  transition: color 0.2s ease;
}

.breadcrumb__link:hover {
  color: var(--primary-color);
}

.breadcrumb__item:not(:last-child)::after {
  content: "›";
  display: inline-block;
  color: #7a8aa3;
  font-weight: 300;
  margin: 0 8px;
}

.breadcrumb__item--active {
  color: var(--text-black);
}

.breadcrumb__item--active .breadcrumb__link {
  color: inherit;
  pointer-events: none;
  cursor: default;
}
.product-detail__main {
  padding-bottom: 40px;
}
/* chi tiết sản phẩm */

.product-detail__wrapper {
  display: flex;
  gap: 45px;
}

/* LEFT */
.product-detail__left {
  flex-basis: 100%;
  max-width: 470px;
}

.product-detail__image-wrapper {
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
}

.product-detail__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* RIGHT */
.product-detail__right {
  flex: 1;
}

/* TITLE */
.product-detail__title {
  margin: 10px 0;
  font-weight: 600;
  font-size: 28px;
  line-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.esim__flag-wrapper {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
}

.esim__flag-wrapper .esim__flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RATING */
.product-detail__rating {
  display: flex;
  position: relative;
  align-items: center;
  flex-wrap: wrap;
}

.product-detail__rating-text {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  margin-right: 7px;
  color: var(--text-black);
}

.product-detail__stars img {
  display: block;
  height: auto;
}

/* BUTTON OUTLINE */
.product-detail__btn-outline {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  margin: 20px 0;
  gap: 8px;
  border: 1px solid #ddd;
  padding: 8px 14px;
  border-radius: 24px;
  cursor: pointer;
  background: #fff;
  transition: 0.2s;
}

.product-detail__btn-outline i {
  font-size: 22px;
}

.product-detail__btn-outline:hover {
  color: #fff;
  border-color: var(--primary-color);
  background-color: var(--primary-color);
}

.hl-editor {
  font-size: 16px;
  margin-bottom: 30px;
}

.hl-editor ul {
  list-style: disc;
  padding-left: 18px;
}

.product-detail strong {
  font-weight: bold;
}

.hl-editor li {
  margin-bottom: 10px;
}

.hl-editor span {
  color: red;
}

/* PRICE */
.product-detail__price {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin: 15px 0;
  transition: all 0.3s ease;
}

/* OPTION */
.product-detail__option {
  margin-bottom: 20px;
}

.product-detail__option-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 18px;
}

.product-detail__option-header a {
  color: var(--primary-color);
}

.reset-variations {
  visibility: hidden;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4a1bb3;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
}

.reset-variations::before {
  content: "\00d7";
    color: #bcbcbc;
    font-size: 23px;
    line-height: 1;
    font-weight: 400;
    right: -4px;
    position: relative;
    top: -1px;
}

.reset-variations.is-visible {
  visibility: visible;
}

.reset-variations:hover {
  color: #3f149e;
}

.product-detail__option-title {
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 18px;
}

/* OPTION LIST */
.product-detail__option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Phần SỐ NGÀY - Grid đều nhau */
.day-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
}

/* OPTION ITEM */
.product-detail__option-item {
  position: relative;
}

/* Ẩn radio nhưng giữ accessibility */
.product-detail__option-item input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* OPTION LABEL - Pill style */
.product-detail__option-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: all 0.25s ease;
  user-select: none;
}

.day-list .product-detail__option-label {
  width: 100%;
  padding: 13px 5px;
}

/* Phần DUNG LƯỢNG - Flexbox tự động */
.data-list .product-detail__option-label {
  padding: 13px 18px;
  white-space: nowrap;
}

/* HOVER */
.product-detail__option-label:hover {
  border-color: var(--primary-color);
  background: rgba(123, 44, 255, 0.05);
  transform: translateY(-1px);
}

/* FOCUS - Accessibility */
.product-detail__option-item input:focus + .product-detail__option-label {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ACTIVE/CHECKED */
.product-detail__option-item input:checked + .product-detail__option-label,
.product-detail__option-item
  input:checked
  + .product-detail__option-label:hover {
  background: linear-gradient(
    238.61deg,
    rgba(174, 125, 255, 0.1) 28.53%,
    rgba(174, 125, 255, 0.1) 70.5%
  );
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(123, 44, 255, 0.35);
}

/* DISABLED */
.product-detail__option-item input:disabled + .product-detail__option-label {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: #f5f5f5;
}

/* ACTION */
.product-detail__action {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

/* QUANTITY */
.product-detail__quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 118px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid silver;
  border-radius: 999px;
  background: #fff;
  flex-shrink: 0;
}

.product-detail__qty-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-black);
  cursor: pointer;
  padding: 0;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.product-detail__qty-btn:hover {
  background: transparent;
  opacity: 0.7;
}

.product-detail__qty-input {
  width: 28px;
  border: none;
  background: transparent;
  text-align: center;
  outline: none;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-black);
}

/* BUTTON PRIMARY */
.product-detail__btn-primary {
  min-width: 170px;
  height: 42px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: var(--primary-color);
  opacity: 0.6;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: not-allowed;
  transition: all 0.3s ease;
}

/* BUTTON PRIMARY - Active state */
.product-detail__btn-primary.is-active {
  opacity: 1;
  cursor: pointer;
}

.product-detail__btn-primary.is-active:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(123, 44, 255, 0.4);
}

/* ================= RESPONSIVE ================= */

/* LAPTOP - 992px đến 1199px */
@media (max-width: 1199px) {
  .product-detail__wrapper {
    gap: 30px;
  }

  .product-detail__left {
    max-width: 400px;
  }
}

/* TABLET - 768px đến 991px */
@media (max-width: 991px) {
  .product-detail__wrapper {
    gap: 20px;
  }

  .product-detail__title {
    font-size: 24px;
  }

  .product-detail__price {
    font-size: 22px;
  }
}

/* MOBILE LARGE - 576px đến 767px */
@media (max-width: 767px) {
  .product-detail__wrapper {
    flex-direction: column;
    gap: 24px;
  }

  .product-detail__left {
    max-width: 100%;
    width: 100%;
  }

  .product-detail__image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  .product-detail__title {
    font-size: 24px;
  }

  .esim__flag-wrapper {
    width: 28px;
    height: 28px;
  }

  .product-detail__price {
    font-size: 20px;
  }

  .product-detail__option-header,
  .product-detail__option-title {
    font-size: 16px;
  }

  .data-list .product-detail__option-label {
    padding: 10px 14px;
    font-size: 14px;
  }

  .hl-editor {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hl-editor li {
    margin-bottom: 8px;
  }
}

/* MOBILE SMALL - dưới 576px */
@media (max-width: 576px) {
  .breadcrumb__item {
    font-size: 14px;
  }

  .product-detail__left {
    display: none;
  }

  .esim__flag-wrapper {
    width: 26px;
    height: 26px;
  }

  .product-detail__btn-outline {
    font-size: 14px;
    padding: 6px 12px;
    margin: 15px 0;
  }

  .product-detail__btn-outline i {
    font-size: 18px;
  }

  .product-detail__price {
    font-size: 20px;
    margin: 12px 0;
  }

  .product-detail__action {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 10px 15px 10px 15px;
    width: 100%;
    gap: 10px;
    background-color: #fff;
  }

  .product-detail__quantity {
    width: 90px;
    height: 45px;
    padding: 0 10px;
  }

  .product-detail__qty-input {
    font-size: 18px;
  }

  .product-detail__btn-primary {
    flex: 1;
    width: 100%;
    min-width: unset;
    height: 45px;
    font-size: 15px;
    opacity: 1;
  }
}
