.single-product-page {
  overflow: visible;
}

.product-hero {
  padding-top: clamp(4.5rem, 4vw, 6rem);
  margin-bottom: var(--space-section);
}
.product-content {
  border: 1px solid var(--color3);
  padding: 20px 12px;
  border-radius: 24px;
  @media (width>=992px) {
    padding: 48px;
    border-radius: 48px;
  }
}
.product-hero-main-col,
.product-hero-info {
  min-width: 0;
}
.product-content-section .section-title {
  margin-bottom: 20px;
}
.product-hero-main-col {
  position: relative;
  z-index: 3;
  overflow: visible;
}

.product-hero-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-hero-mobile-top {
  gap: 0.75rem;
}

.product-hero-meta {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-title {
  margin: 0;
  min-width: 0;
  color: var(--text);
  font-size: clamp(1.375rem, 4.5vw, 2rem);
  line-height: 1.6;
  font-variation-settings: "wght" 500;
}

.product-sku {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 0.9375rem;
  font-family: var(--en_font);
  white-space: nowrap;
}

.product-review-meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.product-average-rating {
  position: relative;
}

.product-average-rating::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: 100%;
  margin-inline-start: calc((1rem - 2px) / 2);
  transform: translateY(-50%);
  width: 2px;
  height: 10px;
  background: var(--color3);
}

.product-review-count,
.product-average-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
}

.product-review-count:hover {
  color: var(--color1);
}

.product-review-count i,
.product-average-rating i {
  font-size: 1.125rem;
  margin-bottom: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-hero-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-hero-share__label {
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.5;
  white-space: nowrap;
}

.product-hero-share__icons {
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 10px;
  color: var(--gray);
}

.product-hero-share__icons > i.icon-share,
.product-hero-share__icons a,
.product-hero-share__icons .copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.product-hero-share__icons > i.icon-share {
  position: relative;
  margin-right: 12px;
}

.product-hero-share__icons > i.icon-share::after {
  content: "";
  background-color: #eae8e9;
  width: 2px;
  height: 1rem;
  border-radius: 2.5rem;
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%);
}

.product-hero-share__icons a:hover {
  color: var(--color1);
}

.product-hero-share__icons .copy-btn {
  position: relative;
}

.product-hero-share .tooltip-url {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 50%;
  z-index: 3;
  width: max-content;
  padding: 0.25rem 0.5rem;
  transform: translateX(50%);
  background: var(--color1);
  color: var(--white);
  font-size: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  pointer-events: none;
  border-radius: 0.5rem;
}

.product-hero-share .copy-btn:hover .tooltip-url,
.product-hero-share .copy-btn.is-copied .tooltip-url,
.product-hero-share .copy-btn.is-error .tooltip-url {
  opacity: 1;
  visibility: visible;
}

.product-short-description {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

.product-short-description {
  color: var(--gray);
  /* text-align: justify; */
}

.product-short-description > :last-child {
  margin-bottom: 0;
}

.product-accordions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-accordions .product-accordion {
  padding-bottom: 1rem;
  border-bottom: 1px solid #eae8e9;
  overflow: hidden;
}

.product-accordions .product-accordion:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.product-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  font-family: var(--main_font);
  line-height: 1.88;
  padding: 0;
  color: var(--text);
  font-size: 1rem;
  text-align: right;
  cursor: pointer;
  transition: color 0.25s ease;
}

.product-accordion-toggle:hover,
.product-accordion.is-open .product-accordion-toggle {
  color: var(--color1);
}

.product-accordion-toggle i {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background-color: #eae8e9;
  border-radius: 0.5rem;
  transition: transform 0.25s ease;
  color: inherit;
}

.product-accordion.is-open .product-accordion-toggle i {
  transform: rotate(180deg);
}

.product-accordion-content {
  padding: 1.25rem 0 0;
}

.product-accordion-content.editor-content p {
  color: var(--text);
}

.product-accordion-content[hidden] {
  display: none;
}

.product-accordion-content > :last-child {
  margin-bottom: 0;
}

.product-attributes-list {
  margin: 0;
}

.product-attribute-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.product-attribute-item:last-child {
  margin-bottom: 0;
}

.product-attribute-item dt {
  color: var(--gray);
  font-size: 1rem;
}

.product-attribute-item dd {
  color: var(--text);
  font-size: 1rem;
  text-align: left;
  margin: 0;
}

.product-attribute-item dd a {
  color: inherit;
  text-decoration: none;
}

.product-attribute-item dd a:hover {
  color: var(--color1);
}

.product-price-inquiry.button {
  width: 100%;
  min-height: 3.5rem;
  margin-top: 1.75rem;
  align-items: center;
  justify-content: center;
}

.product-hero-actions {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-top: 1.75rem;
}

.product-hero-actions .product-price-inquiry.button,
.product-hero-actions .product-catalog-preview.button {
  margin-top: 0;
  width: auto;
}

.product-hero-actions .product-price-inquiry.button {
  flex: 7 1 0;
}

.product-hero-actions .product-catalog-preview.button {
  flex: 3 1 0;
}

.product-hero-actions > :only-child {
  flex: 1 1 100%;
  width: 100%;
}

.product-catalog-preview.button {
  width: 100%;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  display: flex;
  cursor: pointer;
  background-color: #000;
  color: var(--white);
}

.product-catalog-preview.button::after {
  background-color: var(--color1);
}

.product-catalog-preview.button:hover {
  color: var(--white);
}

/* Gallery */
.product-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.product-gallery-main-wrap {
  position: relative;
  min-width: 0;
  height: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #f4f4f4;
}

.product-gallery-main-wrap > .product-album-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem 0.6rem;
  background: var(--white);
  border-radius: 0.85rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  text-align: center;
  text-decoration: none;
  color: inherit;
  width: 4rem;
}

.product-gallery-main-wrap > .product-album-badge .product-album-badge__thumb {
  display: block;
  width: 2.5rem;
  height: 2.75rem;
}

.product-gallery-main-wrap
  > .product-album-badge
  .product-album-badge__thumb
  img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery-main-wrap > .product-album-badge .product-album-badge__name {
  display: block;
  font-size: 10px;
  line-height: 1.3;
  color: var(--text);
  font-variation-settings: "wght" 600;
}

.product-gallery-main {
  height: 100%;
}

.product-gallery-main .swiper-slide {
  height: 100%;
}

.product-gallery-main .swiper-slide,
.product-gallery-main-item,
.product-gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery-main .swiper-slide {
  height: auto;
}
.product-gallery-main-item {
  width: 100%;
  height: 100%;
  /* aspect-ratio: 3 / 4; */
}

.product-gallery-main img,
.product-gallery-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .product-gallery-main-item,
  .product-gallery-main img.zoom {
    cursor: zoom-in;
  }
}

.product-gallery-zoom-box {
  width: 500px;
  height: 500px;
  overflow: hidden;
  border: 1px solid var(--color3, #eae8e9);
  background: var(--white, #fff);
  background-repeat: no-repeat;
  box-shadow: 0 12px 35px rgba(48, 43, 49, 0.18);
  position: absolute;
  top: 0;
  right: auto;
  left: 0;
  transform: translateX(calc(-100% - 1rem));
  border-radius: 1.25rem;
  z-index: 5;
  display: none;
  pointer-events: none;
}

/* Match section-slider pagination (on-image bullets) */
.product-gallery-main.swiper-horizontal > .swiper-pagination,
.product-gallery-main > .swiper-pagination.swiper-pagination-bullets {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 1.5rem;
  top: auto;
  transform: translateX(-50%);
  width: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 6;
  text-align: center;
}

.product-gallery-main > .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  border-radius: 50%;
  position: relative;
  transition: 0.35s all ease;
}

.product-gallery-main > .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--white);
}

.product-gallery-main > .swiper-pagination .swiper-pagination-bullet-active {
  width: 2rem;
  border-radius: 50px;
}

/* ─── Mobile layout (Figma) ─── */
@media (max-width: 991.98px) {
  .product-hero-row {
    display: flex;
    flex-direction: column;
    margin-right: 0;
    margin-left: 0;
    row-gap: 1rem;
  }

  .product-hero-info {
    display: contents;
  }

  .product-hero-mobile-top {
    order: 1;
    width: 100%;
    margin-bottom: 0.15rem;
  }

  .product-hero-heading {
    order: 2;
    margin-bottom: 0.25rem;
  }

  .product-hero-heading .product-title {
    font-size: clamp(1.375rem, 4.5vw, 2rem);
  }

  .product-hero-main-col {
    width: 100%;
    max-width: 100%;
    padding-right: 0 !important;
    padding-left: 0 !important;
    order: 3;
  }

  .product-hero-share-mobile {
    order: 5;
    width: 100%;
  }

  .product-hero-share-mobile .product-hero-share {
    margin: 0.25rem 0 0.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color3);
    border-radius: 1rem;
  }

  .product-hero-share-mobile .product-hero-share__label {
    display: block;
  }

  .product-hero-info-rest {
    order: 6;
    width: 100%;
  }

  .product-gallery-main-wrap {
    border-radius: 1.25rem;
  }

  .product-short-description {
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.9;
  }

  .product-price-inquiry.button {
    min-height: 3.25rem;
    margin-top: 1.5rem;
    border-radius: 1rem;
  }

  .product-hero-actions {
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .product-hero-actions .product-price-inquiry.button,
  .product-hero-actions .product-catalog-preview.button {
    width: auto;
    min-height: 3.25rem;
    border-radius: 1rem;
  }

  .product-hero-actions .product-price-inquiry.button {
    flex: 7 1 0;
  }

  .product-hero-actions .product-catalog-preview.button {
    flex: 3 1 0;
  }

  .product-hero-actions-placeholder {
    display: none;
    width: 100%;
    pointer-events: none;
    visibility: hidden;
  }

  .product-hero-actions-placeholder.is-active {
    display: block;
  }

  .product-hero-actions-fixed-shell {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9988;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    transform: translate3d(0, 100%, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.4s ease,
      visibility 0.4s;
    will-change: transform, opacity;
  }

  .product-hero-actions-fixed-shell.is-active {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .product-hero-actions-fixed-shell .product-hero-actions {
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 0;
  }

  .product-hero-actions-fixed-shell .product-hero-actions > :only-child {
    flex: 1 1 100%;
    width: 100%;
  }

  .product-hero-actions-fixed-shell .product-price-inquiry.button,
  .product-hero-actions-fixed-shell .product-catalog-preview.button {
    width: auto;
    min-height: 3.25rem;
    border-radius: 1rem;
  }

  .product-hero-actions-fixed-shell .product-price-inquiry.button {
    flex: 7 1 0;
  }

  .product-hero-actions-fixed-shell .product-catalog-preview.button {
    flex: 3 1 0;
  }

  .product-gallery-zoom-box {
    display: none !important;
  }
}

/* ─── Desktop ─── */
@media (min-width: 992px) {
  .product-hero-actions-fixed-shell,
  .product-hero-actions-placeholder {
    display: none !important;
  }

  .product-hero {
    padding-top: clamp(4.5rem, 4vw, 6rem);
  }

  .product-hero-info {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
  }
  .product-hero-main-col {
    position: sticky;
    z-index: 1;
    top: calc(var(--header-h) + 1rem);
  }
  .product-hero-heading {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e4e4e4;
  }

  .product-hero-heading .product-title {
    font-size: clamp(1.75rem, 2.2vw, 2rem);
  }

  .product-sku {
    font-size: 1.125rem;
  }

  .product-hero-meta {
    margin-bottom: 2rem;
    flex-wrap: nowrap;
  }

  .product-review-meta {
    gap: 1.5rem;
  }

  .product-average-rating::after {
    margin-inline-start: calc((1.5rem - 2px) / 2);
  }

  .product-review-count,
  .product-average-rating {
    font-size: 1.125rem;
  }

  .product-review-count i,
  .product-average-rating i {
    font-size: 1.25rem;
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .product-hero-share {
    justify-content: flex-end;
  }

  .product-hero-share__label {
    display: none;
  }

  .product-short-description {
    margin-bottom: 3rem;
  }

  .product-price-inquiry.button {
    min-height: 74px;
    margin-top: 3rem;
  }

  .product-hero-actions {
    margin-top: 3rem;
    gap: 1rem;
  }

  .product-hero-actions .product-price-inquiry.button,
  .product-hero-actions .product-catalog-preview.button {
    min-height: 74px;
  }

  .product-hero-main-col {
    align-self: flex-start;
  }

  .product-gallery-main-wrap {
    border-radius: 2rem;
  }

  .product-gallery-zoom-box {
    border-radius: 2rem;
  }

  .product-gallery-main.swiper-horizontal > .swiper-pagination,
  .product-gallery-main > .swiper-pagination.swiper-pagination-bullets {
    bottom: 24px;
  }

  .product-gallery-main-wrap > .product-album-badge {
    left: 1.5rem;
    bottom: 1.5rem;
    gap: 0.5rem;
    padding: 1.125rem;
    border-radius: 1rem;
    width: auto;
    box-shadow: 0px 4px 50px 0px #00000033;
  }

  .product-gallery-main-wrap
    > .product-album-badge
    .product-album-badge__thumb {
    width: 65px;
    height: 75px;
  }

  .product-gallery-main-wrap > .product-album-badge .product-album-badge__name {
    font-size: 14px;
  }
}
