/* Igraika / Nextype Magnet visual layer. Business logic remains in the Free theme. */
:root {
    --ig-blue: #0c55cc;
    --ig-blue-dark: #063f9f;
    --ig-text: #424242;
    --ig-heading: #282828;
    --ig-muted: #828282;
    --ig-bg: #f5f5f5;
    --ig-line: #e7e7e7;
    --ig-card: #fff;
    --ig-radius: 4px;
}

html { background: var(--ig-bg); }
body#themeOverride {
    color: var(--ig-text);
    background: var(--ig-bg) !important;
    font-family: Roboto, Arial, sans-serif !important;
    font-size: 16px;
    line-height: 1.45;
}

#themeOverride h1,
#themeOverride h2,
#themeOverride h3,
#themeOverride h4,
#themeOverride .title {
    color: var(--ig-heading);
    font-weight: 700;
}

#themeOverride a { transition: color .2s ease, opacity .2s ease, background-color .2s ease, border-color .2s ease; }
#themeOverride .container { width: 96.984%; max-width: none; }

.header-top--links {
    color: var(--ig-muted);
    background: #fff;
    border-bottom: 1px solid var(--ig-line);
}
.header-top--links .container { min-height: 28px; }
.header-top_nav a { color: var(--ig-text); font-size: 14px; }
.igraika-topline { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.igraika-city a { margin-left: 4px; color: var(--ig-blue) !important; font-weight: 500; }
.igraika-topline__right { display: flex; align-items: center; gap: 34px; }
.igraika-topline__right a { color: var(--ig-text) !important; }
.igraika-topline__right i { margin-right: 5px; font-size: 11px; }

#themeOverride .header {
    background: #fff;
    border-bottom: 1px solid var(--ig-line);
    box-shadow: none;
}
#themeOverride .header > .container {
    min-height: 64px;
    display: flex;
    align-items: center;
}
.header_logo {
    position: relative;
    flex: 0 0 150px;
    width: 150px !important;
    max-width: 150px !important;
    margin-right: 22px;
}
.header_logo img { display: block; width: 150px !important; height: auto !important; }
.header_logo:after {
    content: "ИГРАЙ, УЧИСЬ И РАСТИ ВМЕСТЕ С ИГРАЙКОЙ!";
    position: absolute;
    left: 170px;
    top: 50%;
    width: 205px;
    color: var(--ig-blue);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    transform: translateY(-50%);
}
.header--left { min-width: 390px; }
.header--right { gap: 28px; }
.header--left .nav-cat { display: none !important; }
.Nav-search { max-width: none; }
.Nav-search_form,
.ig-mobile-search form {
    position: relative;
    overflow: hidden;
    background: var(--ig-bg);
    border: 1px solid var(--ig-line);
    border-radius: 30px;
}
.Nav-inp-search {
    height: 44px !important;
    padding: 0 50px 0 20px !important;
    background: transparent !important;
    border: 0 !important;
}
.Nav-search .fi-rr-search { right: 18px; color: var(--ig-blue); }
.Nav-contact-phone { color: var(--ig-heading) !important; font-weight: 700; }
.Nav-contact-callback { color: var(--ig-blue); }

.Nav-product-custom > .product-custom:not(.header__cart) { display: none !important; }
.header__cart .product-custom_icon .icon {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    border-radius: 50%;
}
.header__cart .product-custom--link > span { color: var(--ig-text); font-size: 12px; }

.igraika-info-nav {
    background: #fff;
    border-top: 1px solid var(--ig-line);
}
.igraika-info-nav .container {
    display: flex;
    align-items: center;
    min-height: 38px;
    gap: 30px;
}
.igraika-info-nav a { color: var(--ig-text) !important; font-size: 13px; }
.igraika-info-nav a:hover { color: var(--ig-blue) !important; }

.nav-cat-btn,
#themeOverride .button,
#themeOverride button,
#themeOverride input[type="submit"] {
    border-radius: 30px !important;
}
.nav-cat-btn,
.bg-sdСolor,
.sdСolor,
#themeOverride .button,
#themeOverride input[type="submit"] {
    background-color: var(--ig-blue) !important;
}
#themeOverride .button:hover,
#themeOverride input[type="submit"]:hover { background-color: var(--ig-blue-dark) !important; }

.ig-category-rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 148px;
    padding: 45px 9px 20px;
    background: #fff;
    border-right: 1px solid var(--ig-line);
    box-sizing: border-box;
    z-index: 101;
    overflow-y: auto;
    scrollbar-width: none;
}
.ig-category-rail::-webkit-scrollbar { display: none; }
.ig-rail-catalog,
.ig-category-rail nav > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--ig-text) !important;
    text-align: center;
}
.ig-rail-catalog { gap: 7px; margin-bottom: 25px; font-size: 13px; font-weight: 700; }
.ig-rail-burger {
    display: flex;
    width: 34px;
    height: 34px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: var(--ig-blue);
    border-radius: 50%;
}
.ig-rail-burger i { display: block; width: 19px; height: 2px; background: #fff; border-radius: 1px; }
.ig-category-rail nav > a { gap: 5px; margin: 0 0 16px; font-size: 11px; line-height: 1.2; }
.ig-rail-name { display: none; }
.ig-rail-icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    background: #eef4ff;
    border: 1px solid #e4edfb;
    border-radius: 50%;
}
.ig-rail-icon > span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--ig-blue); }
.ig-rail-icon img { width: 100%; height: 100%; object-fit: contain; }
.ig-category-rail nav > a:hover { color: var(--ig-blue) !important; }
.ig-category-rail nav > a:hover .ig-rail-icon { border-color: var(--ig-blue); }

@media (min-width: 1025px) {
    body#themeOverride { padding-left: 148px; }
    .header.stickyOn { left: 148px; }
    .ig-category-rail ~ .inner-wrap,
    .ig-category-rail ~ main { min-width: 0; }
}

.footer { margin-top: 45px; background: #fff !important; border-top: 1px solid var(--ig-line); }
.footer-box { padding-top: 42px; padding-bottom: 36px; }
.footer-col-title { color: var(--ig-heading); font-weight: 700; }
.footer_menu a { color: var(--ig-text); }
.footer_menu a:hover { color: var(--ig-blue); }

.ig-mobile-search { display: none; }

@media (max-width: 1024px) {
    #themeOverride .container { width: calc(100% - 32px); }
    .ig-category-rail { display: none; }
    body#themeOverride { padding-left: 0; }
    .header_logo:after { display: none; }
    .header--left { min-width: 0; }
}

@media (max-width: 767px) {
    body#themeOverride { padding-bottom: 70px; }
    #themeOverride .container { width: calc(100% - 24px); }
    .header-top--links,
    .igraika-info-nav { display: none !important; }
    #themeOverride .header > .container { min-height: 58px; }
    .header_logo { flex-basis: 115px; width: 115px !important; max-width: 115px !important; margin: 0 auto; }
    .header_logo img { width: 115px !important; }
    .ig-mobile-search { display: block; padding-bottom: 10px; }
    .ig-mobile-search form { display: flex; height: 42px; }
    .ig-mobile-search input { flex: 1; width: 100%; }
    .ig-mobile-search button { width: 46px; padding: 0; color: var(--ig-blue); background: transparent !important; border: 0; }
    .header-burger .product-custom_icon { color: var(--ig-blue); }
    .footer { margin-top: 28px; }
    .footer-box { padding-top: 28px; }
    .fixed-panel {
        background: #fff !important;
        border-top: 1px solid var(--ig-line);
        box-shadow: 0 -5px 18px rgba(0, 0, 0, .06);
    }
    .fixed-panel .product-custom { flex: 1 1 20%; }
    .fixed-panel .product-custom_icon__name { color: var(--ig-text); font-size: 10px; }
}
