/* Your custom CSS here */
@media (max-width: 575.98px) {
  .js-ppf-open span { display: none; }
}

/* ═══ ХЕДЕР: растянуть на всю ширину ═══ */
header.sticky-top .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
header.sticky-top .bm-hgrid {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
}
header.sticky-top .bm-brand-col {
    border-radius: 0 !important;
    padding: 0 20px !important;
}
header.sticky-top .bm-actions-col {
    border-radius: 0 !important;
    padding: 0 16px !important;
}

/* ═══ ГАМБУРГЕР в хедере ═══ */
label.bm-hamburger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #aaa;
    cursor: pointer;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.2s;
    align-self: center;
    margin: 0;
}
label.bm-hamburger-btn:hover {
    border-color: #555;
    color: #fff;
}

/* Убрать СТАРЫЙ гамбургер из nav.html */
body > label.nav-toggle,
label.nav-toggle:not(.bm-hamburger-btn) {
    display: none !important;
}

/* ═══ SIDEBAR ═══ */
nav.nav {
    display: block !important;
    background: #111 !important;
    border-left: 1px solid #222 !important;
}
nav.nav a {
    color: #ccc !important;
}
nav.nav a:hover {
    color: #fff !important;
}
nav.nav hr {
    border-color: #333 !important;
}
nav.nav li {
    color: #888;
}

/* Крестик закрытия sidebar */
.bm-sidebar-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    z-index: 2100;
}
.bm-sidebar-close:hover {
    border-color: #c8102e;
    color: #fff;
}

/* Overlay для закрытия sidebar по клику вне */
#bm-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    z-index: 1999;
    cursor: pointer;
}
#bm-sidebar-overlay.active {
    display: block;
}

/* Убрать шестерёнку слева (PPF виджет) */
.ppf-widget-btn, #ppf-widget-trigger, [class*="ppf-btn"] {
    display: none !important;
}

/* ═══ ЛОГО В SIDEBAR ═══ */
.bm-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 16px;
    text-decoration: none !important;
}
.bm-sidebar-brand:hover { text-decoration: none !important; }

.bm-sidebar-brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.45);
}
.bm-sidebar-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bm-sidebar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.bm-sidebar-brand-name {
    font-family: Syne, sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    display: flex;
    gap: 5px;
    white-space: nowrap;
}
.bm-sidebar-brand-b { color: #fff; }
.bm-sidebar-brand-m { color: #c8102e; }
.bm-sidebar-brand-sub {
    font-family: Space Grotesk, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #555;
    white-space: nowrap;
}

/* Обновление лого sidebar — только текст */
.bm-sidebar-brand-icon { display: none !important; }
.bm-sidebar-brand {
    padding: 24px 24px 16px !important;
}
.bm-sidebar-brand-name {
    font-size: 22px !important;
}

/* ═══ ПОИСК ВИТРИНЫ: инпут на всю ширину ═══ */
.search-modal__input,
.bm-search-input {
    width: 100% !important;
    flex: 1 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.bm-search-form,
.search-modal__row {
    width: 100% !important;
}

/* ═══ ПОИСК: инпут текст слева, на всю ширину ═══ */
.bm-search-input {
    text-align: left !important;
    padding-left: 18px !important;
}

/* ═══ ПОИСК: инпут на всю высоту формы ═══ */
.bm-search-form {
    align-items: stretch !important;
}
.bm-search-input {
    height: 100% !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* ═══ SEARCH MODAL: инпут на всю высоту ═══ */
.search-modal__row {
    align-items: stretch !important;
}
.search-modal__input {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ═══ МОБИЛЬНЫЙ: правки хедера (≤768px) ═══ */
@media (max-width: 768px) {
    /* 1. Скрыть поисковую строку */
    .bm-center-col { display: none !important; }

    /* 2. Скрыть корзину и гамбургер */
    .bm-cart-btn { display: none !important; }
    .bm-hamburger-btn { display: none !important; }
    label[for="nav-toggle"] { display: none !important; }

    /* 3. Скрыть иконку телефона, оставить только номер */
    .bm-phone-ico { display: none !important; }

    /* 4. Перестроить .bm-brand-col: лого + текст в одну строку */
    .bm-brand-col {
        padding: 0 10px !important;
        flex: 1 !important;
    }
    .bm-brand-link {
        align-items: center !important;
        gap: 8px !important;
    }
    .bm-brand-icon-wrap {
        flex-shrink: 0 !important;
    }
    .bm-brand-text {
        display: flex !important;
        flex-direction: column !important;
        gap: 1px !important;
    }
    .bm-brand-name {
        font-size: 13px !important;
        line-height: 1.1 !important;
    }
    .bm-brand-sub { display: none !important; }

    /* 6. Кнопка Каталог — показать текст, компактно */
    .bm-actions-col {
        padding: 0 10px !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
    }
    .bm-btn-catalog {
        width: auto !important;
        padding: 0 12px !important;
        gap: 5px !important;
    }
    .bm-btn-catalog span { display: inline !important; font-size: 12px !important; }

    /* 7. Телефон в actions-col — скрыть (будет клонирован в brand-col) */
    .bm-phone-action { display: none !important; }
}

    /* Бренд-блок: лого + текст + телефон в одну колонку */
    .bm-brand-col { padding: 0 10px !important; flex-shrink: 0 !important; }
    .bm-brand-link { align-items: flex-start !important; }
    .bm-brand-text { flex-direction: column !important; gap: 1px !important; }
    .bm-brand-name { font-size: 13px !important; line-height: 1.1 !important; }
    .bm-brand-sub { display: none !important; }

    /* Телефон прямо под названием в brand-col */
    .bm-phone-action {
        display: flex !important;
        order: 10 !important;
        padding: 0 !important;
        font-size: 10px !important;
        color: #777 !important;
        text-decoration: none !important;
        background: none !important;
        border: none !important;
    }
    .bm-phone-ico { display: none !important; }
    .bm-phone-num { font-size: 10px !important; color: #777 !important; }
    .bm-brand-col .bm-phone-action { display: none !important; }

    /* Кнопка каталог — ближе, показать текст */
    .bm-actions-col { gap: 4px !important; padding: 0 10px !important; }
    .bm-btn-catalog { width: auto !important; padding: 0 12px !important; gap: 5px !important; }
    .bm-btn-catalog span { display: inline !important; font-size: 12px !important; }

    /* Скрыть лишние кнопки */
    .bm-cart-btn { display: none !important; }
    .bm-hamburger-btn { display: none !important; }

    /* Уменьшить высоту хедера */
    header.sticky-top .container-fluid { padding-top: 0 !important; padding-bottom: 0 !important; }
    .bm-hgrid { min-height: 52px !important; }
}

/* ═══ Bold Split header fixes ═══ */
.bm-brand-sub { display: block !important; font-size: 11px !important; letter-spacing: 2.5px !important; text-transform: uppercase !important; color: #555 !important; }
.bm-brand-name { font-size: 18px !important; font-weight: 800 !important; }
.bm-brand-bowling { color: #fff !important; }
.bm-brand-market { color: #c8102e !important; }
.bm-brand-icon-wrap { width: 46px !important; height: 46px !important; }
.bm-center-col { display: flex !important; flex: 1 !important; padding: 0 20px !important; align-items: center !important; height: 100% !important; background: #111 !important; border-right: 1px solid #222 !important; gap: 16px !important; }
.bm-search-wrap { position: relative !important; flex: 0 1 280px !important; }
.bm-search-form { display: flex !important; width: 100% !important; height: 44px !important; background: #0a0a0a !important; border: 2px solid #222 !important; border-radius: 12px !important; overflow: hidden !important; max-width: 100% !important; }
.bm-search-form:focus-within { border-color: #c8102e !important; }
.bm-search-input { flex: 1 !important; display: block !important; background: transparent !important; border: none !important; outline: none !important; padding: 0 12px !important; font-size: 13px !important; color: #e0e0e0 !important; }
.bm-search-btn { display: flex !important; border: none !important; background: #c8102e !important; color: #fff !important; padding: 0 14px !important; cursor: pointer !important; align-items: center !important; justify-content: center !important; height: 100% !important; flex-shrink: 0 !important; }
.bm-search-btn:hover { background: #e01535 !important; }

/* ═══ VITRINA HEADER POLISH (consolidated) ═══ */

/* Brand block */
.bm-brand-sub {
    display: block !important;
    font-size: 10px !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    color: #666 !important;
    white-space: nowrap !important;
}

/* Center column: catalog + search + phone */
.bm-center-col {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 0 20px !important;
    flex: 1 !important;
}

/* Search field */
.bm-search-wrap {
    position: relative !important;
    flex: 0 1 340px !important;
    max-width: 340px !important;
}
.bm-search-form {
    display: flex !important;
    height: 40px !important;
    border-radius: 10px !important;
}

/* Phone */
.bm-phone-ico {
    display: inline-flex !important;
    color: #c8102e !important;
    font-size: 15px !important;
}
.bm-phone-num {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #ddd !important;
}

/* Actions column */
.bm-actions-col {
    gap: 8px !important;
}

/* Show account and cart buttons */
.bm-actions-col > a.bm-cart-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
}

/* Hamburger slightly less prominent */
.bm-hamburger-btn.bm-cart-btn {
    display: flex !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    border-color: #2a2a2a !important;
    color: #777 !important;
}
.bm-hamburger-btn.bm-cart-btn:hover {
    border-color: #444 !important;
    color: #ccc !important;
}

/* Catalog button in center col */
.bm-center-col .bm-btn-catalog {
    height: 40px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* show envelope in center col */
.bm-center-col > a.bm-cart-btn { display:flex !important; align-items:center !important; justify-content:center !important; }


/* unified brand */
.bm-brand-icon-wrap { width: 50px !important; height: 50px !important; border-radius: 14px !important; }
.bm-brand-name { font-size: 22px !important; font-weight: 800 !important; gap: 6px !important; }
.bm-brand-sub { font-size: 11px !important; letter-spacing: 2.5px !important; color: #666 !important; margin-top: 2px !important; }
.bm-brand-link { gap: 14px !important; }

/* ═══ UNIFIED ACTION BUTTONS ═══ */
.bm-btn-login {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #999 !important;
    padding: 0 12px !important;
    height: 40px !important;
    border-radius: 10px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s !important;
}
.bm-btn-login:hover {
    border-color: #555 !important;
    color: #fff !important;
    text-decoration: none !important;
}
.bm-btn-login i { font-size: 15px !important; }

.bm-cart-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #aaa !important;
    text-decoration: none !important;
    font-size: 16px !important;
    transition: all 0.2s !important;
    flex-shrink: 0 !important;
    position: relative !important;
}
.bm-cart-btn:hover {
    border-color: #c8102e !important;
    color: #fff !important;
    text-decoration: none !important;
}
.bm-cart-badge {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    background: #c8102e !important;
    color: #fff !important;
    font-size: 10px !important;
    min-width: 16px !important;
    height: 16px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Space Grotesk', sans-serif !important;
}

.bm-hamburger-btn.bm-cart-btn {
    border-color: #2a2a2a !important;
    color: #777 !important;
}
.bm-hamburger-btn.bm-cart-btn:hover {
    border-color: #444 !important;
    color: #ccc !important;
}

/* mobile search fix */
@media (max-width: 768px) {
    .bm-mobile-header__search { width:100% !important; }
    .bm-mobile-header__search form { display:flex !important; width:100% !important; height:40px !important; }
    .bm-mobile-header__search input[type=text] { flex:1 1 auto !important; width:100% !important; min-width:0 !important; box-sizing:border-box !important; }
    .bm-mobile-header__search button { flex-shrink:0 !important; }
}

@media (max-width: 768px) {
  .bm-mobile-header__search form {
    display: grid !important;
    grid-template-columns: 1fr 42px !important;
    align-items: stretch !important;
  }
  .bm-mobile-header__search input[type=text] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
  }
  .bm-mobile-header__search button {
    width: 42px !important;
    padding: 0 !important;
  }
}


/* ===== CONTACT FORM POLISH (P1 prod-diagnostics 2026-04-22) =====
   Жалобы: мелкие шрифты, кривые поля, оранжевая кнопка.
   Патч overrides Bootstrap utility classes (w-100 p-2 border border-gray)
   таргетируя только industrial-contactform-popup / форму внутри него,
   чтобы не затронуть другие формы темы.
*/
#industrial-contactform-popup .wa-field {
    padding: 8px 24px !important;
}
#industrial-contactform-popup input[type="text"],
#industrial-contactform-popup input[type="email"],
#industrial-contactform-popup input[type="tel"],
#industrial-contactform-popup input[type="search"],
#industrial-contactform-popup textarea {
    height: 48px;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    border: 1px solid #d0d0d0 !important;
    background: #fff !important;
    font-family: 'Fira Sans', sans-serif !important;
    font-size: 15px !important;
    color: #1a1a1a !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}
#industrial-contactform-popup textarea {
    height: 120px;
    resize: vertical;
}
#industrial-contactform-popup input::placeholder,
#industrial-contactform-popup textarea::placeholder {
    color: #888 !important;
    font-size: 14px !important;
    opacity: 1 !important;
}
#industrial-contactform-popup input:focus,
#industrial-contactform-popup textarea:focus {
    border-color: #c8102e !important;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12) !important;
    outline: none !important;
}
#industrial-contactform-popup .wa-error {
    border-color: #c8102e !important;
}
#industrial-contactform-popup .wa-error-msg {
    color: #c8102e !important;
    font-size: 13px !important;
    display: block;
    margin-top: 4px;
}

/* Submit button — фирменный красный, Space Grotesk uppercase */
#industrial-contactform-popup .btn.btn-theme-color,
#industrial-contactform-popup input[type="submit"].btn-theme-color,
#industrial-contactform-popup button[type="submit"].btn-theme-color {
    background: #c8102e !important;
    border-color: #c8102e !important;
    color: #fff !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 14px 32px !important;
    border-radius: 8px !important;
    height: auto !important;
    transition: background 0.15s !important;
}
#industrial-contactform-popup .btn.btn-theme-color:hover,
#industrial-contactform-popup input[type="submit"].btn-theme-color:hover,
#industrial-contactform-popup button[type="submit"].btn-theme-color:hover {
    background: #e01535 !important;
    border-color: #e01535 !important;
}

/* Заголовок и описание модалки */
#industrial-contactform-popup h3,
#industrial-contactform-popup #industrial-contactform-container h3 {
    font-family: 'Syne', 'Montserrat', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 12px !important;
    padding-top: 16px !important;
}
#industrial-contactform-popup p {
    font-family: 'Fira Sans', sans-serif !important;
    font-size: 15px !important;
    color: #555 !important;
    line-height: 1.5 !important;
}

/* Чекбокс согласия — крупнее */
#industrial-contactform-popup .custom-control-label {
    font-size: 13px !important;
    color: #666 !important;
}
#industrial-contactform-popup .custom-control-label a {
    color: #c8102e !important;
    text-decoration: underline !important;
}

/* На узких экранах padding меньше */
@media (max-width: 480px) {
    #industrial-contactform-popup .wa-field {
        padding: 6px 14px !important;
    }
    #industrial-contactform-popup input,
    #industrial-contactform-popup textarea {
        font-size: 16px !important;  /* iOS не зумит при ≥16px */
    }
}
