/*
 * Product detail rich-content typography and spacing.
 * Scoped to single product pages to avoid affecting other theme templates.
 */
.product-details .container.container-width {
  max-width: 1280px;
}

.product-details__description {
  margin-top: 56px;
}

.product-details-lis {
  margin-top: 18px;
}

.product-details .details-content {
  color: #68635d;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

.product-details .details-content h3 {
  margin: 42px 0 16px;
  color: #2f2b27;
  font-size: clamp(24px, 1.8vw, 28px);
  font-weight: 600;
  line-height: 1.3;
}

.product-details .details-content > h3:first-child {
  margin-top: 0;
}

.product-details .details-content h3:empty {
  display: none;
}

.product-details .details-content p {
  margin: 0 0 14px;
}

/*
 * Restore native/editor list presentation inside product rich content.
 * No marker type, color or item spacing is fixed here, so backend inline
 * settings remain authoritative.
 */
.product-details .details-content ul,
.product-details .details-content ol {
  margin: revert;
  padding: revert;
  list-style: revert;
}

.product-details .details-content ul > li,
.product-details .details-content ol > li {
  display: revert;
  margin: revert;
  padding: revert;
  list-style: revert;
}

.product-details .details-table {
  width: 100%;
  margin: 14px 0 42px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.product-details .details-content table {
  width: 100%;
  margin: 0;
  color: #403c38;
  font-size: 16px;
  line-height: 1.55;
  border-color: #d8cec2;
}

.product-details .details-content table th,
.product-details .details-content table td {
  padding: 16px 20px;
  border-color: #d8cec2;
}

.product-details .details-content table tr:first-child td,
.product-details .details-content table thead th {
  color: #2f2b27;
  font-weight: 600;
  background: #f3eee7;
}

@media (max-width: 767px) {
  .product-details .container.container-width {
    padding-left: 20px;
    padding-right: 20px;
  }

  .product-details__description {
    margin-top: 42px;
  }

  .product-details .details-content {
    font-size: 15px;
    line-height: 1.7;
  }

  .product-details .details-content h3 {
    margin: 34px 0 14px;
    font-size: 22px;
  }

  .product-details .details-content p {
    margin-bottom: 12px;
  }

  .product-details .details-table {
    margin: 12px 0 34px;
  }

  .product-details .details-content table {
    width: 100%;
    min-width: 680px;
    font-size: 14px;
  }

  .product-details .details-content table th,
  .product-details .details-content table td {
    padding: 12px 14px;
  }
}

/* Product gallery navigation */
.product-details__img .mySwiper2 .swiper-button-prev,
.product-details__img .mySwiper2 .swiper-button-next {
  width: 44px;
  height: 44px;
  margin-top: -22px;
  box-sizing: border-box;
  color: #fff;
  background: rgba(61, 46, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(61, 46, 36, 0.18);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.product-details__img .mySwiper2 .swiper-button-prev::after,
.product-details__img .mySwiper2 .swiper-button-next::after {
  font-size: 20px;
  font-weight: 700;
}

.product-details__img .mySwiper2 .swiper-button-prev:hover,
.product-details__img .mySwiper2 .swiper-button-next:hover {
  background: #3d2e24;
  transform: scale(1.05);
}

.product-details__img .mySwiper2 .swiper-button-prev:focus-visible,
.product-details__img .mySwiper2 .swiper-button-next:focus-visible {
  outline: 2px solid #c9a96e;
  outline-offset: 2px;
}

.product-details__img .mySwiper2 .swiper-button-disabled {
  opacity: 0.45;
}

@media (max-width: 768px) {
  .product-details__img .mySwiper2 .swiper-button-prev,
  .product-details__img .mySwiper2 .swiper-button-next {
    width: 38px;
    height: 38px;
    margin-top: -19px;
  }

  .product-details__img .mySwiper2 .swiper-button-prev::after,
  .product-details__img .mySwiper2 .swiper-button-next::after {
    font-size: 17px;
  }
}

/* Product gallery 1:1 main image */
.product-details__img .mySwiper2 {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}

.product-details__img .mySwiper2 .swiper-wrapper,
.product-details__img .mySwiper2 .swiper-slide {
  height: 100%;
}

.product-details__img .mySwiper2 .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-details__img .mySwiper2 .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}
