/*
 * Products CSS maintenance map
 * Keep this as one live file for legacy PHP/cache safety.
 * Add new rules inside the closest section below; do not append random overrides at the end.
 * Treat repeated selectors carefully: many are intentional responsive/cascade overrides.
 */

/* === Products CSS: base product page columns and breadcrumbs === */
body.ProductsPage {
  --products-sidebar-sticky-top:53px;
  --products-sidebar-bottom-gap:10px;
  --products-sidebar-visible-height:calc(100vh - var(--products-sidebar-sticky-top) - var(--products-sidebar-bottom-gap));
  --products-sidebar-left:20px;
  --products-sidebar-width:310px;
  --products-filter-actions-bottom:15px;
  --products-filter-actions-clearance:50px;
}
.column {
  display:inline-block;
  vertical-align:top;
}
.column.left {
  max-width:300px;
  width:300px;
  margin-right:20px;
  box-sizing:border-box;
  -moz-box-sizing:border-box;
}
body.details .products_wrap > .column.left {
  margin-top:65px;
}
.products_breadcrumb_fullscreen {
  display:block;
  width:100%;
  margin:0 0 25px 0;
  padding:0;
  clear:both;
  box-sizing:border-box;
  -moz-box-sizing:border-box;
}
.caption.category_path {
  display:block;
  border-bottom: solid 1px #dddddd;
}
h1.caption,
h2.caption {
  display:block;
  margin:0;
  font:inherit;
  font-weight:inherit;
  line-height:inherit;
}
body.details h1.caption.product {
  font-size:24px;
  font-weight:700;
  line-height:1.2;
}
.inline_category_h1 {
  display:inline;
  margin:0;
  padding:0;
  font:inherit;
  font-weight:inherit;
  line-height:inherit;
}
.inline_category_h1 A {
  font:inherit;
}
body.products .caption.category_path .inline_category_h1 A,
body.products .caption.category_path .category_path_current A {
  color:#e3262e;
}
.caption.category_path A {
  color:#222222;
  font-size:14px;
  -webkit-tap-highlight-color:transparent;
  tap-highlight-color:transparent;
}
.caption.category_path A:focus,
.caption.category_path A:active {
  background:transparent;
  outline:0;
  box-shadow:none;
}

/* Visual-only home icon in product breadcrumbs: keep href/rel/text/schema unchanged. */
.caption.category_path A[href="/"][rel="Начало"] {
  display:inline-block;
  width:22px;
  height:22px;
  overflow:hidden;
  color:transparent;
  font-size:0;
  line-height:22px;
  text-align:center;
  vertical-align:middle;
  text-transform:none;
}
.caption.category_path A[href="/"][rel="Начало"]:before {
  content:"\f015";
  display:inline-block;
  color:#222222;
  font-family:"Font Awesome 5 Free";
  font-size:18px;
  font-weight:900;
  line-height:18px;
  text-rendering:auto;
  -webkit-font-smoothing:antialiased;
}
body.details .product_detail_anchor {
  scroll-margin-top:var(--products-sidebar-sticky-top);
}
.product_info_mobile_nav {
  display:none;
}
.product_info_nav_section .product_info_nav_list {
  padding:8px;
  display:flex;
  flex-direction:column;
  row-gap:0px;
  background-color:#3a3a3a;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom-left-radius:10px;
  border-bottom-right-radius:10px;
}
.product_info_nav_list .item {
  display:block;
  margin:5px 0;
  padding:5px 10px;
  border-radius:8px;
  color:#d7d7d7;
  font-size:17px;
  line-height:1.25;
  text-decoration:none;
}
.product_info_nav_list .item:hover {
  background:transparent;
  box-shadow:none;
  color:#d7d7d7;
  outline:0;
}
.product_info_nav_list .item.is_active {
  background:rgba(227,38,46,0.18);
  box-shadow:inset 3px 0 0 #e3262e;
  color:#ffffff;
  outline:0;
}
.product_info_nav_list .item:focus {
  outline:0;
}
.product_info_highlights_section {
  margin-top:12px;
}
.product_info_highlights_mobile {
  display:none;
}
.product_info_highlights_section .product_info_highlights_list {
  padding:8px;
  background:#3a3a3a;
  border-top:1px solid rgba(255,255,255,0.12);
  border-bottom-left-radius:10px;
  border-bottom-right-radius:10px;
}
.product_info_highlight_item {
  padding:5px 10px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.product_info_highlight_item:last-child {
  border-bottom:0;
}
.product_info_highlight_name {
  display:block;
  color:#d7d7d7;
  font-size:15px;
  line-height:1.25;
}
.product_info_highlight_value {
  display:block;
  margin-top:5px;
  color:#ffffff;
  font-size:15px;
  line-height:1.25;
  font-weight:600;
}
.product_sidebar_buy_card {
  display:none;
}
.column.left .caption {
  background: #3a3a3a;
  color:#d5d5d5;
  font-weight:600;
  padding:13px 15px;
  text-align:center;
  text-transform:uppercase;
  border-top-left-radius:10px;
  border-top-right-radius:10px;
}
.products_wrap .column.left .section:first-child > .caption {
  padding:13px 15px;
  background:#3a3a3a;
  border:1px solid rgba(255,255,255,0.08);
  border-bottom:0;
  color:#d5d5d5;
  font-size:15px;
  line-height:1.2;
  letter-spacing:0.02em;
  text-transform:uppercase;
  box-sizing:border-box;
}

/* === Category tree / left navigation inside product pages === */
.products_wrap .column.left .TreeView[source='ProductCategoriesBean'] {
  width:100%;
  max-width:100%;
  padding:5px;
  background:#3a3a3a;
  background-image:none;
  border:1px solid rgba(255,255,255,0.08);
  border-top:1px solid rgba(255,255,255,0.12);
  border-bottom-left-radius:10px;
  border-bottom-right-radius:10px;
  box-shadow:none;
  font-size:14px;
  box-sizing:border-box;
}
.products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .NodeChilds {
  margin:0;
  padding-left:12px;
}
.products_wrap .column.left .TreeView[source='ProductCategoriesBean'] > .NodeChilds {
  padding-left:0;
}
.products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .NodeOuter {
  margin:1px 0;
}
.products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .Node {
  display:flex;
  align-items:center;
  min-height:32px;
  padding:8px 9px;
  border-radius:9px;
  box-sizing:border-box;
  transition:background-color .14s ease, color .14s ease;
}
.products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .Node .ActionRenderer[action='TextTreeItemAction'] {
  display:block;
  flex:1 1 auto;
  min-width:0;
  color:#d7d7d7;
  font-size:14px;
  line-height:1.25;
  text-decoration:none;
}
.products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .Node:hover {
  background:rgba(255,255,255,0.07);
}
.products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .Node:hover .ActionRenderer[action='TextTreeItemAction'] {
  color:#ffffff;
}
.products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .Node[active="1"] {
  background:rgba(227,38,46,0.18);
  box-shadow:inset 3px 0 0 #e3262e;
}
.products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .Node[active="1"] .ActionRenderer[action='TextTreeItemAction'] {
  color:#ffffff;
  font-weight:600;
}
.products_wrap .column.left .products_catalog_categories_section.is_collapsed .TreeView[source='ProductCategoriesBean'] {
  display:none;
}
.products_wrap .column.left .products_catalog_categories_section.is_expanded .TreeView[source='ProductCategoriesBean'] {
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
}
.products_wrap .column.left .products_catalog_categories_section .catalog_categories_summary {
  padding:5px 10px 7px;
  background:#3a3a3a;
  border:0;
  border-top-left-radius:0;
  border-top-right-radius:0;
  border-bottom-left-radius:10px;
  border-bottom-right-radius:10px;
  box-sizing:border-box;
  text-align:center;
  user-select:none;
  -webkit-user-select:none;
  -webkit-touch-callout:none;
  caret-color:transparent;
}
.products_wrap .column.left .products_catalog_categories_section .catalog_categories_toggle {
  display:block;
  width:24px;
  height:20px;
  min-height:0;
  margin:0 auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:inherit;
  font:inherit;
  line-height:1;
  text-align:center;
  cursor:pointer;
  outline:0;
  box-shadow:none;
  -webkit-appearance:none;
  appearance:none;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
  -webkit-user-select:none;
  -webkit-touch-callout:none;
  caret-color:transparent;
}
.products_wrap .column.left .products_catalog_categories_section .catalog_categories_toggle_arrow {
  display:inline-block;
  width:8px;
  height:8px;
  margin:0;
  border-right:2px solid #e3262e;
  border-bottom:2px solid #e3262e;
  transform:translateY(-2px) rotate(45deg);
  transition:transform .16s ease;
  pointer-events:none;
  user-select:none;
  -webkit-user-select:none;
  caret-color:transparent;
}
.products_wrap .column.left .products_catalog_categories_section.is_expanded .catalog_categories_toggle_arrow {
  transform:translateY(2px) rotate(-135deg);
}
.products_wrap .column.left .products_catalog_categories_section .catalog_categories_toggle:hover,
.products_wrap .column.left .products_catalog_categories_section .catalog_categories_toggle:focus,
.products_wrap .column.left .products_catalog_categories_section .catalog_categories_toggle:active {
  background:transparent;
  color:#ffffff;
  outline:0;
  box-shadow:none;
}
.products_wrap .column.left .products_catalog_categories_section.is_expanded .catalog_categories_summary {
  box-shadow:none;
}

/* Desktop category-tree toggle affordance. */
@media (min-width:901px) {
  .products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .Node .Handle {
    display:flex;
    flex:0 0 18px;
    width:18px;
    min-width:18px;
    height:22px;
    align-items:center;
    justify-content:center;
    text-align:center;
    cursor:pointer;
  }
  .products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .Node .Handle .Button {
    display:flex;
    align-items:center;
    justify-content:center;
    width:18px;
    height:18px;
    min-width:18px;
    min-height:18px;
    max-width:18px;
    max-height:18px;
    border:0;
    border-radius:999px;
    background:rgba(255,255,255,0.06);
    background-image:none;
    color:#ffffff;
    font-family:Arial, Helvetica, sans-serif;
    font-size:0;
    line-height:1;
    text-align:center;
    box-sizing:border-box;
  }
  .products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .Node .Handle .Button:before {
    content:"›";
    display:flex;
    align-items:center;
    justify-content:center;
    width:18px;
    height:18px;
    color:#ffffff;
    font-size:18px;
    line-height:1;
    text-align:center;
    transform:none;
    transform-origin:50% 50%;
  }
  .products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .Node[branch_type="opened"] .Handle .Button:before {
    transform:rotate(90deg);
  }
  .products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .Node[branch_type="leaf"] .Handle {
    cursor:default;
  }
  .products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .Node[branch_type="leaf"] .Handle .Button {
    background:transparent;
    background-image:none;
  }
  .products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .Node[branch_type="leaf"] .Handle .Button:before {
    content:"•";
    color:#e3262e;
    font-size:16px;
    transform:none;
  }
  .products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .Node .ActionRenderer[action='TextTreeItemAction'] {
    margin-left:6px;
  }
  .products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .Node[branch_type="closed"] .Handle:hover .Button,
  .products_wrap .column.left .TreeView[source='ProductCategoriesBean'] .Node[branch_type="opened"] .Handle:hover .Button {
    background:rgba(227,38,46,0.22);
    color:#ffffff;
  }
}


