/* Photographic catalogue: original wheel media, independent of stock availability. */
#realWheelsGallery { min-width: 0; }
.real-production-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.real-production-grid figure { margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--panel); }
.real-production-grid video { width: 100%; height: 340px; object-fit: contain; background: #070a0e; }
.real-production-grid figcaption { padding: 20px 24px; font-size: 18px; line-height: 1.5; }
.real-production-grid figcaption span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
@media (max-width: 650px) { .real-production-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } .real-production-grid video { height: 280px; } }
.real-wheels-note { max-width: 760px; color: var(--muted); font-size: 15px; line-height: 1.75; margin: 0 0 25px; }
.real-wheels-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px 24px; margin-bottom: 25px; }
.real-wheels-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.real-wheels-filter { min-height: 44px; border: 1px solid var(--line2); border-radius: 999px; background: var(--panel); color: var(--muted); padding: 10px 17px; font-size: 13px; line-height: 1.4; transition: background .18s, color .18s, border-color .18s; }
.real-wheels-filter:hover { color: var(--txt); border-color: var(--accent); }
.real-wheels-filter[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.real-wheels-status { margin: 0; color: var(--muted2); font-size: 12px; line-height: 1.5; }
.real-wheels-more { display: flex; justify-content: center; margin-top: 30px; }
.real-wheels-more[hidden] { display: none; }
.real-wheels-more__button { min-height: 48px; padding: 13px 24px; border: 1px solid var(--line2); border-radius: 999px; background: var(--panel); color: var(--accent2); font-size: 14px; line-height: 1.5; }
.real-wheels-more__button:hover { background: var(--panel2); border-color: var(--accent); }
.real-wheels-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.real-wheel-card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.real-wheel-card:hover { border-color: var(--line2); box-shadow: 0 15px 45px #0003; }
.real-wheel-card__open { width: 100%; min-height: 44px; height: 100%; display: flex; flex-direction: column; background: none; border: 0; padding: 0; text-align: left; color: var(--txt); }
.real-wheel-card__visual { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.15; background: #e9e9e7; overflow: hidden; }
.real-wheel-card__visual > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; transition: transform .5s ease; }
@media (hover: hover) { .real-wheel-card__open:hover .real-wheel-card__visual > img { transform: scale(1.035); } }
.real-wheel-card__count { position: absolute; left: 16px; bottom: 16px; padding: 7px 11px; border-radius: 999px; background: #10151ce8; color: #f4f6f8; font-size: 11px; line-height: 1.4; backdrop-filter: blur(6px); }
.real-wheel-card__expand { position: absolute; right: 15px; bottom: 15px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #10151ce8; color: #f4f6f8; font-size: 20px; }
.real-wheel-card__missing { color: #39424c; font-size: 14px; padding: 28px; }
.real-wheel-card__copy { display: flex; flex-direction: column; flex: 1; width: 100%; padding: 25px; }
.real-wheel-card__reference { color: var(--muted2); font-size: 10px; font-weight: 600; letter-spacing: .16em; line-height: 1.5; margin-bottom: 12px; }
.real-wheel-card__title { font-family: var(--display); font-size: 32px; line-height: 1.1; letter-spacing: .02em; overflow-wrap: anywhere; }
.real-wheel-card__finish { display: block; font-size: 13px; line-height: 1.65; color: var(--muted); margin-top: 10px; padding-bottom: 22px; }
.real-wheel-card__footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.7; color: var(--muted2); }
.real-wheel-card__link { color: var(--accent2); font-weight: 600; }
.real-wheels-empty { border: 1px solid var(--line); border-radius: 24px; padding: 30px; color: var(--muted); }
.real-wheels-filter:focus-visible, .real-wheels-more__button:focus-visible, .real-wheel-card__open:focus-visible, .real-wheel-dialog button:focus-visible, .real-wheel-dialog a:focus-visible, .real-wheel-dialog video:focus-visible { outline: 2px solid var(--accent2); outline-offset: 4px; }
.real-wheel-card__open:focus-visible { outline-offset: -5px; border-radius: 25px; }

.real-wheel-dialog { position: fixed; inset: 0; width: min(1160px, calc(100% - 40px)); max-width: none; height: auto; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 1px solid var(--line2); border-radius: 28px; color: var(--txt); background: var(--bg2); box-shadow: 0 40px 140px #000b; overscroll-behavior: contain; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line2) var(--panel); }
.real-wheel-dialog::backdrop { background: #020509de; backdrop-filter: blur(8px); }
.real-wheel-dialog__shell { min-width: 0; }
.real-wheel-dialog__head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px 25px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.real-wheel-dialog__heading { min-width: 0; }
.real-wheel-dialog__reference { display: block; font-size: 10px; line-height: 1.5; color: var(--muted2); letter-spacing: .15em; margin-bottom: 6px; }
.real-wheel-dialog__heading h3 { font-size: 32px; line-height: 1.12; overflow-wrap: anywhere; }
.real-wheel-close { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; padding: 0 0 3px; border: 1px solid var(--line2); border-radius: 50%; background: var(--panel); color: var(--txt); font-size: 30px; line-height: 1; }
.real-wheel-close:hover { background: var(--panel2); }
.real-wheel-dialog__content { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 0; }
.real-wheel-viewer { padding: 22px; min-width: 0; border-right: 1px solid var(--line); }
.real-wheel-viewer__frame { width: 100%; aspect-ratio: 1.15; max-height: 58vh; max-height: 58dvh; position: relative; overflow: hidden; border-radius: 18px; background: #e9e9e7; }
.real-wheel-viewer__media { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; }
.real-wheel-viewer__media > img, .real-wheel-viewer__media > video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.real-wheel-viewer__media > video { background: #10151c; }
.real-wheel-viewer__controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
.real-wheel-arrow { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 50%; padding: 0; background: var(--panel); color: var(--txt); font-size: 23px; line-height: 1; }
.real-wheel-arrow:hover { background: var(--panel2); }
.real-wheel-arrow:disabled { opacity: .35; cursor: default; }
.real-wheel-viewer__counter { font-size: 12px; color: var(--accent); text-align: center; line-height: 1.4; }
.real-wheel-viewer__caption { color: var(--muted2); font-size: 11px; line-height: 1.6; text-align: center; margin: 9px auto 15px; max-width: 55ch; min-height: 18px; }
.real-wheel-thumbs { position: relative; display: flex; gap: 9px; padding: 5px; margin: -5px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; overscroll-behavior-x: contain; scroll-padding-inline: 5px; }
.real-wheel-thumb { position: relative; width: 66px; height: 66px; flex: 0 0 66px; overflow: hidden; display: grid; place-items: center; padding: 0; border: 2px solid transparent; border-radius: 11px; background: var(--panel2); color: var(--txt); opacity: .65; }
.real-wheel-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.real-wheel-thumb:hover, .real-wheel-thumb[aria-current="true"] { opacity: 1; border-color: var(--accent2); }
.real-wheel-thumb__play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; color: white; background: #0004; text-shadow: 0 2px 5px #000; }
.real-wheel-dialog__info { min-width: 0; padding: 30px; display: flex; flex-direction: column; align-items: flex-start; }
.real-wheel-tag { color: var(--accent); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 11px; font-size: 10px; line-height: 1.5; }
.real-wheel-dialog__finish { font-family: var(--body); font-size: 23px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; margin: 23px 0 15px; }
.real-wheel-dialog__description { font-size: 14px; line-height: 1.85; color: var(--muted); margin: 0 0 22px; overflow-wrap: anywhere; }
.real-wheel-specs { width: 100%; display: grid; grid-template-columns: minmax(85px, .75fr) minmax(0, 1fr); gap: 11px 15px; border-top: 1px solid var(--line); padding-top: 22px; margin: 0 0 23px; font-size: 12px; line-height: 1.7; }
.real-wheel-specs dt { color: var(--muted2); }.real-wheel-specs dd { margin: 0; color: var(--txt); overflow-wrap: anywhere; }
.real-wheel-dialog__note { margin: auto 0 22px; padding-top: 10px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.real-wheel-enquiry { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 50px; border-radius: 999px; padding: 14px 20px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600; text-align: center; line-height: 1.4; transition: background .2s; }
.real-wheel-enquiry:hover { background: var(--accent2); }
.real-wheel-mail-note { margin-top: 11px; font-size: 10px; line-height: 1.7; color: var(--muted2); }
.real-wheel-media-error { padding: 30px; margin: 0; max-width: 400px; text-align: center; color: #39424c; font-size: 14px; line-height: 1.8; }

@media (max-width: 1000px) {
  .real-wheels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .real-wheel-dialog__content { grid-template-columns: minmax(0, 1.3fr) minmax(240px, 1fr); }
  .real-wheel-dialog__info { padding: 24px; }
  .real-wheel-viewer { padding: 18px; }
}
@media (max-width: 700px) {
  .real-wheels-toolbar { gap: 16px; }
  .real-wheels-filter { padding-inline: 14px; font-size: 12px; }
  .real-wheel-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 23px; }
  .real-wheel-dialog__head { padding: 15px 17px; gap: 13px; }
  .real-wheel-dialog__heading h3 { font-size: 26px; }
  .real-wheel-dialog__content { grid-template-columns: minmax(0, 1fr); }
  .real-wheel-viewer { border-right: 0; border-bottom: 1px solid var(--line); padding: 15px; }
  .real-wheel-viewer__frame { aspect-ratio: 1.12; max-height: 48vh; max-height: 48dvh; border-radius: 14px; }
  .real-wheel-viewer__caption { margin-block: 8px 13px; }
  .real-wheel-dialog__info { padding: 24px 20px max(26px, env(safe-area-inset-bottom)); }
  .real-wheel-dialog__finish { margin-top: 18px; }
  .real-wheel-dialog__note { margin-top: 0; }
}
@media (max-width: 520px) {
  .real-wheels-grid { grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .real-wheel-card { border-radius: 24px; }
  .real-wheel-card__visual { aspect-ratio: 1.18; }
  .real-wheel-card__copy { padding: 23px; }
  .real-wheel-card__title { font-size: 33px; }
  .real-wheels-note { font-size: 14px; }
}
@media (max-height: 500px) and (min-width: 701px) {
  .real-wheel-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 20px; }
  .real-wheel-dialog__head { padding: 11px 18px; }
  .real-wheel-dialog__reference { font-size: 9px; margin-bottom: 3px; }
  .real-wheel-dialog__heading h3 { font-size: 25px; }
  .real-wheel-viewer { padding: 12px 16px; }
  .real-wheel-viewer__frame { height: max(100px, calc(100dvh - 205px)); max-height: none; aspect-ratio: auto; }
  .real-wheel-viewer__controls { margin-top: 8px; }
  .real-wheel-arrow { width: 44px; height: 44px; flex-basis: 44px; }
  .real-wheel-viewer__caption { margin-block: 5px 12px; }
  .real-wheel-dialog__info { padding: 18px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .real-wheel-card, .real-wheel-card__visual > img, .real-wheels-filter, .real-wheel-enquiry { transition: none; }
}
@media print { .real-wheel-dialog { display: none; } }
