/* Product detail only; loaded exclusively on product pages. */
.product-detail-page { padding: 26px 0 64px; background: #fff; }
.product-detail-container { width: 90%; max-width: 1220px; }
.product-detail-breadcrumb { margin-bottom: 28px; }
.product-detail-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "gallery title" "gallery info"; grid-template-rows: auto 1fr; column-gap: 40px; row-gap: 0; }
.product-gallery { grid-area: gallery; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; min-width: 0; }
.product-gallery-main { grid-column: 1; grid-row: 1; width: 100%; height: auto; min-height: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 0; box-shadow: none; background: #ece8e3; }
.product-gallery-slide { position: absolute; inset: 0; }
.product-gallery-main .product-gallery-img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.product-gallery-thumbs { grid-column: 1; grid-row: 2; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.product-gallery-thumb { flex: 0 0 68px; border-radius: 0; box-shadow: none; background: #ece8e3; }
.product-gallery-thumb:is(:hover, :focus-visible, .is-active) { box-shadow: none; }
.product-gallery-thumb-frame { background: #ece8e3; }
.product-gallery-thumb-frame img { object-fit: contain; }
.product-gallery-nav { opacity: 1; width: 36px; height: 36px; background: rgba(35,31,32,.3); }
.product-gallery-prev { left: 12px; }
.product-gallery-next { right: 12px; }
.product-gallery-dots { display: none; }
.product-detail-heading, .product-detail-info { min-width: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.product-detail-heading { grid-area: title; padding-top: 4px; }
.product-detail-info { grid-area: info; padding-top: 0; }
.product-detail-eyebrow { margin-bottom: 12px; color: #777; font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.product-detail-heading h1 { margin: 0 0 10px; color: var(--ink); font-family: inherit; font-size: 28px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.product-detail-code { margin: 0 0 20px; color: #777; font-size: 12px; line-height: 1.6; }
.product-detail-code span { margin-left: 10px; letter-spacing: .04em; }
.product-detail-subtitle { margin: 0 0 22px; color: #626262; font-size: 14px; line-height: 1.8; max-width: 34em; }
.product-detail-specs { margin: 0; padding: 14px 0; border-top: 1px solid #e7e7e7; }
.product-detail-spec-row { grid-template-columns: 84px minmax(0,1fr); gap: 18px; padding: 7px 0; border: 0; }
.product-detail-spec-row dt { color: #777; font-size: 13px; font-weight: 400; line-height: 1.7; }
.product-detail-spec-row dd { color: #333; font-size: 14px; line-height: 1.6; }
.product-detail-size-value { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 22px; row-gap: 4px; }
.product-detail-size-link { display: inline-flex; align-items: center; gap: 5px; padding-block: 4px; color: #555; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.product-detail-actions { margin-top: 18px; flex-direction: column; align-items: flex-start; gap: 8px; }
.product-action-primary { position: relative; width: min(50%, 150px); min-width: 0; min-height: 48px; padding: 0 22px; border-radius: 0; box-shadow: none; font-weight: 600; letter-spacing: .02em; text-align: center; }
.product-action-primary > [aria-hidden="true"] { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); }
.product-action-primary:is(:hover, :focus-visible) { box-shadow: none; transform: none; }
.product-action-secondary { width: auto; min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 0; color: #666; font-size: 13px; font-weight: 400; letter-spacing: 0; background: transparent; }
.product-action-secondary:is(:hover, :focus-visible) { color: #222; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.product-detail-info :is(a, .product-action-primary):focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.product-inquiry-quantity {
  display: grid;
  grid-template-columns: var(--inquiry-quantity-width) max-content minmax(0, 1fr);
  align-items: center;
  gap: 6px 12px;
  width: min(100%, 300px);
  margin-bottom: 4px;
}
.product-inquiry-quantity label { grid-column: 1 / -1; color: var(--ink); font-size: 13px; font-weight: 600; }
.product-inquiry-quantity input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.product-inquiry-quantity-unit { font-size: 14px; }
.product-inquiry-quantity small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.product-inquiry-added { margin: 0; color: var(--brand); font-size: 13px; font-weight: 600; }
.product-inquiry-added a { margin-inline-start: 8px; text-decoration: underline; text-underline-offset: 3px; }
.product-inquiry-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.product-inquiry-error { margin: 0; color: var(--brand); font-size: 13px; }
.product-inquiry-toast {
  position: fixed;
  z-index: 60;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 14px 20px;
  pointer-events: none;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--brand);
  background: var(--cream);
  color: var(--wine);
  box-shadow: var(--shadow);
}
.product-inquiry-toast-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-size: 16px;
}
.product-inquiry-toast strong { font-size: 14px; }
.product-inquiry-quantity input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.product-mobile-back, .product-gallery-open-label, .product-gallery-count, .product-color-preview { display: none; }
#product-sizing { scroll-margin-top: calc(var(--site-header-height, 158px) + 16px); }
@media (max-width: 1100px) {
  .product-detail-layout { grid-template-columns: minmax(0,48fr) minmax(0,52fr); column-gap: 24px; }
  .product-gallery-thumbs { gap: 8px; }
  .product-gallery-thumb { flex: 0 0 62px; }
  .product-detail-heading h1 { font-size: 26px; }
  .product-detail-spec-row { grid-template-columns: 76px minmax(0,1fr); gap: 12px; }
}
@media (max-width: 767px) {
  .product-detail-page { padding: 20px 0 48px; }
  .product-detail-breadcrumb { margin-bottom: 20px; font-size: 12px; }
  .product-detail-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: "gallery" "title" "info"; grid-template-rows: auto; }
  .product-gallery { margin-bottom: 28px; }
  .product-detail-heading { padding-top: 0; }
  .product-detail-actions { flex-direction: column; }
  .product-action-primary { width: 50%; }
  .product-action-secondary { width: auto; }
}
@media (max-width: 680px) {
  .product-detail-page { padding: 8px 0 48px; }
  .product-mobile-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 6px; color: var(--brand); font-size: 14px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
  .product-mobile-back span { font-size: 23px; line-height: 1; }
  .product-mobile-back:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
  .product-detail-breadcrumb { display: none; }
  .product-detail-layout { grid-template-areas: "title" "gallery" "info"; gap: 16px; }
  .product-detail-heading { overflow-wrap: anywhere; }
  .product-detail-heading h1 { margin-bottom: 4px; font-size: clamp(21px, 5.6vw, 26px); line-height: 1.32; }
  .product-detail-eyebrow { margin-bottom: 5px; }
  .product-detail-code { margin-bottom: 0; }
  .product-gallery-main { aspect-ratio: 1; max-height: 62svh; }
  .product-gallery-main .product-gallery-img { object-fit: contain; }
  .product-detail-size-link, .product-original-link { min-height: 44px; }
  .product-color-preview { display: inline-flex; align-items: center; min-height: 44px; margin: 6px 12px 0 0; padding: 0 8px; border: 0; color: var(--brand); background: transparent; font-size: 13px; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
  .product-color-preview:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-gallery-slide.is-active { animation: none; }
}

/* Product introduction: colour gallery and inquiry sizes. */
.product-options { border-top: 1px solid #e7e7e7; padding-top: 18px; }
.product-option-group { position: relative; border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.product-option-group legend { padding: 0; margin-bottom: 12px; color: #333; font-size: 13px; font-weight: 600; }
.product-option-group legend span { margin-left: 12px; color: #777; font-weight: 400; }
.product-color-options { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px 18px; }
.product-color-option { position: relative; display: grid; flex: 0 0 72px; min-width: 0; grid-template-rows: 48px 1fr minmax(18px, auto); justify-items: center; gap: 4px; margin: 0; cursor: pointer; font-size: 13px; line-height: 20px; text-align: center; color: #666; }
.product-color-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.product-swatch { position: relative; display: block; width: 44px; height: 44px; box-sizing: border-box; padding: 4px; border: 0; outline: 1px solid transparent; background: var(--swatch, transparent); background-clip: content-box; }
.product-swatch::before { position: absolute; inset: 4px; border: 1px solid rgba(35, 31, 32, .07); content: ""; }
.product-color-name { align-self: start; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.product-color-option input:checked + .product-swatch { outline-color: var(--brand); }
.product-color-option input:checked ~ .product-color-name { color: var(--brand); font-weight: 600; }
.product-color-option input:focus-visible + .product-swatch { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (hover: hover) {
  label.product-color-option:hover .product-color-name { color: #333; }
  label.product-color-option:hover .product-swatch::before { border-color: rgba(35, 31, 32, .2); }
}
.product-original-link { padding: 8px 0; margin-top: 6px; min-height: 36px; border: 0; background: none; color: #777; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.product-size-display { border-top: 1px solid #e7e7e7; border-bottom: 1px solid #e7e7e7; padding: 16px 0 16px; }
.product-size-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; margin-bottom: 8px; }
.product-size-heading h2 { margin: 0; font-family: inherit; font-size: 13px; line-height: 1.6; font-weight: 600; color: #333; }
.product-size-display p { margin: 0 0 6px; font-size: 14px; line-height: 1.7; color: #333; }
.product-size-display .product-size-note { color: #777; font-size: 12px; }
.product-size-options { margin: 12px 0 0; padding: 0; border: 0; min-width: 0; }
.product-size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.product-size-chip { position: relative; display: inline-grid; max-width: 100%; margin: 0; cursor: pointer; }
.product-size-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.product-size-chip span { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 6px 12px; border: 1px solid #d8d8d8; color: #333; font-size: 13px; overflow-wrap: anywhere; text-align: center; }
.product-size-chip input:checked + span { border-color: var(--brand); color: var(--brand); background: #fcf5f6; font-weight: 600; }
.product-size-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.product-size-custom { display: grid; gap: 6px; width: min(100%, 20rem); margin-top: 12px; color: #555; font-size: 13px; }
.product-size-custom input { width: 100%; padding: 8px 12px; border: 1px solid #d8d8d8; font-size: 16px; }
.product-size-custom input,
.product-inquiry-quantity input { height: 44px; }
.product-size-custom input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.product-detail-page [hidden] { display: none !important; }
.product-color-option.is-unavailable { cursor: default; }
.product-color-option .product-color-status { display: block; min-height: 18px; font-size: 11px; line-height: 18px; color: #777; }
.product-swatch.is-unspecified { background: transparent; }
.product-swatch.is-unspecified::before { display: none; }
.product-swatch.is-unspecified::after { position: absolute; inset: 4px; display: grid; place-items: center; content: "—"; color: #aaa; font-size: 14px; }
.product-original-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.product-gallery-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: #666; background: #f4f2ef; text-align: center; font-size: 14px; }

/* Related products: same presentation as the approved prototype. */
.product-related { margin-top: 64px; border-top: 1px solid #d8d8d8; padding-top: 26px; scroll-margin-top: calc(var(--site-header-height, 158px) + 20px); }
.product-related-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; min-height: 44px; }
.product-related-heading h2 { margin: 0; font: 500 20px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #292627; letter-spacing: 0; }
.product-related-controls { display: flex; gap: 8px; }
.product-related-controls[hidden] { display: none; }
.product-related-controls button { width: 44px; height: 44px; border: 1px solid #d8d8d8; border-radius: 0; background: #fff; color: #333; font-size: 20px; }
.product-related-controls button:hover:not(:disabled) { border-color: #333; }
.product-related-controls button:disabled { color: #bbb; border-color: #eee; cursor: default; }
.product-related-list { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 80px) / 5); gap: 20px; list-style: none; padding: 4px 2px 14px; margin: 0 -2px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; scrollbar-width: thin; scrollbar-color: #bdb8b4 transparent; }
.related-product-item { min-width: 0; scroll-snap-align: start; }
.related-product-link { display: block; color: #292627; text-decoration: none; }
.related-product-image { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 0; background: #f2f0ed; }
.related-product-image img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 200ms ease; }
.related-product-model { margin: 12px 0 5px; font-size: 11px; line-height: 1.5; letter-spacing: .03em; color: #777; overflow-wrap: anywhere; }
.related-product-link h3 { margin: 0; font: 400 14px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #333; }
.related-product-link:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.related-product-link:focus-visible, .product-related-controls button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (hover: hover) { .related-product-link:hover img { transform: scale(1.025); } }
@media (max-width: 1100px) { .product-related-list { grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; } }
@media (max-width: 767px) {
  .product-related { margin-top: 44px; padding-top: 18px; }
  .product-related-heading { margin-bottom: 14px; }
  .product-related-heading h2 { font-size: 18px; }
  .product-related-list { grid-auto-columns: 43%; gap: 12px; }
  .related-product-link h3 { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .related-product-image img { transition: none; } }

.related-product-placeholder { display: grid; place-items: center; height: 100%; padding: 16px; color: #777; font-size: 13px; text-align: center; }
.related-product-image + h3 { margin-top: 12px; }

/* Approved product gallery and balanced desktop layout. */
/* Cap wide-screen gallery growth while retaining every information section. */
@media (min-width: 1101px) {
  .product-detail-container { max-width: 1160px; }
  .product-detail-layout { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); column-gap: 48px; align-items: start; }
  .product-detail-heading { padding-top: 0; }
  .product-detail-info { align-self: stretch; display: flex; flex-direction: column; padding-top: 0; }
  .product-detail-specs { padding-block: 18px; }
  .product-options { padding-top: 20px; }
  .product-size-display { padding-top: 20px; }
  .product-detail-actions { margin-top: auto; padding-top: 20px; }
}
.product-gallery { gap: 18px; }
.product-gallery-main { position: relative; }
.product-gallery-open-viewer { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
.product-gallery-open-viewer::before { content: ''; position: absolute; inset: 0; background: #fff; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.product-gallery-open-viewer::after { content: ''; position: absolute; inset: auto 0 0; border-bottom: 1px dashed #555; opacity: 0; pointer-events: none; }
.product-gallery-open-viewer:focus-visible { outline: none; }
.product-gallery-open-viewer:focus-visible::before { opacity: .3; }
.product-gallery-open-viewer:focus-visible::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .product-gallery-main:hover .product-gallery-open-viewer::before { opacity: .3; }
  .product-gallery-main:hover .product-gallery-open-viewer::after { opacity: 1; }
}
.product-gallery .product-gallery-nav { position: absolute; top: auto; bottom: 10px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; color: #111; background: transparent; box-shadow: none; transform: none; opacity: 1; }
.product-gallery .product-gallery-nav:hover { color: #111; background: transparent; transform: none; }
.product-gallery .product-gallery-nav:disabled { color: #aaa; cursor: default; }
.product-gallery .product-gallery-nav[hidden] { display: none; }
.product-gallery .product-gallery-nav:focus-visible { outline: 2px solid #222; outline-offset: 0; }
.product-gallery .product-gallery-prev { left: 6px; }
.product-gallery .product-gallery-next { right: 6px; }
.product-gallery .product-gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; overflow: visible; padding: 0; }
.product-gallery .product-gallery-thumb { position: relative; display: block; width: 100%; min-width: 0; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; transition: transform .2s ease; }
.product-gallery .product-gallery-thumb-frame { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 0; }
.product-gallery .product-gallery-thumb-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transform: none; }
.product-gallery .product-gallery-thumb::after { content: ''; position: absolute; inset: auto 0 0; height: 3px; background: #0e0e0e; opacity: 0; transition: opacity .25s; }
.product-gallery .product-gallery-thumb.is-active::after { opacity: 1; }
.product-gallery .product-gallery-thumb:focus-visible { outline: 2px solid #222; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .product-gallery .product-gallery-thumb:hover { z-index: 1; transform: scale(1.1); box-shadow: none; }
}
.product-gallery-viewer { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #4c4545; color: #fff; overflow: hidden; }
.product-gallery-viewer[open] { animation: product-gallery-viewer-appear .2s ease-out; }
@keyframes product-gallery-viewer-appear { from { opacity: 0; } to { opacity: 1; } }
.product-gallery-viewer::backdrop { background: rgba(0,0,0,.7); }
.product-gallery-viewer-toolbar { position: absolute; inset: 0 0 auto; z-index: 2; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 0 0 16px; background: rgba(0,0,0,.5); }
.product-gallery-viewer-toolbar > div { display: flex; gap: 0; }
.product-gallery-viewer button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; font: 300 32px/1 Arial,sans-serif; cursor: pointer; opacity: .75; }
.product-gallery-viewer button:hover { opacity: 1; }
.product-gallery-viewer button:disabled { opacity: .25; cursor: default; }
.product-gallery-viewer button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; opacity: 1; }
.product-gallery-viewer-count { font: 14px/1.5 Arial,sans-serif; letter-spacing: .08em; }
.product-gallery-viewer-stage { position: absolute; inset: 44px 70px 0; display: grid; place-items: center; overflow: auto; scrollbar-width: none; }
.product-gallery-viewer-stage::-webkit-scrollbar { display: none; }
.product-gallery-viewer-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; }
.product-gallery-viewer.is-zoomed .product-gallery-viewer-stage { display: block; touch-action: none; cursor: grab; }
.product-gallery-viewer.is-zoomed .product-gallery-viewer-stage img { max-width: none; max-height: none; }
.product-gallery-viewer.is-zoomed .product-gallery-viewer-stage img { width: 200%; height: 200%; cursor: zoom-out; }
.product-gallery-viewer .product-gallery-viewer-prev, .product-gallery-viewer .product-gallery-viewer-next { position: absolute; top: 50%; width: 50px; height: 80px; transform: translateY(-50%); }
.product-gallery-viewer-prev svg, .product-gallery-viewer-next svg { box-sizing: content-box; padding: 5px; background: #0005; }
.product-gallery-viewer-prev { left: 10px; }
.product-gallery-viewer-next { right: 10px; }
@media (max-width: 767px) {
  .product-gallery .product-gallery-thumbs { gap: 12px; }
  .product-gallery-viewer-stage { inset: 44px 44px 0; }
  .product-gallery-viewer-prev { left: 0; }
  .product-gallery-viewer-next { right: 0; }
}
@media (max-width: 680px) {
  .product-gallery { gap: 10px; margin-bottom: 0; }
  .product-gallery .product-gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 64px)); gap: 10px; }
  .product-gallery-open-label, .product-gallery-count { position: absolute; top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; color: #fff; background: #231f20c9; font-size: 13px; }
  .product-gallery-open-label { inset-inline-end: 8px; min-height: 36px; }
  .product-gallery-open-viewer:disabled .product-gallery-open-label { display: none; }
  .product-gallery-open-label svg { width: 18px; height: 18px; }
  .product-gallery-count { inset-inline-start: 8px; z-index: 3; min-height: 28px; pointer-events: none; }
  .product-gallery .product-gallery-nav { bottom: 8px; color: #fff; background: #231f20c9; }
  .product-gallery .product-gallery-nav:hover { color: #fff; background: #231f20; }
  .product-gallery .product-gallery-nav:disabled { color: #fff; opacity: .6; }
  .product-gallery-viewer { width: 100%; }
  .product-gallery-viewer-toolbar { height: calc(48px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) max(8px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); }
  .product-gallery-viewer-stage { inset: calc(48px + env(safe-area-inset-top, 0px)) env(safe-area-inset-right, 0px) calc(48px + env(safe-area-inset-bottom, 0px)) env(safe-area-inset-left, 0px); touch-action: pan-y pinch-zoom; }
  .product-gallery-viewer .product-gallery-viewer-prev, .product-gallery-viewer .product-gallery-viewer-next { top: auto; bottom: env(safe-area-inset-bottom, 0px); width: 48px; height: 48px; transform: none; }
  .product-gallery-viewer-prev { left: max(8px, env(safe-area-inset-left, 0px)); }
  .product-gallery-viewer-next { right: max(8px, env(safe-area-inset-right, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .product-gallery .product-gallery-thumb, .product-gallery .product-gallery-thumb::after, .product-gallery-open-viewer::before { transition: none; }
  .product-gallery-viewer[open] { animation: none; }
}

.product-gallery-viewer [hidden] { display: none !important; }
.product-gallery-viewer-error { margin: 24px; color: #fff; text-align: center; font-size: 14px; line-height: 1.7; }
.product-gallery-open-viewer:disabled { cursor: default; }
.product-gallery-main:has(.product-gallery-open-viewer:disabled) .product-gallery-open-viewer::before,
.product-gallery-main:has(.product-gallery-open-viewer:disabled) .product-gallery-open-viewer::after { opacity: 0; }
