/*
 * Product page top half, v2 (gallery + buy box).
 * Only loaded for products listed in IFT_PDP2_IDS (body class "ift-pdp2"); remove the ID to go back to the old layout.
 * Markup: catalog/product.tpl, _partials/product-prices.tpl, product-variants.tpl, afterpayofficial hook/product.tpl.
 */
body#product.ift-pdp2 {
  --p2-ink: #0f172a;
  --p2-text: #334155;
  --p2-muted: #64748b;
  --p2-line: #e2e8f0;
  --p2-line-strong: #cbd5e1;
  --p2-soft: #f8fafc;
  --p2-green: #15803d;
  --p2-amber: #b45309;
  --p2-red: #b91c1c;
}

/* ---------- Gallery ---------- */
body#product.ift-pdp2 .col-product-image .product-cover {
  border: 1px solid var(--p2-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 0;
}
body#product.ift-pdp2 .images-container-left .col-left-product-thumbs {
  position: relative;
  padding-right: 12px;
}
body#product.ift-pdp2 #product-images-thumbs.swiper-container-vertical {
  position: absolute;
  top: 0;
  left: 0;
  right: 12px;
  height: 100%;
  margin: 0;
}
body#product.ift-pdp2 #product-images-thumbs.swiper-container-vertical .thumb-container,
body#product.ift-pdp2 #product-images-thumbs.swiper-container-horizontal .thumb-container {
  padding: 0;
  height: auto;
}
body#product.ift-pdp2 #product-images-thumbs.swiper-container-horizontal {
  margin: 10px 0 0;
}
body#product.ift-pdp2 #product-images-thumbs .thumb-container img.thumb,
body#product.ift-pdp2 #product-images-thumbs.swiper-container-vertical .img-fluid {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--p2-line);
  border-radius: 8px;
  opacity: 1;
  cursor: pointer;
  transition: border-color .15s ease;
}
body#product.ift-pdp2 #product-images-thumbs .swiper-slide:hover img.thumb {
  border-color: var(--p2-line-strong);
}
body#product.ift-pdp2 #product-images-thumbs .swiper-slide-thumb-active img.thumb {
  border-color: var(--p2-ink);
  box-shadow: inset 0 0 0 1px var(--p2-ink);
}
body#product.ift-pdp2 #product-images-thumbs.swiper-container-vertical .swiper-button-arrow {
  height: 26px;
  background: rgba(255, 255, 255, .92);
  color: var(--p2-ink);
}
body#product.ift-pdp2 #product-images-thumbs.swiper-container-vertical .swiper-button-arrow:before {
  font-size: 1.4rem;
  line-height: 26px;
}
body#product.ift-pdp2 #product-images-thumbs.swiper-container-vertical:hover .swiper-button-prev { top: 0; }
body#product.ift-pdp2 #product-images-thumbs.swiper-container-vertical:hover .swiper-button-next { bottom: 0; }
body#product.ift-pdp2 .product-cover .expander {
  right: 12px;
  bottom: 12px;
}
body#product.ift-pdp2 .product-cover .expander span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--p2-line);
  border-radius: 8px;
  background: #fff;
  color: var(--p2-ink);
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
body#product.ift-pdp2 .product-cover .swiper-button-inner-prev,
body#product.ift-pdp2 .product-cover .swiper-button-inner-next {
  width: 36px;
  height: 36px;
  border: 1px solid var(--p2-line);
  border-radius: 50%;
  background: #fff;
  color: var(--p2-ink);
}
@media (max-width: 767.98px) {
  body#product.ift-pdp2 .images-container-left > .row > .col-left-product-cover {
    order: 1;
    flex: 0 0 100%;
    max-width: 100%;
  }
  body#product.ift-pdp2 .images-container-left > .row > .col-left-product-thumbs {
    order: 2;
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
  }
  body#product.ift-pdp2 .images-container-d-leftd .product-cover {
    margin-bottom: 0;
  }
}

/* Gallery styles other than the vertical strip (IFT_PDP2_GALLERY / ?ift_gal=) */
body#product.ift-pdp2 .ift-gal {
  position: relative;
}
body#product.ift-pdp2 .ift-gal__thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
body#product.ift-pdp2 .ift-gal__thumb,
body#product.ift-pdp2 .ift-gal__tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--p2-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease;
}
body#product.ift-pdp2 .ift-gal__thumb { aspect-ratio: 1 / 1; }
body#product.ift-pdp2 .ift-gal__tile { aspect-ratio: 4 / 5; border-radius: 10px; cursor: zoom-in; }
body#product.ift-pdp2 .ift-gal__thumb img,
body#product.ift-pdp2 .ift-gal__tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body#product.ift-pdp2 .ift-gal__thumb:hover,
body#product.ift-pdp2 .ift-gal__tile:hover {
  border-color: var(--p2-line-strong);
}
body#product.ift-pdp2 .ift-gal__thumb.is-active {
  border-color: var(--p2-ink);
  box-shadow: inset 0 0 0 1px var(--p2-ink);
}
body#product.ift-pdp2 .ift-gal__thumb:focus-visible,
body#product.ift-pdp2 .ift-gal__tile:focus-visible,
body#product.ift-pdp2 .ift-gal__dot:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
body#product.ift-pdp2 .ift-gal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
body#product.ift-pdp2 .ift-gal__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .55);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
body#product.ift-pdp2 .ift-gal__dots {
  display: none;
  justify-content: center;
  gap: 2px;
  margin-top: 8px;
}
body#product.ift-pdp2 .ift-gal__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
body#product.ift-pdp2 .ift-gal__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p2-line-strong);
  transition: background-color .15s ease, width .15s ease;
}
body#product.ift-pdp2 .ift-gal__dot.is-active::before {
  width: 20px;
  border-radius: 4px;
  background: var(--p2-ink);
}
body#product.ift-pdp2 .ift-gal--single .ift-gal__dots {
  display: flex;
}
body#product.ift-pdp2 .ift-gal--single .product-cover .swiper-button-arrow {
  opacity: 1;
  visibility: visible;
}
/* Mosaic: big first photo, two stacked beside it, a row of three underneath */
body#product.ift-pdp2 .ift-gal--mosaic .ift-gal__grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
body#product.ift-pdp2 .ift-gal--mosaic .ift-gal__tile { grid-column: span 2; }
body#product.ift-pdp2 .ift-gal--mosaic .ift-gal__tile:first-child {
  aspect-ratio: auto;
  grid-column: 1 / 5;
  grid-row: 1 / 3;
}
body#product.ift-pdp2 .ift-gal--mosaic .ift-gal__tile:nth-child(2) { grid-column: 5 / 7; grid-row: 1; }
body#product.ift-pdp2 .ift-gal--mosaic .ift-gal__tile:nth-child(3) { grid-column: 5 / 7; grid-row: 2; }
body#product.ift-pdp2 .ift-gal--mosaic .ift-gal__tile:first-child:last-child { grid-column: 1 / -1; }
body#product.ift-pdp2 .ift-gal--mosaic .ift-gal__tile:nth-child(2):last-child { grid-row: 1 / 3; aspect-ratio: auto; }

/* Hero: one large photo, three tiles underneath */
body#product.ift-pdp2 .ift-gal--hero .ift-gal__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body#product.ift-pdp2 .ift-gal--hero .ift-gal__tile:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 1100 / 1300;
}

/* Stacked: every photo full size in one column */
body#product.ift-pdp2 .ift-gal--stack .ift-gal__grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
body#product.ift-pdp2 .ift-gal--stack .ift-gal__tile {
  aspect-ratio: 1100 / 1422;
}
body#product.ift-pdp2 .ift-gal--stack .ift-gal__tile img {
  object-fit: contain;
}

/* Wide: no left column; photos 7/12, buy box 5/12 and kept in view while the photos scroll */
@media (min-width: 768px) {
  body#product.ift-pdp2-wide .product-info-row > .col-product-image {
    padding-right: 28px;
  }
  body#product.ift-pdp2-wide #col-product-info {
    position: sticky;
    top: var(--ift-pdp2-sticky-top, 16px);
  }
}

@media (min-width: 768px) {
  body#product.ift-pdp2 .ift-gal--mosaic .ift-gal__cover,
  body#product.ift-pdp2 .ift-gal--hero .ift-gal__cover,
  body#product.ift-pdp2 .ift-gal--stack .ift-gal__cover,
  body#product.ift-pdp2 .ift-gal--grid .ift-gal__cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
@media (max-width: 767.98px) {
  body#product.ift-pdp2 .ift-gal--grid .ift-gal__grid,
  body#product.ift-pdp2 .ift-gal--hero .ift-gal__grid,
  body#product.ift-pdp2 .ift-gal--stack .ift-gal__grid,
  body#product.ift-pdp2 .ift-gal--mosaic .ift-gal__grid {
    display: none;
  }
  body#product.ift-pdp2 .ift-gal--grid .ift-gal__dots,
  body#product.ift-pdp2 .ift-gal--hero .ift-gal__dots,
  body#product.ift-pdp2 .ift-gal--stack .ift-gal__dots,
  body#product.ift-pdp2 .ift-gal--mosaic .ift-gal__dots {
    display: flex;
  }
}

/* ---------- Brand, title, SKU / stock ---------- */
body#product.ift-pdp2 .ift-pdp2-head {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
body#product.ift-pdp2 .ift-pdp2-brand {
  margin: 0 0 10px;
  line-height: 0;
}
body#product.ift-pdp2 .ift-pdp2-brand a {
  display: inline-block;
}
body#product.ift-pdp2 .ift-pdp2-brand img {
  height: 28px;
  width: auto;
  max-width: 150px;
}
body#product.ift-pdp2 .ift-pdp2-brand__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--p2-ink);
  line-height: 1.4;
}
body#product.ift-pdp2 #col-product-info h1.page-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--p2-ink);
}
body#product.ift-pdp2 #col-product-info h1.page-title::after,
body#product.ift-pdp2 #col-product-info h1.page-title::before {
  content: none !important;
  display: none !important;
}
body#product.ift-pdp2 #col-product-info h1.page-title span {
  font: inherit;
  color: inherit;
}
body#product.ift-pdp2 .ift-pdp2-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--p2-muted);
}
body#product.ift-pdp2 .ift-pdp2-sku span {
  color: var(--p2-text);
  font-weight: 600;
}
body#product.ift-pdp2 .ift-pdp2-stock {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  font-size: 13px !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--p2-green);
}
body#product.ift-pdp2 .ift-pdp2-stock::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
body#product.ift-pdp2 .ift-pdp2-stock.is-low,
body#product.ift-pdp2 .ift-pdp2-stock.is-order { color: var(--p2-amber); }
body#product.ift-pdp2 .ift-pdp2-stock.is-out { color: var(--p2-red); }
body#product.ift-pdp2 .ift-pdp2-stock .available-date { font-weight: 400; color: var(--p2-muted); }

/* ---------- Price ---------- */
body#product.ift-pdp2 .ift-pdp2-prices {
  margin: 0;
  padding: 0;
  border: 0;
}
body#product.ift-pdp2 .ift-pdp2-pricerow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 14px;
}
body#product.ift-pdp2 .ift-pdp2-pricerow .current-price,
body#product.ift-pdp2 .ift-pdp2-pricerow .current-price-value {
  display: inline;
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--p2-ink);
}
body#product.ift-pdp2 .ift-pdp2-tax {
  font-size: 13px;
  color: var(--p2-muted);
}
body#product.ift-pdp2 .ift-pdp2-pricerow .product-discount {
  margin: 0;
}
body#product.ift-pdp2 .ift-pdp2-pricerow .regular-price {
  font-size: 16px;
  font-weight: 500;
  color: var(--p2-muted);
  text-decoration: line-through;
}
body#product.ift-pdp2 .ift-pdp2-save {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 4px;
  background: #fef2f2;
  color: var(--p2-red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
body#product.ift-pdp2 .ift-pdp2-delivery {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--p2-muted);
}

/* ---------- Pay later (Afterpay + Zip): one quiet line under the price ---------- */
body#product.ift-pdp2 .ift-paylater {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: -4px 0 16px;
}
body#product.ift-pdp2 .ift-paylater .AfterpaySimulator {
  min-height: 0;
  margin: 0;
}
body#product.ift-pdp2 .ift-paylater .ift-paylater__row--afterpay {
  margin-right: 14px;
  padding-right: 14px;
  border-right: 1px solid var(--p2-line);
}
body#product.ift-pdp2 .ift-paylater__btn,
body#product.ift-pdp2 .ift-paylater [data-zm-asset="productwidget"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  color: var(--p2-text);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
body#product.ift-pdp2 .ift-paylater__btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
body#product.ift-pdp2 .ift-paylater__logo {
  display: flex;
  align-items: center;
}
body#product.ift-pdp2 .ift-paylater__logo img {
  display: block;
  width: 64px;
  height: auto;
}
body#product.ift-pdp2 .ift-paylater__text strong {
  color: var(--p2-ink);
  font-weight: 700;
}
body#product.ift-pdp2 .ift-paylater__text,
body#product.ift-pdp2 .ift-paylater [data-zm-asset="productwidget"]::before {
  text-decoration: underline dotted var(--p2-line-strong);
  text-underline-offset: 3px;
}
body#product.ift-pdp2 .ift-paylater__btn:hover .ift-paylater__text,
body#product.ift-pdp2 .ift-paylater [data-zm-asset="productwidget"]:hover::before {
  text-decoration-color: currentColor;
}
body#product.ift-pdp2 .ift-paylater__more {
  display: none;
}

/* Zip renders its own markup into this div once its script loads. Its text is hidden behind our short label,
   but it stays on top (invisible) because Zip opens its popup from a click on .zip-container. */
body#product.ift-pdp2 .ift-paylater [data-zm-asset="productwidget"] {
  min-height: 20px;
  padding-left: 38px;
  background: url(../img/pay/zip.png) no-repeat 0 center / 30px auto;
}
body#product.ift-pdp2 .ift-paylater [data-zm-asset="productwidget"]::before {
  content: "Pay later";
}
body#product.ift-pdp2 .ift-paylater [data-zm-asset="productwidget"] .zip-container {
  position: absolute !important;
  inset: 0;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  overflow: hidden;
  cursor: pointer;
}
body#product.ift-pdp2 .ift-paylater > script,
body#product.ift-pdp2 .ift-paylater > style,
body#product.ift-pdp2 .ift-paylater > link {
  display: none;
}

/* Afterpay info dialog (Afterpay's own hosted page) */
.ift-ap-dialog {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, .55);
}
.ift-ap-dialog__panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: min(640px, calc(100vh - 32px));
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.ift-ap-dialog__panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.ift-ap-dialog__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Short description ---------- */
body#product.ift-pdp2 .product-information > .product-description.rte-content {
  margin-top: 0;
}
body#product.ift-pdp2 #main-product-wrapper .product-shortdesc-divider {
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: var(--p2-line);
}
body#product.ift-pdp2 #main-product-wrapper .product-shortdesc-divider::before,
body#product.ift-pdp2 #main-product-wrapper .product-shortdesc-divider::after {
  content: none;
  display: none;
}

/* ---------- Options (e.g. hard drive) ---------- */
body#product.ift-pdp2 .product-variants {
  margin: 0 0 6px;
}
body#product.ift-pdp2 .product-variants-item {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 0 !important;
}
body#product.ift-pdp2 .product-variants-item > .form-control-label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--p2-ink);
  text-transform: none;
  letter-spacing: 0;
}
body#product.ift-pdp2 .ift-pdp2-opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
body#product.ift-pdp2 .ift-pdp2-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 58px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--p2-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease;
}
body#product.ift-pdp2 .ift-pdp2-opt:hover {
  border-color: var(--p2-line-strong);
}
body#product.ift-pdp2 .ift-pdp2-opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
body#product.ift-pdp2 .ift-pdp2-opt.is-selected,
body#product.ift-pdp2 .ift-pdp2-opt:has(input:checked) {
  border-color: var(--p2-ink);
  box-shadow: inset 0 0 0 1px var(--p2-ink);
}
body#product.ift-pdp2 .ift-pdp2-opt:has(input:focus-visible) {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
body#product.ift-pdp2 .ift-pdp2-opt__name,
body#product.ift-pdp2 .ift-pdp2-opt__price {
  display: block;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
body#product.ift-pdp2 .ift-pdp2-opt__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--p2-ink);
}
body#product.ift-pdp2 .ift-pdp2-opt__price {
  font-size: 13px;
  line-height: 1.3;
  color: var(--p2-muted);
}
body#product.ift-pdp2 .ift-pdp2-opt.attribute-not-in-stock .ift-pdp2-opt__name {
  color: var(--p2-muted);
}
body#product.ift-pdp2 .product-variants .custom-select2 {
  max-width: none;
}
body#product.ift-pdp2 .product-variants select.form-control-select {
  height: 46px;
  border: 1px solid var(--p2-line-strong);
  border-radius: 8px;
  font-size: 14px;
  color: var(--p2-ink);
}

/* ---------- Quantity + Add to cart ---------- */
body#product.ift-pdp2 .product-add-to-cart {
  padding-top: 4px !important;
}
body#product.ift-pdp2 .product-add-to-cart .product-quantity {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px 10px;
  margin: 0;
}
body#product.ift-pdp2 .product-add-to-cart .product-quantity > .col {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
}
body#product.ift-pdp2 .product-add-to-cart .product-quantity > .col-add-btn {
  flex: 1 1 calc(100% - 134px);
}
body#product.ift-pdp2 .product-add-to-cart .qty,
body#product.ift-pdp2 .product-add-to-cart .bootstrap-touchspin {
  position: relative;
  display: block;
  width: 124px;
  height: 52px;
  margin: 0;
}
body#product.ift-pdp2 .product-add-to-cart #quantity_wanted {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 38px;
  border: 1px solid var(--p2-line-strong);
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  color: var(--p2-ink);
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
body#product.ift-pdp2 .product-add-to-cart #quantity_wanted::-webkit-inner-spin-button,
body#product.ift-pdp2 .product-add-to-cart #quantity_wanted::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
body#product.ift-pdp2 .product-add-to-cart .input-group-btn-vertical {
  position: static;
  display: block;
  width: 0;
}
body#product.ift-pdp2 .product-add-to-cart .input-group-btn-vertical .btn-touchspin {
  position: absolute;
  top: 5px;
  bottom: 5px;
  width: 34px;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--p2-ink);
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
body#product.ift-pdp2 .product-add-to-cart .input-group-btn-vertical .btn-touchspin:hover {
  background: var(--p2-soft);
}
body#product.ift-pdp2 .product-add-to-cart .bootstrap-touchspin-down { left: 4px; }
body#product.ift-pdp2 .product-add-to-cart .bootstrap-touchspin-up { right: 4px; }
body#product.ift-pdp2 .product-add-to-cart .btn-touchspin i {
  position: static;
  font-size: 12px;
}
body#product.ift-pdp2 .product-add-to-cart .touchspin-up::before { content: "\f067"; }
body#product.ift-pdp2 .product-add-to-cart .touchspin-down::before { content: "\f068"; }

body#product.ift-pdp2 .product-add-to-cart .add,
body#product.ift-pdp2 .product-add-to-cart .add-to-cart {
  width: 100%;
}
body#product.ift-pdp2 .product-add-to-cart .add-to-cart {
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--p2-ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color .15s ease;
}
body#product.ift-pdp2 .product-add-to-cart .add-to-cart:hover,
body#product.ift-pdp2 .product-add-to-cart .add-to-cart:focus {
  background: #1e293b;
  color: #fff;
}
body#product.ift-pdp2 .product-add-to-cart .add-to-cart:disabled {
  background: #94a3b8;
}
body#product.ift-pdp2 .product-add-to-cart .add-to-cart .bag-icon {
  margin-right: 4px;
}

/* Wishlist + compare: quiet text actions on their own line */
body#product.ift-pdp2 .product-add-to-cart .col-add-wishlist { order: 3; }
body#product.ift-pdp2 .product-add-to-cart .col-add-compare { order: 4; }
body#product.ift-pdp2 .product-add-to-cart .col-add-wishlist .btn,
body#product.ift-pdp2 .product-add-to-cart .col-add-compare .btn {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0 14px 0 0;
  padding: 4px 2px !important;
  border: 0;
  border-radius: 4px;
  background: none;
  box-shadow: none;
  color: var(--p2-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
body#product.ift-pdp2 .product-add-to-cart .col-add-wishlist .btn:hover,
body#product.ift-pdp2 .product-add-to-cart .col-add-compare .btn:hover {
  color: var(--p2-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
body#product.ift-pdp2 .product-add-to-cart .col-add-wishlist .btn i,
body#product.ift-pdp2 .product-add-to-cart .col-add-compare .btn i {
  font-size: 14px;
}
body#product.ift-pdp2 .product-add-to-cart .col-add-wishlist .btn::after {
  content: "Save to wishlist";
}
body#product.ift-pdp2 .product-add-to-cart .col-add-wishlist .btn.iqitwishlist-added::after {
  content: "Saved to wishlist";
}
body#product.ift-pdp2 .product-add-to-cart .col-add-compare .ift-cmp-pdpbtn__txt {
  font-size: 13px;
}

/* PayPal: no empty floats or blank banner under the button */
body#product.ift-pdp2 .product-add-to-cart div:has(> [paypal-messaging-banner]) {
  display: none;
}
body#product.ift-pdp2 .product-add-to-cart [data-container-express-checkout],
body#product.ift-pdp2 .product-add-to-cart [data-container-bnpl] {
  display: inline-block !important;
  float: none !important;
  width: calc(50% - 5px);
  margin: 12px 0 0 !important;
  vertical-align: top;
}
body#product.ift-pdp2 .product-add-to-cart [data-container-bnpl] {
  margin-left: 6px !important;
}
body#product.ift-pdp2 [paypal-button-container],
body#product.ift-pdp2 [paypal-bnpl-button-container] {
  width: 100%;
  max-width: none !important;
}
body#product.ift-pdp2 .product-add-to-cart > .clearfix {
  display: none;
}
body#product.ift-pdp2 [data-container-express-checkout]:not(:has([paypal-button-container] > *)),
body#product.ift-pdp2 [data-container-bnpl]:not(:has([paypal-bnpl-button-container] > *)) {
  display: none;
}
body#product.ift-pdp2 .product-minimal-quantity:empty,
body#product.ift-pdp2 .product-discounts:empty {
  display: none;
}

@media (max-width: 767.98px) {
  body#product.ift-pdp2 #col-product-info h1.page-title {
    font-size: 20px;
  }
  body#product.ift-pdp2 .ift-pdp2-pricerow .current-price,
  body#product.ift-pdp2 .ift-pdp2-pricerow .current-price-value {
    font-size: 30px;
  }
  body#product.ift-pdp2 .ift-pdp2-opts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Stage gallery (IFT_PDP2_GALLERY = stage-left | stage-below | stage-dots) ----------
   Each photo is zoomed so the product fills the frame (bounding box from ProductController::pdp2Frames),
   instead of showing the white padding baked into the portrait image files. */
body#product.ift-pdp2 .ift-st {
  --A: 1;
  position: relative;
}
body#product.ift-pdp2-wide .ift-st {
  --A: .8;
}
body#product.ift-pdp2 .ift-st .ift-gal__cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
body#product.ift-pdp2 .ift-st__main {
  min-width: 0;
}
body#product.ift-pdp2 .ift-st__stage {
  position: relative;
  border: 1px solid var(--p2-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
body#product.ift-pdp2 .ift-st__track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  outline: none;
}
body#product.ift-pdp2 .ift-st__track::-webkit-scrollbar {
  display: none;
}
body#product.ift-pdp2 .ift-st__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  overflow: hidden;
}
body#product.ift-pdp2 .ift-st__slide::before {
  content: "";
  display: block;
  padding-top: calc(var(--A) * 100%);
}
body#product.ift-pdp2 .ift-st__zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
}
body#product.ift-pdp2 .ift-st img.ift-fr,
body#product.ift-pdp2 .ift-tl img.ift-fr,
body#product.ift-pdp2 .ift-tlx img.ift-fr {
  --f: .86;
  --D: min(2.6, calc(var(--f) * min(1 / var(--bw), var(--A) / (var(--bh) * var(--r)))));
  position: absolute;
  display: block;
  width: calc(var(--D) * 100%);
  max-width: none;
  height: auto;
  left: calc((0.5 - var(--cx) * var(--D)) * 100%);
  top: calc((var(--A) / 2 - var(--cy) * var(--D) * var(--r)) / var(--A) * 100%);
}
body#product.ift-pdp2 .ift-st img.ift-fr--plain,
body#product.ift-pdp2 .ift-tl img.ift-fr--plain,
body#product.ift-pdp2 .ift-tlx img.ift-fr--plain {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body#product.ift-pdp2 .ift-st__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 1px solid var(--p2-line);
  border-radius: 50%;
  background: #fff;
  color: var(--p2-ink);
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease;
}
body#product.ift-pdp2 .ift-st__arrow--prev { left: 14px; }
body#product.ift-pdp2 .ift-st__arrow--next { right: 14px; }
body#product.ift-pdp2 .ift-st__stage:hover .ift-st__arrow,
body#product.ift-pdp2 .ift-st__arrow:focus-visible { opacity: 1; }
body#product.ift-pdp2 .ift-st__stage:hover .ift-st__arrow:disabled { opacity: .35; cursor: default; }
body#product.ift-pdp2 .ift-st__count {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  color: var(--p2-muted);
  pointer-events: none;
}
body#product.ift-pdp2 .ift-st__zoomhint {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--p2-line);
  border-radius: 8px;
  background: #fff;
  color: var(--p2-ink);
  pointer-events: none;
}
body#product.ift-pdp2 .ift-st__thumb {
  --A: 1;
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--p2-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease;
}
body#product.ift-pdp2 .ift-st__thumb::before {
  content: "";
  display: block;
  padding-top: 100%;
}
body#product.ift-pdp2 .ift-st__thumb img.ift-fr { --f: .84; }
body#product.ift-pdp2 .ift-st__thumb:hover { border-color: var(--p2-line-strong); }
body#product.ift-pdp2 .ift-st__thumb.is-active {
  border-color: var(--p2-ink);
  box-shadow: inset 0 0 0 1px var(--p2-ink);
}
body#product.ift-pdp2 .ift-st__thumb:focus-visible,
body#product.ift-pdp2 .ift-st__dot:focus-visible,
body#product.ift-pdp2 .ift-st__arrow:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
body#product.ift-pdp2 .ift-st__dots {
  display: none;
  justify-content: center;
  gap: 2px;
  margin-top: 8px;
}
body#product.ift-pdp2 .ift-st__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
body#product.ift-pdp2 .ift-st__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--p2-line-strong);
  transition: width .15s ease, background-color .15s ease;
}
body#product.ift-pdp2 .ift-st__dot.is-active::before {
  width: 20px;
  background: var(--p2-ink);
}

/* thumbnails down the left */
@media (min-width: 768px) {
  body#product.ift-pdp2 .ift-st--left {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }
  body#product.ift-pdp2 .ift-st--left .ift-st__main { grid-column: 2; grid-row: 1; }
  body#product.ift-pdp2 .ift-st--left .ift-st__thumbs {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 0;
    min-height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
  }
  body#product.ift-pdp2 .ift-st--left .ift-st__thumbs::-webkit-scrollbar { display: none; }
  body#product.ift-pdp2 .ift-st--left .ift-st__thumb { flex: 0 0 auto; }
}
/* thumbnails underneath */
body#product.ift-pdp2 .ift-st--below .ift-st__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 6);
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
body#product.ift-pdp2 .ift-st--below .ift-st__thumbs::-webkit-scrollbar { display: none; }
body#product.ift-pdp2 .ift-st--below .ift-st__thumb { border-radius: 8px; }
/* dots only */
body#product.ift-pdp2 .ift-st--dots .ift-st__thumbs { display: none; }
body#product.ift-pdp2 .ift-st--dots .ift-st__dots { display: flex; }

@media (max-width: 767.98px) {
  body#product.ift-pdp2 .ift-st { --A: 1; }
  body#product.ift-pdp2 .ift-st .ift-st__thumbs { display: none; }
  body#product.ift-pdp2 .ift-st .ift-st__dots { display: flex; }
  body#product.ift-pdp2 .ift-st__arrow { display: none; }
}

/* two photos side by side */
@media (min-width: 768px) {
  body#product.ift-pdp2 .ift-st--duo { --A: 1.2; }
  body#product.ift-pdp2 .ift-st--duo .ift-st__slide { flex-basis: 50%; }
  body#product.ift-pdp2 .ift-st--duo .ift-st__slide + .ift-st__slide { border-left: 1px solid var(--p2-line); }
  body#product.ift-pdp2 .ift-st--duo .ift-st__thumbs { display: none; }
  body#product.ift-pdp2 .ift-st--duo .ift-st__dots { display: flex; }
}

/* ---------- Studio (stage-studio): soft grey backdrop, magnifier under the mouse ---------- */
body#product.ift-pdp2 .ift-st--studio .ift-st__stage {
  border: 0;
  border-radius: 16px;
  background: #f4f4f5;
}
body#product.ift-pdp2 .ift-st--studio .ift-st__zoom,
body#product.ift-pdp2 .ift-st--studio .ift-st__thumb {
  background: transparent;
}
body#product.ift-pdp2 .ift-st--studio img.ift-fr {
  mix-blend-mode: multiply;
}
body#product.ift-pdp2 .ift-st--studio .ift-st__slide img.ift-fr {
  transition: transform .18s ease-out;
}
body#product.ift-pdp2 .ift-st--studio .ift-st__zoomhint,
body#product.ift-pdp2 .ift-st--studio .ift-st__arrow {
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}
body#product.ift-pdp2 .ift-st--studio .ift-st__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, 72px);
  gap: 8px;
  margin-top: 10px;
}
body#product.ift-pdp2 .ift-st--studio .ift-st__thumb {
  border: 0;
  border-radius: 10px;
  background: #f4f4f5;
}
body#product.ift-pdp2 .ift-st--studio .ift-st__thumb.is-active {
  box-shadow: inset 0 0 0 2px var(--p2-ink);
}

/* ---------- Kit (stage-kit): labelled list of what's in the box beside the photo ---------- */
body#product.ift-pdp2 .ift-st--kit .ift-st__thumbs,
body#product.ift-pdp2 .ift-st--kit .ift-st__dots { display: none; }
body#product.ift-pdp2 .ift-st--kit .ift-st__arrow { opacity: 1; }
body#product.ift-pdp2 .ift-st--kit .ift-st__arrow:disabled { opacity: .35; cursor: default; }
body#product.ift-pdp2 .ift-st--kit.is-part .ift-st__count,
body#product.ift-pdp2 .ift-st--kit.is-part .ift-st__zoomhint { display: none; }
body#product.ift-pdp2 .ift-st__partbox { cursor: default; }
body#product.ift-pdp2 .ift-st__partcap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--p2-text);
  background: rgba(255, 255, 255, .94);
  border-top: 1px solid var(--p2-line);
}
body#product.ift-pdp2 .ift-st__partcap strong { color: var(--p2-ink); }
body#product.ift-pdp2 .ift-st__partref { display: block; color: var(--p2-muted); font-size: 12px; }
body#product.ift-pdp2 .ift-st__partcap a {
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--p2-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body#product.ift-pdp2 .ift-kit__head {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--p2-muted);
}
body#product.ift-pdp2 .ift-kit__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body#product.ift-pdp2 .ift-kit__part {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--p2-line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease;
}
body#product.ift-pdp2 .ift-kit__part:hover { border-color: var(--p2-line-strong); }
body#product.ift-pdp2 .ift-kit__part.is-active {
  border-color: var(--p2-ink);
  box-shadow: inset 0 0 0 1px var(--p2-ink);
}
body#product.ift-pdp2 .ift-kit__part:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
body#product.ift-pdp2 .ift-kit__img {
  --A: 1;
  position: relative;
  flex: 0 0 46px;
  height: 46px;
  overflow: hidden;
}
body#product.ift-pdp2 .ift-kit__img img.ift-fr { --f: .9; }
body#product.ift-pdp2 .ift-kit__txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
}
body#product.ift-pdp2 .ift-kit__name { font-weight: 600; color: var(--p2-ink); }
body#product.ift-pdp2 .ift-kit__qty { font-weight: 700; }
body#product.ift-pdp2 .ift-kit__sub {
  font-size: 11.5px;
  color: var(--p2-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 768px) {
  body#product.ift-pdp2 .ift-st--kit {
    display: grid;
    grid-template-columns: 214px minmax(0, 1fr);
    gap: 14px;
  }
  body#product.ift-pdp2 .ift-st--kit .ift-st__main { grid-column: 2; grid-row: 1; }
  body#product.ift-pdp2 .ift-st--kit .ift-kit { grid-column: 1; grid-row: 1; }
}
@media (max-width: 767.98px) {
  body#product.ift-pdp2 .ift-kit { margin-top: 12px; }
  body#product.ift-pdp2 .ift-kit__list {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body#product.ift-pdp2 .ift-kit__list::-webkit-scrollbar { display: none; }
  body#product.ift-pdp2 .ift-kit__part { flex: 0 0 auto; width: auto; max-width: 220px; }
  body#product.ift-pdp2 .ift-st--kit .ift-st__dots { display: none; }
}

/* ---------- Photo tiles (bento / editorial) ---------- */
body#product.ift-pdp2 .ift-tl {
  position: relative;
}
body#product.ift-pdp2 .ift-tl .ift-gal__cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
body#product.ift-pdp2 .ift-tl__grid {
  display: grid;
  gap: 8px;
}
body#product.ift-pdp2 .ift-tl__tile {
  --A: 1;
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: #f4f4f5;
  overflow: hidden;
  cursor: zoom-in;
}
body#product.ift-pdp2 .ift-tl__tile img.ift-fr {
  mix-blend-mode: multiply;
}
body#product.ift-pdp2 .ift-tl__tile:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; }
body#product.ift-pdp2 .ift-tl__dots { display: none; }

@media (min-width: 768px) {
  /* bento: one big photo, two beside it, "Show all photos" */
  body#product.ift-pdp2 .ift-tl--bento .ift-tl__grid {
    grid-template-columns: 1.55fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: var(--tl-h, 480px);
    border-radius: 16px;
    overflow: hidden;
  }
  body#product.ift-pdp2 .ift-tl--bento .ift-tl__tile { height: 100%; }
  body#product.ift-pdp2 .ift-tl--bento .ift-tl__tile:first-child { grid-row: span 2; }
  body#product.ift-pdp2 .ift-tl--bento .ift-tl__tile:nth-child(n+4) { display: none; }
  body#product.ift-pdp2 .ift-tl--bento.ift-tl--n2 .ift-tl__tile:nth-child(2) { grid-row: span 2; }
  body#product.ift-pdp2 .ift-tl--bento.ift-tl--n1 .ift-tl__grid { grid-template-columns: 1fr; }
  body#product.ift-pdp2 .ift-tl__tile img.ift-fr { transition: transform .3s ease; }
  body#product.ift-pdp2 .ift-tl--bento .ift-tl__tile:hover img.ift-fr { transform: scale(1.03); }
  body#product.ift-pdp2 .ift-tl__all {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--p2-ink);
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--p2-ink);
    cursor: pointer;
  }
  body#product.ift-pdp2 .ift-tl__all:hover { background: #f8fafc; }

  /* editorial: every photo large, buy box stays put while you scroll */
  body#product.ift-pdp2 .ift-tl--editorial .ift-tl__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  body#product.ift-pdp2 .ift-tl--editorial .ift-tl__tile {
    aspect-ratio: 1 / 1;
    border: 1px solid var(--p2-line);
    border-radius: 14px;
    background: #fff;
  }
  body#product.ift-pdp2 .ift-tl--editorial .ift-tl__tile img.ift-fr { mix-blend-mode: normal; }
  body#product.ift-pdp2 .ift-tl--editorial .ift-tl__tile:first-child {
    --A: .72;
    grid-column: span 2;
    aspect-ratio: 25 / 18;
  }
  body#product.ift-pdp2 .ift-tl--editorial .ift-tl__tile:last-child:nth-child(even) {
    --A: .5;
    grid-column: span 2;
    aspect-ratio: 2 / 1;
  }
}

@media (max-width: 767.98px) {
  body#product.ift-pdp2 .ift-tl__grid {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 14px;
  }
  body#product.ift-pdp2 .ift-tl__grid::-webkit-scrollbar { display: none; }
  body#product.ift-pdp2 .ift-tl__tile {
    flex: 0 0 100%;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
  }
  body#product.ift-pdp2 .ift-tl__all { display: none; }
  body#product.ift-pdp2 .ift-tl__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
  }
  body#product.ift-pdp2 .ift-tl__dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--p2-line-strong);
    transition: width .15s ease;
  }
  body#product.ift-pdp2 .ift-tl__dot.is-active { width: 20px; background: var(--p2-ink); }
}

/* "Show all photos" viewer */
.ift-tlx {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.ift-tlx__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}
.ift-tlx__close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #0f172a;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}
.ift-tlx__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.ift-tlx__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 1040px;
  margin: 0 auto;
}
.ift-tlx__ph {
  --A: 1;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #f4f4f5;
  overflow: hidden;
}
.ift-tlx__ph:first-child {
  --A: .5625;
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
body#product.ift-pdp2 .ift-tlx img.ift-fr { mix-blend-mode: multiply; }
@media (max-width: 767.98px) {
  .ift-tlx__grid { grid-template-columns: 1fr; }
  .ift-tlx__ph:first-child { --A: 1; grid-column: auto; aspect-ratio: 1 / 1; }
}
body.ift-tlx-open { overflow: hidden; }

/* ---------- Tabs: Description / Product Details / Attachments / Related products ---------- */
body#product.ift-pdp2 .product-tabs {
  margin-top: 36px;
}
body#product.ift-pdp2 #products-tab-anchor {
  display: block;
  height: 0;
  overflow: hidden;
}
body#product.ift-pdp2 .product-tabs.ift-tabs-none,
body#product.ift-pdp2 .product-tabs:not(:has(.nav-link)) { display: none !important; }
body#product.ift-pdp2 #product-infos-tabs {
  position: sticky;
  top: var(--ift-tabs-top, 0px);
  z-index: 6;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 28px;
  padding: 5px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  overflow-x: auto;
  scrollbar-width: none;
  transition: box-shadow .2s ease;
}
body#product.ift-pdp2 #product-infos-tabs.is-stuck {
  box-shadow: 0 6px 18px rgba(15, 23, 42, .10), 0 0 0 6px #fff;
}
body#product.ift-pdp2 #product-infos-tabs::-webkit-scrollbar { display: none; }
body#product.ift-pdp2 #product-infos-tabs .nav-item {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
body#product.ift-pdp2 #product-infos-tabs .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px !important;
  border: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  opacity: 1 !important;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.2;
  color: var(--p2-muted) !important;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
body#product.ift-pdp2 #product-infos-tabs .nav-link::before,
body#product.ift-pdp2 #product-infos-tabs .nav-link::after { content: none !important; }
body#product.ift-pdp2 #product-infos-tabs .nav-link:hover {
  color: var(--p2-ink) !important;
  background: rgba(255, 255, 255, .6) !important;
}
body#product.ift-pdp2 #product-infos-tabs .nav-link.active {
  color: var(--p2-ink) !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .10), 0 1px 1px rgba(15, 23, 42, .04);
}
body#product.ift-pdp2 #product-infos-tabs .nav-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}
body#product.ift-pdp2 .ift-tab-ico {
  flex: 0 0 auto;
  opacity: .75;
}
body#product.ift-pdp2 #product-infos-tabs .nav-link.active .ift-tab-ico { opacity: 1; }
body#product.ift-pdp2 .ift-tab-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--p2-muted);
}
body#product.ift-pdp2 #product-infos-tabs-content > .tab-pane.active {
  animation: iftTabIn .22s ease-out;
}
@keyframes iftTabIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  body#product.ift-pdp2 #product-infos-tabs-content > .tab-pane.active { animation: none; }
}

/* Product Details: two spec columns on desktop */
body#product.ift-pdp2 #product-details-tab .product-features {
  margin: 0;
}
body#product.ift-pdp2 #product-details-tab .data-sheet {
  display: grid !important;
  grid-template-columns: minmax(130px, .75fr) 1fr minmax(130px, .75fr) 1fr;
  column-gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--p2-line);
}
body#product.ift-pdp2 #product-details-tab .data-sheet .name,
body#product.ift-pdp2 #product-details-tab .data-sheet .value {
  flex: none !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 11px 16px 11px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--p2-line) !important;
  background: none !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
body#product.ift-pdp2 #product-details-tab .data-sheet .name {
  font-weight: 500 !important;
  color: var(--p2-muted) !important;
}
body#product.ift-pdp2 #product-details-tab .data-sheet .value {
  font-weight: 500 !important;
  color: var(--p2-ink) !important;
}
body#product.ift-pdp2 #product-details-tab .data-sheet .value:nth-of-type(odd) {
  padding-right: 40px !important;
}
body#product.ift-pdp2 #product-details-tab .ift-spec-note {
  margin-top: 14px !important;
}

/* Attachments */
body#product.ift-pdp2 .ift-att {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}
body#product.ift-pdp2 .ift-att__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--p2-line);
  border-radius: 12px;
  background: #fff;
  color: var(--p2-text);
  text-decoration: none !important;
  transition: border-color .15s ease;
}
body#product.ift-pdp2 .ift-att__item:hover { border-color: var(--p2-ink); }
body#product.ift-pdp2 .ift-att__icon {
  position: relative;
  flex: 0 0 44px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f4f4f5;
  color: var(--p2-ink);
}
body#product.ift-pdp2 .ift-att__icon svg { margin-top: -10px; }
body#product.ift-pdp2 .ift-att__icon span {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
}
body#product.ift-pdp2 .ift-att__txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--p2-muted);
}
body#product.ift-pdp2 .ift-att__txt strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--p2-ink);
}
body#product.ift-pdp2 .ift-att__dl {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--p2-ink);
}
body#product.ift-pdp2 .ift-att__dl small {
  font-size: 12px;
  font-weight: 500;
  color: var(--p2-muted);
}

@media (max-width: 991.98px) {
  body#product.ift-pdp2 #product-details-tab .data-sheet {
    grid-template-columns: minmax(120px, .8fr) 1fr;
  }
  body#product.ift-pdp2 #product-details-tab .data-sheet .value:nth-of-type(odd) {
    padding-right: 0 !important;
  }
}
@media (max-width: 767.98px) {
  body#product.ift-pdp2 .product-tabs { margin-top: 28px; }
  body#product.ift-pdp2 #product-infos-tabs {
    position: static;
    width: 100%;
    margin: 0 0 20px;
  }
  body#product.ift-pdp2 #product-infos-tabs .nav-link { font-size: 14px !important; padding: 9px 13px !important; gap: 7px; }
  body#product.ift-pdp2 .ift-att__dl small { display: none; }
}
body#product.ift-pdp2 #product-details-tab .specific-references {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--p2-ink);
}
body#product.ift-pdp2 #product-details-tab .specific-references > div {
  display: flex;
  gap: 6px;
}
body#product.ift-pdp2 #product-details-tab .specific-references .label {
  margin: 0;
  font-weight: 500;
  color: var(--p2-muted);
}
