/* Home / Shop / Search / 404: states the Claude Design captures don't show (hand-written; the design CSS is dc.css). */

/* hidden wins over the generated display rules */
[data-hx-grid] > [hidden], [data-hx-faqa][hidden], [data-hx-more][hidden], [data-hx-pager][hidden],
.hx-empty[hidden], .hx-sortmenu[hidden], .hx-qa[hidden] { display: none !important; }

/* quick-add sheet: the capture positions it inside the artboard; on the site it covers the viewport */
.hx-qa { position: fixed !important; inset: 0; z-index: 9100; }
.hx-qa-panel { max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 1024px) { .hx-qa { display: none !important; } }

/* desktop sort menu (the design only shows the closed button) */
.hx-sortwrap { position: relative; }
.hx-sortmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 210px; background: #fff;
  border: 1px solid var(--hx-line); border-radius: 16px; box-shadow: 0 18px 40px rgba(14, 27, 77, .14); padding: 6px;
  display: flex; flex-direction: column; }
.hx-sortmenu button { border: 0; background: transparent; text-align: left; padding: 10px 12px; border-radius: 10px;
  font: 500 14px var(--hx-font); color: var(--hx-navy); cursor: pointer; }
.hx-sortmenu button:hover { background: var(--hx-tint); }
.hx-sortmenu button[aria-selected="true"] { color: var(--hx-blue); background: var(--hx-tint-2); }

/* "COA available" toggle on */
[data-hx-coafilter][aria-pressed="true"] { background: #E8F6EF !important; border-color: #0F7A55 !important; }

/* empty state */
.hx-empty { text-align: center; padding: 56px 16px; border: 1px dashed var(--hx-line); border-radius: 20px; margin: 0 0 8px; }
.hx-empty-t { font: 600 24px/1.2 var(--hx-display); letter-spacing: -.02em; color: var(--hx-navy); }
.hx-empty-s { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--hx-muted); }
.hx-empty-b { margin-top: 20px; height: 44px; padding: 0 22px; border-radius: 22px; border: 1.5px solid var(--hx-blue);
  background: #fff; color: var(--hx-blue); font: 600 15px var(--hx-font); cursor: pointer; }
.hx-empty-b:hover { background: var(--hx-tint-2); }

a.hx-empty-b { display: inline-flex; align-items: center; }

/* search page: hidden results / groups / tabs / no-results block */
[data-hx-sx] [hidden] { display: none !important; }
[data-hx-sq]::-webkit-search-cancel-button { display: none; }
[data-hx-sq] { -webkit-appearance: none; appearance: none; }

/* ---------- home hero photo, phone tree (Vic 2026-11-17: optimise for mobile) ----------
   The design's box is a fixed 300px, which cropped the vial's cap and base on wider phones and tablets
   (768px showed only the label). Grow it with the width (5:4 = the phone crop's shape) and keep the vial centred. */
[data-screen-label="M Hero"] > div:has(> img[data-hx-hero]){height:clamp(300px,80vw,640px)!important}
img[data-hx-hero]{object-position:52% 50%!important}

/* mobile QA 2026-11-18: cards past the first page, until hx-store.js applies the pager (see hx_shop_view) */
[data-hx-grid] > [data-pre="1"] { display: none !important; }
