
/* 3DGameShop: сдвиг логотипа */
@media (min-width: 992px) { .top_logo_line .navbar-brand { margin-left: 80px; } }

/* 3DGameShop: лупа не перекрывает текст в поиске (iOS Safari) */
.smartsearch-title__input { -webkit-appearance: none; appearance: none; padding-left: 52px !important; }

/* 3DGameShop: характеристики в карточке товара не наезжают */
.prod_specif_intro .row.mb-3 > div:first-child { flex: 0 0 135px; max-width: 135px; }
.prod_specif_intro .row.mb-3 > div:last-child { flex: 1 1 0; max-width: none; }
.prod_specif_intro_title { white-space: nowrap; padding-right: 8px; }

/* 3DGameShop: баннер Trade-in на главной — на всю ширину, кольца «ИГРАЙ!» вращаются (2026-10-31) */
.row > div:has(> .trade-in-block) { flex: 0 0 100%; max-width: 100%; }
body .trade-in-block {
    background-image: url("/bitrix/templates/3Dgameshop/img/igrai-rings.svg?v=5"), url("/bitrix/templates/3Dgameshop/img/trade_in_bg.jpg?v=1") !important;
    background-size: auto 150%, cover !important;
    background-position: right -250px center, 0 0 !important;
    background-repeat: no-repeat !important;
}
@media (max-width: 768px) {
    body .trade-in-block {
        background-size: auto 120%, cover !important;
        background-position: right -260px center, left center !important;
    }
}

/* баннер Trade-in: 75% ширины на компьютере, справа место под второй баннер */
@media (min-width: 992px) { .row > div:has(> .trade-in-block) { flex: 0 0 75%; max-width: 75%; } }

/* 3DGameShop: классы Bootstrap 3 для старых шаблонов каталога
   (после обновления ядра 26.10 файл /bitrix/css/main/bootstrap.css удалён) */
.row > [class*="col-xs-"] { position: relative; width: 100%; }
.row > .col-xs-12 { flex: 0 0 100%; max-width: 100%; }
.row > .col-xs-6  { flex: 0 0 50%;  max-width: 50%; }
.row > .col-xs-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
.row > .col-xs-3  { flex: 0 0 25%;  max-width: 25%; }
@media (max-width: 767px) { .hidden-xs { display: none !important; } }

/* 3DGameShop: плитки подразделов — одинаковые (2026-10-31) */
.subcat_block { height: 170px; transition: box-shadow .2s ease, border-color .2s ease; }
.subcat_block:hover { border-color: #00c900; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.subcat_block > a { display: flex !important; flex-direction: column; height: 100%; padding: 14px 14px 10px; line-height: 1.3; }
.subcat_block > a img { width: 100% !important; height: 100px !important; object-fit: contain; margin-top: auto; }
.subcat_block > a:not(:has(img))::after { content: ""; display: block; height: 100px; margin-top: auto; border-radius: 8px;
  background: #f4f6f4 url("/bitrix/templates/3Dgameshop/img/gameshop-animated.svg") center / 60% auto no-repeat; opacity: .5; }

/* 3DGameShop: поиск (штатный, шаблон gs) 2026-11-05 */
.serch-desctop .bx-searchtitle, .serch-mobile .bx-searchtitle { width: 100%; margin: 0; }
.serch-mobile { padding: 8px 15px 10px; }
.bx-searchtitle .bx-input-group { display: flex; position: relative; width: 100%; }
.bx-searchtitle .bx-form-control { flex: 1; width: 100%; height: 44px; border: 2px solid #00c900; border-radius: 22px; padding: 0 54px 0 18px; font-size: 15px; background: #fff; outline: none; -webkit-appearance: none; appearance: none; box-shadow: none; }
.bx-searchtitle .bx-form-control:focus { box-shadow: 0 0 0 4px rgba(0,201,0,.15); }
.bx-searchtitle .bx-input-group-btn { position: absolute; right: 4px; top: 4px; }
.bx-searchtitle .bx-input-group-btn button { width: 36px; height: 36px; border: 0; border-radius: 50%; font-size: 0; cursor: pointer; padding: 0;
  background: #00c900 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") center / 18px no-repeat; }
.bx-searchtitle .bx-input-group-btn button i { display: none; }
.title-search-result { border: 1px solid #e6e6e6 !important; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); overflow: hidden; background: #fff; z-index: 1050 !important; }
.title-search-result .bx_searche { padding: 6px 0; }
.title-search-result .bx_item_block { display: flex; align-items: center; min-height: 64px; padding: 4px 12px; }
.title-search-result .bx_item_block:hover { background: #f4fbf4; }
.title-search-result .bx_img_element { flex: 0 0 56px; height: 56px; margin-right: 12px; }
.title-search-result .bx_image { width: 56px; height: 56px; background-size: contain !important; background-repeat: no-repeat; background-position: center; border: 0; border-radius: 6px; }
.title-search-result .bx_item_element { flex: 1; min-width: 0; padding: 0; }
.title-search-result .bx_item_element a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #222; font-size: 14px; margin: 0; }
.title-search-result .bx_item_element a b { color: #00a000; }
.title-search-result .bx_price { color: #000; font-weight: 700; font-size: 14px; margin-top: 2px; }
.title-search-result .bx_price .old { color: #999; font-weight: 400; }
.title-search-result .bx_item_block.all_result { min-height: 44px; justify-content: center; border-top: 1px solid #eee; }
.title-search-result .bx_item_block.all_result a { color: #00a000; font-weight: 600; text-align: center; }
@media (max-width: 767px) { .title-search-result { left: 15px !important; width: calc(100vw - 30px) !important; } }
.title-search-result .bx_img_element:empty, .title-search-result .bx_item_block:has(hr) { display: none; }
.title-search-result .bx_item_block:not(:has(.bx_img_element)):not(.all_result)::before { content: ""; flex: 0 0 56px; height: 56px; margin-right: 12px; border-radius: 6px; background: #f4f6f4 url("/bitrix/templates/3Dgameshop/img/gameshop-animated.svg") center / 75% auto no-repeat; }
.title-search-result .bx_item_block > div[style*="clear"] { display: none; }
.title-search-result .bx_item_block.all_result .bx_item_element { text-align: center; }
.title-search-result .bx_item_block.all_result a { font-size: 15px; }
.title-search-result .bx_img_element:empty, .title-search-result .bx_item_block:has(hr) { display: none; }
.title-search-result .bx_item_block:not(:has(.bx_img_element)):not(.all_result)::before { content: ""; flex: 0 0 56px; height: 56px; margin-right: 12px; border-radius: 6px; background: #f4f6f4 url("/bitrix/templates/3Dgameshop/img/gameshop-animated.svg") center / 75% auto no-repeat; }
.title-search-result .bx_item_block > div[style*="clear"] { display: none; }
.title-search-result .bx_item_block.all_result .bx_item_element { text-align: center; }
.title-search-result .bx_item_block.all_result a { font-size: 15px; }
.title-search-result .bx_item_element { margin-left: 0 !important; padding-left: 0 !important; }
.title-search-result .bx_item_block.others_result { display: none; }

/* поиск: лупа поверх поля, перебиваем старые стили */
.bx-searchtitle .bx-input-group { display: flex !important; position: relative !important; width: 100% !important; }
#title-search-d input.bx-form-control, #title-search input.bx-form-control { flex: 1 1 auto !important; width: 100% !important; height: 44px !important; min-height: 44px !important; border: 2px solid #00c900 !important; border-radius: 22px !important; padding: 0 54px 0 18px !important; font-size: 15px !important; background: #fff !important; position: relative !important; z-index: 1 !important; box-shadow: none !important; margin: 0 !important; }
#title-search-d input.bx-form-control:focus, #title-search input.bx-form-control:focus { box-shadow: 0 0 0 4px rgba(0,201,0,.15) !important; }
.bx-searchtitle .bx-input-group-btn { position: absolute !important; right: 4px !important; top: 50% !important; transform: translateY(-50%) !important; z-index: 5 !important; width: auto !important; height: 36px !important; display: block !important; margin: 0 !important; }
.bx-searchtitle .bx-input-group-btn button { display: block !important; width: 36px !important; height: 36px !important; margin: 0 !important; }
.title-search-result .bx_item_element { margin-left: 0 !important; padding-left: 0 !important; }
.title-search-result .bx_item_block.others_result { display: none; }

/* поиск: в стиле кнопки «Каталог» */
#title-search-d input.bx-form-control, #title-search input.bx-form-control { height: 40px !important; min-height: 40px !important; border: 1px solid #00c900 !important; border-radius: 5px !important; padding: 0 60px 0 16px !important; }
#title-search-d input.bx-form-control:focus, #title-search input.bx-form-control:focus { box-shadow: 0 0 0 3px rgba(0,201,0,.12) !important; }
.bx-searchtitle .bx-input-group-btn { right: 0 !important; top: 0 !important; transform: none !important; height: 40px !important; }
.bx-searchtitle .bx-input-group-btn button { width: 50px !important; height: 40px !important; border-radius: 0 5px 5px 0 !important; background-size: 17px !important; transition: background-color .15s; }
.bx-searchtitle .bx-input-group-btn button:hover { background-color: #00b000 !important; }

/* моб. шапка: логотип в строку, телефон справа, поиск во всю ширину (2026-11-05) */
@media (max-width: 767px) {
  .top_logo_line { display: flex !important; flex-wrap: wrap !important; align-items: center !important; justify-content: space-between !important; padding-top: 4px !important; }
  .top_logo_line .navbar-brand { flex: 0 0 auto; width: auto !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .top_logo_line .navbar-brand img { content: url("/bitrix/templates/3Dgameshop/img/gameshop-line.svg?v=1"); width: 205px !important; height: auto !important; margin: 0 !important; display: block; }
  .top_logo_line .mobile-phone { flex: 0 0 auto !important; max-width: none !important; width: auto !important; line-height: 1 !important; padding: 0 !important; }
  .top_logo_line .mobile-phone a { font-size: 13px !important; white-space: nowrap; }
  .serch-mobile { flex: 0 0 100% !important; width: 100% !important; padding: 12px 0 2px !important; }
  .container.mt-5:has(.owl-carousel) { margin-top: 16px !important; }
}

/* BS3 compat: col-sm/md/lg главнее col-xs (2026-11-05) */
@media (min-width:576px){.row > [class*="col-xs-"].col-sm-1{flex:0 0 8.3333%;max-width:8.3333%}.row > [class*="col-xs-"].col-sm-2{flex:0 0 16.6667%;max-width:16.6667%}.row > [class*="col-xs-"].col-sm-3{flex:0 0 25.0000%;max-width:25.0000%}.row > [class*="col-xs-"].col-sm-4{flex:0 0 33.3333%;max-width:33.3333%}.row > [class*="col-xs-"].col-sm-5{flex:0 0 41.6667%;max-width:41.6667%}.row > [class*="col-xs-"].col-sm-6{flex:0 0 50.0000%;max-width:50.0000%}.row > [class*="col-xs-"].col-sm-7{flex:0 0 58.3333%;max-width:58.3333%}.row > [class*="col-xs-"].col-sm-8{flex:0 0 66.6667%;max-width:66.6667%}.row > [class*="col-xs-"].col-sm-9{flex:0 0 75.0000%;max-width:75.0000%}.row > [class*="col-xs-"].col-sm-10{flex:0 0 83.3333%;max-width:83.3333%}.row > [class*="col-xs-"].col-sm-11{flex:0 0 91.6667%;max-width:91.6667%}.row > [class*="col-xs-"].col-sm-12{flex:0 0 100.0000%;max-width:100.0000%}}
@media (min-width:768px){.row > [class*="col-xs-"].col-md-1{flex:0 0 8.3333%;max-width:8.3333%}.row > [class*="col-xs-"].col-md-2{flex:0 0 16.6667%;max-width:16.6667%}.row > [class*="col-xs-"].col-md-3{flex:0 0 25.0000%;max-width:25.0000%}.row > [class*="col-xs-"].col-md-4{flex:0 0 33.3333%;max-width:33.3333%}.row > [class*="col-xs-"].col-md-5{flex:0 0 41.6667%;max-width:41.6667%}.row > [class*="col-xs-"].col-md-6{flex:0 0 50.0000%;max-width:50.0000%}.row > [class*="col-xs-"].col-md-7{flex:0 0 58.3333%;max-width:58.3333%}.row > [class*="col-xs-"].col-md-8{flex:0 0 66.6667%;max-width:66.6667%}.row > [class*="col-xs-"].col-md-9{flex:0 0 75.0000%;max-width:75.0000%}.row > [class*="col-xs-"].col-md-10{flex:0 0 83.3333%;max-width:83.3333%}.row > [class*="col-xs-"].col-md-11{flex:0 0 91.6667%;max-width:91.6667%}.row > [class*="col-xs-"].col-md-12{flex:0 0 100.0000%;max-width:100.0000%}}
@media (min-width:992px){.row > [class*="col-xs-"].col-lg-1{flex:0 0 8.3333%;max-width:8.3333%}.row > [class*="col-xs-"].col-lg-2{flex:0 0 16.6667%;max-width:16.6667%}.row > [class*="col-xs-"].col-lg-3{flex:0 0 25.0000%;max-width:25.0000%}.row > [class*="col-xs-"].col-lg-4{flex:0 0 33.3333%;max-width:33.3333%}.row > [class*="col-xs-"].col-lg-5{flex:0 0 41.6667%;max-width:41.6667%}.row > [class*="col-xs-"].col-lg-6{flex:0 0 50.0000%;max-width:50.0000%}.row > [class*="col-xs-"].col-lg-7{flex:0 0 58.3333%;max-width:58.3333%}.row > [class*="col-xs-"].col-lg-8{flex:0 0 66.6667%;max-width:66.6667%}.row > [class*="col-xs-"].col-lg-9{flex:0 0 75.0000%;max-width:75.0000%}.row > [class*="col-xs-"].col-lg-10{flex:0 0 83.3333%;max-width:83.3333%}.row > [class*="col-xs-"].col-lg-11{flex:0 0 91.6667%;max-width:91.6667%}.row > [class*="col-xs-"].col-lg-12{flex:0 0 100.0000%;max-width:100.0000%}}
@media (min-width:1200px){.row > [class*="col-xs-"].col-xl-1{flex:0 0 8.3333%;max-width:8.3333%}.row > [class*="col-xs-"].col-xl-2{flex:0 0 16.6667%;max-width:16.6667%}.row > [class*="col-xs-"].col-xl-3{flex:0 0 25.0000%;max-width:25.0000%}.row > [class*="col-xs-"].col-xl-4{flex:0 0 33.3333%;max-width:33.3333%}.row > [class*="col-xs-"].col-xl-5{flex:0 0 41.6667%;max-width:41.6667%}.row > [class*="col-xs-"].col-xl-6{flex:0 0 50.0000%;max-width:50.0000%}.row > [class*="col-xs-"].col-xl-7{flex:0 0 58.3333%;max-width:58.3333%}.row > [class*="col-xs-"].col-xl-8{flex:0 0 66.6667%;max-width:66.6667%}.row > [class*="col-xs-"].col-xl-9{flex:0 0 75.0000%;max-width:75.0000%}.row > [class*="col-xs-"].col-xl-10{flex:0 0 83.3333%;max-width:83.3333%}.row > [class*="col-xs-"].col-xl-11{flex:0 0 91.6667%;max-width:91.6667%}.row > [class*="col-xs-"].col-xl-12{flex:0 0 100.0000%;max-width:100.0000%}}
