/* Quartermaster public hire page. Everything is scoped to .qmh so the theme is left alone. */
.qmh [hidden], .qmh-dialog [hidden] { display: none !important; }
.qmh {
	--qmh-navy: #000032;
	--qmh-green: #049a1f;
	--qmh-green-dark: #037a19;
	--qmh-ink: #1b1f2a;
	--qmh-muted: #5b6273;
	--qmh-line: #dfe3ea;
	--qmh-soft: #f3f5f8;
	--qmh-card: #fff;
	--qmh-amber: #a35c00;
	--qmh-amber-bg: #fff3df;
	--qmh-red: #b3261e;
	--qmh-radius: 14px;
	--qmh-head: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
	--qmh-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-family: var(--qmh-body);
	color: var(--qmh-ink);
	line-height: 1.5;
	font-size: 16px;
	max-width: 1200px;
	margin-left: auto !important;
	margin-right: auto !important;
	position: relative;
}
.qmh.alignwide { width: 100%; max-width: min(1200px, var(--wp--style--global--wide-size, 1200px)); }
.qmh *, .qmh *::before, .qmh *::after { box-sizing: border-box; }
.qmh button, .qmh input, .qmh select, .qmh textarea { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.qmh img { max-width: 100%; display: block; }
.qmh h2, .qmh h3, .qmh h4 { margin: 0; line-height: 1.15; color: var(--qmh-navy); }
.qmh h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; margin: 20px 0 8px; color: var(--qmh-muted); font-family: var(--qmh-body); }
.qmh .qmh-h { font-family: var(--qmh-head); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.qmh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.qmh-loading, .qmh-empty { color: var(--qmh-muted); padding: 24px 0; }
.qmh-error { background: #fdecea; color: var(--qmh-red); padding: 16px; border-radius: var(--qmh-radius); }
.qmh-warn { color: var(--qmh-amber); font-weight: 600; }
.qmh-small { font-size: 13px; color: var(--qmh-muted); }
.qmh a { color: var(--qmh-green-dark); }

/* Buttons */
.qmh .qmh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--qmh-navy); background: #fff; color: var(--qmh-navy); font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2; box-shadow: none; }
.qmh .qmh-btn:hover { background: var(--qmh-soft); }
.qmh .qmh-btn:focus-visible, .qmh button:focus-visible, .qmh input:focus-visible, .qmh select:focus-visible, .qmh textarea:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.qmh .qmh-btn-primary { background: var(--qmh-green); border-color: var(--qmh-green); color: #fff; }
.qmh .qmh-btn-primary:hover { background: var(--qmh-green-dark); border-color: var(--qmh-green-dark); }
.qmh .qmh-btn:disabled { opacity: .45; cursor: not-allowed; }
.qmh .qmh-link { background: none; border: 0; padding: 4px; color: var(--qmh-green-dark); text-decoration: underline; cursor: pointer; font-weight: 600; min-height: 0; }

/* Hero + dates */
.qmh-hero { background: var(--qmh-navy); color: #fff; border-radius: var(--qmh-radius); padding: 28px; display: grid; gap: 20px; grid-template-columns: 1.2fr 1fr; align-items: end; }
.qmh-hero .qmh-h { color: #fff; font-size: clamp(34px, 5vw, 52px); }
.qmh-kicker { margin: 0 0 6px; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; font-size: 13px; color: #9fe3ab; }
.qmh-intro { margin: 10px 0 0; color: #dfe2f0; max-width: 46ch; }
.qmh-dates { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 14px; }
.qmh-seg { display: inline-flex; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.qmh-seg label { position: relative; cursor: pointer; }
.qmh-seg input { position: absolute; opacity: 0; inset: 0; }
.qmh-seg span { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.qmh-seg input:checked + span { background: #fff; color: var(--qmh-navy); }
.qmh-seg input:focus-visible + span { outline: 3px solid #ffbf47; }
.qmh-seg input:disabled + span { opacity: .4; }
.qmh-date-row { display: flex; gap: 10px; align-items: end; margin-top: 12px; flex-wrap: wrap; }
.qmh-date-row .qmh-field { flex: 1 1 120px; margin: 0; min-width: 0; }
.qmh-dates .qmh-field span { color: #dfe2f0; }
.qmh-dates input[type=date] { background: #fff; color: var(--qmh-ink); }
.qmh-dates .qmh-link { color: #9fe3ab; }
.qmh-date-hint { margin: 10px 0 0; font-size: 14px; color: #dfe2f0; min-height: 21px; }
.qmh-date-hint .qmh-warn { color: #ffd38a; display: block; }

/* Fields */
.qmh-field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; }
.qmh-field > span { font-weight: 700; font-size: 14px; }
.qmh-field small { font-weight: 400; color: var(--qmh-muted); }
.qmh input[type=text], .qmh input[type=email], .qmh input[type=tel], .qmh input[type=date], .qmh input[type=search], .qmh select, .qmh textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1.5px solid #b9c0cc; border-radius: 10px; background: #fff; }
.qmh textarea { min-height: 0; }
.qmh-fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.qmh-fieldset legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; padding: 0; }
.qmh-seg-small { background: var(--qmh-soft); }
.qmh-seg-small input:checked + span { background: var(--qmh-navy); color: #fff; }
.qmh-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 15px; }
.qmh-check input { width: 22px; height: 22px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--qmh-green); }
.qmh-hp { position: absolute; left: -9999px; }
.qmh-form-error { background: #fdecea; color: var(--qmh-red); padding: 10px 12px; border-radius: 10px; font-weight: 600; }

/* Filters */
.qmh-filters { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 20px 0 14px; flex-wrap: wrap; }
.qmh-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.qmh-chips button { border: 1.5px solid var(--qmh-line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; cursor: pointer; min-height: 40px; color: var(--qmh-navy); }
.qmh-chips button span { color: var(--qmh-muted); font-weight: 600; margin-left: 2px; }
.qmh-chips button[aria-pressed=true] { background: var(--qmh-navy); border-color: var(--qmh-navy); color: #fff; }
.qmh-chips button[aria-pressed=true] span { color: #c9cde0; }
.qmh-search { flex: 0 1 260px; }

/* Cards */
.qmh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; transition: opacity .2s; }
.qmh.is-busy .qmh-grid { opacity: .55; }
.qmh-card { background: var(--qmh-card); border: 1px solid var(--qmh-line); border-radius: var(--qmh-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.qmh-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 50, .08); }
.qmh-card.is-picked { border-color: var(--qmh-green); box-shadow: 0 0 0 2px var(--qmh-green) inset; }
.qmh-card.is-none .qmh-img img { opacity: .45; filter: grayscale(.6); }
.qmh-card-open { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; }
.qmh-img, .qmh-gallery-main, .qmh-line-img { background: var(--qmh-soft); aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.qmh-img img, .qmh-gallery-main img, .qmh-line-img img { width: 100%; height: 100%; object-fit: cover; }
.qmh-img.is-cutout, .qmh-gallery-main.is-cutout { background: #fff; }
.qmh-img.is-cutout img, .qmh-gallery-main.is-cutout img { object-fit: contain; padding: 10px; }
.qmh-img.is-empty span, .qmh-gallery-main.is-empty span { font-family: var(--qmh-head); font-size: 56px; font-weight: 800; color: #c3c9d6; }
.qmh-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.qmh-card h3 { font-size: 17px; font-family: var(--qmh-body); font-weight: 800; }
.qmh .qmh-title-btn { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--qmh-navy); font-weight: 800; }
.qmh .qmh-title-btn:hover { text-decoration: underline; }
.qmh-ex { margin: 0; font-size: 14px; color: var(--qmh-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qmh-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.qmh-badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e8f5ea; color: var(--qmh-green-dark); }
.qmh-badge.is-amber { background: var(--qmh-amber-bg); color: var(--qmh-amber); }
.qmh-badge.is-navy { background: var(--qmh-navy); color: #fff; }
.qmh-group { margin: 12px 0 0; }
.qmh-group span { color: #dfe2f0; }
.qmh-group select { background: #fff; color: var(--qmh-ink); }
.qmh-card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.qmh-meta { display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.qmh-price { font-weight: 800; color: var(--qmh-navy); }
.qmh-avail { color: var(--qmh-muted); }
.qmh-avail.is-ok { color: var(--qmh-green-dark); font-weight: 700; }
.qmh-avail.is-none { color: var(--qmh-red); font-weight: 700; }
.qmh .qmh-btn-add { min-height: 40px; padding: 6px 16px; background: var(--qmh-navy); color: #fff; border-color: var(--qmh-navy); }
.qmh .qmh-btn-add:hover { background: #1a1a5a; }
.qmh-step { display: inline-flex; align-items: center; border: 2px solid var(--qmh-green); border-radius: 999px; overflow: hidden; background: #fff; }
.qmh .qmh-step button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; font-weight: 800; color: var(--qmh-green-dark); cursor: pointer; padding: 0; }
.qmh .qmh-step button:disabled { opacity: .3; }
.qmh-step output { min-width: 24px; text-align: center; font-weight: 800; }

/* Sticky request bar */
.qmh.has-bar { padding-bottom: 90px; }
.qmh-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--qmh-line); box-shadow: 0 -6px 20px rgba(0, 0, 50, .08); }
.qmh-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qmh-bar-text { font-size: 15px; }

/* Dialogs */
.qmh-dialog { border: 0; border-radius: 18px; padding: 0; width: min(880px, calc(100vw - 24px)); max-height: calc(100vh - 32px); color: var(--qmh-ink); font-family: var(--qmh-body); box-shadow: 0 20px 60px rgba(0, 0, 50, .3); }
.qmh-dialog::backdrop { background: rgba(0, 0, 50, .55); }
.qmh-dialog-wide { width: min(720px, calc(100vw - 24px)); }
.qmh-dlg-inner { padding: 24px; position: relative; }
.qmh .qmh-close, .qmh-dialog .qmh-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--qmh-soft); font-size: 26px; line-height: 1; cursor: pointer; color: var(--qmh-navy); z-index: 2; }
.qmh-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.qmh-detail .qmh-h { font-size: 34px; padding-right: 40px; }
.qmh-detail-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; margin: 8px 0; }
.qmh-gallery-main { border-radius: 12px; }
.qmh-thumbs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.qmh-thumbs button { width: 60px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--qmh-soft); }
.qmh-thumbs button[aria-current=true] { border-color: var(--qmh-green); }
.qmh-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.qmh-desc { font-size: 15px; }
.qmh-desc p { margin: 0 0 10px; }
.qmh-includes { margin: 0; padding-left: 20px; font-size: 15px; }
.qmh-detail-add { margin-top: 14px; }

/* Calendar */
.qmh-cal-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.qmh-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: var(--qmh-navy); }
.qmh .qmh-cal-nav, .qmh-dialog .qmh-cal-nav { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--qmh-line); background: #fff; cursor: pointer; font-size: 20px; }
.qmh-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.qmh-dow { font-size: 12px; color: var(--qmh-muted); font-weight: 700; padding: 2px 0; }
.qmh-day { height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 14px; border: 0; padding: 0; font-weight: 700; }
button.qmh-day { cursor: pointer; }
.qmh-day.is-full { background: #e3f4e6; color: #0b5d1c; }
.qmh-day.is-some { background: var(--qmh-amber-bg); color: var(--qmh-amber); }
.qmh-day.is-none { background: repeating-linear-gradient(135deg, #eceef2, #eceef2 4px, #f7f8fa 4px, #f7f8fa 8px); color: #9aa1ad; text-decoration: line-through; }
.qmh-day.is-past { color: #c3c8d1; font-weight: 400; }
.qmh-day.is-picked { box-shadow: inset 0 0 0 2px var(--qmh-navy); }
.qmh-cal-key { font-size: 13px; color: var(--qmh-muted); display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.qmh-cal-key span { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: -8px; vertical-align: -2px; }
.qmh-cal-key .is-full { background: #e3f4e6; }
.qmh-cal-key .is-some { background: var(--qmh-amber-bg); }
.qmh-cal-key .is-none { background: #e2e5ea; }
.qmh-cal-key .is-picked { box-shadow: inset 0 0 0 2px var(--qmh-navy); }

/* Request */
.qmh-req-dates { background: var(--qmh-soft); border-radius: 10px; padding: 10px 14px; margin: 14px 0; }
.qmh-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.qmh-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--qmh-line); flex-wrap: wrap; }
.qmh-line-img { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 8px; aspect-ratio: auto; }
.qmh-line-img.is-cutout img { object-fit: contain; }
.qmh-line-main { flex: 1 1 160px; display: flex; flex-direction: column; font-size: 14px; color: var(--qmh-muted); }
.qmh-line-main strong { color: var(--qmh-ink); font-size: 15px; }
.qmh-line.is-problem { background: var(--qmh-amber-bg); margin: 0 -8px; padding: 10px 8px; border-radius: 8px; }
.qmh-note { background: #e8f5ea; padding: 10px 14px; border-radius: 10px; }
.qmh-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.qmh-form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }

/* Done + booking view */
.qmh-done, .qmh-booking { background: #fff; border: 1px solid var(--qmh-line); border-radius: var(--qmh-radius); padding: 28px; max-width: 720px; margin: 0 auto; }
.qmh-done { text-align: center; }
.qmh-done-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--qmh-green); color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.qmh-done .qmh-h, .qmh-booking .qmh-h { font-size: 40px; }
.qmh-booking-for { font-weight: 700; margin: 4px 0 14px; }
.qmh-steps { list-style: none; display: flex; padding: 0; margin: 0 0 18px; counter-reset: s; }
.qmh-steps li { flex: 1; text-align: center; font-size: 13px; font-weight: 700; color: var(--qmh-muted); position: relative; padding-top: 30px; }
.qmh-steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--qmh-line); color: var(--qmh-muted); line-height: 24px; font-size: 12px; z-index: 1; }
.qmh-steps li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--qmh-line); }
.qmh-steps li:first-child::after { display: none; }
.qmh-steps li.is-done, .qmh-steps li.is-now { color: var(--qmh-navy); }
.qmh-steps li.is-done::before { content: "✓"; background: var(--qmh-green); color: #fff; }
.qmh-steps li.is-done::after, .qmh-steps li.is-now::after { background: var(--qmh-green); }
.qmh-steps li.is-now::before { background: var(--qmh-navy); color: #fff; }
.qmh-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; }
.qmh-pill.is-bad { background: #fdecea; color: var(--qmh-red); }
.qmh-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 14px; }
.qmh-dl div { background: var(--qmh-soft); border-radius: 10px; padding: 10px 12px; }
.qmh-dl dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--qmh-muted); font-weight: 700; }
.qmh-dl dd { margin: 2px 0 0; font-weight: 700; }
.qmh-confirm { border-top: 1px solid var(--qmh-line); padding-top: 16px; margin-top: 8px; }
.qmh-confirm h3 { font-size: 20px; margin-bottom: 8px; }

/* Toast */
.qmh-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; background: var(--qmh-navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; z-index: 9999; box-shadow: 0 6px 20px rgba(0, 0, 50, .25); max-width: calc(100vw - 32px); }
.qmh-toast.is-bad { background: var(--qmh-red); }

@media (max-width: 760px) {
	.qmh-hero { grid-template-columns: 1fr; padding: 20px 16px; }
	.qmh-dates .qmh-seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 12px; }
	.qmh-dates .qmh-seg span { text-align: center; border-radius: 9px; padding: 8px 6px; font-size: 14px; }
	.qmh-dates { padding: 12px; }
	.qmh-detail, .qmh-cal-wrap, .qmh-form-grid { grid-template-columns: 1fr; }
	.qmh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.qmh-card-body { padding: 10px; }
	.qmh-card h3 { font-size: 15px; }
	.qmh-ex { display: none; }
	.qmh-card-foot { flex-direction: column; align-items: stretch; }
	.qmh-card-foot .qmh-btn-add, .qmh-card-foot .qmh-step { width: 100%; justify-content: space-between; }
	.qmh-card-foot .qmh-btn-add { justify-content: center; }
	.qmh-search { flex: 1 1 100%; }
	.qmh-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; width: 100%; }
	.qmh-chips button { flex: 0 0 auto; }
	.qmh-dlg-inner { padding: 18px 16px; }
	.qmh-dialog { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100%; border-radius: 0; margin: 0; }
	.qmh-detail .qmh-h { font-size: 28px; }
	.qmh-done, .qmh-booking { padding: 20px 16px; }
	.qmh-bar-text { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .qmh * { transition: none !important; } }
.qmh-pay { background: #e8f5ea; border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; }
.qmh-pay p { margin: 0 0 8px; }
.qmh-shop-grid { margin-top: 20px; }

/* ---------- 0.8: calmer page, category cards, breadcrumbs, suggestions ---------- */
.qmh { --qmh-radius: 12px; }
/* Hero: light panel instead of a full navy block */
.qmh-hero { background: var(--qmh-soft); color: var(--qmh-ink); border: 1px solid var(--qmh-line); padding: 22px 24px; gap: 18px; align-items: center; }
.qmh-hero .qmh-h { color: var(--qmh-navy); font-size: clamp(28px, 4vw, 38px); }
.qmh-kicker { color: var(--qmh-muted); letter-spacing: .06em; font-size: 12px; }
.qmh-intro { color: var(--qmh-muted); }
.qmh-dates { background: #fff; border: 1px solid var(--qmh-line); }
.qmh-seg { background: var(--qmh-soft); }
.qmh-seg input:checked + span { background: var(--qmh-navy); color: #fff; }
.qmh-dates .qmh-field span, .qmh-group span { color: var(--qmh-ink); }
.qmh-dates .qmh-link { color: var(--qmh-green-dark); }
.qmh-date-hint { color: var(--qmh-muted); }
.qmh-date-hint .qmh-warn { color: var(--qmh-amber); }
@media (max-width: 760px) { .qmh-hero { grid-template-columns: 1fr; } }

/* Breadcrumbs + search */
.qmh-filters { margin: 22px 0 12px; }
.qmh-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 15px; }
.qmh-crumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--qmh-muted); }
.qmh-crumbs li + li::before { content: "›"; color: #9aa1b0; margin: 0 4px; }
.qmh-crumbs li[aria-current] { color: var(--qmh-navy); font-weight: 700; }
.qmh-crumbs a { color: var(--qmh-green-dark); font-weight: 600; text-decoration: none; }
.qmh-crumbs a:hover { text-decoration: underline; }

/* Category cards */
.qmh-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 8px; }
.qmh .qmh-cat { display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 0; border: 1px solid var(--qmh-line); border-radius: var(--qmh-radius); background: #fff; cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s; color: var(--qmh-ink); }
.qmh .qmh-cat:hover { border-color: #b9c0cc; box-shadow: 0 4px 14px rgba(0, 0, 50, .06); }
.qmh-cat-pic { display: block; aspect-ratio: 16 / 9; background: var(--qmh-soft); overflow: hidden; }
.qmh-cat-pic img { width: 100%; height: 100%; object-fit: cover; }
.qmh-cat > .qmh-cat-icon { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--qmh-soft); color: var(--qmh-navy); }
.qmh-cat > .qmh-cat-icon svg { width: 56px; height: 56px; stroke-width: 1.3; }
.qmh-cat-text { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.qmh-cat-text strong { font-size: 17px; color: var(--qmh-navy); }
.qmh-cat-blurb { font-size: 14px; color: var(--qmh-muted); }
.qmh-cat-n { font-size: 13px; color: var(--qmh-muted); }
/* Sub-categories: compact row */
.qmh-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.qmh .qmh-cat.is-small { flex-direction: row; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; }
.qmh .qmh-cat.is-small > .qmh-cat-icon { aspect-ratio: auto; width: 32px; height: 32px; border-radius: 50%; }
.qmh .qmh-cat.is-small > .qmh-cat-icon svg { width: 18px; height: 18px; stroke-width: 1.6; }
.qmh .qmh-cat.is-small .qmh-cat-text { flex-direction: row; align-items: baseline; gap: 6px; padding: 0; }
.qmh .qmh-cat.is-small .qmh-cat-text strong { font-size: 15px; }

/* Item cards: quieter */
.qmh-grid { gap: 14px; }
.qmh-card h3 { font-size: 16px; font-weight: 700; }
.qmh .qmh-title-btn { font-weight: 700; }
.qmh-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 50, .06); }
.qmh-card.is-picked { box-shadow: none; border-color: var(--qmh-green); }
.qmh .qmh-btn-add { background: #fff; color: var(--qmh-navy); border: 1.5px solid var(--qmh-navy); min-height: 38px; }
.qmh .qmh-btn-add:hover { background: var(--qmh-soft); }
.qmh-badge.is-navy { background: #e8eaf3; color: var(--qmh-navy); }
.qmh-img.is-empty span, .qmh-gallery-main.is-empty span { font-family: var(--qmh-body); font-size: 40px; font-weight: 700; }

/* Often hired with */
.qmh-sugs { display: flex; gap: 10px; flex-wrap: wrap; }
.qmh-sug { display: flex; align-items: center; gap: 10px; border: 1px solid var(--qmh-line); border-radius: 10px; padding: 6px 8px; background: #fff; min-width: 0; flex: 1 1 240px; }
.qmh-sug-img { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 8px; overflow: hidden; background: var(--qmh-soft); display: flex; align-items: center; justify-content: center; }
.qmh-sug-img img { width: 100%; height: 100%; object-fit: cover; }
.qmh-sug-img.is-cutout img { object-fit: contain; }
.qmh-sug-img.is-empty span { font-weight: 700; color: #b3bac8; }
.qmh-sug .qmh-title-btn { flex: 1; font-size: 14px; min-width: 0; }
.qmh-sug .qmh-btn-add { min-height: 34px; padding: 4px 12px; }
.qmh-sug .qmh-step button { width: 34px; height: 34px; }
.qmh-bar-sug { max-width: 1200px; margin: 0 auto 10px; }
.qmh-bar-sug-inner { position: relative; padding-right: 36px; }
.qmh-bar-sug-h { display: block; font-size: 13px; font-weight: 700; color: var(--qmh-muted); margin-bottom: 6px; }
.qmh .qmh-sug-x { position: absolute; top: -6px; right: 0; }
.qmh-basket-sugs { margin: 4px 0 14px; }
.qmh-basket-sugs h4, .qmh-dlg h4 { margin-top: 12px; }
@media (max-width: 600px) { .qmh-bar-sug .qmh-sug:nth-child(n+3) { display: none; } .qmh-cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .qmh-cat-text strong { font-size: 15px; } .qmh-cat-blurb { display: none; } }
.qmh .qmh-sug-x { width: 32px; height: 32px; font-size: 20px; }
.qmh.has-sug .qmh-toast { bottom: 196px; }
.qmh.has-sug { padding-bottom: 200px; }

.qmh .qmh-grid-h { grid-column: 1 / -1; font-size: 18px; font-family: var(--qmh-body); font-weight: 800; color: var(--qmh-navy); margin: 6px 0 0; }
.qmh .qmh-grid-h span { font-size: 14px; font-weight: 600; color: var(--qmh-muted); margin-left: 6px; }
.qmh-kits .qmh-grid { margin: 0 0 22px; }
.qmh-kits > .qmh-grid-h, .qmh-cats > .qmh-grid-h { margin: 0 0 10px; }
.qmh-grid > .qmh-grid-h:not(:first-child) { margin-top: 14px; }
