/* ============================================================================
   Dannets Atelier — gallery workspace (albums | products | detail)
   Layers on top of styles.css tokens. Desktop = three independent columns.
   Mobile = drill-down (albums chips -> grid -> bottom sheet), because three
   columns on a phone is unusable and most visitors arrive from Instagram.
   ============================================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.gal-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 0;
  gap: 0;
  min-height: calc(100vh - 74px);
  transition: grid-template-columns 360ms var(--ease);
}
.gal-shell.detail-open { grid-template-columns: 260px minmax(0, 1fr) 400px; }

.category-cards { max-width: 960px; }
.category-cards .ac-img img { object-fit: cover; }

/* ---------- column chrome ---------- */
.gal-col { min-width: 0; }
.gal-rail,
.gal-detail {
  border-inline: 1px solid var(--border);
  background: var(--surface);
}
.gal-rail { border-left: 0; }
.gal-detail { border-right: 0; }

@media (min-width: 901px) {
  .gal-rail, .gal-detail {
    position: sticky; top: 74px;
    height: calc(100vh - 74px);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .gal-detail { overflow-x: hidden; }
}

/* ---------- albums rail ---------- */
.rail-search { padding: var(--space-m) var(--space-s) 0; }
.gal-search {
  width: 100%; min-height: 44px; padding: 0.5rem 0.7rem;
  border-radius: var(--radius-full); border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font-size: var(--step--1);
}
.gal-search-home { width: min(100%, 30rem); margin: 0 auto var(--space-s); padding-inline: var(--gutter); }
.gal-search-home:empty { display: none; }
.gal-search-home .rail-search { padding: 0; }
.prod-collection { margin-top: .25rem; font-size: var(--step--1); color: var(--text-muted); }
.gal-search:focus-visible { border-color: var(--accent); outline: none; box-shadow: var(--ring); }
.rail-head {
  padding: var(--space-s) var(--space-s) var(--space-xs);
  font-family: var(--font-script);
  font-size: 1.6rem; color: var(--accent); line-height: 1;
}
.album-list { list-style: none; padding: 0 var(--space-2xs) var(--space-l); margin: 0; }
.album-btn {
  display: flex; align-items: center; gap: 0.7rem; width: 100%;
  padding: 0.55rem 0.6rem; border-radius: var(--radius);
  text-align: left; color: var(--text-muted);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.album-btn:hover { background: var(--surface-2); color: var(--text); }
.album-btn[aria-current="true"] { background: var(--accent-soft); color: var(--text); }
.album-btn[aria-current="true"] .ab-name { font-weight: 700; }
.ab-thumb {
  flex: none; width: 46px; height: 46px; border-radius: 10px; object-fit: cover;
  background: var(--surface-2); border: 1px solid var(--border);
}
.ab-meta { min-width: 0; }
.ab-name { display: block; font-size: var(--step--1); line-height: 1.25; }
.ab-count { display: block; font-size: 0.72rem; color: var(--text-muted); }

/* ---------- product grid ---------- */
.grid-head {
  padding: var(--space-m) var(--gutter) var(--space-s);
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-s);
  justify-content: space-between;
}
.grid-head h1 { font-size: var(--step-3); margin: 0; }
.grid-head .sub:empty { margin: 0; }
.grid-head .sub { color: var(--text-muted); font-size: var(--step--1); max-width: 52ch; margin-top: 0.35em; }

.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(0.7rem, 1.4vw, 1.1rem);
  padding: 0 var(--gutter) var(--space-2xl);
}
.prod {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
  cursor: pointer; text-align: left;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklch, var(--accent) 45%, var(--border)); }
.prod[aria-expanded="true"] { border-color: var(--accent); box-shadow: var(--ring); }
.prod-img { position: relative; aspect-ratio: 1; background: var(--surface-2); }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.prod:hover .prod-img img { transform: scale(1.05); }
.prod-body { padding: 0.7rem 0.8rem 0.85rem; }
.prod-title { font-size: var(--step--1); font-weight: 650; line-height: 1.3; }
.product-colors { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; align-items: center; }
.product-color { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--swatch); border: 1px solid color-mix(in oklch, var(--text) 40%, transparent); }
.product-color.unknown { background: var(--surface); color: var(--text); font-size: 11px; line-height: 1; }
.prod-price { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.badge {
  position: absolute; top: 0.55rem; left: 0.55rem; z-index: 2;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.28rem 0.55rem; border-radius: var(--radius-full);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm);
}
.badge.sold { background: var(--n-800); color: #fff; }
.prod.is-sold .prod-img img { filter: grayscale(0.55) opacity(0.75); }

.gal-empty { padding: var(--space-2xl) var(--gutter); color: var(--text-muted); text-align: center; }
.gal-empty h3 { font-size: var(--step-1); margin-bottom: 0.4em; color: var(--text); }

/* skeletons while the catalog loads */
.skel { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; aspect-ratio: 1; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- detail panel ---------- */
.gal-detail { opacity: 0; pointer-events: none; transition: opacity 260ms var(--ease); }
.gal-shell.detail-open .gal-detail { opacity: 1; pointer-events: auto; }
.detail-inner { padding: var(--space-m) var(--space-m) var(--space-2xl); }
.detail-close {
  position: sticky; top: 0; margin-left: auto; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--text-muted);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); z-index: 2;
}
.detail-close:hover { background: var(--accent); color: #fff; }
.detail-close svg { width: 18px; height: 18px; }
.detail-hero { border-radius: var(--radius); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); margin-bottom: var(--space-s); }
.detail-hero img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail-thumbs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: var(--space-s); }
.detail-thumb { width: 54px; height: 54px; padding: 0; overflow: hidden; border-radius: 8px; border: 2px solid transparent; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumb[aria-pressed="true"] { border-color: var(--accent); }
.detail-album { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.detail-title { font-size: var(--step-2); margin: 0.25em 0 0.35em; }
.detail-price { font-size: var(--step-1); font-weight: 700; color: var(--text); margin-bottom: 0.5em; }
.detail-desc { color: var(--text-muted); font-size: var(--step--1); }
.detail-specs { list-style: none; padding: 0; margin: var(--space-s) 0; display: grid; gap: 0.4rem; }
.detail-specs li { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step--1); padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
.detail-specs dt, .detail-specs .k { color: var(--text-muted); }
.detail-specs .v { font-weight: 600; text-align: right; }
.detail-actions { display: grid; gap: 0.55rem; margin-top: var(--space-s); }
.variant-group { border: 0; padding: 0; margin: 1rem 0; }
.variant-group legend { font-weight: 700; margin-bottom: .5rem; }
.variant-list { display: flex; gap: .5rem; flex-wrap: wrap; }
.variant-choice { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.variant-choice input { position: absolute; opacity: 0; }
.variant-choice span { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .45rem .65rem; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--surface); }
.variant-choice input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.variant-choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.variant-swatch { width: 1rem; height: 1rem; flex: none; border-radius: 50%; border: 1px solid #777; background: var(--swatch); }
.variant-error { color: #b52252; font-size: var(--step--1); }
.detail-actions .btn { width: 100%; }
.detail-social { display: flex; gap: 0.4rem; justify-content: center; margin-top: var(--space-s); }
.detail-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); color: var(--text-muted); transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.detail-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.detail-social svg { width: 19px; height: 19px; }

/* ---------- lightbox with zoom ---------- */
.lb {
  position: fixed; inset: 0; z-index: 120; display: none;
  background: oklch(0.15 0.03 315 / 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lb.open { display: block; }
.lb-stage { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; touch-action: none; }
.lb-stage img {
  max-width: 92vw; max-height: 88vh; border-radius: 10px;
  transform-origin: center center; will-change: transform;
  transition: transform 180ms var(--ease); cursor: zoom-in; user-select: none; -webkit-user-drag: none;
}
.lb-stage.zoomed img { cursor: grab; transition: none; }
.lb-stage.zoomed.dragging img { cursor: grabbing; }
.lb-bar {
  position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.35rem; z-index: 3;
  background: oklch(1 0 0 / 0.1); border-radius: var(--radius-full); padding: 0.35rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lb-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; transition: background var(--dur); }
.lb-btn:hover { background: oklch(1 0 0 / 0.2); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-zoomval { color: #fff; font-size: 0.78rem; min-width: 3.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.lb-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; }
.lb-cap { position: absolute; top: 1.1rem; left: 1.2rem; right: 5rem; z-index: 3; color: #fff; font-weight: 600; font-size: var(--step--1); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; }
.lb-nav.prev { left: 1rem; } .lb-nav.next { right: 1rem; }

/* ---------- order dialog ---------- */
.order-mask { position: fixed; inset: 0; z-index: 140; display: none; background: oklch(0.15 0.03 315 / 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.order-mask.open { display: grid; place-items: center; padding: 4vw 1rem; overflow-y: auto; }
.order-card {
  background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow-lg);
  width: min(560px, 100%); padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--border);
  max-height: 92vh; overflow-y: auto;
}
.order-close { float: right; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1; color: var(--text-muted); }
.order-close:hover { background: var(--surface-2); color: var(--text); }
.order-card { overscroll-behavior: contain; }
.order-card h2 { font-size: var(--step-2); margin-bottom: 0.2em; }
.order-for { display: flex; gap: 0.8rem; align-items: center; padding: 0.7rem; background: var(--surface-2); border-radius: var(--radius); margin: var(--space-s) 0; }
.order-for img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.field { display: grid; gap: 0.3rem; margin-bottom: 0.75rem; }
.field label { font-size: var(--step--1); font-weight: 600; }
.field .req { color: var(--accent); }
.field input, .field textarea, .field select {
  padding: 0.65rem 0.8rem; border-radius: var(--radius-s);
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
  font-size: var(--step-0); width: 100%;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: var(--ring);
}
.field textarea { min-height: 5rem; resize: vertical; }
.field .hint { font-size: 0.75rem; color: var(--text-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step--1); color: var(--text-muted); margin: 0.6rem 0 1rem; }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.order-actions { display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; }
.form-msg { padding: 0.7rem 0.9rem; border-radius: var(--radius-s); font-size: var(--step--1); margin-bottom: 0.8rem; display: none; }
.form-msg.err { display: block; background: color-mix(in oklch, #e5397d 14%, transparent); color: var(--text); border: 1px solid color-mix(in oklch, #e5397d 40%, transparent); }
.form-msg.ok { display: block; background: color-mix(in oklch, #8fce2b 18%, transparent); color: var(--text); border: 1px solid color-mix(in oklch, #8fce2b 45%, transparent); }
.order-done { text-align: center; padding: var(--space-m) 0; }
.order-done .ref { font-family: var(--font-mono, monospace); font-size: var(--step-2); font-weight: 700; color: var(--accent); letter-spacing: 0.05em; margin: 0.4em 0; }

/* back-to-top now lives in styles.css (shared with the home page) */

/* ---------- mobile: drill-down ---------- */
.mob-back { display: none; }
@media (max-width: 900px) {
  .gal-shell, .gal-shell.detail-open { grid-template-columns: 1fr; }
  .gal-rail {
    border: 0; border-bottom: 1px solid var(--border);
    position: sticky; top: 74px; z-index: 30; background: var(--bg);
  }
  .rail-head { display: none; }
  .album-list {
    display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.7rem var(--gutter);
    scrollbar-width: none;
  }
  .album-list::-webkit-scrollbar { display: none; }
  .album-btn { flex: none; width: auto; padding: 0.45rem 0.85rem; border: 1.5px solid var(--border); border-radius: var(--radius-full); white-space: nowrap; }
  .album-btn[aria-current="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
  .ab-thumb, .ab-count { display: none; }

  /* detail becomes a bottom sheet */
  .gal-detail {
    position: fixed; inset: auto 0 0 0; z-index: 110;
    height: 86vh; border: 0; border-top: 1px solid var(--border);
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    box-shadow: var(--shadow-lg); overflow-y: auto;
    transform: translateY(100%); opacity: 1;
    transition: transform 340ms var(--ease);
  }
  .gal-shell.detail-open .gal-detail { transform: translateY(0); }
  .gal-detail::before {
    content: ""; display: block; width: 42px; height: 4px; border-radius: 2px;
    background: var(--border); margin: 0.6rem auto 0;
  }
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .grid-head { padding-top: var(--space-s); }
  .field-row { grid-template-columns: 1fr; }
  .lb-nav.prev { left: 0.3rem; } .lb-nav.next { right: 0.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gal-shell, .gal-detail, .prod, .lb-stage img { transition: none !important; }
  .skel { animation: none; }
}

/* ---------- back to the home page (to the section that introduces the gallery) ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--step--1); font-weight: 600; color: var(--text-muted);
  margin-bottom: 0.5rem; padding: 0.3rem 0.7rem 0.3rem 0.5rem;
  border-radius: var(--radius-full); border: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.back-link svg { width: 15px; height: 15px; }
.back-link:hover {
  color: var(--accent); border-color: var(--border);
  background: var(--surface); transform: translateX(-3px);
}

/* ============================================================================
   Landing step: pick an album first. The rail is hidden here — the albums are
   the content — and appears once you are inside one, for quick switching.
   ============================================================================ */
/* display:none removes the rail from the grid entirely, so the columns must
   collapse to ONE track — otherwise the products section lands in the old
   0-width first track and the whole page renders clipped off-screen left. */
.gal-shell.landing { grid-template-columns: minmax(0, 1fr); }
.gal-shell.landing .gal-rail,
.gal-shell.landing .gal-detail { display: none; }
.gal-shell.landing .grid-head { justify-content: center; text-align: center; }
.gal-shell.landing .grid-head .sub { margin-inline: auto; }

.album-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
  padding: 0 var(--gutter) var(--space-3xl);
  max-width: 74rem; margin-inline: auto;
}
.album-card {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.album-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklch, var(--accent) 45%, var(--border));
}
.album-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ac-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.ac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.album-card:hover .ac-img img { transform: scale(1.06); }
.ac-count {
  position: absolute; left: .7rem; bottom: .7rem;
  background: var(--surface); color: var(--text);
  font-size: .72rem; font-weight: 700; padding: .3rem .75rem;
  border-radius: var(--radius-full); box-shadow: var(--shadow-sm);
}
.ac-body { padding: var(--space-s) var(--space-s) var(--space-m); }
.ac-body h2 { font-size: var(--step-1); margin-bottom: .25em; }
.ac-desc { font-size: var(--step--1); color: var(--text-muted); }
.ac-go {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem;
  font-size: var(--step--1); font-weight: 650; color: var(--accent);
}
.ac-go svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.album-card:hover .ac-go svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .album-cards { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .ac-body { padding: .7rem .8rem 1rem; }
}

/* Compact subcategory cards in both main categories; the category chooser
   keeps its own larger cards. Let the grid adapt as albums are added. */
.album-cards:not(.category-cards) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: clamp(.65rem, 1.5vw, 1rem);
}
.album-cards:not(.category-cards) .ac-img { aspect-ratio: auto; height: clamp(95px, 16vh, 150px); }
.album-cards:not(.category-cards) .ac-body { padding: .65rem .75rem .8rem; }
.album-cards:not(.category-cards) .ac-body h2 { font-size: var(--step-0); line-height: 1.2; }
.album-cards:not(.category-cards) .ac-desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; line-height: 1.35;
}
.album-cards:not(.category-cards) .ac-go { margin-top: .45rem; }
@media (max-width: 600px) and (min-width: 320px) {
  .album-cards:not(.category-cards) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.detail-hero { display: block; width: 100%; padding: 0; text-align: left; }
.prod:focus-visible, .detail-thumb:focus-visible, .detail-hero:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 900px) {
  .gal-detail { overscroll-behavior: contain; }
  .detail-inner { display: flex; flex-direction: column; }
  .detail-close { order: 0; flex: none; width: 44px; height: 44px; }
  .detail-album { order: 1; }
  .detail-title { order: 2; }
  .detail-price { order: 3; }
  .variant-group, .variant-error { order: 4; }
  .detail-actions { order: 5; margin: .3rem 0 1rem; }
  .detail-hero { order: 6; }
  .detail-thumbs { order: 7; }
  .detail-desc { order: 8; }
  .detail-specs { order: 9; }
  .detail-social { order: 10; }
}

/* Product options lead the detail panel at every screen size. */
.product-sizes { margin-top: .45rem; color: var(--text-muted); font-size: .8rem; line-height: 1.35; }
.detail-inner { display:flex; flex-direction:column; }
.detail-close { order:0; flex:none; }
.detail-album { order:1; }
.detail-title { order:2; }
.detail-price { order:3; }
.variant-group, .variant-error { order:4; }
.detail-actions { order:5; margin:.3rem 0 1rem; }
.detail-hero { order:6; }
.detail-thumbs { order:7; }
.detail-desc { order:8; }
.detail-specs { order:9; }
.detail-social { order:10; }

/* Three workspace areas on desktop; a single clear selector on phones. */
.mobile-album-selector { display:none; }
@media (min-width:901px) {
  .gal-shell { grid-template-columns:20% minmax(0,80%) 0; }
  .gal-shell.detail-open { grid-template-columns:20% minmax(0,30%) minmax(0,50%); }
}
@media (max-width:900px) {
  .gal-rail { position:static; border:0; background:transparent; padding:.8rem var(--gutter) .2rem; }
  .rail-search { padding: 0 0 0.7rem; }
  .album-list { display:none; }
  .mobile-album-selector { display:grid; gap:.35rem; }
  .mobile-album-selector label { font-size:.8rem; font-weight:700; color:var(--text-muted); }
  .mobile-album-selector select { width:100%; min-height:48px; padding:.65rem 2.5rem .65rem .9rem; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); color:var(--text); font:inherit; font-weight:650; }
  .mobile-album-selector select:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
  .gal-detail { height: min(90dvh, 900px); border:1px solid var(--border); box-shadow:0 -12px 45px rgba(18,9,20,.32); }
  .gal-shell.detail-open::before { content:""; position:fixed; inset:0; z-index:100; background:rgba(18,9,20,.48); }
  .detail-inner { padding:var(--space-s) var(--space-m) var(--space-xl); }
  .variant-group { margin:.65rem 0; }
}

/* Compact product navigator while a detail is open on desktop. */
@media (min-width: 901px) {
  .gal-shell.detail-open .grid-head { padding: var(--space-m) clamp(1rem, 2vw, 1.6rem) .9rem; gap: .75rem; }
  .gal-shell.detail-open .grid-head h1 { font-size: clamp(1.6rem, 2vw, 2.15rem); line-height: 1.1; }
  .gal-shell.detail-open .grid-head .sub { font-size: .88rem; line-height: 1.5; }
  .gal-shell.detail-open .prod-grid { grid-template-columns: minmax(0, 1fr); gap: .65rem; padding: 0 clamp(1rem, 2vw, 1.6rem) var(--space-2xl); }
  .gal-shell.detail-open .prod {
    display: flex; align-items: center; gap: .85rem; padding: .55rem;
    min-width: 0; min-height: 92px; border-radius: 16px;
    background: linear-gradient(145deg, var(--surface-2), var(--surface));
    box-shadow: 0 3px 12px rgba(24, 12, 25, .09);
  }
  .gal-shell.detail-open .prod:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(24, 12, 25, .16); }
  .gal-shell.detail-open .prod[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), 0 8px 20px rgba(24, 12, 25, .14); }
  .gal-shell.detail-open .prod-img { flex: 0 0 clamp(72px, 6.8vw, 100px); width: clamp(72px, 6.8vw, 100px); aspect-ratio: 1; border-radius: 11px; overflow: hidden; }
  .gal-shell.detail-open .prod-body { flex: 1; min-width: 0; padding: .15rem .2rem .15rem 0; }
  .gal-shell.detail-open .prod-title { font-size: .95rem; line-height: 1.3; }
  .gal-shell.detail-open .product-colors { margin-top: .4rem; gap: .3rem; }
  .gal-shell.detail-open .product-color { width: 15px; height: 15px; }
  .gal-shell.detail-open .product-sizes { margin-top: .35rem; font-size: .78rem; }
  .gal-shell.detail-open .badge { top: .25rem; left: .25rem; font-size: .55rem; padding: .18rem .35rem; }
  .gal-shell.detail-open .gal-detail { background: linear-gradient(160deg, color-mix(in oklch, var(--accent) 5%, var(--surface)), var(--surface) 45%); }
  .gal-shell.detail-open .detail-inner { max-width: 740px; margin-inline: auto; }
  .gal-shell.detail-open .detail-hero { width: min(100%, 32rem); }
  .gal-shell.detail-open .detail-actions { max-width: 32rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gal-shell.detail-open .prod { transition: none; }
  .gal-shell.detail-open .prod:hover { transform: none; }
}
