/* PDP buybox — premium retail clarity (presentation only).
   Loads last. No commerce / catalogue changes. */

.page-product .pdp-layout-pro,
.pdp-layout-pro {
  gap: 24px !important;
  margin: 12px 0 32px !important;
  align-items: start;
}

/* Match header shell — desktop inset; mobile uses more of the screen */
.page-product .rt-pdp-section > .container,
.page-product main .container {
  width: min(1120px, calc(100% - 64px)) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .page-product .rt-pdp-section > .container,
  .page-product main .container,
  html body.page-product .rt-pdp-section > .container,
  html body.page-product main .container,
  html body.page-product #rtProduct.container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: max(10px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(10px, env(safe-area-inset-right, 0px)) !important;
    margin-inline: 0 !important;
    box-sizing: border-box !important;
  }

  html body.page-product {
    padding-top: var(--sf-header-h, 120px) !important;
  }

  html body.page-product .header.sf-header,
  html body.page-product .sf-header,
  html body.page-product .sf-header-pro {
    position: fixed !important;
    z-index: 1200 !important;
  }

  html body.page-product .pdp-layout-pro,
  html body.page-product .pdp-buybox {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

.page-product .rt-pdp-section {
  padding-top: 16px !important;
}

.page-product .rt-breadcrumbs {
  margin: 0 0 12px !important;
}

/* Sync chrome fixes (premium-finish may load deferred) */
html body.page-product {
  padding-top: var(--sf-header-h, 56px) !important;
}
html body.page-product .sf-search-pro,
html body.page-product .sf-header-pro .sf-search-pro,
html body.page-product #sfSearchDesk {
  background: #f5f0ff !important;
  background-color: #f5f0ff !important;
}
@media (min-width: 901px) {
  html body.page-product .sf-header-pro .menu-toggle,
  html body.page-product .menu-toggle {
    display: none !important;
  }
  html body.page-product .sf-header-pro {
    padding: 0 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }
  html body.page-product .sf-header-pro .sf-mainbar {
    width: min(1120px, calc(100% - 48px)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }
}

.page-product .pdp-buybox,
.pdp-buybox {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.page-product .pdp-main-media,
.pdp-main-media {
  border-radius: 12px !important;
  padding: 18px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

/* Fully in-frame — no scale crop. Zoom uses inline transform on .is-zooming */
.page-product .pdp-main-media:not(.is-zooming) img,
.pdp-main-media:not(.is-zooming) img {
  padding: 0 !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  width: 100% !important;
  height: 100% !important;
}
.page-product .pdp-main-media.is-zooming img,
.pdp-main-media.is-zooming img {
  padding: 0 !important;
  transform: none; /* inline zoom scale must win — no !important */
  cursor: zoom-out;
}

/* Identity + tools */
.pdp-buybox-top {
  margin-bottom: 4px !important;
  align-items: flex-start !important;
}

.pdp-buybox .pdp-identity {
  margin: 0 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  color: #64748b !important;
}

.pdp-buybox .pdp-model {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.pdp-tools {
  gap: 4px !important;
}

.pdp-tool {
  border: 0 !important;
  background: transparent !important;
  border-radius: 8px !important;
  padding: 6px 8px !important;
  font-size: 0.72rem !important;
  font-weight: 650 !important;
  color: #64748b !important;
  box-shadow: none !important;
}

.pdp-tool:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.pdp-tool.is-on {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 0 !important;
}

/* Title / status */
.pdp-buybox h1,
.pdp-info h1 {
  margin: 6px 0 6px !important;
  font-size: clamp(1.22rem, 1.7vw, 1.45rem) !important;
  line-height: 1.28 !important;
  letter-spacing: -0.025em !important;
  color: #0b1220 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  overflow-wrap: anywhere !important;
}

.pdp-rating-row {
  margin: 0 0 6px !important;
  gap: 8px !important;
}

.pdp-condition-row {
  margin: 0 0 10px !important;
  gap: 6px !important;
}

.pdp-condition-chip,
.pdp-warranty-chip,
.pdp-stock {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
}

/* Price — clear “how much” moment */
.pdp-buybox .pdp-price-row {
  margin: 0 0 14px !important;
  padding: 12px 0 14px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  gap: 4px !important;
}

.pdp-buybox .pdp-price-note {
  margin: 2px 0 0 !important;
  font-size: 0.72rem !important;
  color: #94a3b8 !important;
}

.page-product .pdp-price,
.pdp-price-row .pdp-price {
  font-size: clamp(1.45rem, 2.2vw, 1.75rem) !important;
  letter-spacing: -0.03em !important;
  color: #0b1220 !important;
}

.pdp-price-row .pdp-price-was,
.pdp-price-row .pdp-compare {
  font-size: 0.9rem !important;
  color: #94a3b8 !important;
}

/* Configuration — calm rows, easy to scan */
.pdp-config {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.pdp-config .pdp-opt,
.pdp-config .pdp-color-picker,
.pdp-config .pdp-opt-static {
  margin: 0 !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.pdp-config .pdp-opt:first-child,
.pdp-config .pdp-color-picker:first-child,
.pdp-config .pdp-opt-static:first-child {
  padding-top: 2px !important;
}

.pdp-config .pdp-opt:last-child,
.pdp-config .pdp-color-picker:last-child,
.pdp-config .pdp-opt-static:last-child {
  border-bottom: 0;
  padding-bottom: 4px !important;
}

.pdp-config .pdp-opt-label,
.pdp-config .pdp-color-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin: 0 0 8px !important;
  font-size: 0.82rem !important;
  font-weight: 750 !important;
  letter-spacing: -0.01em !important;
  text-transform: none;
  color: #0b1220 !important;
  line-height: 1.3;
}

.pdp-config .pdp-opt-label span,
.pdp-config .pdp-color-label span {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #64748b !important;
  margin-left: 0 !important;
}

.pdp-config .pdp-opt-static .pdp-opt-label {
  margin-bottom: 0 !important;
}

.pdp-config .pdp-opt-chips {
  gap: 8px !important;
}

.pdp-config .pdp-opt-chip {
  padding: 7px 11px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  background: #fff !important;
  color: #0b1220 !important;
  min-height: 36px;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.pdp-config .pdp-opt-chip:hover {
  border-color: rgba(15, 23, 42, 0.35) !important;
  background: #f8fafc !important;
}

.pdp-config .pdp-opt-chip.is-active {
  border-color: rgba(124, 58, 237, 0.42) !important;
  border-width: 1px !important;
  background: #faf5ff !important;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.22) !important;
}

.pdp-config .pdp-opt-delta {
  font-size: 0.68rem !important;
  font-weight: 650 !important;
  color: #64748b !important;
}

.pdp-config .pdp-opt-chip--color {
  padding: 5px 12px 5px 5px !important;
  gap: 8px !important;
  min-height: 42px !important;
}

.pdp-config .pdp-opt-swatch {
  width: 32px !important;
  height: 32px !important;
  border-radius: 7px !important;
}

/* Desktop config — TechBros UX pattern (presentation only)
   Large gallery · thumbs under hero · compact content chips · sticky buy
   Do not clone TechBros brand colours / green CTAs. */
@media (min-width: 981px) {
  .page-product .pdp-layout-pro,
  .pdp-layout-pro {
    /* Balanced columns — gallery inset with content, not left-heavy */
    grid-template-columns: minmax(300px, 0.92fr) minmax(280px, 1fr) minmax(250px, 0.82fr) !important;
    gap: 28px 32px !important;
    align-items: start !important;
  }

  /* Gallery: main image full-width, thumbs aligned to same width underneath */
  .page-product .pdp-gallery,
  .pdp-gallery {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: start !important;
  }

  .page-product .pdp-thumbs-vert,
  .pdp-thumbs-vert {
    order: 2;
    display: grid !important;
    /* Exact equal columns = full gallery width, no trailing gap */
    grid-template-columns: repeat(var(--pdp-thumb-count, 5), minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .page-product .pdp-main-media,
  .pdp-main-media {
    order: 1;
    padding: 16px !important;
    min-height: 0;
    width: 100%;
    box-sizing: border-box !important;
  }

  .page-product .pdp-thumbs-vert .pdp-thumb,
  .pdp-thumbs-vert .pdp-thumb {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    flex: none !important;
    padding: 6px !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    overflow: hidden;
    box-sizing: border-box !important;
  }

  /* Never let a lone thumb stretch into a second hero */
  .page-product .pdp-thumbs-vert:has(.pdp-thumb:only-child),
  .pdp-thumbs-vert:has(.pdp-thumb:only-child) {
    display: none !important;
  }

  .page-product .pdp-thumbs-vert .pdp-thumb.is-active,
  .pdp-thumbs-vert .pdp-thumb.is-active {
    border-color: #111827 !important;
    border-width: 1px !important;
    box-shadow: inset 0 0 0 1px #111827 !important;
  }

  .page-product .pdp-thumbs-vert .pdp-thumb img,
  .pdp-thumbs-vert .pdp-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block;
  }

  .page-product .pdp-main-media:not(.is-zooming) img,
  .pdp-main-media:not(.is-zooming) img {
    padding: 0 !important;
    transform: none !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  /* Flatten buybox so info + aside become layout columns */
  .page-product .pdp-buybox,
  .pdp-buybox {
    display: contents !important;
  }

  .pdp-info {
    min-width: 0;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .pdp-aside {
    grid-column: 3;
    position: sticky;
    top: 88px;
    align-self: start;
    min-width: 0;
    padding: 18px 16px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  .pdp-aside .pdp-price-row {
    margin: 0 0 14px !important;
    padding: 0 0 14px !important;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .pdp-aside .pdp-purchase-block {
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .pdp-aside .pdp-cta-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .pdp-aside .pdp-qty {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 10px !important;
  }

  .pdp-config {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
  }

  .pdp-config > .pdp-opt,
  .pdp-config > .pdp-color-picker,
  .pdp-config > .pdp-opt-static {
    display: block !important;
    width: 100%;
    min-width: 0;
    order: 0 !important;
    grid-column: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  /* Section title — “Storage” / “Color” */
  .pdp-config > .pdp-opt .pdp-opt-label,
  .pdp-config > .pdp-color-picker .pdp-color-label {
    display: block !important;
    margin: 0 0 8px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    color: #111827 !important;
    line-height: 1.25;
  }

  .pdp-config > .pdp-opt:not(.pdp-opt-static) .pdp-opt-label span,
  .pdp-config > .pdp-color-picker .pdp-color-label span {
    display: none !important;
  }

  /* Equal 3-up chip grid — aligned columns, compact height */
  .pdp-config > .pdp-opt:not([data-pdp-opt="color"]) .pdp-opt-chips {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: stretch;
  }

  .pdp-config > .pdp-color-picker .pdp-color-swatches,
  .pdp-config > .pdp-opt[data-pdp-opt="color"] .pdp-opt-chips {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: stretch;
  }

  .pdp-config > .pdp-opt:not([data-pdp-opt="color"]) .pdp-opt-chip {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    /* Top-align so value labels share one baseline across the row */
    justify-content: flex-start !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none;
    flex: none !important;
    padding: 10px 8px !important;
    /* Auto height — SIM labels wrap; fixed 52px clipped price deltas */
    min-height: 56px !important;
    height: auto !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    line-height: 1.15;
    text-align: center;
    border-radius: 10px !important;
    border: 1px solid #d1d5db !important;
    background: #fff !important;
    box-sizing: border-box;
    box-shadow: none !important;
  }

  .pdp-config > .pdp-opt:not([data-pdp-opt="color"]) .pdp-opt-chip:hover {
    border-color: #9ca3af !important;
    background: #fff !important;
  }

  .pdp-config > .pdp-opt:not([data-pdp-opt="color"]) .pdp-opt-chip.is-active {
    border-color: #111827 !important;
    border-width: 1px !important;
    padding: 10px 8px !important;
    background: #fff !important;
    box-shadow: inset 0 0 0 1px #111827 !important;
  }

  .pdp-config > .pdp-opt:not([data-pdp-opt="color"]) .pdp-opt-chip-val {
    display: block;
    flex: 0 0 auto;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    color: #111827 !important;
    line-height: 1.25;
    margin: 0 !important;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .pdp-config > .pdp-opt:not([data-pdp-opt="color"]) .pdp-opt-delta {
    display: block;
    flex: 0 0 auto;
    margin: 0 !important;
    min-height: 14px;
    font-size: 0.66rem !important;
    font-weight: 500 !important;
    line-height: 1.2;
    color: #6b7280 !important;
    white-space: nowrap;
    overflow: visible;
    max-width: 100%;
  }

  .pdp-config > .pdp-opt:not([data-pdp-opt="color"]) .pdp-opt-delta.is-empty {
    visibility: hidden;
  }

  .pdp-config > .pdp-opt[data-pdp-opt="chip"] .pdp-opt-chip,
  .pdp-config > .pdp-opt[data-pdp-opt="sim"] .pdp-opt-chip,
  .pdp-config > .pdp-opt[data-pdp-opt="version"] .pdp-opt-chip,
  .pdp-config > .pdp-opt[data-pdp-opt="connectivity"] .pdp-opt-chip,
  .pdp-config > .pdp-opt[data-pdp-opt="glass"] .pdp-opt-chip,
  .pdp-config > .pdp-opt[data-pdp-opt="keyboard"] .pdp-opt-chip,
  .pdp-config > .pdp-opt[data-pdp-opt="size"] .pdp-opt-chip,
  .pdp-config > .pdp-opt[data-pdp-opt="band"] .pdp-opt-chip,
  .pdp-config > .pdp-opt[data-pdp-opt="ramStorage"] .pdp-opt-chip {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .pdp-config > .pdp-opt[data-pdp-opt="chip"] .pdp-opt-chip.is-active,
  .pdp-config > .pdp-opt[data-pdp-opt="sim"] .pdp-opt-chip.is-active,
  .pdp-config > .pdp-opt[data-pdp-opt="version"] .pdp-opt-chip.is-active,
  .pdp-config > .pdp-opt[data-pdp-opt="connectivity"] .pdp-opt-chip.is-active,
  .pdp-config > .pdp-opt[data-pdp-opt="glass"] .pdp-opt-chip.is-active,
  .pdp-config > .pdp-opt[data-pdp-opt="keyboard"] .pdp-opt-chip.is-active,
  .pdp-config > .pdp-opt[data-pdp-opt="size"] .pdp-opt-chip.is-active,
  .pdp-config > .pdp-opt[data-pdp-opt="band"] .pdp-opt-chip.is-active,
  .pdp-config > .pdp-opt[data-pdp-opt="ramStorage"] .pdp-opt-chip.is-active {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .pdp-config > .pdp-opt[data-pdp-opt="chip"] .pdp-opt-chip-val,
  .pdp-config > .pdp-opt[data-pdp-opt="sim"] .pdp-opt-chip-val,
  .pdp-config > .pdp-opt[data-pdp-opt="version"] .pdp-opt-chip-val,
  .pdp-config > .pdp-opt[data-pdp-opt="connectivity"] .pdp-opt-chip-val,
  .pdp-config > .pdp-opt[data-pdp-opt="glass"] .pdp-opt-chip-val,
  .pdp-config > .pdp-opt[data-pdp-opt="keyboard"] .pdp-opt-chip-val,
  .pdp-config > .pdp-opt[data-pdp-opt="size"] .pdp-opt-chip-val,
  .pdp-config > .pdp-opt[data-pdp-opt="band"] .pdp-opt-chip-val,
  .pdp-config > .pdp-opt[data-pdp-opt="ramStorage"] .pdp-opt-chip-val {
    font-size: 0.8rem !important;
  }

  /* Color — compact premium chips: small sibling thumb + clear color name */
  .pdp-config > .pdp-opt[data-pdp-opt="color"] .pdp-opt-chips,
  .pdp-config > .pdp-opt[data-pdp-opt="color"] .pdp-opt-chips--color {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: stretch;
  }

  .pdp-config > .pdp-opt[data-pdp-opt="color"] .pdp-opt-chip,
  .pdp-config .pdp-opt-chip--color {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 4px 12px 4px 4px !important;
    overflow: hidden;
    border-radius: 10px !important;
    border: 1px solid #d1d5db !important;
    background: #fff !important;
    flex: 0 0 auto !important;
    box-shadow: none !important;
  }

  .pdp-config .pdp-opt-chip--color.is-active,
  .pdp-config > .pdp-opt[data-pdp-opt="color"] .pdp-opt-chip.is-active {
    border-color: #111827 !important;
    border-width: 1px !important;
    padding: 4px 12px 4px 4px !important;
    box-shadow: inset 0 0 0 1px #111827 !important;
  }

  .pdp-config .pdp-opt-chip--color .pdp-opt-swatch {
    display: block !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 7px !important;
    object-fit: contain;
    object-position: center;
    padding: 2px;
    box-sizing: border-box;
    transform: none;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
  }

  /* No photo: fill the same 36px square with the staff colour */
  .pdp-config .pdp-opt-chip--color .pdp-opt-swatch--paint {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: 7px !important;
    background: var(--swatch, transparent) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
  }

  .pdp-config .pdp-opt-chip--color .pdp-opt-swatch--paint[data-light="1"] {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.24);
  }

  .pdp-config .pdp-opt-chip--color .pdp-opt-chip-val {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;
    border: 0 !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    color: #111827 !important;
    line-height: 1.2;
  }

  .pdp-config .pdp-opt-chip--color .pdp-opt-delta {
    position: static !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 0 2px !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;
    border: 0 !important;
    font-size: 0.68rem !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    flex: none !important;
    min-height: 0 !important;
  }

  .pdp-config .pdp-opt-chip--color .pdp-opt-delta.is-empty {
    display: block !important;
    visibility: hidden !important;
  }

  .pdp-config > .pdp-opt-static[data-pdp-opt="display"] .pdp-opt-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline;
    gap: 0.45rem;
    margin: 0 !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
  }

  .pdp-config > .pdp-opt-static[data-pdp-opt="display"] .pdp-opt-label span {
    display: inline !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
  }

  .pdp-highlights,
  .pdp-highlights-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .pdp-highlight,
  .pdp-hl {
    padding: 14px 16px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fff !important;
  }
}

/* Mid widths: keep 2-col (gallery | stacked info+aside) */
@media (min-width: 981px) and (max-width: 1199px) {
  .page-product .pdp-layout-pro,
  .pdp-layout-pro {
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.95fr) !important;
  }

  .page-product .pdp-gallery,
  .pdp-gallery {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .page-product .pdp-thumbs-vert,
  .pdp-thumbs-vert {
    order: 2;
    display: grid !important;
    grid-template-columns: repeat(var(--pdp-thumb-count, 5), minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-height: none !important;
  }

  .page-product .pdp-main-media,
  .pdp-main-media {
    order: 1;
  }

  .page-product .pdp-buybox,
  .pdp-buybox {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .pdp-info,
  .pdp-aside {
    grid-column: auto !important;
    position: static !important;
  }

  .pdp-aside {
    padding: 16px !important;
  }
}

/* Purchase — clear decision card */
.pdp-purchase-block {
  margin: 8px 0 10px !important;
  gap: 12px !important;
  padding: 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pdp-cta-row {
  gap: 10px !important;
  grid-template-columns: 1fr 1fr !important;
}

.pdp-cta-row .pdp-add,
.pdp-cta-row .pdp-buy,
.pdp-sticky-buy .pdp-add,
.pdp-sticky-buy .pdp-buy {
  min-height: 48px !important;
  height: 48px !important;
  font-size: 0.94rem !important;
  font-weight: 750 !important;
  border-radius: 10px !important;
  width: 100%;
}

/* Add to cart — light sibling of Buy now (not the heavy filled CTA). */
.pdp-cta-row .pdp-add:not(:disabled),
.pdp-sticky-buy .pdp-add:not(:disabled),
.btn-dark.pdp-add:not(:disabled) {
  background: var(--rt-cta-soft) !important;
  background-image: var(--rt-cta-soft) !important;
  border: 1.5px solid var(--rt-cta-soft-border) !important;
  color: var(--rt-cta-soft-ink) !important;
  box-shadow: none !important;
}

.pdp-cta-row .pdp-add:not(:disabled):hover,
.pdp-sticky-buy .pdp-add:not(:disabled):hover,
.btn-dark.pdp-add:not(:disabled):hover {
  background: var(--rt-cta-soft-hover) !important;
  background-image: var(--rt-cta-soft-hover) !important;
  border-color: rgba(192, 38, 211, 0.45) !important;
  color: var(--rt-cta-deep) !important;
}

.pdp-buybox .pdp-checkout-note {
  margin: 8px 0 0 !important;
  font-size: 0.74rem !important;
  color: #94a3b8 !important;
}

/* Delivery + trust */
.pdp-deliver {
  margin-top: 14px !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: #f8fafc !important;
}

.pdp-deliver-line {
  font-size: 0.84rem !important;
  font-weight: 650 !important;
  color: #0f172a !important;
}

.pdp-trust-row {
  margin-top: 14px !important;
  padding: 12px 0 0 !important;
  gap: 10px 16px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.pdp-trust-item {
  font-size: 0.75rem !important;
  color: #334155 !important;
  font-weight: 650 !important;
}

.pdp-trust-ico {
  color: #0f766e !important;
}

/* Sticky buy bar — quiet, only after scrolling past buy buttons */
.pdp-sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(108%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.2s ease, visibility 0.2s;
}

.pdp-sticky-buy.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pdp-sticky-buy-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 1fr);
  gap: 10px 16px;
  align-items: center;
}

.pdp-sticky-buy-title {
  margin: 0 0 2px;
  font-size: 0.74rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42ch;
}

.pdp-sticky-buy-price {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b1220;
  line-height: 1.2;
}

.pdp-sticky-buy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pdp-sticky-buy .pdp-add,
.pdp-sticky-buy .pdp-buy {
  min-height: 42px !important;
  height: 42px !important;
  font-size: 0.88rem !important;
}

body.has-pdp-sticky-buy {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

.rt-ep {
  margin: 14px 0 0 !important;
}

.pdp-fbt {
  margin: 20px 0 0 !important;
  padding: 16px 18px !important;
  border-radius: 12px !important;
}

.pdp-fbt h2 {
  margin: 0 0 6px !important;
  font-size: 1rem !important;
  font-weight: 750 !important;
}

.pdp-fbt-hint {
  margin: 0 0 12px !important;
  font-size: 0.78rem !important;
  color: #64748b !important;
}

.pdp-highlights-panel {
  margin-top: 22px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.pdp-highlights-title {
  margin: 0 0 12px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: #64748b !important;
}

.pdp-highlights {
  gap: 10px !important;
}

.pdp-highlight,
.pdp-hl {
  padding: 12px 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  background: #fafbfc !important;
}

.pdp-related,
.pdp-details {
  margin-top: 28px !important;
}

@media (max-width: 980px) {
  .page-product .pdp-main-media:not(.is-zooming) img,
  .pdp-main-media:not(.is-zooming) img {
    padding: 0 !important;
    transform: none !important;
  }

  .page-product .pdp-main-media,
  .pdp-main-media {
    padding: 14px !important;
  }

  .page-product .pdp-thumbs-vert,
  .pdp-thumbs,
  .pdp-thumbs-vert {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    max-height: none !important;
  }

  .page-product .pdp-thumbs-vert .pdp-thumb,
  .pdp-thumbs .pdp-thumb {
    width: 64px !important;
    height: 64px !important;
  }

  .pdp-config .pdp-opt,
  .pdp-config .pdp-color-picker,
  .pdp-config .pdp-opt-static {
    padding: 10px 0 !important;
  }

  .pdp-sticky-buy-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(120px, 0.9fr);
    gap: 10px;
    align-items: center;
  }

  .pdp-sticky-buy-meta {
    min-width: 0;
  }

  .pdp-sticky-buy-title {
    display: block;
    margin: 0 0 2px;
    font-size: 0.7rem;
    font-weight: 650;
    color: #64748b;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .pdp-sticky-buy-price {
    font-size: 0.95rem;
  }

  .pdp-sticky-buy-actions {
    grid-template-columns: 1fr;
  }

  /* Mobile: one calm primary action in the dock */
  .pdp-sticky-buy [data-pdp-sticky-add] {
    display: none !important;
  }

  .pdp-sticky-buy {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.05);
  }

  .pdp-sticky-buy .pdp-buy {
    min-height: 44px !important;
    height: 44px !important;
  }
}

@media (max-width: 640px) {
  .page-product .pdp-layout-pro,
  .pdp-layout-pro {
    gap: 18px !important;
    margin: 8px 0 24px !important;
  }

  .pdp-buybox h1 {
    font-size: 1.2rem !important;
  }

  .page-product .pdp-price,
  .pdp-price-row .pdp-price {
    font-size: 1.4rem !important;
  }

  .pdp-config .pdp-opt-chips {
    gap: 7px !important;
  }

  .pdp-config .pdp-opt-chip {
    padding: 7px 11px !important;
  }

  .pdp-purchase-block {
    padding: 12px !important;
  }

  .pdp-cta-row {
    grid-template-columns: 1fr !important;
  }

  .pdp-fbt {
    margin: 16px 0 0 !important;
    padding: 14px !important;
  }

  body.has-pdp-sticky-buy {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }
}

/* Selection must not move/resize option cards — border/inset only */
.pdp-opt-chip,
.pdp-config .pdp-opt-chip,
.pdp-config .pdp-opt-chip--color,
.pdp-config .pdp-opt-chip.is-active,
.pdp-config .pdp-opt-chip--color.is-active,
.pdp-config > .pdp-opt .pdp-opt-chip,
.pdp-config > .pdp-opt .pdp-opt-chip.is-active {
  box-sizing: border-box !important;
  border-width: 1px !important;
  border-style: solid !important;
}

.pdp-opt-chip.is-active,
.pdp-config .pdp-opt-chip.is-active,
.pdp-config .pdp-opt-chip--color.is-active,
.pdp-config > .pdp-opt:not([data-pdp-opt="color"]) .pdp-opt-chip.is-active,
.pdp-config > .pdp-opt[data-pdp-opt="color"] .pdp-opt-chip.is-active {
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.22) !important;
}

.pdp-opt-delta,
.pdp-config .pdp-opt-delta,
.pdp-config .pdp-opt-chip--color .pdp-opt-delta,
.pdp-config > .pdp-opt:not([data-pdp-opt="color"]) .pdp-opt-delta {
  display: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

.pdp-opt-delta.is-empty,
.pdp-config .pdp-opt-delta.is-empty,
.pdp-config .pdp-opt-chip--color .pdp-opt-delta.is-empty,
.pdp-config > .pdp-opt:not([data-pdp-opt="color"]) .pdp-opt-delta.is-empty {
  display: none !important;
  visibility: hidden !important;
}

/* PDP gallery nav: stable, no layout shift */
.pdp-main-media {
  position: relative;
}
.pdp-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b1220;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pdp-nav-prev { left: 10px; }
.pdp-nav-next { right: 10px; }
.pdp-nav:hover { border-color: rgba(15, 23, 42, 0.35); }

/*
 * Hero + thumbs in one viewport: cap the square hero so the full
 * thumbnail strip sits under it. Image stays contain — no crop/stretch.
 */
.page-product .pdp-gallery,
.pdp-layout-pro .pdp-gallery {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: start;
  gap: 10px !important;
  width: 100%;
}

.page-product .pdp-main-media,
.pdp-layout-pro .pdp-main-media {
  width: min(100%, 520px, calc(100dvh - 280px)) !important;
  max-width: min(100%, 520px, calc(100dvh - 280px)) !important;
  max-height: min(520px, calc(100dvh - 280px)) !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}

.page-product .pdp-main-media img,
.pdp-layout-pro .pdp-main-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.page-product .pdp-gallery .pdp-thumbs-vert:has(.pdp-thumb:nth-child(2)),
.page-product .pdp-gallery .pdp-thumbs:has(.pdp-thumb:nth-child(2)),
.pdp-gallery .pdp-thumbs-vert:has(.pdp-thumb:nth-child(2)),
.pdp-gallery .pdp-thumbs:has(.pdp-thumb:nth-child(2)) {
  order: 2;
  display: grid !important;
  grid-template-columns: repeat(var(--pdp-thumb-count, 5), minmax(56px, 84px)) !important;
  justify-content: start !important;
  align-items: start;
  gap: 8px !important;
  width: min(100%, 520px, calc(100dvh - 280px)) !important;
  max-width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.page-product .pdp-gallery .pdp-thumbs-vert .pdp-thumb,
.page-product .pdp-gallery .pdp-thumbs .pdp-thumb,
.pdp-gallery .pdp-thumb {
  display: inline-flex !important;
  width: 100% !important;
  max-width: 84px !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 980px) {
  .page-product .pdp-main-media,
  .pdp-layout-pro .pdp-main-media {
    width: min(100%, 400px, calc(100dvh - 240px)) !important;
    max-width: min(100%, 400px, calc(100dvh - 240px)) !important;
    max-height: min(400px, calc(100dvh - 240px)) !important;
    margin-inline: auto;
    padding: 10px !important;
  }

  .page-product .pdp-gallery .pdp-thumbs-vert:has(.pdp-thumb:nth-child(2)),
  .page-product .pdp-gallery .pdp-thumbs:has(.pdp-thumb:nth-child(2)),
  .pdp-gallery .pdp-thumbs-vert:has(.pdp-thumb:nth-child(2)),
  .pdp-gallery .pdp-thumbs:has(.pdp-thumb:nth-child(2)) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-product .pdp-gallery .pdp-thumbs-vert .pdp-thumb,
  .page-product .pdp-gallery .pdp-thumbs .pdp-thumb,
  .pdp-gallery .pdp-thumb {
    width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    flex: 0 0 64px !important;
  }
}

.page-product .pdp-main-media,
.pdp-main-media {
  cursor: zoom-in;
  overflow: hidden !important;
}
.page-product .pdp-main-media.is-zooming,
.pdp-main-media.is-zooming {
  cursor: zoom-out;
}
.page-product .pdp-main-media.is-zooming img,
.pdp-main-media.is-zooming img {
  will-change: transform;
}

/* PDP — Arabic / RTL layout (presentation only; EN/LTR unchanged) */
html[dir="rtl"] body.page-product .rt-breadcrumbs {
  direction: rtl;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  text-align: right;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  unicode-bidi: isolate;
}

html[dir="rtl"] body.page-product .rt-breadcrumbs > * {
  min-width: 0;
}

html[dir="rtl"] body.page-product .pdp-info,
html[dir="rtl"] body.page-product .pdp-buybox-top,
html[dir="rtl"] body.page-product .pdp-rating-row,
html[dir="rtl"] body.page-product .pdp-condition-row,
html[dir="rtl"] body.page-product .pdp-price-row,
html[dir="rtl"] body.page-product .pdp-config {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] body.page-product .pdp-buybox h1,
html[dir="rtl"] body.page-product .pdp-info h1 {
  text-align: right;
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] body.page-product .pdp-identity,
html[dir="rtl"] body.page-product .pdp-model {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

html[dir="rtl"] body.page-product .pdp-price-row {
  align-items: flex-end;
}

html[dir="rtl"] body.page-product .pdp-gallery,
html[dir="rtl"] body.page-product .pdp-layout-pro .pdp-gallery {
  direction: rtl;
  justify-items: stretch;
}

html[dir="rtl"] body.page-product .pdp-gallery .pdp-thumbs-vert,
html[dir="rtl"] body.page-product .pdp-gallery .pdp-thumbs {
  direction: rtl;
  justify-content: flex-start;
}

html[dir="rtl"] body.page-product .pdp-nav-prev {
  left: auto;
  right: 10px;
}

html[dir="rtl"] body.page-product .pdp-nav-next {
  right: auto;
  left: 10px;
}

html[dir="rtl"] body.page-product .pdp-nav {
  transform: translateY(-50%) scaleX(-1);
}

html[dir="rtl"] body.page-product .pdp-main-media .rt-merch-badge,
html[dir="rtl"] body.page-product .rt-merch-badge {
  left: auto !important;
  right: 12px !important;
}
