/* Blossom Library — detail drawer styles. Shared across the
   grid pages (home, browse, catalog index); relies on the host
   page's Sahara palette vars. Loaded with storefront.js — the
   drawer markup is injected by that script, not emitted. */

/* ── detail drawer ── */
.drawer { position: fixed; inset: 0; z-index: 50; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer .scrim { position: absolute; inset: 0;
  background: rgba(58, 48, 42, 0.35); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.25s ease; }
.drawer.open .scrim { opacity: 1; }
.drawer .sheet { position: absolute; top: 0; right: 0; bottom: 0;
  width: min(480px, 100vw); background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(58, 48, 42, 0.12);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.28s ease; }
.drawer.open .sheet { transform: translateX(0); }
@media (max-width: 640px) {
  .drawer .sheet { top: auto; left: 0; right: 0; bottom: 0;
    width: auto; max-height: 85vh; border-left: none;
    border-top: 1px solid var(--line); border-radius: 16px 16px 0 0;
    transform: translateY(100%); }
  .drawer.open .sheet { transform: translateY(0); }
}
.sheet-head { display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.4rem; border-bottom: 1px solid var(--line);
  background: var(--surface-low); flex-shrink: 0; }
.sheet-head .drag { display: none; width: 2.5rem; height: 4px;
  border-radius: 99px; background: var(--line); margin: 0 auto; }
@media (max-width: 640px) {
  .sheet-head { flex-direction: column; padding-top: 0.6rem; }
  .sheet-head .drag { display: block; }
  .sheet-head .row { width: 100%; display: flex; align-items: center; }
}
.sheet-head .eyebrow2 { font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--secondary); }
.sheet-head button { margin-left: auto; width: 2rem; height: 2rem;
  border: none; border-radius: 50%; background: var(--surface-c);
  color: var(--soft); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.sheet-head button:hover { background: var(--secondary-fixed); color: var(--ink); }
.sheet-body { overflow-y: auto; padding: 1.4rem; display: flex;
  flex-direction: column; gap: 1.2rem; }
.pres { display: flex; gap: 1.1rem; align-items: stretch; }
.dcov { width: 8.5rem; flex-shrink: 0; aspect-ratio: 8.5/11;
  border-radius: 8px; overflow: hidden; position: relative;
  box-shadow: 0 4px 14px rgba(58, 48, 42, 0.12); background: var(--surface-c); }
.dcov img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: block; }
.dcov .ph { padding: 0.7rem; }
.dcov .ph-title { font-size: 0.82rem; }
.dhead { flex: 1; min-width: 0; display: flex;
  flex-direction: column; }
.dchips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.6rem; }
.dchips .chip { display: inline-block; background: var(--secondary-fixed);
  color: var(--ink); border-radius: 999px; padding: 0.18rem 0.6rem;
  font: 600 0.68rem var(--sans); text-transform: uppercase; letter-spacing: 0.08em; }
.dhead h2 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem;
  line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.3rem; }
.dby { font-size: 0.9rem; color: var(--ink); }
.dsub { font-size: 0.8rem; color: var(--soft); margin-top: 0.3rem; }
.sheet-body section { min-width: 0; }
.slabel { display: block; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--secondary); margin-bottom: 0.55rem; }
#d-desc-sec { background: var(--surface-low); border-radius: 10px;
  padding: 0.95rem 1.1rem 1.05rem; }
#d-desc-sec .slabel { margin-bottom: 0.45rem; }
#drawer-desc { margin: 0; font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; line-height: 1.55; color: var(--ink); }
#drawer-desc .ld { display: block; margin-top: 0.6rem; font-style: normal;
  font-family: var(--sans); font-size: 0.88rem; color: var(--soft); }
#drawer-toc { margin: 0; padding: 0.45rem 0.95rem; list-style: none;
  counter-reset: toc; background: var(--surface-low); border-radius: 10px;
  font-size: 0.85rem; color: var(--soft);
  max-height: 12rem; overflow-y: auto; }
#drawer-toc li { position: relative; padding: 0.42rem 0 0.42rem 2.1rem; }
#drawer-toc li + li { border-top: 1px solid var(--line); }
#drawer-toc li::before { counter-increment: toc;
  content: counter(toc, decimal-leading-zero); position: absolute;
  left: 0.15rem; font-family: var(--mono); font-size: 0.68rem;
  color: var(--faint); }
#d-sib-sec { background: var(--surface-c); border-radius: 10px;
  padding: 0.95rem 1.1rem 1rem; }
#d-sib-sec .sib { display: flex; align-items: center; gap: 0.7rem; }
#d-sib-sec .sib .t { flex: 1; min-width: 8rem;
  font-family: var(--serif); font-size: 0.95rem; }
#d-sib-sec .sib .l { font-family: var(--mono); font-size: 0.68rem;
  color: var(--secondary); flex-shrink: 0; }
#d-sib-sec .sib button { flex-shrink: 0; font: 600 0.75rem var(--sans);
  color: var(--primary); background: none; border: none; cursor: pointer;
  padding: 0.2rem 0; }
#d-sib-sec .sib button:hover { text-decoration: underline; }
.dkv dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.5rem; }
.dkv .kvi { background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.5rem 0.7rem; display: flex;
  flex-direction: column; gap: 0.15rem; min-width: 0; }
.dkv dt { font-family: var(--mono); font-size: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.dkv dd { margin: 0; font-size: 0.84rem; font-weight: 600;
  color: var(--ink); overflow-wrap: break-word; }
.dactions { display: flex; flex-direction: column; gap: 0.6rem;
  padding-top: 0.2rem; }
.dactions .row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.dactions .act { flex: 1 1 9rem; order: 2; font: 600 0.85rem var(--sans);
  padding: 0.6rem 1.1rem; border-radius: 8px; text-decoration: none;
  border: 1px solid var(--primary); color: var(--primary);
  background: var(--surface); text-align: center; }
.dactions .act:hover { background: var(--primary-fixed); text-decoration: none; }
.dactions .act.get { order: 1; }
.dactions .act.buy { order: -1; flex-basis: 100%; padding: 0.8rem 1.1rem;
  background: var(--primary); color: #fff; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em; }
.dactions .act.buy:hover { background: var(--primary-deep); }
.dactions .act.open { border-color: var(--faint); color: var(--soft); }
.dactions .act.open:hover { background: var(--surface-c); }
.dactions .note { order: 3; flex-basis: 100%; font-family: var(--mono);
  font-size: 0.68rem; color: var(--faint); text-align: center; }
.dloading { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); }

/* ── notify-me waitlist widget — markup injected by storefront.js
   notifyMount onto [data-notify-slug] hosts ── */
.notify-box { display: flex; flex-wrap: wrap; gap: 0.5rem;
  align-items: center; }
.notify-email { flex: 1 1 12rem; min-width: 0; font: 400 0.85rem var(--sans);
  padding: 0.55rem 0.8rem; border: 1px solid var(--faint);
  border-radius: 8px; background: var(--surface); color: inherit; }
.notify-msg { font-family: var(--mono); font-size: 0.68rem;
  color: var(--faint); }

/* ── lightbox — shared stills viewer; markup injected by
   storefront.js, thumbs opt in with data-lb ── */
.lb { position: fixed; inset: 0; z-index: 60; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  gap: .8rem; padding: 3.5vh 3.5vw; background: rgba(58, 48, 42, .88); }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 6px; box-shadow: 0 12px 48px rgba(0, 0, 0, .45); }
.lb .cap { font: 500 .8rem var(--sans); color: #faf5ee; }
.lb button { position: absolute; width: 2.4rem; height: 2.4rem;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(250, 245, 238, .14); color: #faf5ee;
  font-size: 1.3rem; line-height: 1; }
.lb button:hover { background: rgba(250, 245, 238, .28); }
.lb .lb-x { top: 1rem; right: 1rem; }
.lb .lb-nav { top: 50%; transform: translateY(-50%); font-size: 1.5rem; }
.lb .lb-prev { left: 1rem; }
.lb .lb-next { right: 1rem; }

@media (max-width: 480px) {
  .dcov { width: 6.8rem; }
  .pres { gap: 0.9rem; }
}
