.accessories-intro { margin-bottom: 32px; }
.accessories-intro p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.accessories-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; width: 92%; max-width: 1080px; margin-inline: auto; }
.accessory-card { min-width: 0; }
.accessory-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.accessory-card .accessory-heading h3 { margin-top: 0; }
.accessory-description-toggle { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: 50%; }
.accessory-description-toggle svg { transition: transform .3s ease; }
.accessory-description-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.accessory-description-panel { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .3s ease, opacity .3s ease, visibility .3s; }
.accessory-description-panel.is-expanded { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
.accessory-description-clip { min-height: 0; overflow: hidden; }
.accessory-description-text { padding-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.accessory-description-text strong { color: var(--ink); }
.accessory-photo { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--soft); }
.accessory-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.accessory-open-icon { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fffffff2; color: #111111; transition: background .2s, color .2s; }
.accessory-open-icon svg { width: 22px; height: 22px; }
.accessory-photo:hover img { transform: scale(1.025); }
.accessory-photo:hover .accessory-open-icon { background: #111111; color: #ffffff; }
.accessory-card h3 { margin-top: 14px; font-size: clamp(23px, 2.2vw, 29px); line-height: 1.25; }
.accessory-title-button { min-height: 44px; border: 0; padding: 0; background: none; font: inherit; letter-spacing: inherit; text-align: left; }
.accessory-title-button:hover { text-decoration: underline; text-underline-offset: 5px; }
.accessory-viewer { width: min(1120px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; color: var(--ink); overscroll-behavior: contain; }
.accessory-viewer::backdrop { background: #000000d9; }
html:has(.accessory-viewer[open]) { overflow: hidden; }
.accessory-viewer-inner { padding: 20px; }
.accessory-viewer-toolbar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding-bottom: 12px; background: #ffffff; }
.accessory-viewer-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(22,22,22,.88); color: #ffffff; box-shadow: 0 6px 24px rgba(0,0,0,.35); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.accessory-viewer-close svg { width: 19px; height: 19px; }
.accessory-viewer-close:hover { background: #ffffff; color: #111111; transform: rotate(90deg); }
.accessory-viewer-close:focus-visible { outline: 2px solid #111111; outline-offset: 3px; }
.accessory-viewer-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.accessory-viewer-stage { position: relative; min-width: 0; width: min(100%, 65vh); width: min(100%, 65dvh); aspect-ratio: 1; justify-self: center; border-radius: var(--radius); background: var(--soft); touch-action: pan-y; }
.accessory-viewer-images { position: absolute; inset: 0; }
.accessory-viewer-images img { width: 100%; height: 100%; object-fit: contain; }
.accessory-viewer-stage button { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff80; border-radius: 50%; background: #111111dd; color: #ffffff; }
.accessory-viewer-stage button:hover { background: #111111; }
.accessory-viewer-previous { left: 8px; }
.accessory-viewer-next { right: 8px; }
.accessory-viewer-copy { min-width: 0; }
.accessory-viewer-copy h2 { font-size: clamp(28px, 3vw, 38px); }
.accessory-viewer-description { margin-top: 18px; font-size: 16px; color: var(--muted); }
.accessory-viewer-description strong { color: var(--ink); }
.accessory-viewer-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 960px) {
  .accessories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}
@media (max-width: 700px) {
  .accessories-intro p { font-size: 15px; }
  .accessory-viewer { width: calc(100% - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .accessory-viewer-inner { padding: 12px; }
  .accessory-viewer-layout { grid-template-columns: 1fr; gap: 20px; }
  .accessory-viewer-stage { width: min(100%, 42vh); width: min(100%, 42dvh); }
  .accessory-viewer-description { margin-top: 12px; font-size: 15px; }
}
@media (max-width: 520px) {
  .accessories-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .accessory-photo img, .accessory-open-icon { transition: none; }
}
