/* Shared product detail layout for the four FORTIS models. */
.product-page .pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(330px, 1fr);
  gap: clamp(36px, 4vw, 76px);
  padding: 156px max(32px, 6vw) 32px 0;
  align-items: start;
}
/* The gallery shares a fixed stage, with a separately scrolling thumbnail rail. */
.pdp-gallery { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; min-width: 0; padding-left: 24px; --gallery-height: clamp(540px, 43vw, 820px); }
.pdp-gallery__main { grid-column: 2; grid-row: 1; min-width: 0; }
.pdp-gallery__slides { height: var(--gallery-height); position: relative; background: #fff; border-radius: 24px; overflow: hidden; touch-action: pan-y pinch-zoom; }
.product-page .pdp-gallery__image { width: 100%; height: 100%; object-fit: contain; padding: 12px; mix-blend-mode: normal; }
.pdp-gallery__image[hidden] { display: none; }
.pdp-gallery__footer { display: flex; align-items: start; gap: 12px; padding: 16px 4px 0; }
.pdp-gallery__caption { flex: 1; margin: 0; font-size: 13px; line-height: 1.6; color: #575751; min-height: 42px; }
.pdp-gallery__controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; color: #263f37; }
.pdp-gallery__arrow, .pdp-gallery__rail-arrow { display: grid; place-items: center; border: 0; background: transparent; color: inherit; padding: 0; cursor: pointer; font-family: inherit; width: 44px; height: 44px; border-radius: 50%; }
.pdp-gallery__arrow { font-size: 22px; border: 1px solid #c8ccc3; }
.pdp-gallery__arrow:hover { background: #e5e8df; }
.pdp-gallery__count { min-width: 44px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.pdp-gallery__rail { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: center; height: var(--gallery-height); min-height: 0; }
.pdp-gallery__rail-arrow { flex-shrink: 0; font-size: 24px; transform: rotate(90deg); }
.pdp-gallery__thumbs { flex: 1; min-height: 0; width: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #7f8e82 transparent; padding: 4px; margin: 0; list-style: none; }
.pdp-gallery__thumbs li + li { margin-top: 10px; }
.pdp-gallery__thumb { position: relative; display: block; width: 100%; height: 86px; border: 1px solid #d7dad2; border-radius: 12px; background: #fff; padding: 4px; cursor: pointer; }
.pdp-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.pdp-gallery__thumb span { position: absolute; bottom: 4px; right: 4px; padding: 1px 4px; border-radius: 4px; background: #ffffffed; color: #405447; font-size: 9px; font-variant-numeric: tabular-nums; }
.pdp-gallery__thumb[aria-pressed="true"] { border: 2px solid #075763; padding: 3px; }
.pdp-gallery__thumb:hover { border-color: #075763; }
.pdp-gallery button:disabled { opacity: .3; cursor: default; }
.pdp-gallery__slides:focus-visible { outline: 3px solid #075763; outline-offset: 4px; }
.pdp-info { width: 100%; max-width: 420px; padding: 18px 0 0; }
.pdp-info h1 { font-family: var(--ab-sans); margin: 0; font-size: clamp(32px, 2.5vw, 44px); font-weight: 400; letter-spacing: -.055em; line-height: 1.15; }
.pdp-subtitle { margin: 14px 0 22px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.pdp-colors { border: 0; margin: 0; padding: 0; min-width: 0; }
.pdp-colors__list { display: flex; gap: 12px; flex-wrap: wrap; }
.pdp-color { position: relative; display: block; width: 44px; height: 44px; cursor: pointer; }
.pdp-color input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pdp-color span { display: block; width: 100%; height: 100%; border: 3px solid var(--page-bg); border-radius: 50%; background: linear-gradient(125deg, #ffffff35, #00000018), var(--swatch); box-shadow: inset 0 1px 2px #ffffff60; }
.pdp-color input:checked + span { outline: 1.5px solid var(--ink); }
.pdp-color input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.pdp-selection { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.pdp-size { margin-top: 54px; }
.pdp-size__heading { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: #20201e; }
.pdp-size__heading a { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #dedbd5; color: var(--ink); text-decoration: none; font-family: Georgia, serif; font-size: 13px; }
.pdp-size__hint { margin: 4px 0 16px; font: italic 20px/1.3 var(--ab-serif); }
.pdp-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pdp-sizes a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 15px 4px; border: 1px solid #d5d0c9; border-radius: 12px; text-decoration: none; color: var(--ink); }
.pdp-sizes a[aria-current="page"] { border-color: #383633; background: #ece7df; }
.pdp-sizes a:hover { border-color: #383633; }
.pdp-sizes small { font-size: 11px; white-space: nowrap; color: var(--muted); }
.pdp-order { margin-top: 42px; padding: 20px 24px; background: #ece7df; border-radius: 12px; }
.pdp-order__button { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; background: #2c73e5; color: white; border-radius: 40px; font-size: 15px; text-decoration: none; transition: background .2s; }
.pdp-order__button:hover { background: #205fca; }
.pdp-availability, .pdp-photo-note { font-size: 12px; line-height: 1.5; color: var(--muted); }
.pdp-availability { text-align: center; margin: 12px 0 24px; }
.pdp-details { border-top: 1px solid #d5d0c9; border-bottom: 1px solid #d5d0c9; font-size: 14px; line-height: 1.6; }
.pdp-details summary { cursor: pointer; padding: 16px 0; }
.pdp-details p { margin: 0 0 16px; }
.pdp-photo-note { margin-top: 16px; }
.pdp button:focus-visible, .pdp a:focus-visible, .pdp summary:focus-visible, .pdp-gallery:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (min-width: 1800px) { .product-page .pdp { grid-template-columns: minmax(0, 2fr) minmax(420px, 1fr); } }
@media (max-width: 900px) {
  .product-page .pdp { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); gap: 28px; padding-right: 24px; }
  .pdp-gallery { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding-left: 12px; --gallery-height: 570px; }
  .pdp-gallery__thumb { height: 72px; }
  .pdp-gallery__footer { flex-direction: column; }
  .pdp-gallery__controls { align-self: flex-end; }
  .pdp-info { padding-top: 8px; }
  .pdp-subtitle { font-size: 16px; }
}
@media (max-width: 700px) {
  .product-page .pdp { display: grid; grid-template-columns: minmax(0, 1fr); padding: 132px 0 24px; gap: 24px; }
  .pdp-gallery { display: flex; flex-direction: column; gap: 12px; margin: 0 12px; padding: 0; }
  .pdp-gallery__slides { height: auto; aspect-ratio: 1 / 1; border-radius: 20px; }
  .product-page .pdp-gallery__image { position: absolute; inset: 0; padding: 8px; }
  .pdp-gallery__footer { flex-direction: column; padding-top: 12px; gap: 8px; }
  .pdp-gallery__controls { align-self: flex-end; }
  .pdp-gallery__rail { flex-direction: row; height: 92px; width: 100%; }
  .pdp-gallery__rail-arrow { transform: none; width: 32px; height: 44px; }
  .pdp-gallery__thumbs { display: flex; gap: 10px; width: auto; overflow-x: auto; overflow-y: hidden; height: 100%; align-items: start; }
  .pdp-gallery__thumbs li { flex: 0 0 68px; }
  .pdp-gallery__thumbs li + li { margin-top: 0; }
  .pdp-gallery__thumb { height: 74px; }
  .pdp-info { max-width: none; padding: 0 24px; }
  .pdp-info h1 { font-size: 34px; }
  .pdp-subtitle { margin-top: 10px; }
  .pdp-size { margin-top: 30px; }
  .pdp-order { margin-top: 28px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .pdp * { transition: none; } }

button.pdp-order__button { width: 100%; border: 0; font-family: inherit; cursor: pointer; }
