/* Keep image-gallery controls entirely within the image frame. */
.product-detail-main .swiper-control {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.product-detail-main .swiper-control .swiper-button-prev,
.product-detail-main .swiper-control .swiper-button-next {
  top: 50%;
  z-index: 3;
  margin-top: 0;
  pointer-events: auto;
  transform: translateY(-50%);
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 50%;
  font-size: 0;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0.3rem 1.2rem rgba(32, 32, 32, 0.12);
  backdrop-filter: blur(0.6rem);
  -webkit-backdrop-filter: blur(0.6rem);
}

.product-detail-main .swiper-control .swiper-button-prev {
  left: 1rem;
}

.product-detail-main .swiper-control .swiper-button-next {
  right: 1rem;
}

/* Swiper mới tự chèn thêm SVG; ẩn nó để không bị hai mũi tên chồng lên nhau. */
.product-detail-main .swiper-control .swiper-navigation-icon,
.product-detail-main .swiper-control .swiper-button-prev > svg,
.product-detail-main .swiper-control .swiper-button-next > svg {
  display: none !important;
}

.product-detail-main .swiper-control .swiper-button-prev::after,
.product-detail-main .swiper-control .swiper-button-next::after {
  content: "";
  display: block;
  box-sizing: border-box;
  flex: none;
  width: 0.72rem;
  height: 0.72rem;
  background: none;
  border-top: 0.15rem solid #f59a0b;
  border-right: 0.15rem solid #f59a0b;
  filter: none;
}

.product-detail-main .swiper-control .swiper-button-prev::after {
  transform: rotate(-135deg);
  margin-left: 0.2rem;
}

.product-detail-main .swiper-control .swiper-button-next::after {
  transform: rotate(45deg);
  margin-right: 0.2rem;
}

@media (hover: hover) {
  .product-detail-main .swiper-control .swiper-button-prev:hover,
  .product-detail-main .swiper-control .swiper-button-next:hover {
    background: #f90;
    border-color: #f90;
    box-shadow: 0 0.5rem 1.6rem rgba(255, 153, 0, 0.28);
  }

  .product-detail-main .swiper-control .swiper-button-prev:hover::after,
  .product-detail-main .swiper-control .swiper-button-next:hover::after {
    border-color: #fff;
    filter: none;
  }
}

/* Give each product benefit its own friendly visual identity. */
.support-icon {
  width: 4.6rem;
  height: 4.6rem;
  padding: 0.75rem;
  flex: 0 0 4.6rem;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 1.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.support-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.support-item:nth-child(1) .support-icon { background: #fff1dc; border-color: #ffd9a3; }
.support-item:nth-child(1) .support-icon img { filter: invert(57%) sepia(98%) saturate(1784%) hue-rotate(359deg) brightness(101%) contrast(105%); }
.support-item:nth-child(2) .support-icon { background: #eaf4ff; border-color: #c7e2ff; }
.support-item:nth-child(2) .support-icon img { filter: invert(43%) sepia(87%) saturate(1488%) hue-rotate(190deg) brightness(96%) contrast(97%); }
.support-item:nth-child(3) .support-icon { background: #eaf8ef; border-color: #c6ebd3; }
.support-item:nth-child(3) .support-icon img { filter: invert(54%) sepia(50%) saturate(716%) hue-rotate(93deg) brightness(88%) contrast(92%); }
.support-item:nth-child(4) .support-icon { background: #f2edff; border-color: #dbceff; }
.support-item:nth-child(4) .support-icon img { filter: invert(45%) sepia(51%) saturate(1961%) hue-rotate(231deg) brightness(91%) contrast(90%); }
.support-item:nth-child(5) .support-icon { background: #fff0f2; border-color: #ffd0d7; }
.support-item:nth-child(5) .support-icon img { filter: invert(38%) sepia(76%) saturate(1355%) hue-rotate(323deg) brightness(100%) contrast(94%); }
.support-item:nth-child(6) .support-icon { background: #e8f8f7; border-color: #c2e9e6; }
.support-item:nth-child(6) .support-icon img { filter: invert(48%) sepia(84%) saturate(401%) hue-rotate(129deg) brightness(89%) contrast(91%); }

@media (hover: hover) {
  .support-item:hover .support-icon {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.6rem 1.6rem rgba(32, 32, 32, 0.1);
  }
}

@media screen and (max-width: 767px) {
  .support-icon {
    width: 4rem;
    height: 4rem;
    padding: 0.7rem;
    flex-basis: 4rem;
  }
}
