  :root {
    /* Adriatic Design System — ported from montenegro-experience-hub */
    --paper:        hsl(192 33% 99%);   /* sea-tinted near-white */
    --paper-2:      hsl(192 20% 96%);   /* subtle surface */
    --ink:          hsl(200 24% 12%);   /* deep teal-ink text */
    --ink-2:        hsl(200 18% 24%);
    --muted:        hsl(200 10% 42%);
    --rule:         hsl(200 16% 90%);   /* hairline borders */
    --accent:       hsl(184 64% 28%);   /* deep Adriatic teal — primary */
    --accent-ink:   hsl(184 64% 22%);   /* darker teal — hover */
    --accent-warm:  hsl(28 84% 52%);    /* warm sandstone — urgency CTA */
    --accent-warm-ink: hsl(28 84% 44%);
    --rating:       hsl(38 92% 50%);    /* review stars */
    --radius:       0.75rem;
    --max:          1240px;
    --serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --sans:  'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --motion-fast: 140ms;
    --motion-med:  240ms;
    --motion-slow: 420ms;
    --ease-out:    cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Damped spring approximation — drawer/dialog/reveal entrances. */
    --spring: linear(0, 0.009, 0.141 4.4%, 0.55 10.1%, 1.124,
      1.367 21.5%, 1.397, 1.318 31.2%, 1.043 39.8%, 0.838,
      0.798 56.4%, 0.91 65%, 1.029 76.4%, 1);
  }
  /* Reusable motion keyframes. transform + opacity only — never reflow. */
  @keyframes ko-reveal-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes ko-pop       { 0% { transform: scale(1); } 30% { transform: scale(1.18); } 100% { transform: scale(1); } }
  @keyframes ko-breathe   { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
  @keyframes ko-shimmer   { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
  .ko-reveal { animation: ko-reveal-up var(--motion-med) var(--ease-out) both; }
  @supports (animation-timeline: view()) {
    .ko-reveal-on-scroll {
      animation: ko-reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
      view-transition-name: none !important;
    }
    .ko-fade { transition-duration: 120ms !important; }
  }
  /* Cross-document View Transitions for PLP→PDP cover morph. */
  @view-transition { navigation: auto; }
  /* Cart badge — sits on the cart icon, populated + animated by JS. */
  .cart-icon { position: relative; }
  .cart-badge {
    position: absolute; top: 2px; right: 2px;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: var(--accent); color: #fff;
    font-size: 10px; font-weight: 700; line-height: 16px;
    text-align: center; display: inline-flex; align-items: center; justify-content: center;
    transform-origin: center;
  }
  .cart-badge[hidden] { display: none; }
  /* Shop folded into experiences — hide the product cart entry point. The
     element stays in the DOM so the cart-drawer JS keeps resolving its refs. */
  #cart-icon-link { display: none; }
  /* Image clone for fly-to-cart. Positioned absolute via JS. */
  .fly-cart-clone {
    position: fixed; z-index: 1000; pointer-events: none;
    border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
    will-change: transform, opacity;
  }
  /* Smooth scroll for anchor jumps + native CSS scroll-snap targets. */
  html { scroll-behavior: smooth; }
  /* Image lazy-load fade-in. Native <img loading="lazy"> images start at
     opacity 0 and fade up on the `load` event (set via small JS in base).
     Cheap, no JS frame cost. */
  img.ko-fade-img { opacity: 0; transition: opacity 400ms var(--ease-out); }
  img.ko-fade-img.is-loaded { opacity: 1; }
  /* Subtle press feedback on every button-like control. ~30ms press, GPU. */
  .btn:active, button:not(.ck-input):active { transform: scale(0.97); transition: transform 80ms var(--ease-out); }
  /* Animated nav underline on hover — reveals from left, GPU-cheap. */
  .nav a { position: relative; }
  .nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
    height: 1px; background: var(--accent-ink);
    transform: scaleX(0); transform-origin: left center;
    transition: transform var(--motion-fast) var(--ease-out);
  }
  .nav a:hover::after { transform: scaleX(1); }
  /* Marquee scroll for the top strip — slow continuous loop, no JS. */
  .strip .wrap.strip-row {
    overflow: hidden; white-space: nowrap;
    display: flex !important; gap: 3rem;
  }
  @keyframes ko-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  /* Container marker — only animate when explicitly marked. */
  .strip .wrap.strip-row.is-marquee > * { display: inline-block; }
  /* Image zoom-on-hover inside book cover-wraps. Subtle, 1.04×, 600ms ease. */
  @media (hover: hover) {
    .book .cover-wrap img { transition: transform 600ms var(--ease-out); }
    .book:hover .cover-wrap img { transform: scale(1.04); }
  }
  /* Float-label fields. Wrap with .field; input must have placeholder=" "
     so :placeholder-shown stays true while empty. Label sits inside the
     input visually until focus or input. */
  .field { position: relative; }
  .field > input,
  .field > textarea {
    padding-top: 1.25rem;
  }
  .field > label {
    position: absolute;
    top: 50%; left: 1rem;
    transform: translateY(-50%);
    transform-origin: 0 50%;
    color: var(--muted);
    pointer-events: none;
    transition: transform var(--motion-fast) var(--ease-out),
                color var(--motion-fast) var(--ease-out);
    font-size: 0.95rem;
  }
  .field > input:focus + label,
  .field > textarea:focus + label,
  .field > input:not(:placeholder-shown) + label,
  .field > textarea:not(:placeholder-shown) + label {
    transform: translateY(-150%) scale(0.78);
    color: var(--ink);
  }
  *, *::before, *::after { box-sizing: border-box; }
  html, body { background: var(--paper); color: var(--ink); }
  body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'ss01', 'cv11', 'liga', 'kern';
  }
  a { color: inherit; text-decoration: none; transition: color var(--motion-fast) var(--ease-out); }
  a:hover { color: var(--accent-ink); }
  img { max-width: 100%; display: block; }
  /* Explicit display type scale — heroes / section heads / body. Plugins
     and storefront pages can use .display-xl/.display-l/.display-m to
     pick the right size without re-rolling letter-spacing every time. */
  .display-xl, h1.hero { font-family: var(--serif); font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); line-height: 1.02; font-weight: 500; letter-spacing: -.025em; }
  .display-l                 { font-family: var(--serif); font-size: clamp(2rem, 3vw + 1rem, 3rem);   line-height: 1.1;  font-weight: 500; letter-spacing: -.02em; }
  .display-m                 { font-family: var(--serif); font-size: clamp(1.5rem, 2vw + .5rem, 2rem); line-height: 1.2;  font-weight: 500; letter-spacing: -.015em; }
  .eyebrow { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
  /* Accent focus rings — replace browser default with the brand red,
     visible against the warm paper bg. */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
  }
  /* Skip-to-content — keyboard / screen-reader users jump past the nav.
     Off-screen until focused; matches the brand ink/paper palette. */
  .skip-link {
    position: fixed; top: .5rem; left: .5rem; z-index: 200;
    transform: translateY(-150%);
    background: var(--ink); color: var(--paper);
    padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
    font-size: .9rem; box-shadow: 0 8px 24px -8px rgba(14,14,14,.4);
    transition: transform var(--motion-fast) var(--ease-out);
  }
  .skip-link:focus { transform: translateY(0); outline: 2px solid var(--accent); outline-offset: 2px; }
  /* Product card lift — the existing .book .cover-wrap zoom stays; this
     adds a subtle elevation cue so the whole card reads as a tappable
     surface, not just the image. */
  .book {
    transition:
      transform var(--motion-fast) var(--ease-out),
      filter   var(--motion-fast) var(--ease-out);
    will-change: transform;
  }
  @media (hover: hover) {
    .book:hover { transform: translateY(-2px); }
    .book:hover .cover-wrap { box-shadow: 0 16px 36px -16px rgba(0,0,0,.25); }
    .book .cover-wrap { transition: box-shadow var(--motion-med) var(--ease-out); }
  }
  /* Editorial blockquote — used in journal posts + review excerpts. */
  blockquote.editorial {
    font-family: var(--serif); font-style: italic;
    font-size: 1.25rem; line-height: 1.4;
    padding: .5rem 0 .5rem 1.25rem;
    margin: 1.5rem 0;
    border-left: 2px solid var(--accent);
    color: var(--ink-2);
  }
  /* Empty state — used by search/category/wishlist when there are no
     results. Centred, warm, encourages browsing the rest of the shelf. */
  .empty-shelf { text-align: center; padding: 4rem 1.5rem; max-width: 38rem; margin: 0 auto; }
  .empty-shelf .glyph { font-family: var(--serif); font-size: 3.5rem; line-height: 1; color: var(--accent); margin-bottom: .75rem; opacity: .65; }
  .empty-shelf h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; margin: 0 0 .5rem; letter-spacing: -.015em; }
  .empty-shelf p  { color: var(--muted); margin: 0 auto 1.5rem; max-width: 30rem; }
  .empty-shelf .actions { display: flex; gap: .65rem; justify-content: center; flex-wrap: wrap; }

  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
  @media (min-width: 768px) { .wrap { padding: 0 2.25rem; } }

  /* Wordmark */
  .wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1; display: inline-flex; align-items: baseline; }
  .wordmark .dot { color: var(--accent); margin-left: 0.04em; font-weight: 700; }

  /* Top bar */
  .topbar { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); backdrop-filter: blur(8px); }
  .topbar-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
  .nav { display: none; gap: 1.75rem; font-size: 0.9rem; font-weight: 500; }
  .nav a { color: var(--ink-2); transition: color .15s; }
  .nav a:hover { color: var(--accent-ink); }
  @media (min-width: 768px) { .nav { display: flex; } }
  /* Mobile hamburger — storefront is plain CSS (no Tailwind), so the button is
     shown below the nav breakpoint and hidden once the inline .nav appears. */
  .nav-burger { display: inline-flex; }
  /* Hide on desktop. Uses .icon-btn.nav-burger (specificity 0,2,0) so it beats
     the later `.icon-btn { display:inline-flex }` rule regardless of source order. */
  @media (min-width: 768px) { .icon-btn.nav-burger { display: none; } }
  /* Genres mega menu */
  .nav-mega { position: relative; }
  .nav-mega__trigger { display: inline-flex; align-items: center; gap: .28rem; }
  .nav-mega__trigger::after, .nav-mega__panel a::after { display: none !important; }
  .nav-mega__chev { opacity: .55; transition: transform .2s ease; }
  .nav-mega:hover .nav-mega__chev, .nav-mega:focus-within .nav-mega__chev { transform: rotate(180deg); }
  /* Full-bleed mega panel — spans the whole viewport width below the header,
     content centered to a max width. Always on-screen; roomy for many items. */
  .nav-mega__panel {
    /* .topbar has backdrop-filter, so it is the containing block for this
       fixed panel — top:100% is the topbar's own bottom, flush with the bar
       and correct with or without the staff admin-bar offset. No JS needed. */
    position: fixed; top: 100%; left: 0; right: 0; width: 100%;
    transform: translateY(6px);
    max-height: 76vh; overflow-y: auto;
    background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 54px -18px rgba(14,14,14,.22);
    padding: 2.2rem max(1.5rem, calc((100vw - 1180px) / 2));
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease; z-index: 60;
  }
  /* Hover bridge spanning the gap between the trigger and the fixed panel.
     It lives on the TRIGGER WRAPPER, not the panel: the panel's
     overflow-y:auto clips a pseudo placed above it, which silently kills the
     bridge and drops the menu the moment the pointer leaves the trigger.
     pointer-events is enabled only while the menu is open so the invisible
     strip never blocks clicks on the page below. */
  .nav-mega::after {
    content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    width: 260px; max-width: 70vw; height: 46px; pointer-events: none;
  }
  .nav-mega:hover::after, .nav-mega:focus-within::after { pointer-events: auto; }
  .nav-mega:hover .nav-mega__panel, .nav-mega:focus-within .nav-mega__panel {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  }
  .nav-mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .3rem 2rem; }
  .nav-mega__authors { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .3rem 2rem; }
  .nav-mega__authors a { font-size: .9rem; color: var(--ink-2); padding: .18rem 0; }
  .nav-mega__authors a:hover { color: var(--accent-ink); }
  .nav-mega__col { display: flex; flex-direction: column; gap: .1rem; }
  /* Genre terms share the Authors typography (sans, not serif) — heads a touch
     bolder as column headers, sub-links matched to the author-link treatment. */
  .nav-mega__head { font-size: .95rem; font-weight: 600; color: var(--ink-2); margin-bottom: .35rem; }
  .nav-mega__head:hover { color: var(--accent-ink); }
  .nav-mega__link { font-size: .9rem; color: var(--ink-2); padding: .18rem 0; }
  .nav-mega__link:hover { color: var(--accent-ink); }
  /* Dynamic book-cover strip inside a mega panel */
  .nav-mega__books { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
  .nav-mega__books-h { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
  .nav-mega__covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 1.1rem; }
  .nav-mega__cover { display: block; }
  .nav-mega__cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 8px 20px -8px rgba(14,14,14,.35); transition: transform .18s ease; background: var(--paper-2); }
  .nav-mega__cover:hover img { transform: translateY(-3px); }
  .nav-mega__cover span { display: block; margin-top: .4rem; font-size: .78rem; line-height: 1.25; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-mega__all { display: block; margin-top: 1.15rem; padding-top: .95rem; border-top: 1px solid var(--rule); font-size: .82rem; font-weight: 600; color: var(--accent-ink); }
  .icons { display: flex; align-items: center; gap: 0.65rem; }
  .icon-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
  .icon-btn:hover { background: var(--paper-2); border-color: var(--rule); }

  /* Editorial type */
  .display { font-family: var(--serif); font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 0; }
  .display-xl { font-size: clamp(2.75rem, 8vw, 6rem); }
  .display-l  { font-size: clamp(2.1rem, 5vw, 3.6rem); }
  .display-m  { font-size: clamp(1.6rem, 3vw, 2.25rem); }
  .lede { font-family: var(--serif); font-weight: 400; font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--muted); line-height: 1.5; max-width: 60ch; }
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
  .meta { font-size: 0.8rem; color: var(--muted); }

  /* Buttons */
  .btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.3rem; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; transition: transform .15s, background .15s, color .15s, border-color .15s; border: 1px solid transparent; }
  .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
  .btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-1px); }
  .btn-warm { background: var(--accent-warm); color: #fff; border-color: var(--accent-warm); }
  .btn-warm:hover { background: var(--accent-warm-ink); border-color: var(--accent-warm-ink); transform: translateY(-1px); }
  .btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn-link { display: inline-flex; align-items: center; gap: .35rem; font-size: 0.9rem; font-weight: 600; }
  .btn-link::after { content: '→'; transition: transform .15s; }
  .btn-link:hover::after { transform: translateX(3px); }

  /* Sections */
  section { padding: 5rem 0; }
  section.tight { padding: 3.5rem 0; }
  hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

  /* Book card */
  .book { display: flex; flex-direction: column; gap: 1rem; }
  .book .cover-wrap { aspect-ratio: 4 / 3; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: 0 8px 24px -12px rgba(14,14,14,0.25); transition: transform .25s, box-shadow .25s; }
  .book:hover .cover-wrap { transform: translateY(-4px); box-shadow: 0 18px 36px -16px rgba(14,14,14,0.35); }
  .book .cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
  .book .cover-wrap .placeholder { width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--muted);font-family:var(--serif);font-size:1.1rem;font-style:italic; }
  .book .ribbon { position: absolute; top: 0.65rem; left: 0.65rem; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.65rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
  .book .title { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
  .book .author { font-size: 0.9rem; color: var(--muted); margin-top: 0.2rem; }
  .book__excerpt { margin-top: 0.4rem; font-size: 0.92rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .book .price { margin-top: 0.55rem; font-size: 0.95rem; font-weight: 600; }
  .book .price .compare { color: var(--muted); text-decoration: line-through; margin-left: 0.35rem; font-weight: 400; }
  /* Shared card actions (Add to cart) — used by _product_card.html. */
  .book__cover, .book__titlelink { display: block; color: inherit; text-decoration: none; }
  .book__body { display: flex; flex-direction: column; }
  .book__actions { display: grid; gap: 0.4rem; margin-top: 0.7rem; }
  .book__actions .btn { width: 100%; justify-content: center; }
  .book__add { margin: 0; }
  .btn-sm { padding: 0.5rem 0.9rem; font-size: 0.8rem; }

  /* Grids */
  .grid-books { display: grid; gap: 2.25rem 1.6rem; grid-template-columns: repeat(2, 1fr); }
  @media (min-width: 640px) { .grid-books { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 1024px) { .grid-books { grid-template-columns: repeat(4, 1fr); } }
  @media (min-width: 1280px) { .grid-books { grid-template-columns: repeat(5, 1fr); } }

  /* Marquee strip */
  .strip { background: var(--ink); color: var(--paper); }
  .strip .strip-row { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; gap: 1rem; }
  .strip .dot { color: var(--accent); }

  /* Footer */
  footer { background: var(--paper-2); border-top: 1px solid var(--rule); margin-top: 6rem; }
  footer .col h2 { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 1rem; }
  footer .col a { color: var(--ink-2); display: block; padding: 0.25rem 0; font-size: 0.92rem; }
  footer .col a:hover { color: var(--accent-ink); }
  footer .grid { display: grid; gap: 2rem; grid-template-columns: repeat(1, 1fr); padding: 4rem 0 2rem; }
  @media (min-width: 768px) { footer .grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
  footer .signoff { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; border-top: 1px solid var(--rule); font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; gap: 1rem; }

  /* Newsletter */
  .newsletter { display: flex; gap: 0.5rem; max-width: 460px; margin-top: 0.75rem; }
  .newsletter input { flex: 1; height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 0.92rem; }
  .newsletter input:focus { outline: none; border-color: var(--ink); }
  .newsletter button { height: 44px; padding: 0 1.25rem; border-radius: 999px; background: var(--ink); color: var(--paper); border: none; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: background .15s; }
  .newsletter button:hover { background: var(--accent-ink); }

  /* Mobile drawer */
  .drawer { position: fixed; inset: 0; background: var(--paper); z-index: 100; transform: translateY(-100%); transition: transform .25s ease-out; padding: 1.5rem; overflow-y: auto; }
  .drawer.open { transform: translateY(0); }
  .drawer .nav-mobile { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.75rem; font-family: var(--serif); font-size: 1.85rem; font-weight: 500; }

  /* Utility */
  .text-accent { color: var(--accent); }
  .center { text-align: center; }
  .stack-3 > * + * { margin-top: 0.75rem; }
  .stack-6 > * + * { margin-top: 1.5rem; }
</style>
<style>
.quicksearch {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4rem 1rem 1rem;
  animation: quicksearch-fade .15s ease-out;
}
/* Critical: CSS display: flex above would override the [hidden] attribute's
   default display: none. Without this rule, the panel is permanently
   visible and the toggle button can't dismiss it. */
.quicksearch[hidden] { display: none; }
@keyframes quicksearch-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .quicksearch { animation: none; } }
.quicksearch__backdrop {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: rgba(20, 20, 18, .55);
  backdrop-filter: blur(3px);
  border: 0; padding: 0; cursor: pointer;
}
.quicksearch__panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 600px;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 30px 60px -10px rgba(20,20,18,.35);
  overflow: hidden;
}
.quicksearch__head {
  display: flex; align-items: center; gap: .65rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.quicksearch__icon { color: var(--muted); flex-shrink: 0; }
#quicksearch-input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  font-family: var(--serif); font-size: 1.2rem;
  color: var(--ink);
}
.quicksearch__close {
  background: transparent; border: 0; padding: .25rem; cursor: pointer;
  color: var(--muted); border-radius: 4px;
}
.quicksearch__close:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.quicksearch__results {
  max-height: 60vh;
  overflow-y: auto;
}
.quicksearch__hit {
  display: flex; gap: .75rem; align-items: center;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  color: inherit; text-decoration: none;
}
.quicksearch__hit:last-child { border-bottom: 0; }
.quicksearch__hit:hover, .quicksearch__hit.is-focused {
  background: var(--paper-2, rgba(0,0,0,.03));
}
.quicksearch__hit-cover {
  width: 40px; height: 56px; flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--surface, var(--paper));
}
.quicksearch__hit-meta { flex: 1; min-width: 0; }
.quicksearch__hit-name {
  font-family: var(--serif); font-size: 1rem; line-height: 1.25;
  color: var(--ink); margin: 0 0 .15rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.quicksearch__hit-price {
  font-size: .8rem; color: var(--muted); margin: 0;
  font-variant-numeric: tabular-nums;
}
.quicksearch__empty {
  padding: 2rem 1.25rem;
  text-align: center; color: var(--muted); font-size: .9rem;
}
.quicksearch__foot {
  padding: .65rem 1.25rem;
  background: var(--paper-2, rgba(0,0,0,.02));
  border-top: 1px solid var(--rule);
}
.quicksearch__foot kbd {
  font-family: var(--sans); font-size: .7rem;
  padding: .1rem .35rem; border-radius: 3px;
  background: var(--paper); border: 1px solid var(--rule);
}
