/* ═══════════════════════════════════════════════════════════════════════════
   TABUTECH Header v13.0.0 — გადაწყობილი header ფენა
   ყველა ფერი CSS ცვლადებით (--hd-*). Elementor Style ტაბი ცვლის ამ ცვლადებს.
   სტრუქტურა: .tbhd__top → .tbhd__main → .tbhd__bar
   ═══════════════════════════════════════════════════════════════════════════ */

:root { --tbh-col: 290px; --tb-maxw: 2000px; --tb-pad: 40px; }

.tbhd {
    display: contents;

    /* ბრენდი */
    --hd-brand: #5b4ce6;
    --hd-ink: #171a3a;

    /* ქვემოთ ცვლადები განზრახ არ არის განსაზღვრული — fallback-ები გამოიყენება:
       --hd-main-bg (→ brand), --hd-cat-bg (→ brand), --hd-bar-active (→ brand),
       --hd-cart-icon-bg (→ brand), --hd-user-bg / --hd-user-fg (→ user-style) */

    font-family: var(--tabutech-font-family, 'IBM Plex Sans Georgian', 'IBM Plex Sans', system-ui, sans-serif);
}

.tbhd *,
.tbhd *::before,
.tbhd *::after { box-sizing: border-box; }

.tbhd a { text-decoration: none; }
.tbhd button { font-family: inherit; }

.tbhd__in {
    width: 100%;
    /* ფონები სრულ სიგანეზეა, შიგთავსი ცენტრშია და გვერდებზე ადგილი რჩება */
    max-width: calc(var(--tb-maxw) + 2 * var(--tb-pad));
    margin: 0 auto;
    padding: 0 var(--tb-pad);
    display: flex;
    align-items: center;
    gap: 28px;
}

/* ── TOP BAR ── */
.tbhd__top {
    background: var(--hd-top-bg, #171a3a);
    color: var(--hd-top-fg, #c9cdf5);
    font-size: 13px;
}

.tbhd__top .tbhd__in {
    min-height: 36px;
    justify-content: space-between;
}

.tbhd__top-side {
    display: flex;
    align-items: center;
    gap: 26px;
}

.tbhd__top-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.tbhd__top-item i { opacity: 0.7; font-size: 12px; }

.tbhd__social {
    color: inherit;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.tbhd__social:hover { opacity: 1; }

/* ── MAIN ── */
.tbhd__main {
    position: relative;
    background: var(--hd-main-bg, var(--hd-brand));
    padding: 12px 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.tabutech-header__sticky-wrapper--scrolled .tbhd__main {
    padding: 8px 0;
    box-shadow: 0 6px 22px rgba(23, 26, 58, 0.22);
}

.tbhd__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--hd-logo, #ffffff);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1;
    transition: opacity 0.2s;
}

.tbhd__logo:hover { opacity: 0.88; }

.tbhd__logo img {
    display: block;
    max-height: 44px;
    width: auto;
    transition: max-height 0.3s ease;
}

.tabutech-header__sticky-wrapper--scrolled .tbhd__logo img { max-height: 36px; }

.tbhd__logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

/* ── SEARCH ── */
.tbhd__search {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 24px;
}

.tbhd__search-input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 72px 0 22px;
    border: 0;
    border-radius: var(--hd-search-radius, 15px);
    background: var(--hd-search-bg, #ffffff);
    color: var(--hd-search-fg, #171a3a);
    font-family: inherit;
    font-size: 14px;
    cursor: text;
    box-shadow: 0 6px 18px rgba(23, 26, 58, 0.16);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.tbhd__search-input::placeholder { color: var(--hd-search-ph, #7c8099); opacity: 1; }
.tbhd__search-input::-webkit-search-cancel-button { display: none; }

.tbhd__search-input:hover,
.tbhd__search-input:focus {
    outline: none;
    box-shadow: 0 10px 26px rgba(23, 26, 58, 0.24);
}

.tbhd__search-input:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; }

.tbhd__search-btn {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 42px;
    height: 38px;
    margin-top: -19px;
    border-radius: calc(var(--hd-search-radius, 15px) - 4px);
    background: var(--hd-search-btn-bg, var(--hd-ink));
    color: var(--hd-search-btn-fg, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.tbhd__search-input:hover + .tbhd__search-btn,
.tbhd__search-input:focus + .tbhd__search-btn { transform: scale(1.06); }

/* ── ACTIONS: user / cart ── */
.tbhd__acts {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.tbhd__act {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    height: 50px;
    padding: 0 18px 0 8px;
    border: 1px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tbhd__act:hover { transform: translateY(-2px); }
.tbhd__act:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.6); outline-offset: 2px; }

.tbhd__act-ic {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.tbhd__act-tx {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.tbhd__act-tx small {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.72;
}

.tbhd__act-tx strong,
.tbhd__act-total {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tbhd__act-total { display: block; }

/* მომხმარებელი — default: glass (მუქ/ფერად ფონზე) */
.tbhd__act--user {
    --_bg: rgba(255, 255, 255, 0.16);
    --_fg: #ffffff;
    --_bd: rgba(255, 255, 255, 0.34);
    --_ic: rgba(255, 255, 255, 0.22);
    background: var(--hd-user-bg, var(--_bg));
    color: var(--hd-user-fg, var(--_fg));
    border-color: var(--_bd);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.tbhd__act--user .tbhd__act-ic { background: var(--_ic); color: inherit; }
.tbhd__act--user:hover { background: var(--hd-user-bg, rgba(255, 255, 255, 0.26)); }

/* მომხმარებელი — solid (თეთრი) */
.tbhd-user-solid .tbhd__act--user {
    --_bg: #ffffff;
    --_fg: var(--hd-ink);
    --_bd: rgba(23, 26, 58, 0.08);
    --_ic: #eef0fb;
    box-shadow: 0 6px 18px rgba(23, 26, 58, 0.16);
}
.tbhd-user-solid .tbhd__act--user:hover { background: var(--hd-user-bg, #ffffff); box-shadow: 0 10px 24px rgba(23, 26, 58, 0.24); }

/* კალათა */
.tbhd__act--cart {
    background: var(--hd-cart-bg, #ffffff);
    color: var(--hd-cart-fg, #171a3a);
    box-shadow: 0 6px 18px rgba(23, 26, 58, 0.18);
}
.tbhd__act--cart:hover { box-shadow: 0 10px 26px rgba(23, 26, 58, 0.28); }

.tbhd__act--cart .tbhd__act-ic {
    background: var(--hd-cart-icon-bg, var(--hd-brand));
    color: var(--hd-cart-icon-fg, #ffffff);
}

/* ბეჯი (fragment-ის კლასები უცვლელია) */
.tbhd__act--cart .tabutech-header__cart-count-fragment {
    position: absolute;
    top: -8px;
    right: -8px;
    left: auto;
    bottom: auto;
}

.tbhd__act--cart .tabutech-header__cart-badge {
    position: static;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--hd-badge-bg, #ff5a1f);
    color: var(--hd-badge-fg, #ffffff);
    border: 2px solid var(--hd-main-bg, var(--hd-brand));
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── BAR: categories | nav ── */
.tbhd__bar {
    background: var(--hd-bar-bg, #ffffff);
    border-bottom: 1px solid #e6e8f2;
}

.tbhd__bar .tbhd__in {
    min-height: 64px;
    gap: 32px;
}

.tbhd__cat {
    flex: 0 0 var(--tbh-col, 290px);
    width: var(--tbh-col, 290px);
    height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: var(--hd-cat-bg, var(--hd-brand));
    color: var(--hd-cat-fg, #ffffff);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(23, 26, 58, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tbhd__cat:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(23, 26, 58, 0.24); }
.tbhd__cat:focus-visible { outline: 3px solid var(--hd-brand); outline-offset: 2px; }

.tbhd__cat-l { display: inline-flex; align-items: center; gap: 12px; }
.tbhd__cat-arrow { font-size: 12px; opacity: 0.85; transition: transform 0.2s ease; }
.tbhd__cat:hover .tbhd__cat-arrow { transform: translateY(2px); }

.tbhd__nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    flex: 1 1 auto;
    gap: 34px;
}

.tbhd__nav-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 3px 2px 0;
    color: var(--hd-bar-link, #22254a);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.tbhd__nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--hd-bar-active, var(--hd-brand));
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.tbhd__nav-link:hover,
.tbhd__nav-link.is-active { color: var(--hd-bar-active, var(--hd-brand)); }

.tbhd__nav-link:hover::after,
.tbhd__nav-link.is-active::after { transform: scaleX(1); }

.tbhd__nav-link:focus-visible { outline: 2px solid var(--hd-bar-active, var(--hd-brand)); outline-offset: -2px; border-radius: 6px; }

/* ── MOBILE (≤768px) — უცვლელი ქცევა: მხოლოდ ლოგო, დანარჩენს bottom-nav ამუშავებს ── */
@media (max-width: 768px) {
    .tbhd__top,
    .tbhd__bar { display: none !important; }

    .tbhd__in { padding: 0 16px; gap: 12px; }

    .tbhd__main { padding: 12px 0; }

    .tbhd__logo { font-size: 20px; gap: 7px; }
    .tbhd__logo img { max-height: 40px; }
    .tbhd__logo-mark { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .tbhd *, .tbhd *::before, .tbhd *::after { transition-duration: 0.01ms !important; }
}

/* ═══════════ v13.1 — inline search results ═══════════ */
.tbhd__search { margin-bottom: 0; }

.tbhd__search-btn {
    border: 0;
    cursor: pointer;
    pointer-events: auto;
    padding: 0;
}
.tbhd__search-btn:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }

.tbhd__sres {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    z-index: 30;
    max-height: min(560px, 72vh);
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    color: var(--hd-ink, #171a3a);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(23, 26, 58, 0.28);
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.tbhd__sres.is-open { display: block; animation: tbhd-pop 0.16s ease-out; }

@keyframes tbhd-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.tbhd__sres-head {
    padding: 10px 12px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #8a90b8;
}

.tbhd__sres-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    border-radius: 12px;
    color: inherit;
    transition: background-color 0.12s;
}
.tbhd__sres-item:hover,
.tbhd__sres-item.is-active { background: var(--tbhd-soft, #eef0ff); }

.tbhd__sres-img {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #f4f5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #8a90b8;
}
.tbhd__sres-img img { width: 100%; height: 100%; object-fit: contain; }
.tbhd__sres-item.is-cat .tbhd__sres-img { flex-basis: 40px; width: 40px; height: 40px; }

.tbhd__sres-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tbhd__sres-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tbhd__sres-price { font-size: 13px; font-weight: 700; color: #d92d20; }
.tbhd__sres-price del { color: #9aa0c0; font-weight: 500; margin-right: 6px; }
.tbhd__sres-price ins { text-decoration: none; }
.tbhd__sres-sub { font-size: 12px; color: #8a90b8; }

.tbhd__sres-msg { padding: 22px 16px; text-align: center; font-size: 14px; color: #7c8099; }

.tbhd__sres-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding: 12px 14px;
    border-radius: 12px;
    border-top: 1px solid #eceef7;
    color: var(--hd-brand);
    font-size: 14px;
    font-weight: 700;
}
.tbhd__sres-all:hover { background: var(--tbhd-soft, #eef0ff); }

/* ═══════════ v13.1 — categories dropdown ═══════════ */
@supports (background: color-mix(in srgb, red 10%, white)) {
    .tbhd { --tbhd-soft: color-mix(in srgb, var(--hd-brand) 10%, #ffffff); }
}

.tbhd__catwrap {
    position: relative;
    flex: 0 0 var(--tbh-col, 290px);
    width: var(--tbh-col, 290px);
}

.tbhd__catwrap .tbhd__cat { width: 100%; }
.tbhd__cat[aria-expanded="true"] { box-shadow: 0 10px 22px rgba(23, 26, 58, 0.26); }
.tbhd__cat[aria-expanded="true"] .tbhd__cat-arrow { transform: rotate(180deg); }

.tbhd__mega {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 40;
    display: flex;
    width: min(1040px, calc(100vw - 80px));
    height: min(640px, calc(100vh - 210px));
    min-height: 360px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(23, 26, 58, 0.3);
    overflow: hidden;
    color: var(--hd-ink, #171a3a);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}

.tbhd__mega.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.tbhd__mega-list {
    list-style: none;
    margin: 0;
    padding: 8px;
    flex: 0 0 var(--tbh-col, 290px);
    overflow-y: auto;
    background: #fafbfe;
    border-right: 1px solid #eceef7;
    scrollbar-width: thin;
}

.tbhd__mega-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    padding: 5px 10px;
    border-radius: 12px;
    color: #22254a;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.28;
    transition: background-color 0.12s, color 0.12s;
}

.tbhd__mega-ico {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #eef0f8;
    color: #8a90b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    overflow: hidden;
}
.tbhd__mega-ico img { width: 20px; height: 20px; object-fit: contain; }

.tbhd__mega-name { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.tbhd__mega-chev { font-size: 11px; color: #a3a8c6; }

.tbhd__mega-item.is-active > .tbhd__mega-link,
.tbhd__mega-link:hover,
.tbhd__mega-link:focus-visible {
    background: #fff;
    color: var(--hd-brand);
    box-shadow: 0 2px 10px rgba(23, 26, 58, 0.07);
}
.tbhd__mega-item.is-active .tbhd__mega-chev,
.tbhd__mega-link:hover .tbhd__mega-chev { color: var(--hd-brand); }
.tbhd__mega-link:focus-visible { outline: 2px solid var(--hd-brand); outline-offset: -2px; }

.tbhd__mega-panels { flex: 1 1 auto; min-width: 0; position: relative; overflow-y: auto; }

.tbhd__mega-panel { display: none; padding: 26px 30px; }
.tbhd__mega-panel.is-active { display: block; animation: tbhd-pop 0.14s ease-out; }

.tbhd__mega-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.tbhd__mega-title { font-size: 19px; font-weight: 700; color: var(--hd-ink, #171a3a); }
.tbhd__mega-title:hover { color: var(--hd-brand); }
.tbhd__mega-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--hd-brand); white-space: nowrap; }
.tbhd__mega-all i { font-size: 10px; }

.tbhd__mega-subs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 18px;
}

.tbhd__mega-sub {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    color: #22254a;
    font-size: 14px;
    transition: background-color 0.12s, color 0.12s;
}
.tbhd__mega-sub:hover,
.tbhd__mega-sub:focus-visible { background: var(--tbhd-soft, #eef0ff); color: var(--hd-brand); }
.tbhd__mega-sub:focus-visible { outline: 2px solid var(--hd-brand); outline-offset: -2px; }

.tbhd__mega-subimg {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #f1f2f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.tbhd__mega-subimg img { width: 28px; height: 28px; object-fit: contain; }

@media (max-width: 768px) {
    .tbhd__mega, .tbhd__sres { display: none !important; }
}

/* docked რეჟიმი (მთავარი გვერდი): dropdown არ არის, ისარი არ სჭირდება */
.tbhd__cat--docked .tbhd__cat-arrow { display: none; }
.tbhd__cat--docked { cursor: pointer; }

/* ═══════════════════════════════════════════════════════════════════════════
   v13.5 — MOBILE: [ლუპა] [ლოგო] [კალათა], ძებნის dropdown, კონტაქტი
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 769px) {
    .tbhd__m-btn,
    .tbhd__msearch,
    .tbhd__mscrim,
    .tbhd__mspacer,
    .tbhd__contact,
    .tbhd__contact-scrim { display: none !important; }
}

@media (max-width: 768px) {

    :root { --tbhd-mh: 56px; }

    /* ჰედერი ეკრანზე რჩება; ადგილს spacer იჭერს */
    body .tabutech-header__sticky-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        width: 100%;
        transform: none !important;
        will-change: auto !important;
        transition: none !important;
        z-index: 1000;
    }

    .tbhd__mspacer { display: block; height: var(--tbhd-mh); }

    .tbhd__main {
        height: var(--tbhd-mh);
        padding: 0;
        background: var(--hd-main-bg, var(--hd-brand));
    }

    .tbhd__main .tbhd__in {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 40px 40px;
        align-items: center;
        gap: 8px;
        height: 100%;
        padding: 0 12px;
    }

    .tbhd__acts,
    .tbhd__search { display: none !important; }

    /* ლოგო მარცხნივ; ლუპა და კალათა ორივე მარჯვნივ */
    .tbhd__logo { grid-column: 1; grid-row: 1; justify-self: start; font-size: 19px; }
    .tbhd__m-search-btn { grid-column: 2; grid-row: 1; }
    .tbhd__m-cart-btn { grid-column: 3; grid-row: 1; }
    .tbhd__m-ghost { display: none; }
    .tbhd__logo img { max-height: 34px; }

    .tbhd__m-btn {
        position: relative;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.12s ease, background-color 0.15s ease;
    }
    .tbhd__m-btn:active { transform: scale(0.93); }
    .tbhd__m-ghost { background: none; pointer-events: none; }

    .tbhd__m-search-btn .i-x { display: none; }
    .tbhd__m-search-btn[aria-expanded="true"] { background: #fff; color: var(--hd-brand); }
    .tbhd__m-search-btn[aria-expanded="true"] .i-search { display: none; }
    .tbhd__m-search-btn[aria-expanded="true"] .i-x { display: block; }

    .tbhd__mbadge {
        position: absolute;
        top: -5px;
        right: -5px;
        min-width: 20px;
        height: 20px;
        padding: 0 4px;
        border-radius: 10px;
        background: var(--hd-badge-bg, #ff5a1f);
        color: var(--hd-badge-fg, #fff);
        border: 2px solid var(--hd-main-bg, var(--hd-brand));
        font-size: 11px;
        font-weight: 800;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    /* თემის/Elementor-ის წესებმა (span-ის ფერი, ზომა, ფონტი) რიცხვი არ დამალოს */
    .tbhd__m-btn .tbhd__mbadge {
        color: var(--hd-badge-fg, #fff) !important;
        -webkit-text-fill-color: var(--hd-badge-fg, #fff);
        font-family: Arial, Helvetica, sans-serif !important;
        font-size: 11px !important;
        font-style: normal;
        letter-spacing: 0;
        text-indent: 0;
        text-transform: none;
        opacity: 1;
    }
    .tbhd__m-btn .tbhd__mbadge[style*="display:none"],
    .tbhd__m-btn .tbhd__mbadge[style*="display: none"] { display: none !important; }

    /* ── ძებნის dropdown ── */
    .tbhd__msearch {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        padding: 4px 14px 14px;
        background: var(--hd-main-bg, var(--hd-brand));
        border-radius: 0 0 20px 20px;
        box-shadow: 0 18px 36px rgba(23, 26, 58, 0.28);
        max-height: calc(var(--tbhd-vvh, 100vh) - var(--tbhd-mh) - 6px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .tbhd__msearch.is-open { display: block; animation: tbhd-pop 0.16s ease-out; }

    .tbhd__msearch-field {
        display: flex;
        align-items: center;
        gap: 10px;
        height: 48px;
        padding: 0 6px 0 14px;
        border-radius: 14px;
        background: #fff;
        color: #7c8099;
    }
    .tbhd__msearch-ic { flex-shrink: 0; }

    .tbhd__msearch-field input {
        flex: 1;
        min-width: 0;
        height: 100%;
        border: 0;
        background: transparent;
        color: var(--hd-ink, #171a3a);
        font-family: inherit;
        font-size: 16px;   /* 16px — iOS-ზე ველზე ფოკუსის ზუმი არ ჩნდება */
        outline: none;
        box-shadow: none;
        -webkit-appearance: none;
        appearance: none;
    }
    .tbhd__msearch-field input::placeholder { color: #7c8099; opacity: 1; }
    .tbhd__msearch-field input::-webkit-search-cancel-button,
    .tbhd__msearch-field input::-webkit-search-decoration { display: none; }

    .tbhd__msearch-clear {
        display: none;
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 50%;
        background: #f1f2f8;
        color: #5b6080;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        padding: 0;
    }
    .tbhd__msearch-field.has-value .tbhd__msearch-clear { display: flex; }

    .tbhd__msres {
        display: none;
        margin-top: 8px;
        padding: 6px;
        background: #fff;
        color: var(--hd-ink, #171a3a);
        border-radius: 16px;
    }
    .tbhd__msres.is-open { display: block; }
    .tbhd__msres .tbhd__sres-item { padding: 10px 8px; }

    .tbhd__mscrim {
        display: none;
        position: fixed;
        inset: 0;
        z-index: -1;
        background: rgba(15, 17, 45, 0.5);
    }
    .tbhd__mscrim.is-open { display: block; }

    /* ── ქვედა ნავიგაცია ── */
    .tabutech-header__bottom-nav-label { font-size: 11px; }
    .tabutech-header__bottom-nav-icon { width: 24px; height: 24px; }
    .tabutech-header__bottom-nav-icon svg { display: block; }

    /* ფურცლების ბოლო ელემენტი ქვედა ნავიგაციის ქვეშ აღარ ჩადის */
    .tabutech-header__sidebar .tabutech-header__sidebar-content {
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 20px);
    }
    .tabutech-header__search-palette-body {
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 12px);
    }

    /* ── კონტაქტის ფანჯარა ── */
    .tbhd__contact-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10140;
        background: rgba(15, 17, 45, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.18s ease, visibility 0s linear 0.18s;
    }
    .tbhd__contact-scrim.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

    .tbhd__contact {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 10px);
        z-index: 10150;
        padding: 8px;
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 22px 54px rgba(23, 26, 58, 0.32);
        font-family: var(--tabutech-font-family, inherit);
        opacity: 0;
        visibility: hidden;
        transform: translateY(14px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    }
    .tbhd__contact.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

    .tbhd__contact-title {
        padding: 10px 12px 6px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.06em;
        color: #8a90b8;
    }

    .tbhd__contact-row {
        display: flex;
        align-items: center;
        gap: 14px;
        min-height: 56px;
        padding: 8px 12px;
        border-radius: 14px;
        color: var(--hd-ink, #171a3a);
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .tbhd__contact-row:active { background: #f1f2f8; }

    .tbhd__contact-ic {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
    }
    .tbhd__contact-ic--call { background: var(--hd-brand, #5b4ce6); }
    .tbhd__contact-ic--viber { background: #7360f2; }
    .tbhd__contact-ic--whatsapp { background: #25d366; }
    .tbhd__contact-ic--messenger { background: #0084ff; }

    .tbhd__contact-tx { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
    .tbhd__contact-tx b { font-size: 15px; font-weight: 600; }
    .tbhd__contact-tx small { font-size: 13px; color: #7c8099; }
}

@media (min-width: 601px) and (max-width: 782px) {
    body.admin-bar .tabutech-header__sticky-wrapper { top: 46px !important; }
}

/* ზედა ინფო ზოლის აიკონები (ლოკალური SVG ნაკრები მუქი ფერისაა) მუქ ფონზე ჩანდეს */
.tbhd__top-item i::before { filter: invert(1) brightness(1.15); opacity: 0.85; }

/* კატეგორიების ფურცლის სათაური: დესკტოპზე „კატეგორიები", მობილურზე „მენიუ" */
.tbhd__t-m { display: none; }
@media (max-width: 768px) {
    .tbhd__t-d { display: none; }
    .tbhd__t-m { display: inline; }
}

/* ═══════════ v13.8 — მობილური: კალათაში დამატების უკუკავშირი ═══════════ */
.tbhd__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {

    /* წარმატების შეტყობინებები (Hero Banner Grid და Filter პლაგინებისა) მობილურზე არ გამოდის;
       შეცდომის შეტყობინებები ისევ ჩანს */
    .tabu-hbg-notif-success,
    .tabu-toast--success { display: none !important; }

    .tbhd__m-cart-btn.is-bump { animation: tbhd-bump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

    .tbhd__plus {
        position: absolute;
        top: -4px;
        left: -12px;
        z-index: 3;
        min-width: 28px;
        height: 22px;
        padding: 0 6px;
        border-radius: 11px;
        border: 2px solid var(--hd-main-bg, var(--hd-brand));
        background: #16a34a;
        color: #fff;
        font-size: 12px;
        font-weight: 800;
        line-height: 18px;
        text-align: center;
        box-sizing: border-box;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
        opacity: 0;
        pointer-events: none;
    }
    .tbhd__plus.is-on { animation: tbhd-plus 1.5s ease forwards; }

    .tbhd__mbadge.is-pop { animation: tbhd-badge-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
}

@keyframes tbhd-bump {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.22); }
    60%  { transform: scale(0.96); }
    100% { transform: scale(1); }
}

/* „სლოტივით": ქვემოდან ამოგორდება, დაყოვნდება, ზემოთ გაქრება */
@keyframes tbhd-plus {
    0%   { opacity: 0; transform: translateY(14px) scale(0.5); }
    16%  { opacity: 1; transform: translateY(-2px) scale(1.15); }
    28%  { opacity: 1; transform: translateY(0) scale(1); }
    78%  { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-6px) scale(0.9); }
}

@keyframes tbhd-badge-pop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.5); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .tbhd__m-cart-btn.is-bump,
    .tbhd__mbadge.is-pop { animation: none; }
    .tbhd__plus.is-on { animation-duration: 1.5s; animation-name: tbhd-plus-rm; }
}
@keyframes tbhd-plus-rm { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }


/* ═══════════════════════════════════════════════════════════════════════════
   v14.1 — სიგანე: ზოლების ფონი ყოველთვის ეკრანის ბოლომდეა, შიგთავსის სიგანეს
   მხოლოდ „შიგთავსის მაქსიმალური სიგანე" (--tb-maxw) განსაზღვრავს — Elementor-ის
   კონტეინერის სიგანისგან (boxed 1140/1600…) დამოუკიდებლად.
   --tbhd-vw / --tbhd-left ზუსტ პიქსელებად JS-ს დააყენებს (სქროლბარის გარეშე);
   JS-ის გარეშე 100vw-ის fallback მუშაობს ცენტრირებული კონტეინერისთვის.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
    html { overflow-x: clip; }

    .tabutech-header__sticky-wrapper,
    .tbhd__top,
    .tbh {
        --tbhd-vw: 100vw;
        --tbhd-left: calc(50% - 50vw);
        --tbhd-w: min(var(--tbhd-vw), calc(var(--tb-maxw, 2000px) + 2 * var(--tb-pad, 40px)));
    }

    /* ფონი: სრული სიგანის ფენა თითოეულ ზოლზე */
    .tbhd__top, .tbhd__main, .tbhd__bar { position: relative; isolation: isolate; }
    .tbhd__top::before, .tbhd__main::before, .tbhd__bar::before {
        content: '';
        position: absolute;
        top: 0; bottom: 0;
        z-index: -1;
        pointer-events: none;
        left: var(--tbhd-left);
        width: var(--tbhd-vw);
        background: inherit;
    }
    .tbhd__bar { border-bottom: 0; }
    .tbhd__bar::before { border-bottom: 1px solid #e6e8f2; }

    /* სქროლისას ჩრდილი მთელ სიგანეზე, ერთხელ (არა ორმაგად) */
    .tabutech-header__sticky-wrapper--scrolled .tbhd__main { box-shadow: none; }
    .tabutech-header__sticky-wrapper--scrolled .tbhd__main::before { box-shadow: 0 6px 22px rgba(23, 26, 58, 0.22); }

    /* შიგთავსი: სიგანე = min(ეკრანი, მაქს.+დაშორებები), ყოველთვის ეკრანის ცენტრში */
    .tbhd__in {
        flex: 0 0 auto;          /* ნავიგაციის ზოლი flex-ია — ვიწრო კონტეინერში შიგთავსს არ ვაპატარავებთ */
        width: var(--tbhd-w);
        max-width: none;
        margin-left: calc((var(--tbhd-vw) - var(--tbhd-w)) / 2 + var(--tbhd-left));
        margin-right: 0;
    }

    /* Home Hero — იგივე წესი, რომ ჰედერთან ერთ ხაზზე იდგეს */
    .tbh {
        width: var(--tbhd-w);
        max-width: none;
        margin-left: calc((var(--tbhd-vw) - var(--tbhd-w)) / 2 + var(--tbhd-left));
        margin-right: 0;
    }
}

/* დახურული გვერდითი პანელების ჩრდილი ეკრანის კიდეზე აღარ „გამოდის" (ადრე მუქი ზოლი ჩანდა გვერდზე) */
.tabutech-header__sidebar:not(.active) { box-shadow: none !important; }
