/* Product photography and a quiet, readable buying column. */
.product-page { --pdp-header-offset: 150px; background: #fff; color: #1d1d1f; }
.product-page [hidden] { display: none !important; }
.pdp-main { font-family: var(--font-sans); }
.pdp-container { width: 100%; max-width: 1380px; margin-inline: auto; padding-inline: clamp(24px, 5vw, 72px); }
.pdp-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; padding-block: 25px 32px; font-size: 12px; line-height: 1.5; color: #6e6e73; }
.pdp-breadcrumb a { color: inherit; text-decoration: none; }
.pdp-breadcrumb a:hover { color: #1d1d1f; }
.pdp-breadcrumb [aria-current] { color: #1d1d1f; }
.product-page .product-detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(350px, 1fr); align-items: start; gap: clamp(40px, 6vw, 88px); padding-bottom: 76px; }
.pdp-gallery { min-width: 0; }
.pdp-gallery-sticky { position: static; }
.product-page .gallery-main { position: relative; display: flex; align-items: center; justify-content: center; height: clamp(420px, calc(100svh - 310px), 600px); margin: 0; padding: 32px 30px 58px; border: 0; border-radius: 16px; background: #f5f5f7; }
.product-page #airpods-max-3d-frame,
.product-page #airpods-pro-3d-frame,
.product-page #iphone-air-3d-frame,
.product-page #iphone-18-pro-max-3d-frame { position: absolute; z-index: 3; inset: 0; display: block; width: 100%; height: 100%; border: 0; border-radius: inherit; background: #f5f5f7; }
.product-page #airpods-max-3d-frame[hidden],
.product-page #airpods-pro-3d-frame[hidden],
.product-page #iphone-air-3d-frame[hidden],
.product-page #iphone-18-pro-max-3d-frame[hidden] { display: none !important; }
.product-page .gallery-main.is-airpods-max-3d,
.product-page .gallery-main.is-airpods-pro-3d,
.product-page .gallery-main.is-iphone-air-3d,
.product-page .gallery-main.is-iphone-18-3d { padding: 0; background: #f5f5f7; }
.product-page .gallery-main.is-airpods-max-3d > .pdp-gallery-navigation,
.product-page .gallery-main.is-airpods-pro-3d > .pdp-gallery-navigation,
.product-page .gallery-main.is-iphone-air-3d > .pdp-gallery-navigation,
.product-page .gallery-main.is-iphone-18-3d > .pdp-gallery-navigation { display: none !important; }
.pdp-image-button { display: grid; place-items: center; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: zoom-in; touch-action: pan-y pinch-zoom; }
.pdp-image-button:disabled { cursor: default; }
.product-page .gallery-main img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.product-page[data-product-id="iphone-15-pro-max"] .gallery-main:not(.is-360-view) .pdp-image-button img { transform: scale(1.08); }
.product-page .product-photo-pending { padding: 20px; color: #6e6e73; font-size: 14px; line-height: 1.6; }
.pdp-zoom-button, .pdp-gallery-arrow { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #1d1d1f; cursor: pointer; }
.pdp-zoom-button { position: absolute; top: 18px; right: 18px; }
.pdp-zoom-button:disabled { opacity: .35; cursor: default; }
.pdp-zoom-button svg, .pdp-gallery-arrow svg, .pdp-zoom-layout button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.pdp-gallery-toolbar { position: absolute; inset: auto 20px 16px; display: flex; justify-content: space-between; align-items: center; }
.pdp-gallery-counter { margin: 0; color: #6e6e73; font-size: 12px; font-variant-numeric: tabular-nums; }
.pdp-gallery-exit { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 11px; border: 1px solid #0071e3; border-radius: 5px; background: #fff; color: #0071e3; font: inherit; font-size: 12px; cursor: pointer; }
.pdp-gallery-exit span { font-size: 17px; line-height: 1; }
.pdp-gallery-navigation { display: flex; gap: 8px; }
.product-page .gallery-thumbs { display: flex; width: max-content; max-width: 100%; justify-content: flex-start; flex-wrap: nowrap; gap: 10px; margin: 16px auto 0; padding: 3px 2px; overflow-x: auto; scrollbar-width: thin; }
.product-page .gallery-thumb { display: flex; flex: 0 0 65px; align-items: center; justify-content: center; width: 65px; height: 65px; padding: 7px; border: 1px solid transparent; border-radius: 9px; background: #f5f5f7; cursor: pointer; transition: border-color 180ms ease; }
.product-page .gallery-thumb.active { border-color: #0071e3; box-shadow: 0 0 0 1px #0071e3; }
.product-page .gallery-thumb img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.product-page .gallery-thumb--spin { border-color: #d2d2d7; background: #fff; }
.product-page .gallery-thumb--spin.active { border-color: #0071e3; color: #0071e3; }
.product-page .gallery-thumb--spin img { width: 100%; height: 100%; object-fit: contain; }
.product-page .gallery-main:fullscreen { width: 100vw; height: 100vh; max-height: none; padding: 0; border-radius: 0; background: #f5f5f7; }
.product-page .gallery-main:fullscreen #airpods-max-3d-frame,
.product-page .gallery-main:fullscreen #airpods-pro-3d-frame,
.product-page .gallery-main:fullscreen #iphone-air-3d-frame,
.product-page .gallery-main:fullscreen #iphone-18-pro-max-3d-frame { border-radius: 0; }
.pdp-gallery-spin-hint { position: absolute; z-index: 2; inset: auto 50% 16px auto; transform: translateX(50%); margin: 0; padding: 7px 11px; border: 1px solid rgb(210 210 215 / 70%); border-radius: 999px; background: rgb(255 255 255 / 90%); color: #6e6e73; font-size: 11px; line-height: 1.2; pointer-events: none; white-space: nowrap; }
.gallery-main.is-360-view .pdp-image-button { cursor: ew-resize; user-select: none; }
.gallery-main.is-360-view .pdp-image-button img { pointer-events: none; }
.pdp-configurator { min-width: 0; padding-top: 6px; }
.pdp-product-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; color: #6e6e73; font-size: 12px; font-weight: 500; line-height: 1.5; }
.pdp-condition-label { padding-left: 12px; border-left: 1px solid #d2d2d7; color: #1d1d1f; }
.product-page #product-title { margin: 0; color: #1d1d1f; font-family: var(--font-sans); font-size: clamp(34px, 3.3vw, 48px); font-weight: 550; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.pdp-product-intro { max-width: 40ch; margin: 16px 0 0; color: #6e6e73; font-size: 14px; line-height: 1.7; }
.pdp-price-block { margin: 28px 0 30px; }
.pdp-current-price { display: block; color: #1d1d1f; font-size: 30px; font-weight: 550; line-height: 1.25; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.product-page .product-price-pending { font-size: 26px; font-weight: 500; color: #1d1d1f; letter-spacing: -.035em; }
.pdp-availability { margin: 8px 0 0; color: #6e6e73; font-size: 12px; line-height: 1.6; }
.pdp-availability.is-on-order { display: grid; gap: 3px; margin-top: 10px; }
.pdp-availability-label { color: #484b50; font-weight: 500; }
.pdp-delivery-estimate { color: #73777d; font-weight: 400; }
.pdp-options { display: grid; gap: 28px; }
.pdp-option-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.pdp-option-label { display: block; width: 100%; margin-bottom: 14px; padding: 0; color: #1d1d1f; font-size: 15px; font-weight: 600; line-height: 1.5; letter-spacing: -.015em; }
.pdp-option-label span { margin-left: 8px; color: #6e6e73; font-weight: 400; }
.pdp-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pdp-choices.is-single { grid-template-columns: 1fr; }
.pdp-choice { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 15px 16px; border: 1px solid #d1d1d6; border-radius: 10px; background: #fff; color: #1d1d1f; font-size: 15px; font-weight: 500; line-height: 1.45; text-align: center; text-decoration: none; cursor: pointer; transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
.pdp-condition-choice { flex-direction: row; gap: 0; }
.pdp-condition-price { display: none !important; }
.pdp-choice[aria-pressed="true"], .pdp-choice[aria-current="true"] { border: 2px solid #0071e3; box-shadow: 0 0 0 1px rgb(0 113 227 / 8%); }
.pdp-choice:disabled { color: #898b91; border-style: solid; border-color: #e2e2e7; background: #f6f6f8; box-shadow: none; text-decoration: line-through; text-decoration-color: #b6b0ac; cursor: not-allowed; }
.pdp-quantity-row { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #e5e5e7; }
.pdp-quantity-row > label { color: #1d1d1f; font-size: 16px; font-weight: 550; line-height: 1.4; }
.pdp-quantity-control { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; width: 188px; max-width: 100%; height: 48px; overflow: hidden; border: 1px solid #1d1d1f; border-radius: 9px; background: #fff; }
.pdp-quantity-control button { width: 100%; height: 46px; padding: 0; border: 0; background: #fff; color: #68686d; font-size: 20px; font-weight: 550; cursor: pointer; }
.pdp-quantity-control button:disabled { color: #b4b4b9; cursor: default; }
.pdp-quantity-control input { width: 100%; min-width: 0; height: 46px; padding: 0; border: 0; border-radius: 0; background: #fff; color: #1d1d1f; text-align: center; font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.pdp-quantity-control input::-webkit-inner-spin-button, .pdp-quantity-control input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-purchase { padding: 24px 0 0; }

.pdp-primary-action { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 14px 24px; border: 0; border-radius: 28px; background: #0071e3; color: #fff; font-family: inherit; font-size: 14px; font-weight: 550; line-height: 1.5; text-decoration: none; cursor: pointer; transition: background-color 180ms ease; }
.pdp-primary-action:hover { background: #0077ed; }
.pdp-primary-action:disabled { background: #e5e5e7; color: #86868b; cursor: default; }
.pdp-secondary-action { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 44px; margin-top: 4px; padding: 10px 16px; border: 0; background: transparent; color: #0071e3; font-size: 13px; font-weight: 500; cursor: pointer; }
.pdp-purchase-note { margin: 11px 0 0; color: #86868b; font-size: 11px; line-height: 1.65; text-align: center; }
.pdp-delivery-preview { display: grid; gap: 15px; margin-top: 26px; padding: 22px 0; border-top: 1px solid #e5e5e7; }
.pdp-delivery-row { display: flex; gap: 12px; align-items: flex-start; }
.pdp-delivery-row .pdp-delivery-icon { display: block; flex: 0 0 28px; width: 28px; height: 28px; margin-top: 1px; object-fit: contain; opacity: 1; }
.pdp-delivery-row strong { display: block; color: #1d1d1f; font-size: 13px; font-weight: 550; line-height: 1.5; }
.pdp-delivery-row p { margin: 3px 0 0; color: #6e6e73; font-size: 12px; line-height: 1.6; }
.pdp-delivery-row a { color: #0071e3; text-decoration: none; font-size: 12px; line-height: 1.6; }
.pdp-service-accordions { display: grid; gap: 10px; margin-top: 22px; }
.pdp-accordion { overflow: hidden; border: 1px solid #e2e4e8; border-radius: 12px; background: #fff; }
.pdp-accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; padding: 17px 20px; color: #1d1d1f; font-size: 16px; font-weight: 600; line-height: 1.45; text-decoration: none; list-style: none; cursor: pointer; transition: color 180ms ease, background-color 180ms ease; }
.pdp-accordion summary:hover { background: #fafafa; }
.pdp-accordion summary::-webkit-details-marker { display: none; }
.pdp-accordion summary > svg { flex: 0 0 14px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms ease; }
.pdp-accordion[open] summary > svg { transform: rotate(180deg); }
.pdp-accordion-content { padding: 0 20px 18px; color: #242426; font-size: 14px; line-height: 1.55; }
.pdp-accordion-content p { margin: 0 0 8px; }
.pdp-accordion-content a { color: #0071e3; font-weight: 600; text-decoration: none; }
.pdp-accordion-content dl { margin: 0 0 12px; }
.pdp-accordion-content dl > div { padding-bottom: 10px; }
.pdp-accordion-content dt { color: #1d1d1f; font-weight: 500; }
.pdp-accordion-content dd { margin: 2px 0 0; }
.pdp-accordion[open] .pdp-accordion-content { animation: pdp-accordion-enter 180ms ease-out; }
@keyframes pdp-accordion-enter { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
.pdp-shipping-method + .pdp-shipping-method { margin-top: 11px; }
.pdp-shipping-method strong { color: #1d1d1f; font-weight: 550; }
.pdp-share { margin-top: 23px; }
.pdp-share-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #1d1d1f; cursor: pointer; transition: color .16s ease, background .16s ease; }
.pdp-share-button > img { display: block; width: 18px; height: 18px; object-fit: contain; }
.pdp-share-social { display: flex; align-items: center; gap: 15px; margin-top: 15px; }
.pdp-share-social a { display: grid; place-items: center; width: 24px; height: 24px; color: #111; transition: opacity .16s ease, transform .16s ease; }
.pdp-share-social img { display: block; width: 18px; height: 18px; object-fit: contain; }
.pdp-share-button:hover { background: #f3f5f7; color: #0071e3; }
.pdp-share-button:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }
.pdp-share-social a:hover { opacity: .78; transform: translateY(-1px); }
.pdp-share-social a:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; border-radius: 50%; }
.pdp-details-section { padding: 64px 0 70px; border-top: 1px solid #e5e5e7; scroll-margin-top: calc(var(--pdp-header-offset) + 24px); }
.pdp-eyebrow { margin: 0 0 12px; color: #6e6e73; font-size: 12px; font-weight: 500; line-height: 1.5; }
.pdp-details-heading { margin-bottom: 40px; }
.pdp-details-heading h2, .pdp-explore-layout h2 { margin: 0; color: #1d1d1f; font-size: clamp(28px, 3vw, 38px); font-weight: 550; line-height: 1.16; letter-spacing: -.04em; text-wrap: balance; }
.pdp-details-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 8vw, 120px); }
.pdp-details-copy h3, .pdp-specs-heading { margin: 0 0 19px; color: #1d1d1f; font-size: 17px; font-weight: 550; line-height: 1.4; letter-spacing: -.02em; }
.pdp-details-copy p { max-width: 42ch; margin: 0 0 23px; color: #6e6e73; font-size: 16px; line-height: 1.8; }
.pdp-text-link { display: inline-flex; align-items: center; gap: 10px; color: #0071e3; font-size: 14px; font-weight: 600; line-height: 1.6; text-decoration: none; }
.pdp-specs-list { margin: 0; }
.pdp-specs-list > div { display: grid; grid-template-columns: minmax(105px, .65fr) minmax(0, 1fr); gap: 22px; padding: 15px 0; border-bottom: 1px solid #e5e5e7; font-size: 13px; line-height: 1.65; }
.pdp-specs-list > div:first-child { border-top: 1px solid #e5e5e7; }
.pdp-specs-list dt { color: #6e6e73; font-weight: 400; }
.pdp-specs-list dd { margin: 0; color: #1d1d1f; overflow-wrap: anywhere; }
.pdp-explore-section { padding: 47px 0; background: #f5f5f7; }
.pdp-explore-layout { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.pdp-explore-layout h2 { font-size: clamp(25px, 2.5vw, 32px); }
.pdp-explore-layout p:not(.pdp-eyebrow) { max-width: 55ch; margin: 13px 0 0; color: #6e6e73; font-size: 14px; line-height: 1.7; }
.pdp-explore-links { display: grid; gap: 15px; flex-shrink: 0; }
.pdp-mobile-purchase { display: none; }
.pdp-zoom-dialog { width: min(1000px, calc(100vw - 48px)); max-width: none; height: min(860px, calc(100svh - 48px)); max-height: none; margin: auto; padding: 24px; border: 0; border-radius: 16px; background: #fff; color: #1d1d1f; }
.pdp-zoom-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.pdp-zoom-layout { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 20px; height: 100%; }
.pdp-zoom-layout header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.pdp-zoom-layout h2 { min-width: 0; margin: 0; font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pdp-zoom-layout button { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 0; border-radius: 50%; background: #f5f5f7; color: #1d1d1f; cursor: pointer; }
.pdp-zoom-layout > img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.pdp-zoom-controls { display: flex; justify-content: center; align-items: center; gap: 25px; }
.pdp-zoom-controls p { margin: 0; min-width: 42px; color: #6e6e73; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.pdp-zoom-open { overflow: hidden; }
.pdp-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.pdp-empty { max-width: 520px; margin: 60px auto 100px; text-align: center; }
.pdp-empty h1 { margin-bottom: 20px; font-size: 32px; font-weight: 550; letter-spacing: -.035em; }
.pdp-empty p { margin-bottom: 24px; color: #6e6e73; line-height: 1.7; }
.product-page .pdp-main button:focus-visible, .product-page .pdp-main a:focus-visible, .product-page .pdp-main input:focus-visible, .product-page .pdp-main summary:focus-visible, .pdp-zoom-dialog button:focus-visible, .pdp-mobile-purchase button:focus-visible { outline: 2px solid #0071e3; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .pdp-choice:hover:not(:disabled):not([aria-current="true"]):not([aria-pressed="true"]) { border-color: #86868b; }
  .pdp-gallery-arrow:hover, .pdp-zoom-button:hover:not(:disabled) { background: #e8e8ed; }
  .pdp-text-link:hover, .pdp-accordion-content a:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .pdp-container { padding-inline: 32px; }
  .product-page .product-detail-grid { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr); gap: 36px; }
  .product-page .gallery-main { height: clamp(380px, calc(100svh - 300px), 520px); padding-inline: 22px; }
}
@media (max-width: 760px) {
  .pdp-container { padding-inline: 24px; }
  .pdp-breadcrumb { gap: 8px; padding-block: 19px 22px; font-size: 11px; }
  .product-page .product-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-bottom: 44px; }
  .pdp-gallery { height: auto; }
  .pdp-gallery-sticky { position: static; }
  .product-page .gallery-main { height: clamp(330px, 94vw, 500px); padding: 26px 26px 57px; border-radius: 13px; }
  .product-page .gallery-thumbs { width: 100%; justify-content: flex-start; gap: 9px; }
  .product-page .gallery-thumb { flex-basis: 58px; width: 58px; height: 58px; }
  .pdp-configurator { padding-top: 0; }
  .pdp-quantity-control { height: 48px; }
  .pdp-quantity-control button, .pdp-quantity-control input { height: 46px; }
  .pdp-gallery-arrow, .pdp-zoom-button { width: 44px; height: 44px; }
  .pdp-product-intro { font-size: 15px; }
  .pdp-accordion summary { min-height: 62px; padding: 15px 17px; }
  .pdp-accordion-content { padding: 0 17px 16px; }
  .product-page #product-title { font-size: 36px; }
  .pdp-price-block { margin-block: 23px 28px; }
  .pdp-details-section { padding-block: 44px; }
  .pdp-details-heading { margin-bottom: 30px; }
  .pdp-details-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .pdp-details-copy p { max-width: none; font-size: 15px; }
  .pdp-explore-section { padding-block: 35px; }
  .pdp-explore-layout { flex-direction: column; align-items: flex-start; gap: 25px; }
  .pdp-explore-links { gap: 13px; }
  .pdp-mobile-purchase { position: fixed; z-index: 90; inset: auto 0 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 20px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid #e5e5e7; background: #fff; box-shadow: 0 -4px 20px rgb(0 0 0 / 3%); }
  .pdp-mobile-purchase > div { min-width: 0; }
  .pdp-mobile-name { display: block; max-width: 40vw; overflow: hidden; color: #6e6e73; font-size: 11px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }
  .pdp-mobile-purchase strong { display: block; color: #1d1d1f; font-size: 15px; font-weight: 550; line-height: 1.5; letter-spacing: -.02em; overflow-wrap: anywhere; }
  .pdp-mobile-purchase .pdp-primary-action { width: auto; flex-shrink: 0; min-height: 42px; padding: 10px 20px; font-size: 12px; }
  .pdp-zoom-dialog { width: calc(100vw - 20px); height: calc(100svh - 20px); padding: 16px; border-radius: 12px; }
  .pdp-zoom-layout { gap: 15px; }
}
@media (max-width: 480px) {
  .pdp-container { padding-inline: 20px; }
  .product-page #product-title { font-size: clamp(30px, 8vw, 36px); }
  .product-page .gallery-main { height: clamp(280px, 88vw, 390px); padding: 24px 24px 61px; }
  .pdp-mobile-purchase { gap: 12px; padding-inline: 16px; }
  .pdp-mobile-purchase .pdp-primary-action { min-height: 44px; padding-inline: 16px; }
  .pdp-specs-list > div { grid-template-columns: minmax(90px, .65fr) minmax(0, 1fr); gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pdp-primary-action, .pdp-choice, .gallery-thumb, .pdp-accordion summary > svg { transition: none; }
  .pdp-accordion[open] .pdp-accordion-content { animation: none; }
}

/* Binkies: el botón vive en la tira de miniaturas y el visor ocupa la foto principal. */
.product-page .gallery-thumbs { position: relative; }
.product-page .gallery-thumbs > [data-binkies-content="root"] { position: absolute !important; z-index: 8; margin: 0 !important; }
.product-page .gallery-thumbs > [data-binkies-content="root"] [role="button"] { width: 100% !important; height: 100% !important; border: 1px solid #0071e3 !important; border-radius: 9px !important; background: #fff !important; cursor: pointer; }
.product-page .gallery-thumbs > [data-binkies-content="root"] img,
.product-page .gallery-thumbs > [data-binkies-content="root"] canvas { width: 100% !important; height: 100% !important; max-width: 100%; max-height: 100%; object-fit: contain; }
.product-page .gallery-main > [data-binkies-content="root"] { position: absolute !important; inset: 0 !important; z-index: 8; width: 100% !important; height: 100% !important; }
.product-page #binkies-player-component { width: 100%; height: 100%; min-height: 420px; border-radius: 14px; overflow: hidden; }
.product-page .gallery-thumb--360-slot { flex: 0 0 65px; width: 65px; height: 65px; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; }
@media (max-width: 760px) {
  .product-page #binkies-player-component { min-height: 330px; }
  .product-page .gallery-thumb--360-slot { flex-basis: 58px; width: 58px; height: 58px; }
}

/* Ocultar controles de ampliación y el contador de fotografías. */
.product-page #gallery-zoom-button,
.product-page #gallery-counter { display: none !important; }

/* Flechas centradas en los laterales de la fotografía. */
.product-page .gallery-main > .pdp-gallery-navigation {
  position: absolute;
  z-index: 12;
  inset: 50% 16px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-50%);
  pointer-events: none;
}
.product-page .gallery-main > .pdp-gallery-navigation .pdp-gallery-arrow {
  display: flex;
  width: 46px;
  height: 46px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgb(0 0 0 / 12%);
  pointer-events: auto;
}
.product-page .gallery-main > .pdp-gallery-navigation .pdp-gallery-arrow svg { width: 18px; height: 18px; }
.product-page .gallery-main > .pdp-gallery-toolbar { z-index: 12; inset: auto auto 16px 20px; pointer-events: none; }
.product-page .gallery-main > .pdp-gallery-toolbar .pdp-gallery-exit { pointer-events: auto; }
.product-page .gallery-main > .pdp-gallery-toolbar .pdp-gallery-fullscreen { pointer-events: auto; }
.product-page .gallery-main.is-airpods-max-3d > .pdp-gallery-toolbar,
.product-page .gallery-main.is-iphone-air-3d > .pdp-gallery-toolbar,
.product-page .gallery-main.is-360-view > .pdp-gallery-toolbar { inset: auto 16px 16px 20px; }
.pdp-gallery-fullscreen { display: grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px; padding: 0; border: 1px solid #0071e3; border-radius: 50%; background: #fff; color: #0071e3; cursor: pointer; }
.pdp-gallery-fullscreen svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Controles del visor en las esquinas inferiores de la ficha. */
.product-page .gallery-main > [data-binkies-content="root"] .grid-cell:has(canvas[style*="exit_3D_desktop.svg"]) {
  left: 20px !important; top: auto !important; right: auto !important; bottom: 18px !important;
  width: 80px !important; height: 42px !important; z-index: 12 !important; pointer-events: auto !important;
}
.product-page .gallery-main > [data-binkies-content="root"] .grid-cell:has(canvas[style*="icon_fullscreen.svg"]) {
  left: auto !important; top: auto !important; right: 18px !important; bottom: 16px !important;
  width: 50px !important; height: 50px !important; z-index: 12 !important; pointer-events: auto !important;
}
.product-page .gallery-main > [data-binkies-content="root"] .grid-cell:has(canvas[style*="exit_3D_desktop.svg"]) canvas,
.product-page .gallery-main > [data-binkies-content="root"] .grid-cell:has(canvas[style*="icon_fullscreen.svg"]) canvas { pointer-events: auto !important; }

/* El teléfono queda centrado en el área de visualización 3D. */
.product-page .gallery-main > [data-binkies-content="root"] canvas[style*="position: relative"] {
  transform: translate(-28px, 8px) !important;
}
@media (max-width: 760px) {
  .product-page .gallery-main > .pdp-gallery-navigation { inset-inline: 10px; }
  .product-page .gallery-main > .pdp-gallery-navigation .pdp-gallery-arrow { width: 40px; height: 40px; }
  .product-page .gallery-main.is-airpods-max-3d > .pdp-gallery-toolbar,
  .product-page .gallery-main.is-iphone-air-3d > .pdp-gallery-toolbar,
  .product-page .gallery-main.is-360-view > .pdp-gallery-toolbar { inset: auto 12px 12px 12px; }
  .pdp-gallery-fullscreen { flex-basis: 44px; width: 44px; height: 44px; }
  .product-page .gallery-main > [data-binkies-content="root"] canvas[style*="position: relative"] { transform: translate(-12px, 4px) !important; }
}
