/* A quiet photographic stage, with the same sliding engine as PlayStation Blog. */
.brand-system.product-page .product-gallery { min-width: 0; }
.product-carousel { visibility: visible; }
.brand-system.product-page .product-carousel .gallery-main {
  display: block; min-height: 0; aspect-ratio: 1.18; border: 0;
  border-radius: 18px; background: #fff; isolation: isolate;
}
.product-carousel .splide__track { height: 100%; touch-action: pan-y pinch-zoom; cursor: grab; }
.product-carousel .splide__track:active { cursor: grabbing; }
.product-carousel .splide__list { margin: 0 !important; padding: 0 !important; height: 100%; }
.product-carousel .splide__slide { display: grid; place-items: center; min-width: 0; background: #fff; }
.brand-system.product-page .product-carousel .splide__slide img {
  display: block; width: 100%; height: 100%; max-height: none; object-fit: contain;
  filter: none; user-select: none; -webkit-user-drag: none;
}
.product-carousel:not(.is-initialized) .splide__track { overflow-x: auto; scroll-snap-type: x mandatory; }
.product-carousel:not(.is-initialized) .splide__slide { flex: 0 0 100%; scroll-snap-align: center; }
.product-carousel .photo-arrows { position: absolute; inset: 50% 12px auto; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; z-index: 2; }
.product-carousel .photo-arrows[hidden], .photo-tools[hidden] { display: none; }
.product-carousel .photo-arrows button, .product-carousel .photo-expand {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  color: #443d49; background: #efedf0e8; border: 1px solid #48404e16; border-radius: 50%;
  cursor: pointer; pointer-events: auto; transition: background .2s;
}
.product-carousel .photo-arrows svg { width: 22px; height: 22px; }
.product-carousel .photo-tools { position: absolute; top: 12px; right: 12px; z-index: 2; }
.product-carousel .photo-expand { background: #ffffffcc; }
.product-carousel .photo-expand svg { width: 18px; height: 18px; }
.product-carousel .splide__pagination { position: static; display: flex; gap: 0; padding: 8px 0 0; }
.product-carousel .splide__pagination li { display: flex; }
.product-carousel .splide__pagination__page {
  display: grid; place-items: center; width: 32px; height: 40px; margin: 0; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.product-carousel .splide__pagination__page::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #82788e; transition: background .2s, transform .2s; }
.product-carousel .splide__pagination__page.is-active::after { background: #e8b7d0; transform: scale(1.4); }
.product-carousel button:focus-visible { outline: 2px solid #b46b98; outline-offset: 2px; }
.product-carousel .photo-caption { margin: 0; text-align: center; color: #b9afc3; font: 400 12px/1.5 Inter,sans-serif; }
.product-carousel .has-photo-error img { visibility: hidden; }
.product-carousel .photo-retry { position: absolute; inset: auto; max-width: 70%; padding: 14px; border: 1px solid #bbb3bf; border-radius: 8px; background: #fff; color: #382e40; font: 500 13px/1.5 Inter,sans-serif; cursor: pointer; }
.product-carousel .photo-retry[hidden] { display: none; }
.brand-system.product-page .product-purchase .variant-label { text-transform: none; letter-spacing: 0; margin-bottom: 12px; font-size: 13px; }
.variant-label strong { font-weight: 500; color: #f6edf5; }
.brand-system.product-page .variant-switch.variant-photos { display: flex; gap: 16px; margin-bottom: 24px; }
.brand-system.product-page .variant-photos a {
  position: relative; display: flex; flex-direction: column; gap: 8px; width: 82px; padding: 5px;
  min-height: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; box-shadow: none;
  color: #c0b4c8; font-size: 12px; font-weight: 400;
}
.brand-system.product-page .variant-photos a img { display: block; width: 70px; height: 70px; border-radius: 2px; }
.brand-system.product-page .variant-photos a.active { border-color: #e8b7d0; color: #fff5fb; background: #e8b7d00a; box-shadow: none; }
.variant-photos a:focus-visible { outline: 2px solid #e8b7d0; outline-offset: 4px; }
@media(hover:hover) {
  .product-carousel .photo-arrows button:hover, .product-carousel .photo-expand:hover { background: #ded8e1; border-color: #bbb0c1; }
  .brand-system.product-page .variant-photos a:hover { border-color: #aa859e; }
}
@media(max-width:640px) {
  .brand-system.product-page .product-carousel .gallery-main { aspect-ratio: 1.12; border-radius: 14px; }
  .product-carousel .photo-arrows { left: 6px; right: 6px; }
  .product-carousel .photo-arrows button { width: 40px; height: 44px; background: #efedf0cf; }
  .product-carousel .photo-caption { font-size: 11px; }
}
.photo-inspection { --photo-bg: #19141e; position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--photo-bg); color: #fff5fa; overflow: hidden; }
.photo-inspection:not([open]) { display: none; }
.photo-inspection[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.photo-inspection::backdrop { background: #100d14; }
.photo-inspection-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: max(18px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) 18px max(24px,env(safe-area-inset-left)); border-bottom: 1px solid #e7c8db20; }
.photo-inspection-head p { margin: 0 0 6px; color: #d8a7c1; font: 600 .6rem/1.5 Inter,sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.photo-inspection-head h2 { margin: 0; font: 600 clamp(1.1rem,2.6vw,1.5rem)/1.2 Archivo,sans-serif; letter-spacing: -.025em; }
.photo-inspection button { flex-shrink: 0; min-width: 48px; min-height: 48px; border: 1px solid #aa87a65c; border-radius: 99px; background: #2c2233; color: #fff3fb; cursor: pointer; font: 600 .75rem Inter,sans-serif; }
.photo-inspection button:focus-visible,.photo-viewport:focus-visible { outline: 2px solid #f6b4d1; outline-offset: -4px; }
.photo-inspection button:disabled { opacity: .45; cursor: default; }
.photo-close { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px; }
.photo-close span:last-child { font: 300 1.6rem/1 Inter,sans-serif; }
.photo-viewport { min-width: 0; min-height: 0; overflow: hidden; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; background: radial-gradient(ellipse at center,#3d314443,transparent 70%); }
.photo-viewport.is-zoomed { overflow: auto; touch-action: pan-x pan-y pinch-zoom; }
.photo-canvas { display: grid; place-items: center; min-width: 100%; min-height: 100%; }
.product-page .photo-canvas img { display: block; max-width: none; max-height: none; flex-shrink: 0; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.photo-inspection-foot { padding: 16px max(24px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left)); border-top: 1px solid #e7c8db20; }
.photo-inspection-foot > p { margin: 0 0 12px; text-align: center; font: 500 .8rem/1.6 Inter,sans-serif; }
.photo-inspection-controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.photo-inspection-controls [data-photo-step] { font-size: 1.3rem; }
.photo-inspection-controls [data-photo-zoom] { padding: 0 22px; min-width: 135px; }
.photo-inspection-foot .photo-hint { margin: 12px 0 0; color: #bcaec2; font-size: .68rem; line-height: 1.5; }
.product-white .photo-inspection { --photo-bg: #eae4e8; color: #2a1d2e; }
.product-white .photo-inspection-head,.product-white .photo-inspection-foot { border-color: #543b5826; }
.product-white .photo-inspection-head p { color: #80506e; }
.product-white .photo-inspection .photo-hint { color: #6b5369; }
.product-white .photo-viewport { background: radial-gradient(ellipse at center,#fff8fc,transparent 70%); }
.photo-inspection-open [data-scroll-dock] { visibility: hidden; }
.product-page .buy-row { grid-template-columns: 126px minmax(0,1fr); }
.product-page .quantity button { width: 44px; min-width: 44px; padding: 0; }
.product-page .quantity [data-quantity-value] { min-width: 26px; }
.product-page .buy-row>.button { min-width: 0; padding: 12px 16px; line-height: 1.5; }
@media(hover:hover) { .photo-expand:hover,.photo-arrows button:hover,.photo-inspection button:not(:disabled):hover { background: #49344d; border-color: #e6b1cf; } }

@media(max-width:640px) {
  .photo-tools { top: 12px; right: 12px; }
  .photo-expand { padding: 0 13px; font-size: .66rem; }


  .photo-inspection-head { padding-inline: max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right)); }
  .photo-inspection-head p { font-size: .53rem; }
  .photo-inspection-head h2 { font-size: 1.2rem; }
  .photo-close { padding: 0 13px; gap: 8px; }
  .photo-close span:first-child { font-size: .67rem; }
  .photo-inspection-foot { padding-inline: 16px; }
  .product-page .buy-row { gap: 10px; }
  .product-page .buy-row>.button { font-size: .72rem; }
}
@media(max-height:480px) and (orientation:landscape) {
  .photo-inspection-head { padding-block: 8px; }
  .photo-inspection-head p,.photo-inspection-foot .photo-hint { display: none; }
  .photo-inspection-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 8px; }
  .photo-inspection-foot>p { margin: 0; text-align: left; }
}
@media(prefers-reduced-motion:reduce) { .photo-inspection *, .photo-gallery-ready * { scroll-behavior: auto; } }

/* Pagination carries the visual position; captions remain available to assistive technology. */
.product-carousel:not(.has-gallery-error) .photo-caption{
 position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
 clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0;
}
.product-carousel.has-gallery-error .photo-caption{margin:8px 0;color:#efc2d8}
.product-page .photo-canvas img[hidden]{display:none}
.brand-system.product-page .variant-photos a{width:64px;gap:7px;padding:7px 6px;font-size:11px}
.brand-system.product-page .variant-photos a img{width:44px;height:44px}
.brand-system.product-page .variant-switch.variant-photos{gap:12px}
@media(max-width:640px){
 .brand-system.product-page .product-carousel .gallery-main{aspect-ratio:4/3}
 .product-carousel .splide__pagination{padding-top:4px}
 .product-carousel .photo-arrows button{width:44px}
}
@media(prefers-reduced-motion:reduce){
 .product-carousel .splide__pagination__page::after,.product-carousel .photo-arrows button,.product-carousel .photo-expand{transition:none}
}
