/**
 * Glory Grab — single product page stacked gallery.
 *
 * Loaded only on product pages, after styles.css and WooCommerce CSS.
 * Selectors repeat `div.product.pd-product` where they must beat WooCommerce.
 */

body.single-product .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

body.single-product .wrap.pd-page.woocommerce-wrap {
  max-width: none;
  width: 100%;
  padding-top: 16px;
  padding-bottom: 0;
  padding-left: clamp(12px, 1.5vw, 20px);
  padding-right: clamp(12px, 1.5vw, 20px);
  overflow: visible;
}

/* Sticky buy-box needs a clean overflow chain — no scrollports on ancestors */
body.single-product,
body.single-product #page,
body.single-product #content,
body.single-product main,
body.single-product .site-main,
body.single-product .wrap.pd-page,
body.single-product .woocommerce-wrap {
  overflow: visible;
}

body.single-product .pd-page {
  max-width: none;
  padding-top: 16px;
  padding-bottom: 0;
  padding-left: clamp(12px, 1.5vw, 20px);
  padding-right: clamp(12px, 1.5vw, 20px);
  overflow: visible;
}

body.single-product .woocommerce-notices-wrapper:not(:empty) {
  margin: 0 0 20px;
}

/* -------------------------------------------------- Layout */
body.single-product div.product.pd-product {
  display: block;
  float: none;
  overflow: visible;
}

body.single-product div.product.pd-product::before,
body.single-product div.product.pd-product::after {
  display: none;
}

body.single-product .pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  column-gap: clamp(20px, 2.5vw, 40px);
  align-items: start;
  max-width: none;
  padding-top: 8px;
  padding-bottom: 48px;
  overflow: visible;
}

body.single-product .pd-media {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

body.single-product .pd-info {
  position: sticky;
  /* Clear the fixed navbar (~72px) + a little breathing room */
  top: 88px;
  z-index: 5;
  min-width: 0;
  padding-top: 4px;
  align-self: start;
  /* Page scroll drives the gallery — never nest a scrollport here */
  overflow: visible;
  max-height: none;
}

body.admin-bar.single-product .pd-info {
  top: 120px;
}

@media screen and (max-width: 782px) {
  body.admin-bar.single-product .pd-info {
    top: 134px;
  }
}

/* -------------------------------------------------- Gallery */
body.single-product .pd-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: none;
}

body.single-product .pd-gallery.is-single,
body.single-product .pd-gallery.is-empty {
  grid-template-columns: 1fr;
}

body.single-product .pd-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  width: 100%;
  border: 0;
  outline: 0;
  line-height: 0;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

body.single-product .pd-gallery .pd-shot:only-child {
  grid-column: 1 / -1;
}

body.single-product .pd-gallery img,
body.single-product .pd-shot img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* Crop a few top pixels — some uploads still include a 1–3px black studio edge */
  object-position: center 2%;
  transform: scale(1.02);
  transform-origin: center center;
  background: var(--bg);
}

body.single-product .pd-flash {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 6px 12px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.single-product .pd-zoom {
  cursor: default;
}

body.single-product .pd-zoom-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

body.single-product .pd-zoom-lightbox[hidden] {
  display: none;
}

body.single-product .pd-zoom-lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}

body.single-product .pd-zoom-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

body.pd-zoom-open {
  overflow: hidden;
}

body.single-product .pd-gallery-count {
  display: none;
}

body.single-product .pd-gallery-nav,
body.single-product .pd-gallery-dots {
  display: none;
}

body.single-product .pd-gallery-nav[hidden],
body.single-product .pd-gallery-dots[hidden] {
  display: none !important;
}

/* -------------------------------------------------- Buy column */
body.single-product .pd-title,
body.single-product .pd-info h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: normal;
}

body.single-product .pd-price,
body.single-product .pd-info .pd-price {
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
}

body.single-product .pd-price del {
  margin-right: 8px;
  color: var(--gray);
  font-weight: 500;
  font-size: 0.78em;
  text-decoration: line-through;
}

body.single-product .pd-price ins {
  background: none;
  text-decoration: none;
}

body.single-product .pd-color-label {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
}

body.single-product .pd-color-label strong {
  font-weight: 700;
  text-transform: capitalize;
}

body.single-product .size-head,
body.single-product .pd-option-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 400;
}

body.single-product .pd-option-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

body.single-product .pd-option-link-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

/* -------------------------------------------------- Options / swatches */
body.single-product .pd-option {
  margin-bottom: 20px;
}

body.single-product .pd-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.single-product .pd-swatches.is-color,
body.single-product .color-thumbs {
  gap: 12px;
  margin-bottom: 0;
}

body.single-product .pd-swatches.is-color .pd-swatch,
body.single-product .color-thumbs .pd-swatch,
body.single-product .color-thumbs button {
  position: relative;
  width: 48px;
  min-width: 48px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  background: var(--bg);
  overflow: hidden;
  border-radius: 0;
  line-height: 0;
}

body.single-product .pd-swatches.is-color .pd-swatch.has-dot {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 3px;
  border-radius: 50%;
  border: 2px solid transparent;
}

body.single-product .pd-swatch-dot {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

body.single-product .pd-swatches.is-color .pd-swatch img,
body.single-product .color-thumbs .pd-swatch img,
body.single-product .color-thumbs button img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: center;
  aspect-ratio: auto;
}

body.single-product .pd-swatches.is-color .pd-swatch.is-active,
body.single-product .color-thumbs button.active,
body.single-product .color-thumbs .pd-swatch.is-active {
  border-color: var(--black);
  background: var(--white);
}

body.single-product .pd-swatches.is-size,
body.single-product .size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.single-product .pd-swatches.is-size .pd-swatch,
body.single-product .size-options .pd-swatch,
body.single-product .size-options button {
  flex: 0 0 auto;
  width: 52px;
  min-width: 52px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--black);
}

body.single-product .pd-swatches.is-size .pd-swatch:hover,
body.single-product .size-options button:hover {
  border-color: #111;
  background: var(--white);
}

body.single-product .pd-swatches.is-size .pd-swatch.is-active,
body.single-product .size-options button.active,
body.single-product .size-options .pd-swatch.is-active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  box-shadow: none;
}

body.single-product .pd-swatch.is-unavailable {
  position: relative;
  overflow: hidden;
  color: #c4c4c4;
  border-color: #e4e4e4;
  background: var(--white);
  cursor: not-allowed;
  opacity: 1;
  pointer-events: none;
}

/* Hide the X cut while variations/stock are still loading. */
body.single-product .pd-swatch.is-unavailable::before,
body.single-product .pd-swatch.is-unavailable::after {
  content: none;
}

body.single-product .pd-cart.is-stock-ready .pd-swatch.is-unavailable::before,
body.single-product .pd-cart.is-stock-ready .pd-swatch.is-unavailable::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1.5px;
  background: #b0b0b0;
  z-index: 1;
  pointer-events: none;
}

body.single-product .pd-cart.is-stock-ready .pd-swatch.is-unavailable::before {
  transform: rotate(-40deg);
}

body.single-product .pd-cart.is-stock-ready .pd-swatch.is-unavailable::after {
  transform: rotate(40deg);
}

body.single-product .pd-swatches.is-size .pd-swatch.is-unavailable {
  color: #9a9a9a;
  border-color: #d0d0d0;
  background: var(--white);
  cursor: not-allowed;
  pointer-events: none;
}

body.single-product .pd-cart.is-stock-ready .pd-swatches.is-size .pd-swatch.is-unavailable::before,
body.single-product .pd-cart.is-stock-ready .pd-swatches.is-size .pd-swatch.is-unavailable::after {
  left: 16%;
  right: 16%;
  height: 1.75px;
  background: #a0a0a0;
}

/* -------------------------------------------------- Add to cart */
body.single-product .pd-cart {
  margin-bottom: 12px;
}

body.single-product div.product.pd-product form.cart {
  display: block;
  margin: 0;
}

body.single-product div.product.pd-product form.cart::before,
body.single-product div.product.pd-product form.cart::after {
  display: none;
  content: none;
}

body.single-product .pd-cart-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.single-product .pd-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.single-product .pd-qty-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
}

body.single-product .pd-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gray-mid);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

body.single-product .pd-qty-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--black);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

body.single-product .pd-qty-btn:hover:not(:disabled) {
  background: var(--bg);
}

body.single-product .pd-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

body.single-product .pd-qty-val {
  min-width: 44px;
  padding: 0 4px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 40px;
  color: var(--black);
}

body.single-product .pd-form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.single-product div.product.pd-product form.cart div.quantity {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  margin: 0;
  padding: 0;
  border: 0;
  float: none;
}

body.single-product .pd-atc,
body.single-product .pd-buy-now,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button {
  flex: 1 1 auto;
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  float: none;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: none;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

/* Pressed state while add-to-cart AJAX is in-flight */
body.single-product .pd-atc.gg-pressed,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button.gg-pressed {
  transform: scale(0.97);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

body.single-product .pd-atc span,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button span {
  display: inline-block;
  line-height: 1;
}

body.single-product .pd-atc i,
body.single-product .pd-atc svg,
body.single-product .pd-atc .svg-inline--fa,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button i,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button svg,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button .svg-inline--fa {
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 1;
  flex: 0 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

body.single-product .pd-atc:hover,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button:hover {
  background: #222;
  color: var(--white);
}

body.single-product .pd-buy-now {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
}

body.single-product .pd-buy-now:hover:not(:disabled):not(.disabled) {
  background: var(--black);
  color: var(--white);
}

body.single-product .pd-buy-now.gg-pressed {
  transform: scale(0.97);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
}

body.single-product .pd-cart[data-requires-size="1"]:not(.is-size-ready) .pd-atc,
body.single-product .pd-cart[data-requires-size="1"]:not(.is-size-ready) .pd-buy-now,
body.single-product .pd-cart[data-requires-size="1"]:not(.is-size-ready) .single_add_to_cart_button,
body.single-product .pd-cart.is-out-of-stock .pd-atc,
body.single-product .pd-cart.is-out-of-stock .pd-buy-now,
body.single-product .pd-cart.is-out-of-stock .single_add_to_cart_button,
body.single-product .pd-atc.disabled,
body.single-product .pd-atc:disabled,
body.single-product .pd-buy-now.disabled,
body.single-product .pd-buy-now:disabled,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button.disabled,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button:disabled,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button.wc-variation-selection-needed,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button.wc-variation-is-unavailable {
  background: #c4c4c4 !important;
  background-color: #c4c4c4 !important;
  border: 0;
  color: #fff !important;
  opacity: 1 !important;
  cursor: not-allowed;
  pointer-events: none;
}

body.single-product .pd-cart.is-size-ready:not(.is-out-of-stock) .pd-atc:not(:disabled):not(.disabled),
body.single-product .pd-cart.is-size-ready:not(.is-out-of-stock) .single_add_to_cart_button:not(:disabled):not(.disabled) {
  background: var(--black) !important;
  background-color: var(--black) !important;
  color: #fff !important;
  opacity: 1 !important;
  cursor: pointer;
  pointer-events: auto;
}

body.single-product .pd-cart.is-size-ready:not(.is-out-of-stock) .pd-buy-now:not(:disabled):not(.disabled) {
  background: var(--white) !important;
  background-color: var(--white) !important;
  color: var(--black) !important;
  border-color: var(--black) !important;
  opacity: 1 !important;
  cursor: pointer;
  pointer-events: auto;
}

/* Hide WooCommerce loading spinner / added checkmark on ATC (drawer opens instead) */
body.single-product div.product.pd-product form.cart .single_add_to_cart_button.loading,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button.added,
body.single-product .pd-atc.loading,
body.single-product .pd-atc.added {
  opacity: 1 !important;
  color: #fff !important;
  pointer-events: auto;
  cursor: pointer;
}

body.single-product div.product.pd-product form.cart .single_add_to_cart_button.loading::before,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button.loading::after,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button.added::before,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button.added::after,
body.single-product .pd-atc.loading::before,
body.single-product .pd-atc.loading::after,
body.single-product .pd-atc.added::before,
body.single-product .pd-atc.added::after {
  content: none !important;
  display: none !important;
}

body.single-product div.product.pd-product form.cart .single_add_to_cart_button.loading span,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button.loading i,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button.loading svg,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button.added span,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button.added i,
body.single-product div.product.pd-product form.cart .single_add_to_cart_button.added svg,
body.single-product .pd-atc.loading span,
body.single-product .pd-atc.loading i,
body.single-product .pd-atc.loading svg,
body.single-product .pd-atc.added span,
body.single-product .pd-atc.added i,
body.single-product .pd-atc.added svg {
  opacity: 1;
  visibility: visible;
}

body.single-product .pd-option.is-needed .pd-option-head span,
body.single-product .pd-option.is-needed .size-head span {
  color: #b42318;
}

body.single-product .pd-option.is-needed .pd-swatches.is-size .pd-swatch {
  border-color: #b42318;
}

body.single-product div.product.pd-product form.cart table.variations,
body.single-product .pd-cart[data-pd-swatches] form.variations_form table.variations {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

body.single-product div.product.pd-product form.cart .variations th,
body.single-product div.product.pd-product form.cart .variations td {
  padding: 0;
  border: 0;
  background: none;
}

body.single-product div.product.pd-product form.cart .variations th.label,
body.single-product div.product.pd-product form.cart .variations label {
  display: none;
}

body.single-product div.product.pd-product form.cart .variations select {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--black);
  background: var(--white);
}

body.single-product div.product.pd-product form.cart .reset_variations {
  display: none;
}

body.single-product div.product.pd-product form.cart .variations tr.pd-variation-covered {
  display: none;
}

body.single-product .woocommerce-variation-price {
  display: none;
}

body.single-product .woocommerce-variation-availability {
  margin: 8px 0 0;
  font-size: 13px;
}

body.single-product .woocommerce-variation-availability .stock {
  margin: 0;
}

body.single-product .pd-cart .stock.out-of-stock {
  margin: 10px 0 0;
  color: #b42318;
}

/* -------------------------------------------------- Product details + perks */
body.single-product .pd-specs {
  margin-top: 20px;
}

body.single-product .pd-details-acc {
  margin: 0 0 4px;
  border: 0;
}

body.single-product .pd-details-acc > summary {
  list-style: none;
}

body.single-product .pd-details-acc > summary::-webkit-details-marker {
  display: none;
}

body.single-product .pd-specs-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  user-select: none;
}

body.single-product .pd-details-acc-icon {
  flex: 0 0 16px;
  transition: transform 0.2s ease;
}

body.single-product .pd-details-acc[open] > .pd-specs-title .pd-details-acc-icon {
  transform: rotate(180deg);
}

body.single-product .pd-details {
  font-size: 12px;
  line-height: 1.6;
  color: #222;
}

body.single-product .pd-details p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
}

body.single-product .pd-details p:last-child {
  margin-bottom: 0;
}

body.single-product .pd-details h3,
body.single-product .pd-details h4 {
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

body.single-product .pd-details ul {
  margin: 0 0 12px;
  padding-left: 18px;
  list-style: disc;
}

body.single-product .pd-details li {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.5;
}

body.single-product .pd-perks {
  display: flex;
  align-items: stretch;
  margin-top: 18px;
  background: #808080;
  color: #fff;
  border-radius: 0;
  overflow: hidden;
}

body.single-product .pd-perk {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

body.single-product .pd-perk + .pd-perk {
  border-left: 1px solid rgba(255, 255, 255, 0.85);
}

body.single-product .pd-perk span {
  display: inline-block;
  line-height: 1;
}

body.single-product .pd-perk i,
body.single-product .pd-perk svg,
body.single-product .pd-perk .svg-inline--fa {
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 1;
  flex: 0 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

body.single-product .pd-size-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 14px;
}

body.single-product .pd-size-table th,
body.single-product .pd-size-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e4e4e4;
  text-align: left;
}

body.single-product .pd-size-table th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  color: #666;
}

body.single-product .pd-size-table tr:last-child td {
  border-bottom: 0;
}

/* -------------------------------------------------- Related */
body.single-product .pd-related {
  padding: 48px 0 96px;
  border-top: 1px solid #ececec;
}

body.single-product .pd-related .section-title {
  margin: 0 0 32px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body.single-product .pd-related .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

body.single-product .pd-related .swatches {
  display: none;
}

body.single-product .pd-related .product-card .onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-height: 0;
  padding: 6px 10px;
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

/* -------------------------------------------------- Size guide drawer */
body.single-product .pd-guide {
  position: fixed;
  inset: 0;
  z-index: 1400;
  visibility: hidden;
  pointer-events: none;
}

body.single-product .pd-guide.is-open {
  visibility: visible;
  pointer-events: auto;
}

body.single-product .pd-guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.48);
  opacity: 0;
  transition: opacity 0.28s ease;
}

body.single-product .pd-guide.is-open .pd-guide-backdrop {
  opacity: 1;
}

body.single-product .pd-guide-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--white);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.32s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.single-product .pd-guide.is-open .pd-guide-panel {
  transform: translateX(0);
}

body.single-product .pd-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid #ececec;
  flex: 0 0 auto;
}

body.single-product .pd-guide-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.single-product .pd-guide-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: var(--black);
  background: none;
  border: 0;
  cursor: pointer;
}

body.single-product .pd-guide-body {
  padding: 24px;
  overflow-y: auto;
}

body.single-product .pd-guide-fit h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}

body.single-product .pd-guide-fit ul {
  margin: 0 0 28px 18px;
  list-style: disc;
}

body.single-product .pd-guide-fit li {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

body.single-product .pd-guide-chart {
  background: #f4f4f4;
  padding: 18px 16px 8px;
}

body.single-product .pd-guide-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 4px;
}

body.single-product .pd-guide-chart-head strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.single-product .pd-guide-chart-head span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
}

body.pd-guide-open {
  overflow: hidden;
}

/* -------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  body.single-product .pd-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    column-gap: 28px;
  }

  body.single-product .pd-swatches.is-color .pd-swatch,
  body.single-product .color-thumbs button {
    width: 44px;
    min-width: 44px;
    height: 56px;
  }
}

@media (max-width: 900px) {
  body.single-product .pd-layout {
    grid-template-columns: 1fr;
    row-gap: 22px;
    padding-top: 0;
    padding-bottom: 40px;
  }

  body.single-product .pd-info {
    position: static;
    padding-top: 0;
    max-height: none;
    overflow: visible;
  }

  body.single-product .pd-media {
    margin-left: calc(clamp(12px, 1.5vw, 20px) * -1);
    margin-right: calc(clamp(12px, 1.5vw, 20px) * -1);
    width: calc(100% + clamp(12px, 1.5vw, 20px) * 2);
    overflow: visible;
  }

  body.single-product .pd-gallery,
  body.single-product .pd-gallery.is-single,
  body.single-product .pd-gallery.is-empty {
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  body.single-product .pd-gallery::-webkit-scrollbar {
    display: none;
  }

  body.single-product .pd-shot {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body.single-product .pd-gallery img,
  body.single-product .pd-shot img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 2%;
    transform: scale(1.02);
    transform-origin: center center;
    max-width: none;
    border: 0;
  }

  body.single-product .pd-gallery-count {
    display: none;
  }

  /* Swipe + dots are primary; arrows stay available but low-chrome */
  body.single-product .pd-gallery-nav {
    display: none;
  }

  body.single-product .pd-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
    cursor: pointer;
  }

  body.single-product .pd-gallery-arrow:disabled {
    opacity: 0.35;
    cursor: default;
  }

  body.single-product .pd-gallery-prev {
    left: 12px;
  }

  body.single-product .pd-gallery-next {
    right: 12px;
  }

  body.single-product .pd-gallery-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    position: absolute;
    left: 50%;
    bottom: 16px;
    z-index: 6;
    transform: translateX(-50%);
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.single-product .pd-gallery-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
  }

  body.single-product .pd-gallery-dot.is-active {
    width: 20px;
    background: #111;
    box-shadow: none;
  }

  body.single-product .pd-related {
    padding: 36px 0 72px;
  }

  body.single-product .pd-related .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.single-product .pd-title,
  body.single-product .pd-info h1 {
    font-size: 26px;
  }

  body.single-product .pd-swatches.is-size .pd-swatch,
  body.single-product .size-options .pd-swatch {
    width: 48px;
    min-width: 48px;
    height: 40px;
  }

  body.single-product .pd-swatches.is-color .pd-swatch,
  body.single-product .color-thumbs button {
    width: 40px;
    min-width: 40px;
    height: 52px;
  }

  body.single-product .pd-related .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-product .pd-guide-backdrop,
  body.single-product .pd-guide-panel {
    transition: none;
  }
}
