/* Header Builder — driven by CSS variables + data attributes. */

.hb-header {
    --hb-bg: #ffffff;
    --hb-bg-solid: #ffffff;
    --hb-blur: 0px;
    --hb-shadow: 0 1px 3px rgba(0,0,0,.06);
    --hb-border: none;
    --hb-radius: 0px;
    --hb-height: 72px;
    --hb-max-width: 1280px;
    --hb-pad-top: 0px;
    --hb-pad-x: 0px;
    --hb-pad-y: 0px;
    --hb-gap: 16px;
    --hb-text: #1f2937;
    --hb-link: #374151;
    --hb-link-hover: var(--bs-primary, #7367f0);

    position: relative;
    width: 100%;
    background: var(--hb-bg);
    box-shadow: var(--hb-shadow);
    border-bottom: var(--hb-border);
    border-radius: var(--hb-radius);
    color: var(--hb-text);
    transition: background-color .25s ease, transform .3s ease, box-shadow .25s ease;
    z-index: 1030;
    -webkit-backdrop-filter: blur(var(--hb-blur));
    backdrop-filter: blur(var(--hb-blur));
}

.hb-inner {
    width: 100%;
    max-width: var(--hb-max-width);
    margin: 0 auto;
    padding: var(--hb-pad-y) var(--hb-pad-x);
    min-height: var(--hb-height);
    display: flex;
    align-items: center;
    gap: var(--hb-gap);
    min-width: 0;
}
.hb-inner > * { min-width: 0; }
.hb-actions { flex-shrink: 0; }

/* Spacer prevents content jump when header is fixed.
   JS sets exact height via offsetHeight; fallback = vars math. */
.hb-spacer {
    height: calc(var(--hb-height) + var(--hb-pad-y) * 2 + var(--hb-pad-top));
    width: 100%;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════
   CONTAINER MODES
   ----------------------------------------------------------------
   full     : header bleeds full viewport. Inner content wide with
              minimal side padding (auto-scaling).
   boxed    : header bleeds full viewport (bg edge-to-edge). Inner
              content matches Bootstrap .container alignment exactly.
   floating : whole bar (bg + content) clamped to max-width and
              centered. Looks like a floating card.
   split    : full bleed bg. Logo at viewport edge, menu absolutely
              centered, actions at opposite edge.
   two_row  : utility top bar + main bar. Both inner containers
              Bootstrap-aligned (same as boxed).
   ════════════════════════════════════════════════════════════════ */

/* ── FULL ─────────────────────────────────────── */
.hb-header[data-hb-container="full"] .hb-inner {
    max-width: 100%;
    padding-inline: max(var(--hb-pad-x), clamp(12px, 3vw, 32px));
}

/* ── BOXED ─ Bootstrap container alignment ─────── */
.hb-header[data-hb-container="boxed"] .hb-inner,
.hb-header[data-hb-container="two_row"] .hb-inner {
    max-width: 100%;
    padding-inline: max(var(--hb-pad-x), 12px);
}
@media (min-width: 576px)  { .hb-header[data-hb-container="boxed"]   .hb-inner,
                             .hb-header[data-hb-container="two_row"] .hb-inner { max-width: min(540px,  var(--hb-max-width)); } }
@media (min-width: 768px)  { .hb-header[data-hb-container="boxed"]   .hb-inner,
                             .hb-header[data-hb-container="two_row"] .hb-inner { max-width: min(720px,  var(--hb-max-width)); } }
@media (min-width: 992px)  { .hb-header[data-hb-container="boxed"]   .hb-inner,
                             .hb-header[data-hb-container="two_row"] .hb-inner { max-width: min(960px,  var(--hb-max-width)); } }
@media (min-width: 1200px) { .hb-header[data-hb-container="boxed"]   .hb-inner,
                             .hb-header[data-hb-container="two_row"] .hb-inner { max-width: min(1140px, var(--hb-max-width)); } }
@media (min-width: 1400px) { .hb-header[data-hb-container="boxed"]   .hb-inner,
                             .hb-header[data-hb-container="two_row"] .hb-inner { max-width: min(1320px, var(--hb-max-width)); } }

/* ── SPLIT ─ logo at edge, menu centered absolute ─ */
.hb-header[data-hb-container="split"] { position: relative; }
.hb-header[data-hb-container="split"] .hb-inner {
    max-width: 100%;
    padding-inline: max(var(--hb-pad-x), clamp(16px, 3vw, 32px));
    position: static;
}
.hb-header[data-hb-container="split"] .hb-menu {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* ── FLOATING ─ whole bar centered, clamped width ─
   Default: flush to top (margin-top 0). On scroll: gains margin-top.
   When float_on_scroll=1: edge-to-edge full width by default;
   becomes clamped+centered card when .hb-scrolled.            */
.hb-header[data-hb-container="floating"] {
    width: 100%;
    max-width: min(calc(100% - 32px), var(--hb-max-width));
    margin-inline: auto;
    margin-top: 0;
    border-radius: var(--hb-radius);
    transition: margin-top .3s ease, max-width .3s ease, border-radius .3s ease;
}
.hb-header[data-hb-container="floating"].hb-scrolled {
    margin-top: var(--hb-pad-top);
}
.hb-header[data-hb-container="floating"] .hb-inner {
    max-width: 100%;
    padding-inline: max(var(--hb-pad-x), 24px);
}

/* float_on_scroll: edge-to-edge until scrolled */
.hb-header[data-hb-container="floating"][data-hb-float-on-scroll="1"]:not(.hb-scrolled) {
    max-width: 100%;
    border-radius: 0;
    margin-top: 0;
}

/* ════════════════════════════════════════════════════════════════
   SCROLL POSITIONING — fixed (works under any parent overflow)
   ════════════════════════════════════════════════════════════════ */
.hb-header[data-hb-scroll="sticky"],
.hb-header[data-hb-scroll="smart"],
.hb-header[data-hb-scroll="shrink"] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

/* Floating + fixed: keep centered + clamped */
.hb-header[data-hb-container="floating"][data-hb-scroll="sticky"],
.hb-header[data-hb-container="floating"][data-hb-scroll="smart"],
.hb-header[data-hb-container="floating"][data-hb-scroll="shrink"] {
    top: var(--hb-pad-top);
    left: 0; right: 0;
    margin-inline: auto;
}
/* Floating + float_on_scroll + fixed: edge-to-edge until scrolled */
.hb-header[data-hb-container="floating"][data-hb-float-on-scroll="1"][data-hb-scroll="sticky"]:not(.hb-scrolled),
.hb-header[data-hb-container="floating"][data-hb-float-on-scroll="1"][data-hb-scroll="smart"]:not(.hb-scrolled),
.hb-header[data-hb-container="floating"][data-hb-float-on-scroll="1"][data-hb-scroll="shrink"]:not(.hb-scrolled) {
    top: 0;
    max-width: 100%;
}

/* Smart hide: completely off-screen, ignore floating offsets */
.hb-header[data-hb-scroll="smart"].hb-hidden {
    transform: translateY(-100%);
    margin-top: 0 !important;
    top: 0 !important;
    pointer-events: none;
}
.hb-header[data-hb-scroll="shrink"].hb-shrunk { --hb-height: 56px; }

/* Transparent until scroll */
.hb-header[data-hb-bg-mode="transparent_until_scroll"] {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.hb-header[data-hb-bg-mode="transparent_until_scroll"].hb-scrolled {
    background: var(--hb-bg-solid) !important;
    box-shadow: var(--hb-shadow) !important;
    border-bottom: var(--hb-border) !important;
    -webkit-backdrop-filter: blur(var(--hb-blur));
    backdrop-filter: blur(var(--hb-blur));
}

/* Glass mode reinforcement */
.hb-header[data-hb-bg-mode="glass"] {
    -webkit-backdrop-filter: blur(var(--hb-blur)) saturate(180%);
    backdrop-filter: blur(var(--hb-blur)) saturate(180%);
}

/* Image background */
.hb-header[data-hb-bg-mode="image"] {
    background-size: var(--hb-bg-image-size, cover);
    background-position: var(--hb-bg-image-position, center);
    background-repeat: no-repeat;
    color: #fff;
    --hb-text: #fff;
    --hb-link: #f1f5f9;
}
.hb-header[data-hb-bg-mode="image"] .hb-action {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.16);
}
.hb-header[data-hb-bg-mode="image"] .hb-action:hover {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.3);
}
.hb-header[data-hb-bg-mode="image"] .hb-search-wrap .search-input {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.2);
    color: #fff;
}
.hb-header[data-hb-bg-mode="image"] .hb-search-wrap .search-input::placeholder { color: rgba(255,255,255,.7); }

.hb-overlay {
    position: absolute; inset: 0;
    background: var(--hb-overlay, rgba(0,0,0,.35));
    background-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, var(--hb-overlay, rgba(0,0,0,.35)) 100%);
    pointer-events: none;
    z-index: 0;
}
.hb-header[data-hb-bg-mode="image"] .hb-inner,
.hb-header[data-hb-bg-mode="image"] .hb-topbar { position: relative; z-index: 1; }

.hb-topbar {
    width: 100%;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    line-height: 1.4;
}
.hb-topbar__inner {
    margin: 0 auto;
    padding: 8px calc(var(--bs-gutter-x, 1.5rem) * .5);
    display: flex; align-items: center; gap: 16px;
    min-height: 38px;
    box-sizing: border-box;
}
@media (min-width: 576px) { .hb-topbar__inner { max-width: min(540px, var(--hb-max-width)); } }
@media (min-width: 768px) { .hb-topbar__inner { max-width: min(720px, var(--hb-max-width)); } }
@media (min-width: 992px) { .hb-topbar__inner { max-width: min(960px, var(--hb-max-width)); } }
@media (min-width: 1200px) { .hb-topbar__inner { max-width: min(1140px, var(--hb-max-width)); } }
@media (min-width: 1400px) { .hb-topbar__inner { max-width: min(1320px, var(--hb-max-width)); } }
.hb-topbar__text { flex: 1; font-weight: 500; }
.hb-topbar__cluster {
    display: flex; align-items: center; gap: 14px;
    margin-inline-start: auto;
}
.hb-topbar__cluster > * + *::before {
    content: ''; display: inline-block;
    width: 1px; height: 14px; background: currentColor; opacity: .25;
    margin-inline-end: 14px; vertical-align: middle;
}
.hb-topbar__link, .hb-topbar__social {
    color: inherit; text-decoration: none; opacity: .85;
    display: inline-flex; align-items: center; gap: 6px;
    transition: opacity .15s;
}
.hb-topbar__link:hover, .hb-topbar__social:hover { opacity: 1; color: inherit; }
.hb-topbar__social { font-size: 15px; opacity: .8; }
.hb-topbar__social:hover { transform: translateY(-1px); }

@media (max-width: 991.98px) {
    .hb-header[data-hb-container="split"] .hb-menu { position: static; transform: none; }
}
@media (max-width: 575.98px) {
    .hb-topbar { font-size: 11px; }
    .hb-topbar__inner { padding: 6px 12px; gap: 8px; min-height: 32px; }
    .hb-topbar__cluster { gap: 10px; }
    .hb-topbar__cluster > * + *::before { margin-inline-end: 10px; height: 12px; }
    .hb-topbar__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Logo */
.hb-logo {
    display: inline-flex; align-items: center; text-decoration: none; color: inherit;
    flex: 0 1 auto; min-width: 0; max-width: 50%;
}
.hb-logo img { display: block; max-width: 100%; height: auto; object-fit: contain; }
.hb-logo--sm img { max-height: 28px; }
.hb-logo--md img { max-height: 40px; }
.hb-logo--lg img { max-height: 56px; }
.hb-logo__text { font-weight: 700; font-size: 1.1rem; color: var(--hb-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 991.98px) {
    .hb-logo { max-width: 40%; }
    .hb-logo--lg img { max-height: 40px; }
    .hb-logo--md img { max-height: 32px; }
    .hb-logo--sm img { max-height: 24px; }
}
@media (max-width: 575.98px) {
    .hb-logo { max-width: 110px; }
    .hb-logo--lg img,
    .hb-logo--md img { max-height: 28px; }
    .hb-logo--sm img { max-height: 22px; }
}

/* Menu */
.hb-menu { display: none; }
@media (min-width: 992px) { .hb-menu { display: block; } }
.hb-menu__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.hb-menu__item { position: relative; }
.hb-menu__link {
    display: inline-flex; align-items: center;
    padding: 8px 14px;
    color: var(--hb-link); text-decoration: none;
    border-radius: 8px; font-weight: 500; font-size: 14px;
    white-space: nowrap; transition: background-color .15s, color .15s;
}
.hb-menu__link:hover { color: var(--hb-link-hover); background: rgba(115,103,240,.08); }

/* Refined chevron — small, subtle, rotates smoothly on parent hover */
.hb-menu__chevron {
    width: 12px; height: 12px;
    margin-inline-start: 6px;
    opacity: .5;
    flex-shrink: 0;
    transition: transform .2s ease, opacity .15s ease;
}
.hb-menu__item:hover > .hb-menu__link .hb-menu__chevron,
.hb-bottommenu__item:hover > .hb-bottommenu__link .hb-menu__chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Menu item badge */
.hb-menu__badge {
    display: inline-block;
    margin-inline-start: 6px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 999px;
    color: #fff;
    vertical-align: middle;
    letter-spacing: .02em;
}
.hb-menu__badge--primary { background: var(--bs-primary, #7367f0); }
.hb-menu__badge--success { background: var(--bs-success, #28c76f); }
.hb-menu__badge--warning { background: var(--bs-warning, #ff9f43); }
.hb-menu__badge--danger  { background: var(--bs-danger, #ea5455); }
.hb-menu__badge--info    { background: var(--bs-info, #00cfe8); }

.hb-header[data-hb-active="underline"] .hb-menu__link.is-active { box-shadow: inset 0 -2px 0 var(--hb-link-hover); border-radius: 0; }
.hb-header[data-hb-active="pill"]      .hb-menu__link.is-active { background: var(--hb-link-hover); color: #fff; }
.hb-header[data-hb-active="dot"]       .hb-menu__link.is-active::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--hb-link-hover); margin-inline-start: 6px; }

.hb-menu__submenu {
    position: absolute; top: 100%; inset-inline-start: 0;
    list-style: none; margin: 4px 0 0; padding: 6px;
    background: #fff; border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12);
    min-width: 200px; opacity: 0; visibility: hidden;
    transform: translateY(-6px); transition: .15s ease;
    z-index: 5;
}
.hb-menu__item.has-children:hover .hb-menu__submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.hb-menu__submenu li a { display: block; padding: 10px 14px; border-radius: 8px; color: #444; text-decoration: none; font-size: 13px; transition: .12s; }
.hb-menu__submenu li a:hover { background: rgba(115,103,240,.08); color: var(--hb-link-hover); }
.hb-menu__sublist,
.hb-bottommenu__sublist {
    list-style: none; margin: 0; padding: 2px 12px 6px;
    border-inline-start: 1px solid rgba(0,0,0,.08);
}
.hb-menu__sublist li a,
.hb-bottommenu__sub .hb-bottommenu__sublist li a { padding: 7px 10px; font-size: 12px; opacity: .82; }

/* Right cluster */
.hb-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }

/* Action buttons — pill-shaped, subtle bg, lift on hover */
.hb-action {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; border: 1px solid transparent; background: rgba(0,0,0,.03);
    color: var(--hb-text); cursor: pointer; text-decoration: none;
    position: relative; font-size: 17px;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.hb-action:hover {
    background: rgba(115,103,240,.1);
    color: var(--hb-link-hover);
    border-color: rgba(115,103,240,.2);
    transform: translateY(-1px);
}
.hb-action--label {
    width: auto; padding: 0 14px; gap: 8px;
    font-size: 14px; font-weight: 500;
}
.hb-action--label i { font-size: 16px; }

/* Search wrap — Livewire component fills full width of cluster.
   Position via align variant: start | center | end (in actions cluster). */
.hb-search-wrap {
    flex: 1 1 auto;
    max-width: 560px;
    min-width: 0;
}
.hb-search-wrap--start { margin-inline-end: auto; }
.hb-search-wrap--center { margin-inline: auto; max-width: 480px; }
.hb-search-wrap--end { /* default — sits in actions cluster */ }
.hb-search-wrap > div { width: 100%; }
.hb-search-wrap .mt-15 { margin-top: 0 !important; }
.hb-search-wrap .search-header { margin: 0 !important; padding: 0 !important; }
.hb-search-wrap .search-input-container { width: 100%; position: relative; }
.hb-search-wrap .search-input {
    width: 100%; height: 44px; padding: 0 44px 0 16px;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 999px;
    font-size: 14px; color: inherit; outline: 0;
    transition: border-color .15s, background-color .15s;
}
.hb-search-wrap .search-input:focus { border-color: var(--hb-link-hover); background: #fff; }
.hb-search-wrap .button-search {
    position: absolute; inset-inline-start: 6px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border: 0; background: transparent;
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(0,0,0,.45); cursor: pointer;
}
.hb-search-wrap .button-search:hover { color: var(--hb-link-hover); }

/* Result dropdown — modal-style panel anchored under input */
.hb-search-wrap .search-inline-panel {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.16);
    padding: 12px;
    max-height: 70vh; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 1040;
}
.hb-search-wrap .search-inline-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.hb-search-wrap .search-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px; border-radius: 10px; text-decoration: none; color: inherit;
    transition: background-color .12s;
}
.hb-search-wrap .search-result-item:hover { background: rgba(115,103,240,.08); }
.hb-search-wrap .search-result-image { width: 56px; height: 56px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #f5f5f5; }
.hb-search-wrap .search-result-image img { width: 100%; height: 100%; object-fit: cover; }
.hb-search-wrap .search-result-content { flex: 1; min-width: 0; text-align: start; }
.hb-search-wrap .search-result-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.hb-search-wrap .search-result-description { margin: 0; font-size: 12px; color: rgba(0,0,0,.55); }
.hb-search-wrap .search-result-arrow { color: rgba(0,0,0,.35); }
.hb-search-wrap .search-all-results { padding: 10px 8px 4px; border-top: 1px solid rgba(0,0,0,.06); margin-top: 8px; }
.hb-search-wrap .btn-view-all {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    color: var(--bs-primary, #7367f0); font-weight: 600; text-decoration: none;
    padding: 10px; border-radius: 10px; background: rgba(115,103,240,.08);
}
.hb-search-wrap .btn-view-all:hover { background: rgba(115,103,240,.15); }
.hb-search-wrap .search-no-results,
.hb-search-wrap .search-min-chars {
    text-align: center; padding: 24px 16px; color: rgba(0,0,0,.5);
}
.hb-search-wrap .search-min-chars img { max-width: 120px; opacity: .8; margin-bottom: 12px; }
.hb-search-wrap .search-min-chars strong { display: block; color: #1f2937; font-size: 14px; margin-bottom: 4px; }
.hb-search-wrap .search-min-chars small { display: block; font-size: 12px; }
.hb-search-wrap .search-loading { padding: 32px; }

.hb-phone { font-weight: 600; color: var(--hb-link-hover); }

/* Cart */
.hb-cart { position: relative; }
.hb-cart__count {
    position: absolute; top: -4px; inset-inline-end: -4px;
    background: var(--bs-danger, #ea5455); color: #fff;
    font-size: 11px; font-weight: 700; border-radius: 999px;
    min-width: 20px; height: 20px; padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--hb-bg-solid, #fff);
    line-height: 1;
}

/* Cart with total: pill-shaped button with price text alongside icon */
.hb-cart--with-total {
    width: auto !important;
    padding: 0 14px;
    gap: 8px;
}
.hb-cart__total {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 700; color: var(--hb-text);
    line-height: 1;
}
.hb-cart__total small { font-size: 10px; font-weight: 500; opacity: .7; }
.hb-cart--with-total .hb-cart__count {
    position: static; margin-inline-start: 4px;
    border: 0;
}
@media (max-width: 575.98px) {
    .hb-cart--with-total { width: 38px !important; padding: 0; gap: 0; }
    .hb-cart--with-total .hb-cart__total { display: none; }
}

/* User login button */
.hb-user-login {
    background: var(--bs-primary, #7367f0);
    color: #fff !important;
    border-color: var(--bs-primary, #7367f0);
}
.hb-user-login:hover {
    background: var(--bs-primary, #7367f0);
    color: #fff !important;
    filter: brightness(1.08);
}

/* Account dropdown (CSS-only hover) */
.hb-account { position: relative; padding: 0; }
.hb-account__btn {
    width: 100%; height: 100%;
    background: transparent; border: 0; color: inherit;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 17px;
}
.hb-dropdown {
    position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    padding: 6px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 50;
}
.hb-account:hover .hb-dropdown,
.hb-account:focus-within .hb-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.hb-dropdown__head {
    padding: 10px 14px 8px; border-bottom: 1px solid rgba(0,0,0,.06);
    margin-bottom: 4px; color: #1f2937; font-size: 13px;
}
.hb-dropdown__item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 8px;
    color: #374151; text-decoration: none;
    font-size: 14px; font-weight: 500;
    background: transparent; border: 0; width: 100%; text-align: start;
    cursor: pointer; transition: background-color .12s, color .12s;
}
.hb-dropdown__item i { width: 16px; color: rgba(0,0,0,.5); }
.hb-dropdown__item:hover { background: rgba(115,103,240,.08); color: var(--hb-link-hover); }
.hb-dropdown__item:hover i { color: var(--hb-link-hover); }
.hb-dropdown__item--danger { color: #ea5455; }
.hb-dropdown__item--danger i { color: #ea5455; }
.hb-dropdown__item--danger:hover { background: rgba(234,84,85,.08); color: #ea5455; }
.hb-dropdown__item--danger:hover i { color: #ea5455; }

/* CTA */
.hb-cta {
    padding: 10px 22px; border-radius: 12px; text-decoration: none;
    font-weight: 600; font-size: 14px; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 8px;
    transition: opacity .15s, transform .12s, box-shadow .15s;
}
.hb-cta--primary {
    background: var(--bs-primary, #7367f0); color: #fff !important;
    box-shadow: 0 4px 12px rgba(115,103,240,.25);
}
.hb-cta--outline {
    background: transparent; border: 1.5px solid var(--bs-primary, #7367f0);
    color: var(--bs-primary, #7367f0) !important;
}
.hb-cta--ghost { background: transparent; color: var(--hb-text); }
.hb-cta:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 6px 16px rgba(115,103,240,.3); }

/* Dark theme variants */
.hb-header[data-hb-theme="dark"] {
    --hb-text: #f1f5f9;
    --hb-link: #e2e8f0;
}
.hb-header[data-hb-theme="dark"] .hb-action {
    background: rgba(255,255,255,.06);
    color: #e2e8f0;
}
.hb-header[data-hb-theme="dark"] .hb-action:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.15);
}
.hb-header[data-hb-theme="dark"] .hb-search-wrap .search-input {
    background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #f1f5f9;
}
.hb-header[data-hb-theme="dark"] .hb-search-wrap .search-input:focus {
    background: rgba(255,255,255,.1);
}
.hb-header[data-hb-theme="dark"] .hb-search-wrap .button-search { color: rgba(255,255,255,.5); }

/* ════════════════════════════════════════════════
   Mobile drawer
   ════════════════════════════════════════════════ */
.hb-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease;
}
.hb-drawer-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

.hb-drawer {
    position: fixed; top: 0;
    width: 320px; max-width: 85vw; height: 100vh;
    background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.18);
    z-index: 10000;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
    overscroll-behavior: contain;
    visibility: hidden;
    pointer-events: none;
}
/* Slide direction (only relevant when open). RTL inverts transform. */
.hb-drawer--end { inset-inline-end: 0; transform: translateX(100%); }
[dir="rtl"] .hb-drawer--end { transform: translateX(-100%); }
.hb-drawer--start { inset-inline-start: 0; transform: translateX(-100%); }
[dir="rtl"] .hb-drawer--start { transform: translateX(100%); }
/* Open state — must be visible AND interactive */
.hb-drawer.open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Drawer header */
.hb-drawer__head {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 16px;
    background: linear-gradient(135deg, var(--bs-primary, #7367f0) 0%, var(--bs-primary, #7367f0) 100%);
    color: #fff;
    flex-shrink: 0;
}
.hb-drawer__user { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.hb-drawer__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.hb-drawer__user-info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.hb-drawer__user-name { font-size: 15px; font-weight: 700; line-height: 1.3; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-drawer__user-link {
    font-size: 12px; color: rgba(255,255,255,.85);
    text-decoration: none;
    background: rgba(255,255,255,.15);
    padding: 2px 10px; border-radius: 999px;
    margin-top: 4px; align-self: flex-start;
}
.hb-drawer__user-link:hover { color: #fff; background: rgba(255,255,255,.25); }
.hb-drawer__close {
    width: 36px; height: 36px;
    border: 0; background: rgba(255,255,255,.15); color: #fff;
    border-radius: 8px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 16px;
    transition: background-color .15s;
}
.hb-drawer__close:hover { background: rgba(255,255,255,.25); }

/* Drawer body */
.hb-drawer__body { padding: 12px 0; overflow-y: auto; flex-grow: 1; }

.hb-drawer__search {
    margin: 4px 16px 16px;
    position: relative;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 999px;
    display: flex; align-items: center;
    padding: 0 14px;
}
.hb-drawer__search:focus-within { border-color: var(--bs-primary, #7367f0); background: #fff; }
.hb-drawer__search i { color: rgba(0,0,0,.4); font-size: 14px; flex-shrink: 0; }
.hb-drawer__search input {
    flex: 1; height: 40px; border: 0; background: transparent;
    padding: 0 10px; font-size: 14px; outline: 0; color: inherit;
}

.hb-drawer__section { padding: 8px 0; }
.hb-drawer__section-title {
    font-size: 11px; font-weight: 700;
    color: rgba(0,0,0,.45);
    text-transform: uppercase; letter-spacing: .05em;
    padding: 8px 16px;
}

/* Drawer menu */
.hb-drawer__menu { list-style: none; margin: 0; padding: 0; }
.hb-drawer__link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    color: #1f2937; text-decoration: none;
    font-size: 14px; font-weight: 500;
    background: transparent; border: 0; width: 100%; text-align: start;
    cursor: pointer;
    transition: background-color .12s;
}
.hb-drawer__link i { width: 20px; text-align: center; color: rgba(0,0,0,.5); font-size: 15px; }
.hb-drawer__link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-drawer__link:hover { background: rgba(115,103,240,.06); color: var(--bs-primary, #7367f0); }
.hb-drawer__link:hover i { color: var(--bs-primary, #7367f0); }

.hb-drawer__link--primary { color: var(--bs-primary, #7367f0); font-weight: 600; }
.hb-drawer__link--primary i { color: var(--bs-primary, #7367f0); }
.hb-drawer__link--danger { color: var(--bs-danger, #ea5455); }
.hb-drawer__link--danger i { color: var(--bs-danger, #ea5455); }
.hb-drawer__link--danger:hover { background: rgba(234,84,85,.08); color: var(--bs-danger, #ea5455); }

.hb-drawer__chevron {
    width: 12px; height: 12px;
    margin-inline-start: auto;
    opacity: .5;
    flex-shrink: 0;
    transition: transform .25s ease;
}
.hb-drawer__group.open > .hb-drawer__link--parent .hb-drawer__chevron { transform: rotate(180deg); }
.hb-drawer__sub {
    list-style: none; margin: 0; padding: 0;
    max-height: 0; overflow: hidden;
    background: rgba(0,0,0,.02);
    transition: max-height .3s ease;
}
.hb-drawer__group.open > .hb-drawer__sub { max-height: 1000px; }
.hb-drawer__link--child { padding-inline-start: 48px; font-size: 13px; font-weight: 400; }
.hb-drawer__link--child i { font-size: 12px; }
.hb-drawer__link--all { font-weight: 700; }
.hb-drawer__link--grandchild { padding-inline-start: 68px; font-size: 12px; font-weight: 400; opacity: .86; }

/* Drawer footer */
.hb-drawer__foot {
    padding: 16px;
    border-top: 1px solid rgba(0,0,0,.06);
    flex-shrink: 0;
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap;
}
.hb-drawer__phone {
    color: var(--bs-primary, #7367f0);
    text-decoration: none; font-weight: 600; font-size: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    flex: 1; min-width: 0;
}
.hb-drawer__phone:hover { color: var(--bs-primary, #7367f0); filter: brightness(.9); }
.hb-drawer__socials { display: flex; gap: 8px; margin-inline-start: auto; }
.hb-drawer__social {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,.05);
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(0,0,0,.6); text-decoration: none;
    transition: all .15s;
}
.hb-drawer__social:hover {
    background: var(--bs-primary, #7367f0);
    color: #fff; transform: translateY(-2px);
}

/* ════════════════════════════════════════════════
   Mobile bottom nav (Digikala / iOS-style)
   ════════════════════════════════════════════════ */
.hb-bottomnav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 -2px 16px rgba(0,0,0,.04);
    z-index: 1020;
    display: none;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: stretch;
    height: calc(60px + env(safe-area-inset-bottom));
}
@media (max-width: 991.98px) {
    .hb-bottomnav { display: flex; }
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

.hb-bottomnav__item {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 4px 2px;
    color: rgba(15,23,42,.55); text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
    position: relative;
    transition: color .2s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.hb-bottomnav__item i {
    font-size: 22px;
    transition: transform .2s ease;
}
.hb-bottomnav__item:active i { transform: scale(.88); }

.hb-bottomnav__label {
    font-size: 10.5px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -.01em;
    transition: font-weight .15s;
}

.hb-bottomnav__item:hover { color: var(--bs-primary, #7367f0); }

/* Active state: primary color + indicator dot above icon */
.hb-bottomnav__item.is-active {
    color: var(--bs-primary, #7367f0);
}
.hb-bottomnav__item.is-active .hb-bottomnav__label { font-weight: 700; }
.hb-bottomnav__item.is-active::before {
    content: '';
    position: absolute; top: 0; left: 50%;
    width: 28px; height: 3px;
    background: var(--bs-primary, #7367f0);
    border-radius: 0 0 6px 6px;
    transform: translateX(-50%);
}

/* Cart badge — corner of icon */
.hb-bottomnav__badge {
    position: absolute;
    top: 2px;
    inset-inline-start: calc(50% + 4px);
    background: var(--bs-danger, #ea5455);
    color: #fff;
    font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 999px;
    padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(234,84,85,.3);
}

/* Dark theme variant for sites with dark headers */
@media (prefers-color-scheme: dark) {
    .hb-bottomnav { background: rgba(15,23,42,.96); border-top-color: rgba(255,255,255,.08); }
    .hb-bottomnav__item { color: rgba(255,255,255,.55); }
    .hb-bottomnav__badge { border-color: #0f172a; }
}

/* ════════════════════════════════════════════════
   Bottom Bar (Digikala-style secondary nav row)
   ════════════════════════════════════════════════ */
.hb-bottombar {
    width: 100%;
    position: relative;
    z-index: 5;
    transition: max-height .25s ease, opacity .25s ease, transform .25s ease;
    overflow: visible;
}
/* Match header: inherit bg, no separator unless requested */
.hb-bottombar--inherit { background: transparent; color: inherit; }

/* Scroll behavior: hide_on_scroll — collapses when scrolling down */
.hb-header.hb-bb-hidden .hb-bottombar[data-hb-bb-scroll="hide_on_scroll"] {
    max-height: 0; opacity: 0; transform: translateY(-8px);
    overflow: hidden;
    pointer-events: none;
}
/* Scroll behavior: sticky_alone — main bar hides, only bottom bar stays */
.hb-header.hb-bb-solo .hb-inner {
    display: none;
}
/* Force fixed positioning when sticky_alone active even if main scroll behavior is static */
.hb-header.hb-bb-solo {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    z-index: 9999 !important;
    transform: none !important;
    margin: 0 !important;
    max-width: 100% !important;
}
.hb-bottombar__inner {
    margin: 0 auto;
    padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5);
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 50px;
    box-sizing: border-box;
}
@media (min-width: 576px)  { .hb-bottombar__inner { max-width: min(540px,  var(--hb-max-width)); } }
@media (min-width: 768px)  { .hb-bottombar__inner { max-width: min(720px,  var(--hb-max-width)); } }
@media (min-width: 992px)  { .hb-bottombar__inner { max-width: min(960px,  var(--hb-max-width)); } }
@media (min-width: 1200px) { .hb-bottombar__inner { max-width: min(1140px, var(--hb-max-width)); } }
@media (min-width: 1400px) { .hb-bottombar__inner { max-width: min(1320px, var(--hb-max-width)); } }

.hb-bottombar__cta { padding: 8px 18px; font-size: 13px; flex-shrink: 0; margin-inline-start: auto; }
.hb-bottombar__phone {
    color: inherit; text-decoration: none;
    font-weight: 600; font-size: 14px;
    display: inline-flex; align-items: center;
    flex-shrink: 0;
    opacity: .85;
}
.hb-bottombar__phone:hover { color: inherit; opacity: 1; }

/* Bottom menu items */
.hb-bottommenu { list-style: none; margin: 0; padding: 0; display: none; align-items: center; gap: 4px; }
@media (min-width: 992px) { .hb-bottommenu { display: flex; } }

/* Menu alignment inside bottom bar */
.hb-bottommenu--start  { margin-inline-end: auto; }
.hb-bottommenu--center { margin-inline: auto; }
.hb-bottommenu--end    { margin-inline-start: auto; }
.hb-bottommenu__item { position: relative; }
.hb-bottommenu__link {
    display: inline-flex; align-items: center;
    padding: 10px 14px; color: inherit; text-decoration: none;
    border-radius: 8px; font-weight: 500; font-size: 14px;
    transition: background-color .15s, color .15s;
    white-space: nowrap;
}
.hb-bottommenu__link:hover { background: rgba(0,0,0,.05); color: var(--hb-link-hover); }
.hb-bottommenu__sub {
    position: absolute; top: 100%; inset-inline-start: 0;
    list-style: none; margin: 0; padding: 6px;
    background: #fff; border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12);
    min-width: 220px; opacity: 0; visibility: hidden;
    transform: translateY(-6px); transition: .15s ease;
    z-index: 10;
}
.hb-bottommenu__item.has-children:hover .hb-bottommenu__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.hb-bottommenu__sub li a {
    display: block; padding: 10px 14px; border-radius: 8px;
    color: #444; text-decoration: none; font-size: 13px;
}
.hb-bottommenu__sub li a:hover { background: rgba(115,103,240,.08); color: var(--hb-link-hover); }

/* Categories mega button */
.hb-catbtn { position: relative; flex-shrink: 0; }
.hb-catbtn__trigger {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: var(--bs-primary, #7367f0); color: #fff;
    border: 0; border-radius: 10px;
    font-weight: 600; font-size: 14px;
    cursor: pointer; transition: filter .15s;
}
.hb-catbtn__trigger:hover { filter: brightness(1.08); }
.hb-catbtn__arrow { width: 12px; height: 12px; opacity: .85; transition: transform .2s ease; flex-shrink: 0; }
.hb-catbtn:hover .hb-catbtn__arrow { transform: rotate(180deg); }

.hb-catbtn::before {
    /* hover-bridge: invisible 6px below trigger to keep mouse path live */
    content: ''; position: absolute; top: 100%; left: 0; right: 0;
    height: 8px; pointer-events: none;
}
.hb-catbtn:hover::before { pointer-events: auto; }
.hb-catbtn__panel {
    position: absolute; top: calc(100% + 6px); inset-inline-start: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.16);
    min-width: 280px;
    /* NO overflow restrictions — children mega panels must escape this box */
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: .18s ease;
    z-index: 50;
    padding: 8px;
}
/* Note: no overflow on .hb-catbtn__list — would clip mega panels (absolute children) */
.hb-catbtn:hover .hb-catbtn__panel { opacity: 1; visibility: visible; transform: translateY(0); }

.hb-catbtn__list { list-style: none; margin: 0; padding: 0; }
.hb-catbtn__item { position: relative; }
.hb-catbtn__link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px;
    color: #1f2937; text-decoration: none;
    font-size: 13px; font-weight: 500;
    transition: background-color .12s, color .12s;
}
.hb-catbtn__link:hover { background: rgba(115,103,240,.08); color: var(--hb-link-hover); }
.hb-catbtn__icon { width: 20px; height: 20px; object-fit: cover; border-radius: 4px; flex-shrink: 0; color: rgba(0,0,0,.4); }
.hb-catbtn__chevron { margin-inline-start: auto; font-size: 11px; opacity: .5; }

/* Mega panel — padding-inline-start = invisible hover-bridge */
.hb-catbtn__mega {
    position: absolute; top: 0; inset-inline-start: 100%;
    padding-inline-start: 8px;
    display: none;
    z-index: 100;
}
.hb-catbtn__item.has-sub:hover .hb-catbtn__mega { display: block; }
.hb-catbtn__mega-card {
    width: 600px; max-width: 70vw;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.16);
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.hb-catbtn__col {
    min-width: 0;
}
.hb-catbtn__col-title {
    display: block; font-weight: 700; font-size: 13px;
    color: var(--bs-primary, #7367f0); text-decoration: none;
    margin-bottom: 8px; padding-bottom: 6px;
    border-bottom: 1px solid rgba(115,103,240,.15);
}
.hb-catbtn__sublist { list-style: none; margin: 0; padding: 0; }
.hb-catbtn__sublist li a {
    display: block; padding: 5px 0; font-size: 12px;
    color: #555; text-decoration: none;
}
.hb-catbtn__sublist li a:hover { color: var(--hb-link-hover); }

/* ─── Cat style: GRID ─── */
.hb-catbtn__panel--grid { min-width: 540px; max-width: 90vw; padding: 16px; }
.hb-catgrid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.hb-catgrid__item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 10px; border-radius: 12px;
    background: rgba(0,0,0,.02); border: 1px solid transparent;
    text-decoration: none; color: #1f2937;
    transition: all .15s;
}
.hb-catgrid__item:hover {
    background: rgba(115,103,240,.08);
    border-color: rgba(115,103,240,.2);
    transform: translateY(-2px);
}
.hb-catgrid__img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.hb-catgrid__placeholder {
    width: 48px; height: 48px; border-radius: 10px;
    background: rgba(0,0,0,.06); color: rgba(0,0,0,.3);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.hb-catgrid__title { font-weight: 600; font-size: 13px; text-align: center; }
.hb-catgrid__count { font-size: 10px; color: rgba(0,0,0,.45); }

/* ─── Cat style: COMPACT (simple list) ─── */
.hb-catbtn__panel--compact { min-width: 220px; }
.hb-catbtn__panel--compact .hb-catbtn__chevron,
.hb-catbtn__panel--compact .hb-catbtn__mega { display: none; }

/* ─── Cat style: LIST (with sub on hover) ─── */
.hb-catbtn__simplesub {
    list-style: none; margin: 0; padding: 6px;
    position: absolute; top: 0; inset-inline-start: 100%;
    margin-inline-start: 4px; min-width: 220px;
    background: #fff; border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12);
    display: none; z-index: 51;
}
.hb-catbtn--list .hb-catbtn__item.has-sub:hover .hb-catbtn__simplesub { display: block; }
.hb-catbtn__simplesub li a {
    display: block; padding: 8px 12px; border-radius: 6px;
    color: #444; text-decoration: none; font-size: 13px;
}
.hb-catbtn__simplesub li a:hover { background: rgba(115,103,240,.08); color: var(--hb-link-hover); }

/* ─── Cat style: IMAGE_BANNER (mega + featured img) ─── */
.hb-catbtn__panel--image { min-width: 280px; }
.hb-catimg { display: flex; }
.hb-catimg__list { list-style: none; margin: 0; padding: 0; flex: 1; }
.hb-catimg__item { position: relative; }
.hb-catimg__panel {
    position: absolute; top: 0; inset-inline-start: 100%;
    padding-inline-start: 8px;
    display: none;
    z-index: 100;
}
.hb-catimg__item:hover .hb-catimg__panel { display: block; }
.hb-catimg__panel-card {
    width: 720px; max-width: 80vw;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.16);
    padding: 16px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}
.hb-catimg__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hb-catimg__featured {
    display: flex; flex-direction: column;
    border-radius: 12px; overflow: hidden;
    background: rgba(115,103,240,.05);
    color: var(--bs-primary, #7367f0);
    text-decoration: none;
    transition: transform .15s;
}
.hb-catimg__featured:hover { transform: scale(1.02); }
.hb-catimg__featured img { width: 100%; height: 160px; object-fit: cover; }
.hb-catimg__featured span { padding: 10px; text-align: center; font-weight: 600; font-size: 13px; }

@media (max-width: 991.98px) {
    .hb-bottombar { display: none; }
}

@media (min-width: 992px) { .hb-hamburger { display: none !important; } }
.hb-hamburger--start { margin-inline-end: 4px; flex-shrink: 0; }

/* Mobile: actions can wrap to keep within viewport, hide non-essentials */
@media (max-width: 991.98px) {
    .hb-actions { gap: 4px; }
    .hb-action { width: 38px; height: 38px; font-size: 16px; }
    .hb-action--label { padding: 0 10px; font-size: 13px; }
    .hb-action--label span { display: none; }
    .hb-action--label.hb-user-login span { display: inline; }
    .hb-cta { padding: 8px 14px; font-size: 13px; }
    .hb-search-wrap { max-width: 220px; }
    .hb-hide-mobile { display: none !important; }
    .hb-account .hb-dropdown { display: none; }
}

@media (max-width: 575.98px) {
    .hb-action--label.hb-user-login span { display: none; }
    .hb-search-wrap { display: none; }
    .hb-actions { gap: 2px; }
}
