/* ✦ NEW — Product Page 2.0. Loaded only when the theme setting "Product page style" is "✦ New".
   Everything is scoped under .dx-pdp / .dx-pdp-* so the classic page is untouched. */

.dx-pdp,
.dx-pdp-crumb,
.dx-pdp-sticky {
  --dx-pdp-accent: #bb9e7b;
  --dx-pdp-text: #fff;
  --dx-pdp-muted: rgba(255, 255, 255, .62);
  --dx-pdp-line: rgba(255, 255, 255, .12);
  --dx-pdp-card: #161616;
  --dx-pdp-bg: #0e0e0e;
  --dx-pdp-ease: cubic-bezier(.22, 1, .36, 1);
}

.dx-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  border: 0 !important;
}

/* ---------- Breadcrumb ---------- */
.dx-pdp-crumb {
  padding: 26px 0 0;
}

@media (min-width: 1025px) {
  .dx-pdp-crumb.is-merged {
    padding-top: 120px;
  }
}

.dx-pdp-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--dx-pdp-muted);
}

.dx-pdp-crumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.dx-pdp-crumb li + li::before {
  content: "/";
  opacity: .5;
}

.dx-pdp-crumb a {
  color: inherit;
  text-decoration: none;
  transition: color .3s;
}

.dx-pdp-crumb a:hover {
  color: var(--dx-pdp-accent);
}

.dx-pdp-crumb li[aria-current] span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 46ch;
  color: var(--dx-pdp-text);
}

/* ---------- Layout: big gallery + sticky info ---------- */
.dx-pdp.dark-products-details-page {
  padding-top: 22px;
}

@media (min-width: 992px) {
  .dx-pdp .products-details > div > .row {
    align-items: flex-start;
  }

  .dx-pdp .products-details > div > .row > .col-lg-6:first-child {
    flex: 0 0 56%;
    max-width: 56%;
  }

  .dx-pdp .products-details > div > .row > .col-product-info {
    position: sticky;
    top: 24px;
    flex: 0 0 44%;
    max-width: 44%;
    padding-inline-start: 40px;
  }
}

/* ---------- Gallery ---------- */
.dx-pdp .product-images-carousel,
.dx-pdp .product-images-empty {
  overflow: hidden;
  border-radius: 20px;
  background: var(--dx-pdp-card);
}

.dx-pdp .product-images-carousel .carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  cursor: zoom-in;
}

/* Portrait 4:5 stage, the same shape as the product cards, so photos fill it instead of sitting between dark bars */
.dx-pdp .product-images-carousel .box-1-1::before {
  padding-top: 125%;
}

/* One photo needs no thumbnail strip */
.dx-pdp .product-images-carousel-thumbs:has(> .col-3:only-child) {
  display: none !important;
}

/* YouTube slide: play + close buttons */
.dx-pdp #product-images-slick .play-icon {
  width: 64px !important;
  height: 64px;
  padding: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .3s var(--dx-pdp-ease), background-color .3s;
}

.dx-pdp #product-images-slick .play-icon:hover {
  transform: scale(1.08);
  background: var(--dx-pdp-accent);
}

.dx-pdp .iframe-video #iframe-close-btn {
  top: 14px !important;
  right: 14px !important;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6) !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.dx-pdp .product-images-carousel-thumbs {
  margin: 12px -6px 0;
}

.dx-pdp .product-images-carousel-thumbs > .col-3 {
  padding: 0 6px;
}

.dx-pdp .product-images-carousel-thumbs .box-1-1 {
  overflow: hidden;
  border: 1px solid var(--dx-pdp-line);
  border-radius: 12px;
  opacity: .7;
  transition: opacity .3s, border-color .3s;
}

.dx-pdp .product-images-carousel-thumbs .box-1-1:hover {
  opacity: 1;
  border-color: var(--dx-pdp-accent);
}

.dx-pdp .product-images-carousel-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Title, meta, price ---------- */
.dx-pdp .dark-col-product-info h1 {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.25;
  text-wrap: balance;
  font-weight: 700;
  letter-spacing: -.01em;
}

.dx-pdp .product-features {
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--dx-pdp-muted);
}

.dx-pdp .low-quantity-section.d-inline-block {
  display: inline-flex !important;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(240, 163, 94, .12);
  color: #f0a35e;
  font-size: 13px;
  font-weight: 600;
}

.dx-pdp .dark-col-product-info .text-short-description {
  margin: 18px 0 0;
  font-size: 15px !important;
  line-height: 1.85;
  color: var(--dx-pdp-muted);
  opacity: 1;
}

.dx-pdp .dark-col-product-info .text-short-description a {
  color: var(--dx-pdp-accent) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dx-pdp .dark-col-product-info .product-formatted-price {
  margin: 22px 0 0;
  font-size: 32px !important;
  font-weight: 800;
  color: var(--dx-pdp-accent) !important;
}

.dx-pdp .dark-col-product-info .product-formatted-price + p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 6px 0 0;
  opacity: 1;
}

.dx-pdp .product-formatted-price-old {
  font-size: 16px;
  color: var(--dx-pdp-muted);
}

.dx-pdp .product-formatted-price-discount:not(:empty) {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(229, 72, 77, .15);
  color: #ff7a7e !important;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Specs (SKU / weight) as a quiet list ---------- */
.dx-pdp .border-product {
  border-color: var(--dx-pdp-line) !important;
  border-top-color: var(--dx-pdp-line) !important;
}

.dx-pdp .dark-col-product-info .div-product-sku:not(.d-none),
.dx-pdp .dark-col-product-info .div-product-weight:not(.d-none) {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px !important;
  margin-inline-end: 22px !important;
  font-size: 13px;
}

.dx-pdp .div-product-sku .product-title,
.dx-pdp .div-product-weight .product-title {
  margin: 0;
  font-size: 13px !important;
  font-weight: 500;
  color: var(--dx-pdp-muted) !important;
}

.dx-pdp .div-product-sku .product-title::after,
.dx-pdp .div-product-weight .product-title::after {
  content: ":";
}

.dx-pdp .dark-col-product-info .div-product-sku .product-sku,
.dx-pdp .dark-col-product-info .div-product-weight .product-weight {
  padding: 0;
  background: transparent;
  color: var(--dx-pdp-text);
  font-size: 13px;
  opacity: 1;
}

/* ---------- Options & quantity ---------- */
.dx-pdp .dark-col-product-info .product-title {
  font-size: 15px !important;
  font-weight: 600;
  opacity: 1;
}

.dx-pdp .dark-col-product-info .select-quantity-div .product-title,
.dx-pdp .dark-col-product-info .size-box .product-title,
.dx-pdp .dark-col-product-info .size-box h4 {
  color: var(--dx-pdp-text) !important;
}

.dx-pdp .size-box #product-variants-options ul li {
  min-width: 52px;
  padding: 10px 18px;
  border: 1px solid var(--dx-pdp-line);
  border-radius: 999px;
  transition: border-color .3s, background-color .3s;
}

/* Zid renders options as <ul><li value><span>label</span></li></ul> (older markup used <a>) */
.dx-pdp .size-box #product-variants-options ul li a,
.dx-pdp .size-box #product-variants-options ul li span {
  color: var(--dx-pdp-text);
  font-size: 14px;
  font-weight: 600;
}

.dx-pdp .size-box #product-variants-options ul li:hover {
  border-color: var(--dx-pdp-accent);
}

.dx-pdp .size-box #product-variants-options ul li.active {
  border-color: var(--dx-pdp-accent);
  background: var(--dx-pdp-accent);
}

.dx-pdp .size-box #product-variants-options ul li.active a,
.dx-pdp .size-box #product-variants-options ul li.active span {
  color: #0b0b0b;
}

.dx-pdp .size-box #product-variants-options .form-group {
  margin-bottom: 18px;
}

.dx-pdp .size-box #product-variants-options label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dx-pdp-text);
}

.dx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 4px;
}

.dx-pdp .dx-pill {
  min-width: 52px;
  padding: 10px 18px;
  border: 1px solid var(--dx-pdp-line);
  border-radius: 999px;
  background: transparent;
  color: var(--dx-pdp-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .3s, background-color .3s, color .3s;
}

.dx-pdp .dx-pill:hover {
  border-color: var(--dx-pdp-accent);
}

.dx-pdp .dx-pill.is-active {
  border-color: var(--dx-pdp-accent);
  background: var(--dx-pdp-accent);
  color: #0b0b0b;
}

.dx-pdp .dx-pill.is-disabled {
  opacity: .35;
  text-decoration: line-through;
  cursor: not-allowed;
}

.dx-pdp .select-quantity-div > div.form-group > div::after {
  display: none;
}

.dx-pdp .dx-has-pills {
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.dx-pdp .dx-has-pills::after,
.dx-pdp .dx-has-pills::before {
  display: none !important;
}

/* Customization fields (text, number, date…) */
.dx-pdp .size-box input[type="text"],
.dx-pdp .size-box input[type="number"],
.dx-pdp .size-box input[type="date"],
.dx-pdp .size-box input[type="time"],
.dx-pdp .size-box textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--dx-pdp-line) !important;
  border-radius: 12px !important;
  background: color-mix(in srgb, var(--dx-pdp-text) 4%, transparent) !important;
  box-shadow: none !important;
  color: var(--dx-pdp-text) !important;
  font-size: 14px;
}

.dx-pdp .size-box input:focus,
.dx-pdp .size-box textarea:focus {
  border-color: var(--dx-pdp-accent) !important;
  outline: none;
}

.dx-qty {
  display: inline-flex;
  align-items: center;
  height: 52px;
  border: 1px solid var(--dx-pdp-line);
  border-radius: 999px;
}

.dx-pdp .dx-qty__btn {
  width: 52px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--dx-pdp-text);
  font-size: 13px;
  cursor: pointer;
  transition: color .3s;
}

.dx-pdp .dx-qty__btn:hover:not(:disabled) {
  color: var(--dx-pdp-accent);
}

.dx-pdp .dx-qty__btn:disabled {
  opacity: .3;
  cursor: default;
}

.dx-qty__val {
  min-width: 36px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.dx-pdp .product-buttons > .d-flex {
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px !important;
  margin-top: 6px;
}

.dx-pdp .dark-col-product-info .product-buttons .btn-add-to-cart {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid var(--dx-pdp-accent);
  border-radius: 999px !important;
  background: var(--dx-pdp-accent) !important;
  box-shadow: none !important;
  color: #0b0b0b !important;
  font-size: 16px;
  font-weight: 700;
  transition: filter .3s, transform .3s var(--dx-pdp-ease);
}

.dx-pdp .dark-col-product-info .product-buttons .btn-add-to-cart:hover {
  filter: brightness(1.08);
}

.dx-pdp .dark-col-product-info .product-buttons .btn-add-to-cart:active {
  transform: scale(.98);
}

.dx-pdp .dark-col-product-info .product-buttons .btn-buy-now:not(.d-none) {
  order: 3;
  flex: 0 0 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid var(--dx-pdp-line);
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--dx-pdp-text) !important;
  font-weight: 600;
}

.dx-pdp .dark-col-product-info .product-buttons .btn-buy-now:hover {
  border-color: var(--dx-pdp-text);
}

.dx-pdp .product-buttons .add-to-wishlist {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin: 0 !important;
  border: 1px solid var(--dx-pdp-line);
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
}

.dx-pdp .product-buttons .add-to-wishlist .icon-heart-mask {
  background-color: var(--dx-pdp-text);
}

.dx-pdp .product-buttons .add-to-wishlist .icon-heart-mask.filled {
  background-color: #e5484d;
}

/* Sold-out variant: the classic markup starts with .d-block and the variant script only adds
   .d-none, so Bootstrap's .d-block kept the buttons visible. Make .d-none win on 2.0. */
.dx-pdp .product-buttons.d-none {
  display: none !important;
}

/* ---------- Out of stock + notify me ---------- */
.dx-pdp .section-out-of-stock-notify-me > .border-product {
  display: none;
}

.dx-pdp .section-out-of-stock-notify-me > div > .product-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(229, 72, 77, .14);
  color: #ff7a7e !important;
  font-size: 14px !important;
  font-weight: 700;
}

.dx-pdp .form-notify-me {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--dx-pdp-line) !important;
  border-radius: 18px;
  background: color-mix(in srgb, var(--dx-pdp-text) 3%, transparent);
}

.dx-pdp .form-notify-me h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--dx-pdp-text);
}

.dx-pdp .form-notify-me .form-control {
  height: 50px;
  margin: 0 !important;
  padding: 0 16px;
  border: 1px solid var(--dx-pdp-line) !important;
  border-radius: 12px !important;
  background: color-mix(in srgb, var(--dx-pdp-text) 4%, transparent) !important;
  box-shadow: none !important;
  color: var(--dx-pdp-text) !important;
  font-size: 14px;
}

.dx-pdp .form-notify-me .form-control::placeholder {
  color: var(--dx-pdp-muted);
}

.dx-pdp .form-notify-me .form-control:focus {
  border-color: var(--dx-pdp-accent) !important;
}

.dx-pdp .form-notify-me-phone-row {
  gap: 10px;
}

.dx-pdp .form-notify-me-phone-row .send-notify-country-key {
  flex: 0 0 86px;
  max-width: 86px;
}

.dx-pdp .form-notify-me .btn-send-notify {
  width: 100%;
  min-height: 52px;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--dx-pdp-accent) !important;
  color: #0b0b0b !important;
  font-weight: 700;
}

/* ---------- Delivery, trust, payments ---------- */
.dx-pdp-extras {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.dx-pdp-delivery {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--dx-pdp-text) 4%, transparent);
  font-size: 14px;
  color: var(--dx-pdp-text);
}

.dx-pdp-delivery i {
  color: var(--dx-pdp-accent);
}

.dx-pdp-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dx-pdp-trust li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1px solid var(--dx-pdp-line);
  border-radius: 14px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--dx-pdp-muted);
}

.dx-pdp-trust i {
  font-size: 18px;
  color: var(--dx-pdp-accent);
}

.dx-pdp-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dx-pdp-pay span {
  width: 52px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 7px;
  border-radius: 6px;
  background: #fff;
}

.dx-pdp-pay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---------- Share ---------- */
.dx-pdp .product-social {
  gap: 8px;
}

.dx-pdp .product-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border: 1px solid var(--dx-pdp-line);
  border-radius: 50%;
  color: var(--dx-pdp-text) !important;
  transition: border-color .3s, color .3s;
}

.dx-pdp .product-social a i {
  color: inherit !important;
  font-size: 15px;
}

.dx-pdp .product-social a:hover {
  border-color: var(--dx-pdp-accent);
  color: var(--dx-pdp-accent) !important;
}

/* ---------- Description, reviews ---------- */
.dx-pdp .dark-products-details-page .description-title,
.dx-pdp .description-title {
  font-size: 22px !important;
  font-weight: 700;
}

.dx-pdp .dark-product-description {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--dx-pdp-line);
}

.dx-pdp .dark-product-description .description-title {
  color: var(--dx-pdp-text) !important;
}

.dx-pdp .dark-product-description .description-paragrah,
.dx-pdp .dark-product-description .description-paragrah p {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--dx-pdp-text) !important;
  opacity: .8;
}

/* ---------- Sticky add-to-cart bar ---------- */
.dx-pdp-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--dx-pdp-line);
  background: color-mix(in srgb, var(--dx-pdp-bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transform: translateY(110%);
  transition: transform .45s var(--dx-pdp-ease);
}

.dx-pdp-sticky.is-visible {
  transform: none;
}

.dx-pdp-sticky__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dx-pdp-sticky__info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dx-pdp-sticky__info img {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.dx-pdp-sticky__info div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dx-pdp-sticky__info strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
  color: var(--dx-pdp-text);
}

.dx-pdp-sticky__price {
  font-size: 15px;
  font-weight: 800;
  color: var(--dx-pdp-accent);
}

.dx-pdp-sticky__btn {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--dx-pdp-accent);
  color: #0b0b0b;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.dx-pdp-sticky__btn.is-loading {
  color: transparent;
  pointer-events: none;
}

.dx-pdp-sticky__btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(0, 0, 0, .25);
  border-top-color: #0b0b0b;
  border-radius: 50%;
  animation: dxPdpSpin .7s linear infinite;
}

@keyframes dxPdpSpin {
  to { transform: rotate(360deg); }
}

/* Keep page content (and floating chat icons) clear of the bar */
body.dx-pdp-has-sticky {
  padding-bottom: 76px;
}

@media (max-width: 767.98px) {
  .dx-pdp-sticky__info img {
    width: 42px;
    height: 42px;
  }

  .dx-pdp-sticky__info strong {
    font-size: 13px;
  }

  .dx-pdp-sticky__btn {
    min-height: 46px;
    padding: 0 20px;
    font-size: 14px;
  }

  .dx-pdp-sticky__btn i {
    display: none;
  }

  .dx-pdp .dark-col-product-info .product-formatted-price {
    font-size: 26px !important;
  }

  .dx-pdp .product-images-carousel {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dx-pdp-sticky {
    transition: none;
  }
}

/* A mouse click or tap leaves no browser focus box; keyboard users still get the focus-visible outline */
:where(.dx-pdp, .dx-pdp-crumb, .dx-pdp-sticky) :is(a, button, summary, input, select, textarea, video, [tabindex]):focus:not(:focus-visible) {
  outline: none;
}

/* ---------- Reviews & questions 2.0 ---------- */
.dx-pdp .dx-pdp-rv {
  margin: 72px 0 0;
  padding-top: 56px;
  border-top: 1px solid var(--dx-pdp-line);
  color: var(--dx-pdp-text);
}

.dx-pdp .dx-pdp-rv + .dx-pdp-rv { margin-top: 56px; }

.dx-pdp .dx-pdp-rv__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}

.dx-pdp .dx-pdp-rv__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--dx-pdp-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--dx-pdp-text) 4%, transparent);
  color: var(--dx-pdp-text) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}

/* main.js shows the customer button with display:block; keep it a pill */
.dx-pdp .dx-pdp-rv__btn[style*="block"] { display: inline-flex !important; }
.dx-pdp .dx-pdp-rv__btn.d-none { display: none !important; }

.dx-pdp .dx-pdp-rv__btn:hover {
  border-color: var(--dx-pdp-accent);
  background: var(--dx-pdp-accent);
  color: #0b0b0b !important;
}

.dx-pdp .dx-pdp-rv__btn i { font-size: 15px; }

/* Summary: score + distribution */
.dx-pdp .dx-pdp-rv__summary {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  border: 1px solid var(--dx-pdp-line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--dx-pdp-text) 3%, transparent);
}

.dx-pdp .dx-pdp-rv__score {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-inline-end: 32px;
  border-inline-end: 1px solid var(--dx-pdp-line);
  text-align: center;
}

.dx-pdp .dx-pdp-rv__score strong {
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.dx-pdp .dx-pdp-rv__score small { font-size: 13px; color: var(--dx-pdp-muted); }

/* Five stars, filled to the average */
.dx-pdp .dx-pdp-rv__stars {
  position: relative;
  display: inline-block;
  font-size: 18px;
  letter-spacing: 3px;
  line-height: 1;
  color: color-mix(in srgb, var(--dx-pdp-text) 18%, transparent);
}

.dx-pdp .dx-pdp-rv__stars::before { content: "★★★★★"; }

.dx-pdp .dx-pdp-rv__stars::after {
  content: "★★★★★";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--dx-rv, 0%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--dx-pdp-accent);
}

.dx-pdp .dx-pdp-rv__bars {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dx-pdp .dx-pdp-rv__bars li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.dx-pdp .dx-pdp-rv__lbl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.dx-pdp .dx-pdp-rv__lbl i { font-size: 11px; color: var(--dx-pdp-accent); }

.dx-pdp .dx-pdp-rv__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dx-pdp-text) 10%, transparent);
}

.dx-pdp .dx-pdp-rv__track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--dx-pdp-accent);
}

.dx-pdp .dx-pdp-rv__n { color: var(--dx-pdp-muted); font-variant-numeric: tabular-nums; text-align: end; }

/* Review cards (classic markup from components/customer-reviews.jinja) */
.dx-pdp .dx-pdp-rv__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-top: 20px;
}

/* icomoon paints the stars on :before in #edb900 */
.dx-pdp .dx-pdp-rv__list .icon-star1:before,
.dx-pdp .dx-pdp-rv__list .icon-half-star:before { color: var(--dx-pdp-accent) !important; }
.dx-pdp .dx-pdp-rv__list .icon-star1.deactive,
.dx-pdp .dx-pdp-rv__list .icon-star1.deactive:before { color: color-mix(in srgb, var(--dx-pdp-text) 18%, transparent) !important; }

.dx-pdp .dx-pdp-rv__list .card-review {
  margin: 0 !important;
  border: 1px solid var(--dx-pdp-line) !important;
  border-radius: 18px !important;
  background: transparent !important;
  color: var(--dx-pdp-text);
}

.dx-pdp .dx-pdp-rv__list .card-body { padding: 22px 24px; }

.dx-pdp .dx-pdp-rv__list .icon-account_circle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: color-mix(in srgb, var(--dx-pdp-accent) 18%, transparent);
  color: var(--dx-pdp-accent);
  font-size: 22px;
}

.dx-pdp .dx-pdp-rv__list .card-name { margin-inline-start: 12px; }

/* Initial letter instead of the icon font glyph */
.dx-pdp .dx-pdp-rv__avatar:before { display: none; }
.dx-pdp .dx-pdp-rv__avatar > span { font-size: 17px; font-weight: 700; line-height: 1; text-transform: uppercase; }
.dx-pdp .dx-pdp-rv__list .review-images-container img { cursor: zoom-in; }

.dx-pdp .dx-pdp-rv__list .card-name-customer {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--dx-pdp-text) !important;
}

.dx-pdp .dx-pdp-rv__list .card-date {
  margin-inline-start: auto;
  font-size: 12px;
  color: var(--dx-pdp-muted) !important;
}

.dx-pdp .dx-pdp-rv__list .card-paragraph {
  margin-top: 14px !important;
  font-size: 14px;
  line-height: 1.8;
  text-align: start !important;
  color: var(--dx-pdp-text) !important;
}

.dx-pdp .dx-pdp-rv__list .review-images-container { gap: 8px; }

.dx-pdp .dx-pdp-rv__list .review-images-container img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover;
  border-radius: 10px;
}

.dx-pdp .dx-pdp-rv__list .review-reply-card {
  padding: 14px 16px;
  border-inline-start: 2px solid var(--dx-pdp-accent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--dx-pdp-text) 4%, transparent);
}

.dx-pdp .dx-pdp-rv__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dx-pdp-accent) !important;
  text-decoration: none !important;
}

/* Empty state */
.dx-pdp .dx-pdp-rv__empty {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  border: 1px dashed color-mix(in srgb, var(--dx-pdp-text) 20%, transparent);
  border-radius: 20px;
}

.dx-pdp .dx-pdp-rv__empty-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--dx-pdp-accent) 16%, transparent);
  color: var(--dx-pdp-accent);
  font-size: 20px;
}

.dx-pdp .dx-pdp-rv__empty strong { display: block; font-size: 16px; font-weight: 700; }
.dx-pdp .dx-pdp-rv__empty p { margin: 4px 0 0; font-size: 14px; color: var(--dx-pdp-muted); }

/* Questions */
.dx-pdp .dx-pdp-qa__list { display: grid; gap: 12px; }

.dx-pdp .dx-pdp-qa__item {
  padding: 20px 24px;
  border: 1px solid var(--dx-pdp-line);
  border-radius: 18px;
}

.dx-pdp .dx-pdp-qa__q,
.dx-pdp .dx-pdp-qa__a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.dx-pdp .dx-pdp-qa__q { font-weight: 700; }
.dx-pdp .dx-pdp-qa__a { margin-top: 10px; color: var(--dx-pdp-muted); }

.dx-pdp .dx-pdp-qa__q > span,
.dx-pdp .dx-pdp-qa__a > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.dx-pdp .dx-pdp-qa__q > span { background: var(--dx-pdp-accent); color: #0b0b0b; }
.dx-pdp .dx-pdp-qa__a > span { background: color-mix(in srgb, var(--dx-pdp-text) 10%, transparent); color: var(--dx-pdp-text); }

.dx-pdp .dx-pdp-qa__by { display: block; margin-top: 10px; font-size: 12px; color: var(--dx-pdp-muted); }

@media (max-width: 767.98px) {
  .dx-pdp .dx-pdp-rv { margin-top: 48px; padding-top: 40px; }
  .dx-pdp .dx-pdp-rv + .dx-pdp-rv { margin-top: 40px; }
  .dx-pdp .dx-pdp-rv__head { align-items: flex-start; flex-direction: column; }
  .dx-pdp .dx-pdp-rv__summary { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .dx-pdp .dx-pdp-rv__score { padding: 0 0 20px; border-inline-end: 0; border-bottom: 1px solid var(--dx-pdp-line); }
  .dx-pdp .dx-pdp-rv__list { grid-template-columns: 1fr; }
  .dx-pdp .dx-pdp-rv__empty { align-items: flex-start; padding: 20px; }
}

/* ---------- Related products 2.0 ---------- */
.dx-pdp .dx-pdp-rel {
  margin: 72px 0 56px;
  padding-top: 56px;
  border-top: 1px solid var(--dx-pdp-line);
}

.dx-pdp .dx-pdp-rel__head {
  margin-bottom: 32px;
  text-align: start;
}

.dx-pdp .dx-pdp-rel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dx-pdp-accent);
}

.dx-pdp .dx-pdp-rel__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.dx-pdp .dx-pdp-rel__title {
  margin: 12px 0 0;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dx-pdp-text);
}

.dx-pdp .dx-pdp-rel__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.dx-pdp .dx-pdp-rel__item {
  min-width: 0;
}

@media (max-width: 1099.98px) {
  .dx-pdp .dx-pdp-rel__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Phones: one swipeable row, the next card peeks in */
@media (max-width: 767.98px) {
  .dx-pdp .dx-pdp-rel {
    margin: 48px 0 40px;
    padding-top: 40px;
  }

  .dx-pdp .dx-pdp-rel__head {
    margin-bottom: 22px;
  }

  .dx-pdp .dx-pdp-rel__grid {
    display: flex;
    gap: 12px;
    margin-inline: -15px;
    padding-inline: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .dx-pdp .dx-pdp-rel__grid::-webkit-scrollbar {
    display: none;
  }

  .dx-pdp .dx-pdp-rel__item {
    flex: 0 0 62%;
    scroll-snap-align: start;
  }
}

/* ---------- Gallery 2.0 (dx-pdp-gallery.jinja): native scroll-snap, direction-aware ---------- */
.dx-pdp .dx-gal {
  --dx-gal-thumb: 78px;
  --dx-gal-gap: 12px;
  --dx-gal-glass: rgba(14, 14, 14, .55);
  display: grid;
  gap: var(--dx-gal-gap);
  min-width: 0;
}

.dx-pdp .dx-gal.d-none {
  display: none;
}

.dx-pdp .dx-gal__stage {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  background: var(--dx-pdp-card);
  isolation: isolate;
}

.dx-pdp .dx-gal__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.dx-pdp .dx-gal__track::-webkit-scrollbar {
  display: none;
}

.dx-pdp .dx-gal__track:focus-visible {
  outline: 2px solid var(--dx-pdp-accent);
  outline-offset: -4px;
  border-radius: inherit;
}

.dx-pdp .dx-gal__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.dx-pdp .dx-gal__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: var(--dx-zx, 50%) var(--dx-zy, 50%);
  transition: transform .45s var(--dx-pdp-ease);
}

.dx-pdp .dx-gal__slide.is-video img {
  cursor: pointer;
}

/* Desktop hover zoom: the photo follows the pointer */
.dx-pdp .dx-gal__slide.is-zoom img {
  transform: scale(1.9);
  transition-duration: .2s;
}

/* ---- Buttons on the stage ---- */
.dx-pdp .dx-gal__nav,
.dx-pdp .dx-gal__expand,
.dx-pdp .dx-gal__play {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: var(--dx-gal-glass);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: opacity .3s, transform .3s var(--dx-pdp-ease), background-color .3s, border-color .3s, color .3s;
}

.dx-pdp .dx-gal__nav svg,
.dx-pdp .dx-gal__expand svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Prev sits at the reading start, next at the reading end; arrows point the way the photos move */
.dx-pdp .dx-gal__nav {
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
}

.dx-pdp .dx-gal__nav--prev {
  inset-inline-start: 16px;
}

.dx-pdp .dx-gal__nav--next {
  inset-inline-end: 16px;
}

[dir="rtl"] .dx-pdp .dx-gal__nav svg {
  transform: scaleX(-1);
}

.dx-pdp .dx-gal__nav:disabled {
  opacity: 0 !important;
  pointer-events: none;
}

.dx-pdp .dx-gal__nav:hover,
.dx-pdp .dx-gal__expand:hover,
.dx-pdp .dx-gal__play:hover {
  border-color: var(--dx-pdp-accent);
  background: var(--dx-pdp-accent);
  color: #111;
}

.dx-pdp .dx-gal__expand {
  top: 16px;
  inset-inline-end: 16px;
  width: 42px;
  height: 42px;
}

.dx-pdp .dx-gal__expand svg {
  width: 18px;
  height: 18px;
}

@media (hover: hover) and (pointer: fine) {
  .dx-pdp .dx-gal__nav,
  .dx-pdp .dx-gal__expand {
    opacity: 0;
  }

  .dx-pdp .dx-gal__nav--prev {
    transform: translateX(-8px);
  }

  .dx-pdp .dx-gal__nav--next {
    transform: translateX(8px);
  }

  [dir="rtl"] .dx-pdp .dx-gal__nav--prev {
    transform: translateX(8px);
  }

  [dir="rtl"] .dx-pdp .dx-gal__nav--next {
    transform: translateX(-8px);
  }

  .dx-pdp .dx-gal__stage:hover .dx-gal__nav,
  .dx-pdp .dx-gal__stage:hover .dx-gal__expand,
  .dx-pdp .dx-gal__stage:focus-within .dx-gal__nav,
  .dx-pdp .dx-gal__stage:focus-within .dx-gal__expand {
    opacity: 1;
    transform: none;
  }
}

/* Touch screens swipe; arrows would only cover the photo */
@media (hover: none) {
  .dx-pdp .dx-gal__nav {
    display: none;
  }
}

/* ---- Counter + progress ---- */
.dx-pdp .dx-gal__count {
  position: absolute;
  bottom: 16px;
  inset-inline-start: 16px;
  z-index: 2;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: var(--dx-gal-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  pointer-events: none;
}

.dx-pdp .dx-gal__count b {
  color: #fff;
  font-weight: 600;
}

.dx-pdp .dx-gal__bar {
  position: absolute;
  inset-inline: 16px;
  bottom: 0;
  z-index: 2;
  display: none;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, .18);
  pointer-events: none;
}

.dx-pdp .dx-gal__bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: calc(var(--dx-gal-i, 0) * 100% / var(--dx-gal-n, 1));
  width: calc(100% / var(--dx-gal-n, 1));
  border-radius: inherit;
  background: var(--dx-pdp-accent);
  transition: inset-inline-start .4s var(--dx-pdp-ease);
}

/* ---- Video slides ---- */
.dx-pdp .dx-gal__play {
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
}

.dx-pdp .dx-gal__play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px; /* the play triangle points right in every language */
  fill: currentColor;
}

.dx-pdp .dx-gal__video {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* ---- Thumbnails ---- */
.dx-pdp .dx-gal__thumbs {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.dx-pdp .dx-gal__thumbs::-webkit-scrollbar {
  display: none;
}

.dx-pdp .dx-gal__thumb {
  position: relative;
  flex: 0 0 var(--dx-gal-thumb);
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--dx-pdp-card);
  opacity: .5;
  cursor: pointer;
  transition: opacity .3s;
}

.dx-pdp .dx-gal__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--dx-pdp-line);
  border-radius: inherit;
  transition: border-color .3s, box-shadow .3s;
}

.dx-pdp .dx-gal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--dx-pdp-ease);
}

.dx-pdp .dx-gal__thumb:hover {
  opacity: .85;
}

.dx-pdp .dx-gal__thumb:hover img {
  transform: scale(1.06);
}

.dx-pdp .dx-gal__thumb.is-active {
  opacity: 1;
}

.dx-pdp .dx-gal__thumb.is-active::after {
  border-color: var(--dx-pdp-accent);
  box-shadow: inset 0 0 0 1px var(--dx-pdp-accent);
}

.dx-pdp .dx-gal__thumb.is-video::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  margin: -7px 0 0 -4px;
  border: 7px solid transparent;
  border-left: 11px solid #fff;
  border-right: 0;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .6));
}

.dx-pdp .dx-gal.is-single .dx-gal__nav,
.dx-pdp .dx-gal.is-single .dx-gal__count,
.dx-pdp .dx-gal.is-single .dx-gal__bar,
.dx-pdp .dx-gal.is-single .dx-gal__thumbs {
  display: none;
}

/* Theme settings: photo frame shape */
.dx-pdp .dx-gal--square .dx-gal__stage,
.dx-pdp .dx-gal--square .dx-gal__thumb {
  aspect-ratio: 1 / 1;
}

/* "Photo's own shape": dx-product-page.js reads the first photo's ratio */
.dx-pdp .dx-gal--natural .dx-gal__stage {
  aspect-ratio: var(--dx-gal-ratio, 4 / 5);
}

/* Desktop: thumbnail rail on the reading-start side of the photo (unless set to "under the photo") */
@media (min-width: 992px) {
  .dx-pdp .dx-gal:not(.is-single):not(.dx-gal--thumbs-below) {
    grid-template-columns: var(--dx-gal-thumb) minmax(0, 1fr);
    align-items: start;
  }

  .dx-pdp .dx-gal:not(.is-single):not(.dx-gal--thumbs-below) .dx-gal__thumbs {
    grid-row: 1;
    grid-column: 1;
    flex-direction: column;
    height: 0;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .dx-pdp .dx-gal:not(.dx-gal--thumbs-below) .dx-gal__thumb {
    flex: 0 0 auto;
    width: 100%;
  }

  .dx-pdp .dx-gal--thumbs-below {
    --dx-gal-thumb: 88px;
  }
}

/* Phones: photo runs edge to edge, progress bar replaces the arrows */
@media (max-width: 575.98px) {
  .dx-pdp .dx-gal {
    --dx-gal-thumb: 60px;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
  }

  .dx-pdp .dx-gal__stage {
    border-radius: 0;
  }

  .dx-pdp .dx-gal__thumbs {
    padding-inline: 16px;
    gap: 8px;
  }

  .dx-pdp .dx-gal__thumb {
    border-radius: 10px;
  }

  .dx-pdp .dx-gal__bar {
    display: block;
    bottom: 14px;
    inset-inline: auto 16px;
    width: 72px;
  }

  .dx-pdp .dx-gal__count {
    bottom: 10px;
  }

  .dx-pdp .dx-gal--no-phone-thumbs .dx-gal__thumbs {
    display: none;
  }

  .dx-pdp .dx-gal__expand {
    top: 12px;
    inset-inline-end: 12px;
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dx-pdp .dx-gal__track,
  .dx-pdp .dx-gal__thumbs {
    scroll-behavior: auto;
  }

  .dx-pdp .dx-gal__slide img,
  .dx-pdp .dx-gal__bar i {
    transition: none;
  }
}
