/* =========================================================
   GRAND BAR: липкая шапка — тонкая полоса при прокрутке вниз
   лого · каталог · поиск · телефон · корзина
   ========================================================= */
.gb-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 3px solid #F9A91D;
    box-shadow: 0 6px 24px rgba(29, 29, 27, 0.10);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
}

body.gb-sticky-on .gb-sticky {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.28s ease, visibility 0s;
}

/* панель администратора Битрикса сверху — опускаем полосу под неё */
body.gb-sticky-admin .gb-sticky {
    top: var(--gb-sticky-top, 0px);
}

.gb-sticky-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 64px;
}

.gb-sticky-logo {
    flex: 0 0 auto;
    display: inline-flex;
    line-height: 0;
}

.gb-sticky-logo img {
    height: 36px;
    width: auto;
}

/* кнопка «Каталог» */
.gb-sticky-catalog {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #F9A91D;
    color: #1d1d1b !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gb-sticky-catalog:hover {
    background: #f39c00;
    transform: translateY(-1px);
}

.gb-sticky-catalog-ico {
    width: 16px;
    height: 16px;
    background:
        linear-gradient(#1d1d1b, #1d1d1b) 0 0 / 7px 7px no-repeat,
        linear-gradient(#1d1d1b, #1d1d1b) 9px 0 / 7px 7px no-repeat,
        linear-gradient(#1d1d1b, #1d1d1b) 0 9px / 7px 7px no-repeat,
        linear-gradient(#1d1d1b, #1d1d1b) 9px 9px / 7px 7px no-repeat;
    border-radius: 2px;
}

/* поиск занимает всё свободное место */
.gb-sticky-search {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 10px;
}

.gb-sticky-search .gbs {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* телефон */
.gb-sticky-phone {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d1d1b !important;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    text-decoration: none !important;
}

.gb-sticky-phone-ico {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff4de url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F9A91D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* корзина */
.gb-sticky-cart {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 16px 0 8px;
    border-radius: 999px;
    border: 1px solid #f3e4c2;
    background: #fffaf0;
    color: #1d1d1b !important;
    text-decoration: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gb-sticky-cart:hover {
    border-color: #F9A91D;
    box-shadow: 0 4px 14px rgba(249, 169, 29, 0.25);
}

.gb-sticky-cart-ico {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F9A91D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / 17px no-repeat;
}

.gb-sticky-cart-count {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #1d1d1b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.gb-sticky-cart-count.is-empty {
    display: none;
}

.gb-sticky-cart-sum {
    font-weight: 800;
    font-size: 15px;
    white-space: nowrap;
}

/* ноутбуки: прячем телефон, чтобы не теснить поиск */
@media (max-width: 1199px) {
    .gb-sticky-phone {
        display: none;
    }
}

/* телефоны: у шапки и так есть иконки звонка и корзины — липкую полосу не показываем */
@media (max-width: 767px) {
    .gb-sticky {
        display: none;
    }
}
