/* ARGEMS product detail. Scoped to .ap; no framework or global reset. */
.ap {
  --ap-ink: #172b46;
  --ap-muted: #5f6e82;
  --ap-blue: #084b89;
  --ap-line: #dce4ee;
  --ap-soft: #eef4fc;
  --ap-danger: #b32c3a;
  --ap-radius: 9px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 48px 40px;
  color: var(--ap-ink);
  font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
.ap, .ap *, .ap *::before, .ap *::after { box-sizing: border-box; }
.ap [hidden] { display: none !important; }
.ap :where(h1, h2, h3, p, dl, dd, figure, ol) { margin: 0; }
.ap :where(button, input) { font: inherit; color: inherit; }
.ap button, .ap summary { cursor: pointer; }
.ap a { color: var(--ap-blue); text-decoration: none; }
.ap a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ap button { -webkit-tap-highlight-color: transparent; }
.ap img { display: block; max-width: 100%; }
.ap form { margin: 0; }
.ap strong, .ap b { font-weight: 650; }
.ap :where(a, button, input, summary, [tabindex]):focus { outline: none; }
.ap :where(a, button, input, summary, [tabindex]):focus-visible { outline: 2px solid var(--ap-blue); outline-offset: 3px; }
.ap :where(a, button)[aria-current="true"]:focus-visible { outline-offset: -2px; }
.ap :where(button, input):disabled { cursor: not-allowed; opacity: .5; }
.ap h1 { font-size: clamp(22px, 2.2vw, 24px); line-height: 1.2; letter-spacing: -.7px; font-weight: 680; }
.ap h2 { font-size: 19px; line-height: 1.35; font-weight: 650; letter-spacing: -.3px; }
.ap h3 { font-size: 17px; line-height: 1.4; font-weight: 630; }
.ap-icon { flex: 0 0 auto; vertical-align: middle; }
.ap-muted, .ap-help { color: var(--ap-muted); }
.ap-help { font-size: 12px; margin: 5px 0 12px; }
.ap-sale { color: var(--ap-danger); }
.ap-breadcrumbs { margin-bottom: 24px; font-size: 12px; color: var(--ap-muted); }
.ap-breadcrumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; list-style: none; padding: 0; }
.ap-breadcrumbs li { min-width: 0; overflow-wrap: anywhere; }
.ap-breadcrumbs li + li::before { content: "/"; color: #96a4b6; margin-right: 8px; }
.ap-breadcrumbs a { color: var(--ap-muted); }
.ap-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) clamp(280px, 21vw, 380px); grid-template-areas: "gallery summary purchase" "details details purchase"; gap: 24px 22px; align-items: start; }
.ap-layout > * { min-width: 0; }
.ap-gallery { grid-area: gallery; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
.ap-thumbnails { display: flex; flex-direction: column; gap: 8px; max-height: 480px; overflow-y: auto; }
.ap-thumbnail { display: block; flex: 0 0 auto; width: 44px; height: 48px; padding: 3px; border: 1px solid var(--ap-line); border-radius: 6px; background: #fff; }
.ap-thumbnail[aria-current="true"] { border-color: var(--ap-blue); }
.ap-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.ap-image-stage { position: relative; display: grid; place-items: center; background: #fff; border: 1px solid #e7edf4; border-radius: var(--ap-radius); aspect-ratio: 1 / 1.14; min-width: 0; touch-action: pan-y pinch-zoom; overflow: hidden; }
.ap-main-image { width: 100%; height: 100%; object-fit: contain; }
.ap-image-stage[data-swipe-ready="true"] { cursor: grab; user-select: none; }
.ap-image-stage[data-dragging="true"] { cursor: grabbing; }
.ap-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--ap-line); border-radius: 7px; background: #fff; color: var(--ap-blue); flex: 0 0 auto; }
.ap-icon-button:hover:not(:disabled), .ap-button:hover:not(:disabled) { background: var(--ap-soft); text-decoration: none; }
.ap-image-arrow { position: absolute; top: calc(50% - 20px); width: 40px; border: 0; background: transparent; z-index: 2; transition: transform 160ms ease, color 160ms ease; }
.ap-image-arrow:hover:not(:disabled), .ap-image-arrow:active { background: transparent; color: #032c55; transform: scale(1.12); }
.ap-image-prev { left: 4px; }
.ap-image-next { right: 4px; }
.ap-zoom { position: absolute; bottom: 12px; right: 12px; width: 34px; height: 34px; }
.ap-image-counter { position: absolute; bottom: 13px; left: 13px; padding: 2px 7px; background: rgb(255 255 255 / 90%); color: var(--ap-muted); font-size: 11px; border-radius: 4px; }
.ap-empty-image { grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: center; gap: 12px; color: var(--ap-muted); }
.ap-empty-image > svg { width: 42px; height: 42px; }
.ap-summary { grid-area: summary; }
.ap-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 1px 0 12px; color: var(--ap-muted); font-size: 11px; }
.ap-stock { display: inline-flex; align-items: center; gap: 5px; color: #196b4e; background: #ecf7f1; padding: 2px 6px; border-radius: 4px; font-weight: 650; }
.ap-stock::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ap-stock-unavailable { color: var(--ap-muted); background: #eaf0f5; }
.ap-intro { color: var(--ap-muted); font-size: 13px; margin-top: 12px; }
.ap-variants { border-top: 1px solid var(--ap-line); padding-top: 18px; margin-top: 20px; }
.ap-variants h2 { font-size: 15px; }
.ap-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.ap-section-heading > .ap-muted { font-size: 12px; }
.ap-variant-list { display: flex; flex-direction: column; gap: 6px; max-height: 364px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #aab9ca transparent; padding: 2px; scroll-padding: 2px; }
.ap-variant { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 66px; flex: 0 0 auto; padding: 9px 12px 9px 8px; background: #fff; border: 1px solid var(--ap-line); border-radius: 7px; color: var(--ap-ink) !important; }
.ap-variant:hover { background: #f8fbff; text-decoration: none !important; }
.ap-variant[aria-current="true"] { background: #eef5fd; border-color: var(--ap-blue); }
.ap-variant img { width: 42px; height: 44px; object-fit: contain; border-radius: 3px; }
.ap-variant-placeholder { color: var(--ap-muted); text-align: center; }
.ap-variant-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ap-variant-copy strong { font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.ap-variant-copy small { font-size: 9px; color: var(--ap-muted); overflow-wrap: anywhere; }
.ap-variant-price { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ap-variant-price del { font-size: 10px; color: var(--ap-muted); }
.ap-selection { display: none; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ap-blue); color: #fff; }
.ap-selection svg { width: 12px; height: 12px; }
.ap-variant[aria-current="true"] .ap-selection { display: flex; align-items: center; justify-content: center; }
.ap-scroll-hint { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 5px; font-size: 11px; color: var(--ap-muted); }
.ap-scroll-hint svg { width: 13px; height: 13px; }
.ap-purchase { grid-area: purchase; position: sticky; top: var(--ap-sticky-top, 20px); border: 1px solid var(--ap-line); border-radius: 11px; background: #fff; padding: 20px 17px; }
.ap-total-label { font-size: 12px; color: var(--ap-muted); margin-bottom: 5px !important; }
.ap-quote { transition: opacity 160ms ease; }
.ap-quote[aria-busy="true"] { opacity: .35; }
.ap-quote-status { margin-top: 12px !important; color: var(--ap-muted); font-size: 12px; }
.ap-quote-retry { margin-top: 8px; }
.ap-price-line { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.ap-price { font-size: 29px; line-height: 1.2; letter-spacing: -.7px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ap-price-basis { color: var(--ap-muted); font-size: 11px; }
.ap-price-basis { margin: 3px 0 12px; }
.ap-discount { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; font-size: 11px; margin-bottom: 18px; }
.ap-discount > span:first-child { color: var(--ap-muted); }
.ap-discount-badge, .ap-related-sale { border-radius: 4px; background: #b32c3a; color: #fff; font-size: 11px; font-weight: 650; padding: 2px 5px; white-space: nowrap; }
.ap-saving { color: var(--ap-danger); }
.ap-price-breakdown { font-size: 12px; }
.ap-price-breakdown > div { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf1f6; }
.ap-price-breakdown dd { text-align: right; font-variant-numeric: tabular-nums; }
.ap-total { font-weight: 650; }
.ap-tax-details { margin: 10px 0 20px; font-size: 11px; }
.ap-tax-details summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; color: var(--ap-blue); list-style: none; }
.ap-tax-details summary::-webkit-details-marker { display: none; }
.ap-tax-details summary svg { width: 14px; height: 14px; }
.ap-tax-details[open] summary svg { transform: rotate(180deg); }
.ap-tax-details p { margin-top: 7px; color: var(--ap-muted); }
.ap-quantity { display: flex; justify-content: space-between; gap: 10px; align-items: center; border: 1px solid var(--ap-line); border-radius: 7px; padding: 5px 7px 5px 11px; margin-bottom: 10px; }
.ap-quantity > label { font-size: 12px; font-weight: 600; }
.ap-stepper { display: flex; align-items: center; }
.ap-stepper .ap-icon-button { width: 32px; height: 32px; }
.ap-stepper svg { width: 14px; height: 14px; }
.ap-stepper input { width: 43px; height: 32px; min-width: 0; border: 0; border-radius: 3px; background: #fff; text-align: center; font-weight: 650; padding: 0; }
.ap-stepper input:focus-visible { outline-offset: -2px; }
.ap[data-enhanced] .ap-stepper input { appearance: textfield; -moz-appearance: textfield; }
.ap[data-enhanced] .ap-stepper input::-webkit-inner-spin-button, .ap[data-enhanced] .ap-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.ap-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 10px 12px; border: 1px solid var(--ap-line); border-radius: 7px; background: #fff; color: var(--ap-blue); font-weight: 600; font-size: 12px; text-align: center; }
.ap-button svg { width: 17px; height: 17px; }
.ap-full { width: 100%; }
.ap-primary { background: var(--ap-blue); color: #fff; border-color: var(--ap-blue); }
.ap-primary:hover:not(:disabled) { color: #fff; background: #063d71; }
.ap-purchase > .ap-inquiry { margin-top: 9px; }
.ap-error { color: var(--ap-danger); font-size: 12px; margin: 5px 0 10px; }
.ap-details { grid-area: details; }
.ap-tabs { overflow-x: auto; overflow-y: hidden; display: flex; gap: 23px; border-bottom: 1px solid var(--ap-line); }
.ap-tabs a { flex: 0 0 auto; padding: 12px 0; font-size: 12px; color: var(--ap-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ap-tabs a[aria-selected="true"] { border-bottom-color: var(--ap-blue); color: var(--ap-blue); font-weight: 600; }
.ap-article { padding-top: 20px; overflow-wrap: anywhere; }
.ap-article h3 { margin-bottom: 5px; }
.ap-article p, .ap-article li { color: var(--ap-muted); font-size: 13px; line-height: 1.7; }
.ap-article p + p { margin-top: 8px; }
.ap-article ul { margin: 8px 0 0; padding-left: 20px; }
.ap-specifications { margin-top: 14px; font-size: 13px; }
.ap-specifications > div { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1fr); gap: 20px; padding: 11px 12px; border-bottom: 1px solid var(--ap-line); }
.ap-specifications > div:nth-child(odd) { background: rgb(255 255 255 / 60%); }
.ap-specifications dt { color: var(--ap-muted); }
.ap-related { margin-top: 36px; }
.ap-related > .ap-section-heading { margin-bottom: 16px; }
.ap-related-view-all { font-size: 12px; }
.ap-related-carousel { position: relative; }
.ap-carousel-buttons { position: absolute; inset: 0; pointer-events: none; }
.ap-carousel-buttons .ap-icon-button { position: absolute; top: 50%; transform: translateY(-50%); width: 22px; height: 44px; border: 0; background: transparent; pointer-events: auto; }
.ap-carousel-buttons [data-related-step="-1"] { left: -22px; }
.ap-carousel-buttons [data-related-step="1"] { right: -22px; }
.ap-related-list { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 5); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 10px; }
.ap-product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ap-line); border-radius: 10px; overflow: hidden; min-width: 0; scroll-snap-align: start; transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.ap-related-image { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 10px; overflow: hidden; }
.ap-related-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 240ms ease; }
.ap-product-card:focus-within { border-color: #a7bed7; }
@media (hover: hover) and (pointer: fine) {
  .ap-product-card:hover { transform: translateY(-3px); border-color: #b7c9de; box-shadow: 0 5px 16px #193c6210; }
  .ap-product-card:hover .ap-related-image img { transform: scale(1.045); }
}
.ap-related-sale { position: absolute; left: 10px; top: 10px; }
.ap-related-copy { padding: 4px 12px 14px; }
.ap-category { font-size: 11px; color: var(--ap-muted); margin-bottom: 5px !important; }
.ap-related-copy h3 { font-size: 13px; font-weight: 600; line-height: 1.45; }
.ap-related-copy h3 a { color: var(--ap-ink); }
.ap-related-copy > .ap-muted { margin-top: 5px; font-size: 11px; }
.ap-related-bottom { margin-top: auto; border-top: 1px solid #edf1f6; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 12px; }
.ap-related-bottom > div { display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.ap-related-bottom del { color: var(--ap-muted); font-size: 11px; }
.ap-related-bottom strong { font-size: 14px; }
.ap-related-bottom .ap-icon-button { width: 34px; height: 34px; }
.ap-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #f7f9fc; color: var(--ap-ink); overflow: hidden; }
.ap-lightbox:not([open]) { display: none; }
.ap-lightbox[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.ap-lightbox::backdrop { background: #142840dd; }
.ap-lightbox > * { min-width: 0; }
.ap-viewer-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 32px; background: #fff; border-bottom: 1px solid var(--ap-line); }
.ap-viewer-heading > div { min-width: 0; }
.ap-viewer-heading h2 { font-size: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ap-viewer-eyebrow { color: var(--ap-muted); font-size: 11px; margin-bottom: 3px !important; }
.ap-viewer-close { border: 0; background: transparent; width: 44px; height: 44px; }
.ap-viewer-stage { position: relative; min-height: 0; padding: 14px 64px; }
.ap-viewer-stage .ap-image-arrow { width: 52px; height: 52px; top: calc(50% - 26px); }
.ap-viewer-stage .ap-image-arrow svg { width: 28px; height: 28px; }
.ap-viewer-viewport { width: 100%; height: 100%; overflow: hidden; touch-action: none; }
.ap .ap-viewer-image-button { display: grid; place-items: center; width: 100%; height: 100%; background: transparent; border: 0; padding: 0; cursor: zoom-in; }
.ap-viewer-image-button > img { max-width: 100%; max-height: 100%; width: auto; height: auto; min-height: 0; object-fit: contain; user-select: none; transform-origin: center; }
.ap-lightbox[data-swipe-ready="true"] .ap-viewer-image-button, .ap-lightbox[data-zoomed="true"] .ap-viewer-image-button { cursor: grab; }
.ap-lightbox[data-dragging="true"] .ap-viewer-image-button { cursor: grabbing; }
.ap-viewer-footer { background: #fff; border-top: 1px solid var(--ap-line); padding: 12px 32px 18px; }
.ap-viewer-caption { color: var(--ap-muted); font-size: 12px; text-align: center; margin-bottom: 10px !important; }
.ap-viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1050px; margin: 0 auto; }
.ap-viewer-thumbnails { display: flex; gap: 8px; min-width: 0; overflow-x: auto; padding: 3px; }
.ap-viewer-thumbnails .ap-thumbnail { width: 52px; height: 52px; }
.ap-thumbnails, .ap-viewer-thumbnails, .ap-related-list { scrollbar-width: none; }
.ap-thumbnails::-webkit-scrollbar, .ap-viewer-thumbnails::-webkit-scrollbar, .ap-related-list::-webkit-scrollbar { display: none; }
.ap .ap-draggable, .ap .ap-draggable :where(a, button, img) { cursor: grab; user-select: none; }
.ap .ap-dragging, .ap .ap-dragging :where(a, button, img) { cursor: grabbing; }
.ap-dragging { scroll-snap-type: none; }
.ap-viewer-tools { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
.ap-viewer-count { color: var(--ap-muted); font-size: 12px; white-space: nowrap; }
.ap-zoom-tools { display: flex; align-items: center; padding: 2px; border: 1px solid var(--ap-line); border-radius: 8px; }
.ap-zoom-tools .ap-icon-button { border: 0; width: 40px; height: 40px; }
.ap-zoom-level { min-width: 44px; height: 40px; padding: 0 7px; border: 0; border-radius: 5px; background: #fff; color: var(--ap-blue); font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 1050px) {
  .ap-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 260px; gap: 24px 16px; }
  .ap-gallery { grid-template-columns: 1fr; }
  .ap-thumbnails { order: 2; flex-direction: row; max-height: none; overflow-x: auto; padding: 2px 0 5px; }
  .ap-variant { grid-template-columns: 34px minmax(0, 1fr) auto; padding-right: 8px; gap: 6px; }
  .ap-variant img { width: 34px; }
  .ap-variant-copy small { font-size: 8px; }
  .ap-variant-price { font-size: 11px; }
  .ap-variant-copy strong { font-size: 11px; }
}
@media (max-width: 1199px) {
  .ap { padding-inline: 24px; }
}
@media (max-width: 900px) {
  .ap-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "gallery summary" "purchase purchase" "details details"; gap: 24px; }
  .ap-purchase { position: static; width: 100%; }
  .ap-gallery { display: flex; flex-direction: column; }
  .ap-image-stage { width: 100%; aspect-ratio: 1; }
  .ap-variant-copy strong { font-size: 12px; }
  .ap-variant-price { font-size: 12px; }
  .ap-variant-copy small { font-size: 9px; }
  .ap-related-list { grid-auto-columns: calc((100% - 28px) / 3); }
  .ap-price-breakdown > div { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ap { padding: 18px var(--ap-mobile-gutter, 14px) 28px; }
  .ap-breadcrumbs { margin-bottom: 18px; font-size: 11px; }
  .ap-breadcrumbs li[aria-current="page"] { display: none; }
  .ap-layout { display: flex; flex-direction: column; gap: 24px; }
  .ap-layout > * { width: 100%; }
  .ap-gallery { order: 0; }
  .ap-summary { order: 1; }
  .ap-purchase { order: 2; }
  .ap-details { order: 3; }
  .ap h1 { font-size: 25px; }
  .ap-image-stage { aspect-ratio: 1.15; }
  .ap-thumbnail { width: 52px; height: 52px; }
  .ap-image-arrow, .ap-zoom { width: 44px; height: 44px; }
  .ap-zoom { right: 8px; bottom: 8px; }
  .ap-intro { font-size: 14px; }
  .ap-variant-list { flex-direction: row; align-items: stretch; gap: 10px; max-height: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; }
  .ap-variant-list::-webkit-scrollbar { display: none; }
  .ap-variant-list.ap-dragging { scroll-snap-type: none; }
  .ap-variant { display: flex; flex-direction: column; align-items: stretch; flex: 0 0 calc((100% - 20px) / 2.5); min-height: 0; gap: 10px; padding: 10px; border-radius: 9px; scroll-snap-align: start; }
  .ap-variant img, .ap-variant-placeholder { width: 100%; height: auto; aspect-ratio: 4 / 3; padding: 6px; background: #f6f9fc; border-radius: 6px; }
  .ap-variant-placeholder { display: grid; place-items: center; }
  .ap-variant-placeholder svg { width: 28px; height: 28px; }
  .ap-variant-copy strong { font-size: 13px; }
  .ap-variant-copy small { font-size: 10px; }
  .ap-variant-price { align-items: flex-start; justify-content: flex-end; margin-top: auto; min-height: 35px; font-size: 14px; }
  .ap-variant .ap-selection { top: 7px; right: 7px; left: auto; width: 16px; height: 16px; }
  .ap-variants > .ap-scroll-hint { display: none; }
  .ap-purchase { padding: 18px 12px; }
  .ap-price { font-size: 30px; }
  .ap-price-breakdown { font-size: 13px; }
  .ap-tax-details { font-size: 12px; }
  .ap-tax-details summary { min-height: 44px; }
  .ap-button { min-height: 46px; font-size: 14px; }
  .ap-stepper .ap-icon-button { width: 44px; height: 44px; }
  .ap-stepper input { height: 40px; font-size: 16px; }
  .ap-quantity > label { font-size: 14px; }
  .ap-tabs { justify-content: space-between; gap: 10px; }
  .ap-tabs a { font-size: 12px; min-height: 44px; }
  .ap-article p, .ap-article li { font-size: 14px; }
  .ap-related { margin-top: 30px; }
  .ap-related-list { grid-auto-columns: calc((100% - 12px) / 1.5); gap: 12px; }
  .ap-related-image { padding: 7px; }
  .ap-related-copy { padding: 4px 10px 12px; }
  .ap-related-copy h3 { font-size: 12px; }
  .ap-related-bottom { padding: 8px 10px; flex-wrap: wrap; }
  .ap-related-bottom .ap-icon-button { width: 44px; height: 44px; }
  .ap-carousel-buttons { display: none; }
  .ap-related h2 { font-size: 18px; }
  .ap-viewer-heading { padding: 10px 16px; gap: 12px; }
  .ap-viewer-heading h2 { font-size: 14px; }
  .ap-viewer-stage { padding: 8px; }
  .ap-viewer-stage .ap-image-arrow { width: 44px; }
  .ap-viewer-stage .ap-image-arrow svg { width: 22px; height: 22px; }
  .ap-viewer-footer { padding: 10px 12px max(12px, env(safe-area-inset-bottom)); }
  .ap-viewer-bottom { flex-direction: column; gap: 8px; }
  .ap-viewer-thumbnails { max-width: 100%; }
  .ap-viewer-thumbnails .ap-thumbnail { width: 46px; height: 46px; }
  .ap-viewer-tools { width: 100%; justify-content: space-between; gap: 12px; }
  .ap-viewer-caption { font-size: 11px; }
  .ap-zoom-tools .ap-icon-button, .ap-zoom-level { height: 44px; }
}
/* A half-visible next card makes horizontal navigation apparent at every phone size. */
@media (max-width: 380px) { .ap-variant { flex-basis: calc((100% - 10px) / 1.5); } }
@media (min-width: 520px) and (max-width: 600px) {
  .ap-variant { flex-basis: calc((100% - 30px) / 3.5); }
  .ap-related-list { grid-auto-columns: calc((100% - 24px) / 2.5); }
}
@media (prefers-reduced-motion: reduce) { .ap * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } .ap-product-card:hover, .ap-product-card:hover .ap-related-image img { transform: none; } }
@media print {
  .ap { max-width: none; padding: 0; }
  .ap-purchase { position: static; }
  .ap-gallery { display: block; }
  .ap [data-panel][hidden] { display: block !important; }
  .ap-variant-list { max-height: none; overflow: visible; }
}

.ap-intro { white-space: pre-line; }
.ap-documents { display: grid; gap: 10px; margin-top: 12px; }
.ap-document { display: flex; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid var(--ap-line); border-radius: 7px; background: #fff; }
.ap-document span { overflow-wrap: anywhere; }
.ap-document small { flex: 0 0 auto; color: var(--ap-muted); }
@media print { .ap-cart-form, .ap-inquiry, .ap-related, .ap-tabs, .ap-zoom, .ap-image-arrow, .ap-thumbnails { display: none !important; } }
