/* СИС: правки поверх темы OPC080189_2 (QA 2026-10-28). Мобильное — внизу. */

/* --- общее --- */
.sis-subcats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 20px; }
.sis-subcats a { border: 1px solid #0037D7; color: #0037D7; padding: 6px 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.sis-subcats a:hover { background: #0037D7; color: #fff; }
.sis-cat-tree, .sis-cat-tree ul { list-style: none; padding-left: 0; }
.sis-cat-tree ul { padding-left: 14px; }
.sis-cat-tree li { display: block !important; }
.sis-cat-tree li ul { display: block !important; }
.sis-cat-tree a { display: block; padding: 5px 0; }
.sis-cat-tree a.active { color: #0037D7; font-weight: 600; }

/* инстаграм-блок: сетка вместо карусели */
.sis-insta { padding: 30px 0 0; text-align: center; clear: both; }
.sis-insta-head { font-size: 24px; }
.sis-insta-handle { font-size: 55px; color: #21409A; line-height: 1.2; margin-bottom: 20px; }
.sis-insta-handle a { color: inherit; }
.sis-insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.sis-insta-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

/* страницы */
.sis-page h3 { font-size: 16px; text-transform: uppercase; margin: 24px 0 10px; }
.sis-page ol, .sis-page ul { padding-left: 20px; }
.sis-page li { margin-bottom: 6px; }
.sis-page-design > .page-title { display: none; }
.sis-contacts p { font-size: 16px; margin-bottom: 12px; }
.sis-sitemap ul { padding-left: 18px; }

/* поиск-форма в шапке */
form#search { margin: 0; }

/* корзина */
.sis-agree { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: normal; margin: 0 12px 10px 0; text-align: left; }
.sis-agree input { margin-top: 3px; flex: none; }
#checkout-cart h2 { font-size: 28px; }

/* --- планшет --- */
@media (max-width: 991px) {
  .sis-insta-grid { grid-template-columns: repeat(2, 1fr); }
  .category_filter { position: static !important; float: none !important; width: 100% !important; margin: 0 0 12px !important; display: block; overflow: hidden; clear: both; }
  .category_filter .pagination-right { float: right !important; position: static !important; }
  .breadcrumb { position: static !important; }
  .box.category { display: none !important; }
}

/* --- телефоны --- */
@media (max-width: 767px) {
  /* полоса доставки — в одну строку */
  .notify-info-wl p { font-size: 11px !important; line-height: 1.3 !important; padding-right: 26px; }

  /* шапка: поиск компактнее */
  .header_search { margin: 4px 0 8px !important; }
  .header_search .form-control.input-lg { height: 32px; font-size: 13px; }

  /* зоны тапа в шапке и футере */
  .mobile-trigger { padding: 10px 6px; margin: -10px -6px; }
  #cart > button, #search .btn { min-width: 40px; min-height: 40px; }
  #footer a[href^="tel"], #footer a[href^="mailto"], #footer .list-unstyled a { display: inline-block; padding: 6px 0; }

  /* кнопка «наверх» мешает — убрать на телефоне */
  .top_button { display: none !important; }

  /* слайдер: выше и плашка поменьше */
  #tltslideshow-0 .tltslide-wrapper img { height: 260px; object-fit: cover; }
  #tltslideshow-0 .tltslide-textbox { padding: 6px 14px !important; width: auto !important; min-width: 0 !important; }
  #tltslideshow-0 .tltslide-textbox h1 { font-size: 14px !important; margin: 0 !important; }

  /* плитки Мужское/Женское: подпись внутри плитки и читаемая */
  .product-thumb.banner .category-title { width: auto !important; bottom: 12px !important; left: 50% !important;
    transform: translateX(-50%) !important; background: rgba(0, 0, 0, .35) !important; padding: 0 12px; white-space: nowrap; }
  .product-thumb.banner .category-title h4 { margin: 6px 0 !important; font-size: 15px !important; }

  /* товары по 2 в ряд */
  .category_prod .product-layout, .box-product .product-items { width: 50% !important; float: left !important; padding-left: 6px !important; padding-right: 6px !important; }
  .category_prod .product-layout:nth-child(2n+1), .box-product .product-items:nth-child(2n+1) { clear: left; }
  .category_prod, .box-product { margin-left: -6px; margin-right: -6px; }
  .product-details .caption h4, .product-details .caption h4 a { font-size: 13px !important; line-height: 1.3 !important; }
  .product-details .price { font-size: 12px !important; }

  /* каталог: сортировка под крошками, без наложений */
  .category_filter { position: static !important; float: none !important; width: 100% !important; margin: 0 0 12px !important; display: block; overflow: hidden; }
  .category_filter .pagination-right, .category_filter .sort-by-wrapper, .category_filter .show-wrapper { float: none !important; position: static !important; display: flex; align-items: center; gap: 8px; width: 100%; }
  .category_filter .sort-by, .category_filter .sort, .category_filter .show, .category_filter .limit { width: auto !important; padding: 0 !important; float: none !important; }
  .category_filter .sort { flex: 1; }
  .category_filter .sort-by-wrapper { margin-bottom: 6px; }
  #column-left { display: none !important; }
  .page-title { font-size: 30px !important; line-height: 1.15 !important; word-break: normal; }

  /* товар: фото на всю ширину, кнопки размеров под палец */
  .product-left .product-image .image, .product-left .product-image .image a, #tmzoom { width: 100% !important; max-width: 100% !important; }
  #tmzoom { height: auto !important; }
  .theme-button label { min-width: 40px; min-height: 40px; }
  #product .theme-button span, .options-category .theme-button span { min-width: 40px !important; height: 40px !important; line-height: 38px !important; font-size: 14px !important; display: inline-block; text-align: center; }
  #product .theme-button img { width: 32px !important; height: 32px !important; }
  #button-cart { min-height: 44px; }
  .product-right .tab-pane, .product-right .tab-content, #tab-description { float: none !important; width: 100% !important; position: static !important; clear: both; }
  #tab-description { margin-top: 16px; }

  /* страницы-витрины (О бренде, Lookbook): без фиксированных высот */
  .sis-page-design .col-sm-6[style] { height: auto !important; padding: 30px 20px !important; }
  .sis-page-design .col-sm-6 .row[style] { height: auto !important; }
  .sis-page-design p[style*="52px"] { font-size: 32px !important; margin-bottom: 20px !important; }
  .sis-page-design img { height: auto !important; max-height: 70vh; }

  /* инстаграм */
  .sis-insta-handle { font-size: 34px; }
  .sis-insta-head { font-size: 18px; }

  /* корзина: таблица карточками */
  #checkout-cart .table-responsive { border: 0; }
  #checkout-cart .table-responsive thead { display: none; }
  #checkout-cart .table-responsive tr { display: grid; grid-template-columns: 70px 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid #eee; }
  #checkout-cart .table-responsive td { display: block; border: 0 !important; padding: 0 !important; text-align: left !important; }
  #checkout-cart .table-responsive td:first-child { grid-row: span 4; }
  #checkout-cart .table-responsive td:nth-child(4)::before { content: 'Цена: '; color: #888; }
  #checkout-cart .table-responsive td:nth-child(5)::before { content: 'Сумма: '; color: #888; }
  #checkout-cart .col-sm-offset-8 { margin-left: 0; }
  #checkout-cart h1, #checkout-cart h2 { font-size: 26px !important; }
  #checkout-cart .form-horizontal .control-label { text-align: left; }
  #checkout-cart .buttons .pull-right { float: none !important; }
  #checkout-cart .buttons .btn { width: 100%; min-height: 44px; }

  /* футер: копирайт в самый низ */
  #footer .footer_bottom_left { display: none !important; }
  .sis-copy-m { display: block !important; }
  /* блок наведения на карточке не нужен на телефоне — тап ведёт в товар */
  .product_hover_block { display: none !important; }
  /* пустой блок «Категории», который тема переносит вниз */
  .box.category { display: none !important; }
}

/* устройства без мыши: блок «наведения» на карточке не показываем — тап ведёт в товар */
@media (hover: none) {
  .product_hover_block { display: none !important; }
  #product .theme-button span { min-width: 40px !important; height: 40px !important; line-height: 38px !important; font-size: 14px !important; display: inline-block; text-align: center; }
  #product .theme-button img { width: 32px !important; height: 32px !important; }
}
.sis-copy-m { display: none; text-align: center; color: #fff; font-size: 12px; padding: 16px 0 4px; clear: both; }
