/* HBG Core components. Uses theme presets when available, with fallbacks. */
.hbg-finder, .hbg-tf, .hbg-tree, .hbg-dyno-pick, .hbg-waiver, .hbg-form, .hbg-tune-files, .hbg-wa {
	--c-bg: var(--wp--preset--color--carbon, #141418);
	--c-bg2: var(--wp--preset--color--carbon-2, #1b1b21);
	--c-line: var(--wp--preset--color--line, #2c2c34);
	--c-text: var(--wp--preset--color--text, #f3f3f5);
	--c-muted: var(--wp--preset--color--muted, #9a9aa4);
	--c-red: var(--wp--preset--color--red, #ff2b2b);
	--c-deep: var(--wp--preset--color--deep-red, #c8102e);
	--f-cond: var(--wp--preset--font-family--barlow-condensed, "Arial Narrow", sans-serif);
}
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.hbg-btn, .hbg-form button[type="submit"] {
	display: inline-block; background: var(--c-deep, #c8102e); color: #fff; border: 0; border-radius: 2px; cursor: pointer;
	font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.02rem; padding: .85em 1.5em; text-decoration: none; transition: background .2s, box-shadow .3s;
}
.hbg-btn:hover, .hbg-form button[type="submit"]:hover { background: var(--c-red, #ff2b2b); color: #fff; box-shadow: 0 10px 30px -8px rgba(255, 43, 43, .7); text-decoration: none; }
.hbg-btn--sm { font-size: .88rem; padding: .55em 1em; }
.hbg-req { color: var(--c-red); }

/* ---------- Vehicle finder ---------- */
.hbg-finder { color: var(--c-text); }
.hbg-finder__form { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; background: rgba(20, 20, 24, .88); border: 1px solid var(--c-line); border-left: 3px solid var(--c-red); border-radius: 4px; padding: 1rem 1.1rem; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 20px 50px -25px rgba(0, 0, 0, .9); }
.hbg-finder__title { display: flex; align-items: center; gap: .6rem; font-family: var(--f-cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.3rem; letter-spacing: .02em; white-space: nowrap; }
.hbg-finder__icon { width: 30px; height: 30px; background: var(--c-red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17h14M3 13l2-5.5A2 2 0 0 1 6.9 6h10.2a2 2 0 0 1 1.9 1.5L21 13v5h-3v-1H6v1H3z'/%3E%3Ccircle cx='7' cy='13.5' r='1.2'/%3E%3Ccircle cx='17' cy='13.5' r='1.2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17h14M3 13l2-5.5A2 2 0 0 1 6.9 6h10.2a2 2 0 0 1 1.9 1.5L21 13v5h-3v-1H6v1H3z'/%3E%3Ccircle cx='7' cy='13.5' r='1.2'/%3E%3Ccircle cx='17' cy='13.5' r='1.2'/%3E%3C/svg%3E") center/contain no-repeat; filter: drop-shadow(0 0 8px rgba(255, 43, 43, .5)); }
.hbg-finder__fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: .6rem; flex: 1 1 560px; }
.hbg-finder__field { display: block; margin: 0; }
.hbg-finder select { width: 100%; background: var(--c-bg2); color: var(--c-text); border: 1px solid var(--c-line); border-radius: 3px; padding: .75rem .8rem; font: inherit; font-size: .98rem; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-red) 50%), linear-gradient(135deg, var(--c-red) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.hbg-finder select:disabled { opacity: .45; }
.hbg-finder select:focus { outline: none; border-color: var(--c-red); box-shadow: 0 0 0 3px rgba(255, 43, 43, .2); }
.hbg-finder__go { white-space: nowrap; }
.hbg-finder__current, .hbg-finder__filtering { margin: .6rem 0 0; font-size: .92rem; color: var(--c-muted); display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.hbg-finder__current[hidden] { display: none; }
.hbg-finder__badge { color: var(--c-text); }
.hbg-finder__badge strong { color: #fff; }
.hbg-finder__current a, .hbg-finder__filtering a { color: var(--c-red); font-weight: 600; }
.hbg-finder__filtering { background: rgba(200, 16, 46, .14); border: 1px solid rgba(255, 43, 43, .35); padding: .55rem .8rem; border-radius: 3px; color: var(--c-text); }
.hbg-finder--card .hbg-finder__form { flex-direction: column; align-items: stretch; }
.hbg-finder--card .hbg-finder__fields { grid-template-columns: 1fr 1fr; flex: none; }
.hbg-finder--card .hbg-finder__go { grid-column: 1 / -1; }
@media (max-width: 900px) {
	.hbg-finder__fields { grid-template-columns: 1fr 1fr; flex-basis: 100%; }
	.hbg-finder__go { grid-column: 1 / -1; }
}

/* ---------- Browse tree ---------- */
.hbg-tree { font-size: .95rem; }
.hbg-tree details { margin: 0; }
.hbg-tree summary { cursor: pointer; padding: .4rem 0 .4rem 1.1rem; position: relative; list-style: none; color: var(--c-text); font-weight: 600; text-transform: none !important; font-family: inherit !important; font-size: .95rem !important; letter-spacing: 0 !important; }
.hbg-tree summary::-webkit-details-marker { display: none; }
.hbg-tree summary::before { content: ""; position: absolute; left: 0; top: .85em; width: 0; height: 0; border-left: 5px solid var(--c-red); border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .2s; }
.hbg-tree summary::after { display: none !important; }
.hbg-tree details[open] > summary::before { transform: rotate(90deg); }
.hbg-tree summary:hover { color: var(--c-red); }
.hbg-tree__kids { padding-left: .9rem; border-left: 1px solid var(--c-line); margin-left: .2rem; }
.hbg-tree__year > summary, .hbg-tree__engine > summary { font-weight: 500; }
.hbg-tree ul { list-style: none; margin: 0 0 .4rem; padding: 0 0 0 1rem; }
.hbg-tree li a { display: flex; justify-content: space-between; gap: .5rem; padding: .2rem 0; color: var(--c-muted); font-size: .9rem; }
.hbg-tree li a:hover { color: var(--c-red); }
.hbg-tree__count { color: var(--c-muted); font-size: .8em; }
.hbg-tree__none { color: var(--c-muted); font-size: .85rem; font-style: italic; }

/* ---------- Badges ---------- */
.hbg-fit-badge { display: inline-block; font-family: var(--f-cond, sans-serif); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; padding: .2rem .5rem; border-radius: 2px; margin: .2rem 0; }
.hbg-fit-badge--yes { background: rgba(57, 217, 138, .14); color: #39d98a; border: 1px solid rgba(57, 217, 138, .4); }
.hbg-fit-badge--all { background: rgba(154, 154, 164, .12); color: #c9c9d1; border: 1px solid rgba(154, 154, 164, .35); }
.hbg-fitbox { margin: 1rem 0; padding: .75rem 1rem; border-radius: 3px; border: 1px solid #2c2c34; background: #1b1b21; font-size: .95rem; }
.hbg-fitbox--yes { border-color: rgba(57, 217, 138, .45); color: #b8f5d6; }
.hbg-fitbox--yes strong { color: #39d98a; }
.hbg-fitbox--no { border-color: rgba(255, 179, 71, .45); }
.hbg-fitbox a { color: #ff2b2b; font-weight: 600; }

/* ---------- Tuning form ---------- */
.hbg-tf { margin: 1.5rem 0 1rem; color: var(--c-text); }
.hbg-tf fieldset { border: 0; margin: 0 0 1.25rem; padding: 1.25rem; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 4px; min-width: 0; }
.hbg-tf.is-js fieldset[hidden] { display: none; }
.hbg-tf__head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; width: 100%; font-family: var(--f-cond); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .02em; padding: 0 0 0 .8rem; border-left: 4px solid var(--c-red); margin-bottom: 1rem; float: left; line-height: 1.2; }
.hbg-tf__head + * { clear: both; }
.hbg-tf__count { font-size: .85rem; color: var(--c-red); border: 1px solid var(--c-red); border-radius: 999px; padding: .1rem .55rem; letter-spacing: .1em; }
.hbg-tf__head-ar { font-family: inherit; font-size: 1rem; color: var(--c-muted); margin-left: auto; text-transform: none; }
.hbg-tf__progress { display: flex; gap: .4rem; list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: s; }
.hbg-tf:not(.is-js) .hbg-tf__progress, .hbg-tf:not(.is-js) .hbg-tf__actions .hbg-tf__back, .hbg-tf:not(.is-js) .hbg-tf__next, .hbg-tf:not(.is-js) .hbg-tf__stepnum { display: none; }
.hbg-tf__progress li { flex: 1; display: flex; flex-direction: column; gap: .3rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); cursor: pointer; }
.hbg-tf__progress li span { display: none; }
.hbg-tf__progress li::before { content: ""; height: 4px; border-radius: 2px; background: var(--c-line); transition: background .3s, box-shadow .3s; }
.hbg-tf__progress li.is-active, .hbg-tf__progress li.is-done { color: var(--c-text); }
.hbg-tf__progress li.is-active::before, .hbg-tf__progress li.is-done::before { background: var(--c-red); box-shadow: 0 0 10px rgba(255, 43, 43, .6); }
@media (max-width: 600px) { .hbg-tf__progress li { font-size: 0; } }
.hbg-tf__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .25rem 1rem; }
.hbg-tf__field { margin: 0 0 .85rem; display: flex; flex-direction: column; gap: .3rem; }
.hbg-tf__field label, .hbg-upload__label, .hbg-dyno-pick__field label { font-size: .85rem; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; }
.hbg-tf input[type="text"], .hbg-tf input[type="tel"], .hbg-tf input[type="email"], .hbg-tf input[type="number"], .hbg-tf input[type="date"], .hbg-tf textarea, .hbg-dyno-pick input[type="date"], .hbg-form input, .hbg-form select, .hbg-form textarea, .hbg-tune-files input[type="file"] {
	width: 100%; background: var(--c-bg2); color: var(--c-text); border: 1px solid var(--c-line); border-radius: 3px; padding: .7rem .8rem; font: inherit; font-size: 1rem; box-sizing: border-box;
}
.hbg-tf input:focus, .hbg-tf textarea:focus, .hbg-form input:focus, .hbg-form select:focus, .hbg-form textarea:focus, .hbg-dyno-pick input:focus { outline: none; border-color: var(--c-red); box-shadow: 0 0 0 3px rgba(255, 43, 43, .2); }
.hbg-tf input[type="date"], .hbg-dyno-pick input[type="date"] { color-scheme: dark; }
.hbg-tf__note { color: #ffb347; font-size: .9rem; margin: 0 0 1rem; padding: .5rem .75rem; border: 1px solid rgba(255, 179, 71, .35); background: rgba(255, 179, 71, .07); border-radius: 3px; }
.hbg-tf__mods { display: grid; gap: .6rem; margin-bottom: 1rem; }
.hbg-tf__mod { display: grid; grid-template-columns: minmax(150px, 1.2fr) auto minmax(140px, 1fr); gap: .5rem .75rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--c-line); }
.hbg-tf__mod-label { font-weight: 600; font-size: .95rem; }
.hbg-tf__specify { padding: .5rem .7rem !important; font-size: .92rem !important; }
@media (max-width: 700px) { .hbg-tf__mod { grid-template-columns: 1fr; } }
.hbg-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.hbg-chip { position: relative; cursor: pointer; margin: 0; }
.hbg-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hbg-chip span { display: inline-block; padding: .38rem .9rem; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-bg2); color: var(--c-text); font-size: .88rem; font-weight: 600; transition: background .2s, border-color .2s, box-shadow .2s; user-select: none; }
.hbg-chip:hover span { border-color: var(--c-red); }
.hbg-chip input:checked + span { background: var(--c-deep); border-color: var(--c-red); color: #fff; box-shadow: 0 0 14px rgba(255, 43, 43, .45); }
.hbg-chip input:focus-visible + span { outline: 2px solid var(--c-red); outline-offset: 2px; }
.hbg-chip.is-taken span, .hbg-chip input:disabled + span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

/* Waiver */
.hbg-waiver { border: 1px solid var(--c-line); border-radius: 4px; background: var(--c-bg); max-height: 360px; overflow: auto; margin-bottom: 1rem; font-size: .92rem; line-height: 1.6; }
.hbg-tf .hbg-waiver { max-height: 340px; }
.entry-content .hbg-waiver, .wp-block-post-content .hbg-waiver { max-height: none; }
.hbg-waiver__head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: .7rem 1rem; background: var(--c-bg2); border-bottom: 1px solid var(--c-line); font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; position: sticky; top: 0; }
.hbg-waiver__head [dir="rtl"] { text-align: right; font-family: Tahoma, "Segoe UI", sans-serif; text-transform: none; }
.hbg-waiver__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: .9rem 1rem; border-bottom: 1px solid var(--c-line); }
.hbg-waiver__row:last-child { border-bottom: 0; }
.hbg-waiver__en strong { color: var(--c-red); }
.hbg-waiver__ar { text-align: right; direction: rtl; font-family: Tahoma, "Segoe UI", "Noto Naskh Arabic", sans-serif; line-height: 1.9; }
@media (max-width: 700px) { .hbg-waiver__row, .hbg-waiver__head { grid-template-columns: 1fr; gap: .6rem; } }
.hbg-tf__agree { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--c-line); border-radius: 4px; background: var(--c-bg2); cursor: pointer; }
.hbg-tf__agree input { width: 22px; height: 22px; accent-color: var(--c-red); flex: none; margin-top: .15rem; }
.hbg-tf__agree [dir="rtl"] { display: block; text-align: right; margin-top: .35rem; color: var(--c-muted); }

/* Signature */
.hbg-sig { margin-bottom: 1rem; }
.hbg-sig__pad { display: block; width: 100%; height: 190px; background: #f3f3f5; border-radius: 4px; border: 2px dashed #9a9aa4; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.hbg-sig.is-signed .hbg-sig__pad { border-style: solid; border-color: #39d98a; }
.hbg-sig__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .5rem; font-size: .85rem; color: var(--c-muted); }
.hbg-sig__clear { background: transparent; border: 1px solid var(--c-line); color: var(--c-text); border-radius: 3px; padding: .4rem .8rem; cursor: pointer; font: inherit; font-size: .85rem; }
.hbg-sig__clear:hover { border-color: var(--c-red); color: var(--c-red); }

/* Upload */
.hbg-upload { border: 1px dashed var(--c-line); border-radius: 4px; padding: 1rem; background: var(--c-bg2); margin-top: .5rem; transition: border-color .2s; }
.hbg-upload.has-file { border-color: #39d98a; border-style: solid; }
.hbg-upload__label { display: block; margin-bottom: .5rem; }
.hbg-upload__input { width: 100%; color: var(--c-text); }
.hbg-upload__input::file-selector-button { background: var(--c-deep); color: #fff; border: 0; padding: .55rem 1rem; margin-right: .8rem; border-radius: 2px; cursor: pointer; font-weight: 700; }
.hbg-upload__help { margin: .5rem 0 0; font-size: .82rem; color: var(--c-muted); }

/* Action bar (sticky on phones) */
.hbg-tf__actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 0; }
.hbg-tf__actions .single_add_to_cart_button { margin-left: auto; }
.hbg-tf__actions .single_add_to_cart_button[hidden] { display: none !important; }
.hbg-tf__back { background: transparent; color: var(--c-text); border: 1px solid var(--c-line); border-radius: 2px; padding: .8rem 1.2rem; cursor: pointer; font: inherit; font-weight: 600; }
.hbg-tf__back:hover { border-color: var(--c-red); }
.hbg-tf__next { margin-left: auto; background: var(--c-deep); color: #fff; border: 0; border-radius: 2px; padding: .85rem 1.8rem; cursor: pointer; font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; }
.hbg-tf__next:hover { background: var(--c-red); }
.hbg-tf__next[hidden] { display: none; }
.hbg-tf__stepnum { font-family: var(--f-cond); font-weight: 700; color: var(--c-muted); letter-spacing: .1em; }
.hbg-tf__error { color: #ff8080; background: rgba(255, 43, 43, .08); border: 1px solid rgba(255, 43, 43, .35); border-radius: 3px; padding: .6rem .8rem; margin: .5rem 0 0; }
@media (max-width: 781px) {
	.hbg-tf.is-js .hbg-tf__actions { position: sticky; bottom: 0; z-index: 50; background: rgba(10, 10, 11, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--c-red); margin: 0 calc(-1 * clamp(1rem, 4vw, 2.5rem)); padding: .7rem clamp(1rem, 4vw, 2.5rem) calc(.7rem + env(safe-area-inset-bottom)); }
	.hbg-tf__actions .single_add_to_cart_button { padding: .85em 1.1em !important; font-size: .98rem !important; }
	.hbg-tf fieldset { padding: 1rem .9rem; }
}
form.cart.hbg-has-form { display: block !important; }

/* ---------- Dyno picker ---------- */
.hbg-dyno-pick { margin: 1.25rem 0; padding: 1.25rem; background: var(--c-bg, #141418); border: 1px solid var(--c-line, #2c2c34); border-radius: 4px; width: 100%; }
.hbg-dyno-pick__field { display: flex; flex-direction: column; gap: .35rem; max-width: 260px; clear: both; }
.hbg-dyno-pick__field small { text-transform: none; letter-spacing: 0; }
.hbg-dyno-pick__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; margin: 1rem 0; min-height: 44px; }
.hbg-dyno-pick__slots.is-loading { opacity: .4; }
.hbg-chip--slot span { display: block; text-align: center; border-radius: 3px; padding: .6rem .4rem; font-variant-numeric: tabular-nums; }
.hbg-dyno-pick__msg { grid-column: 1 / -1; color: #ffb347; margin: 0; }
.hbg-dyno-pick__note { font-size: .85rem; color: var(--c-muted, #9a9aa4); margin: 0; }
.hbg-deposit { color: var(--wp--preset--color--muted, #9a9aa4); font-family: var(--wp--preset--font-family--barlow, sans-serif); font-weight: 500; font-size: .55em; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Forms ---------- */
.hbg-form p { margin: 0 0 1rem; }
.hbg-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.hbg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .hbg-grid-2 { grid-template-columns: 1fr; } }
.hbg-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.hbg-inline-form { display: flex; gap: .5rem; }
.hbg-inline-form input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .hbg-inline-form { flex-direction: column; } }
.hbg-form-notice { padding: .75rem 1rem; border-radius: 3px; margin: 0 0 1rem; }
.hbg-form-notice--ok { background: rgba(57, 217, 138, .1); border: 1px solid rgba(57, 217, 138, .45); color: #b8f5d6; }
.hbg-form-notice--err { background: rgba(255, 43, 43, .08); border: 1px solid rgba(255, 43, 43, .45); color: #ffb0b0; }

/* ---------- Tune files ---------- */
.hbg-tune-files { border: 1px solid var(--c-line); border-radius: 4px; background: var(--c-bg); padding: 1rem 1.25rem; margin: 0 0 1rem; }
.hbg-tune-files__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.hbg-status { background: rgba(255, 43, 43, .12); color: var(--c-text); border: 1px solid rgba(255, 43, 43, .4); padding: .15rem .55rem; border-radius: 2px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.hbg-status--hbg-delivered, .hbg-status--completed { border-color: rgba(57, 217, 138, .5); background: rgba(57, 217, 138, .12); }
.hbg-tune-files__job { margin: .25rem 0; color: var(--c-muted); }
.hbg-tune-files__list { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .5rem; }
.hbg-tune-files__list span { color: var(--c-muted); font-size: .85rem; margin-left: .5rem; }
.hbg-tune-files__wait { color: var(--c-muted); font-style: italic; }
.hbg-tune-files__upload { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--c-line); }
.hbg-tune-files__upload label { flex: 1 1 260px; display: flex; flex-direction: column; gap: .35rem; font-weight: 600; }

/* ---------- WhatsApp button ---------- */
.hbg-wa { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90; display: inline-flex; align-items: center; gap: .5rem; background: #25d366; color: #fff !important; border-radius: 999px; padding: .75rem; box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .7), 0 0 0 0 rgba(37, 211, 102, .6); text-decoration: none !important; font-weight: 700; animation: hbg-wa-pulse 2.8s 3s infinite; transition: transform .2s; }
.hbg-wa:hover { transform: scale(1.06); }
.hbg-wa--right { right: 18px; }
.hbg-wa--left { left: 18px; }
.hbg-wa__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s, padding .35s; }
.hbg-wa:hover .hbg-wa__label, .hbg-wa:focus .hbg-wa__label { max-width: 120px; padding-right: .35rem; }
@keyframes hbg-wa-pulse { 0% { box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .7), 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .7), 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .7), 0 0 0 0 rgba(37, 211, 102, 0); } }
body:has(.hbg-tf.is-js) .hbg-wa { bottom: 92px; }
@media (min-width: 782px) { body:has(.hbg-tf.is-js) .hbg-wa { bottom: 18px; } }
@media (prefers-reduced-motion: reduce) { .hbg-wa { animation: none; } }

/* Sub-category picker box (category pages) */
.hbg-cat-pick{margin:16px 0 4px;padding:12px;border:1px solid var(--hbg-line,#2c2c34);border-radius:14px;background:var(--hbg-carbon,#141418)}
.hbg-cat-pick__grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.hbg-cat-pick__opt{display:flex;align-items:center;gap:8px;min-height:46px;padding:8px 10px;border:1px solid var(--hbg-line,#2c2c34);border-radius:10px;background:var(--hbg-carbon-2,#1b1b21);color:var(--hbg-text,#f3f3f5);cursor:pointer;font-size:13.5px;line-height:1.25;transition:border-color .2s,background .2s}
.hbg-cat-pick__opt input{accent-color:var(--hbg-deep-red,#c8102e);width:18px;height:18px;flex:0 0 18px;margin:0}
.hbg-cat-pick__opt span{flex:1}
.hbg-cat-pick__opt em{font-style:normal;font-size:12px;opacity:.6}
.hbg-cat-pick__opt:has(input:checked){border-color:var(--hbg-deep-red,#c8102e);background:rgba(200,16,46,.16)}
.hbg-cat-pick__all{grid-column:1/-1}
.hbg-cat-pick__go{display:block;width:100%;margin-top:10px;padding:12px;border:0;border-radius:10px;background:var(--hbg-deep-red,#c8102e);color:#fff;font:inherit;font-weight:700;font-size:14px;letter-spacing:.05em;text-transform:uppercase;cursor:pointer}
.hbg-cat-pick__go:hover{background:var(--hbg-red,#ff2b2b)}
@media (min-width:782px){.hbg-cat-pick{max-width:720px}}

/* Products per page picker */
.hbg-perpage{display:inline-flex;align-items:center;gap:6px;margin-inline-start:12px;font-size:.85rem;vertical-align:middle}
.hbg-perpage__label{color:#9a9aa5;text-transform:uppercase;letter-spacing:.06em;font-size:.75rem}
.hbg-perpage__opt{display:inline-block;min-width:38px;padding:6px 8px;text-align:center;border:1px solid #2c2c34;border-radius:6px;color:#fff;text-decoration:none;background:#15151a}
.hbg-perpage__opt:hover{border-color:#e03131}
.hbg-perpage__opt.is-current{background:#e03131;border-color:#e03131;color:#fff}
.tax-hbg_fitment .hbg-perpage{margin:0 0 14px}

.hbg-cat-note{font-size:.8rem;color:#9a9aa5;margin:0 0 12px;line-height:1.5}
.hbg-cat-note a{color:#e03131;white-space:nowrap}
