/* Kibernet palette overlay: keep layout, change only colors */
:root {
  --kb-red: #c10101;
  --kb-red-hover: #a00909;
  --kb-black: #1f2022;
  --kb-black-2: #252525;
  --kb-text: #707070;
  --kb-border: #e5e5e5;
}

html, body {
  background: #fff !important;
  color: var(--kb-text) !important;
}

a { color: var(--kb-black); }
a:hover, a:focus { color: var(--kb-red); }

/* Top bar */
.top_nav {
  background: #fff !important;
  border-bottom: 1px solid var(--kb-border);
}
.top_nav .menu_link,
.top_nav a,
.top_nav .informer_name,
.top_nav .dropdown_item { color: var(--kb-black) !important; }

/* Header strip */
.header_bottom {
  background-color: var(--kb-red) !important;
}

/* Search row */
.search {
  background-color: var(--kb-black-2) !important;
}
.search_button {
  background: var(--kb-red) !important;
}
.search_button:hover {
  background: var(--kb-red-hover) !important;
}

/* Catalog block + submenu */
.categories_heading {
  background-color: var(--kb-red) !important;
  color: #fff !important;
}
.categories_nav {
  background-color: var(--kb-red) !important;
  border-top-color: var(--kb-red-hover) !important;
  color: #fff !important;
}
.category_link {
  border-bottom-color: var(--kb-red-hover) !important;
  color: #fff !important;
}
.category_item .arrow_right { color: #fff !important; }
.subcategory {
  background: var(--kb-black-2) !important;
}
.subcategory .category_link {
  border-bottom-color: #3a3a3a !important;
  color: #fff !important;
}

/* Buttons */
.callback,
.button,
.btn,
.purchase_button,
.subscribe_button,
.look_all a,
input[type=submit],
button[type=submit] {
  background: var(--kb-red) !important;
  border-color: var(--kb-red) !important;
  color: #fff !important;
}
.callback:hover,
.button:hover,
.btn:hover,
.purchase_button:hover,
.subscribe_button:hover,
.look_all a:hover,
input[type=submit]:hover,
button[type=submit]:hover {
  background: var(--kb-red-hover) !important;
  border-color: var(--kb-red-hover) !important;
}

/* Footer */
.footer_top {
  background: #ffffff !important;
  color: #1f2022 !important;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}
.footer_bottom {
  background: var(--kb-black) !important;
  color: #ffffff !important;
}
.footer_top,
.footer_top .foot_item,
.footer_top .foot_title,
.footer_top .foot_item_title,
.footer_top p,
.footer_top span,
.footer_top li,
.footer_bottom,
.footer_bottom p,
.footer_bottom span,
.footer_bottom .copyright,
.footer a {
  color: #ffffff !important;
}

/* Keep subscribe input readable */
.footer_top input,
.footer_top input::placeholder,
.footer_top textarea {
  color: #1f2022 !important;
}

.payments_text { color: #1f2022 !important; }
.footer_payment img { filter: none; }


/* Payment strip text on white background */
.footer_top,
.footer_top .payments_text,
.footer_top span {
  color: #1f2022 !important;
}

/* Exact request: burgundy search inside, red submenu with black borders */
.search {
  background-color: #7b0000 !important; /* burgundy inside search line */
}
.search_input {
  color: #ffffff !important;
}
.search_input::placeholder {
  color: #e6d7d7 !important;
}

.categories_nav,
.subcategory {
  background-color: #c10101 !important;
  border-left: 1px solid #1f2022 !important;
  border-right: 1px solid #1f2022 !important;
}
.categories_nav {
  border-top: 1px solid #1f2022 !important;
}
.category_link,
.subcategory .category_link {
  border-bottom: 1px solid #1f2022 !important;
  color: #ffffff !important;
}
.category_item .arrow_right {
  color: #1f2022 !important;
}

/* responsive submenu panel from old CSS snippets */
@media (max-width: 991px) {
  .categories_nav,
  .subcategory {
    width: 270px;
    border-left: 1px solid #1f2022 !important;
    border-right: 1px solid #1f2022 !important;
    padding-left: 23px;
  }
}


/* Product mini-cards: full borders on all sides */
.products_item,
.products_item .product,
.products_item .product_inner,
.main_products .products_item,
.main_products .products_item .product {
  border: 1px solid #e5e5e5 !important;
  box-sizing: border-box;
  background: #fff;
}
.main_products .products_item {
  transition: box-shadow .18s ease, transform .18s ease;
  margin-left: -1px; /* unify grid seams */
  margin-top: -1px;
}


/* Card border conflict fix: no protruding corners, no double hover border */
.main_products .products_item,
.products_item {
  transition: box-shadow .18s ease, transform .18s ease;
  margin-left: 0 !important;
  margin-top: 0 !important;
  border: 1px solid #e5e5e5 !important;
  box-shadow: none !important;
  overflow: hidden;
}

.products_item .product,
.products_item .product_inner {
  border: none !important;
  box-shadow: none !important;
}

#fn_content .products_item:hover,
.main_products .products_item:hover,
.products_item:hover {
  position: relative;
  z-index: 3;
  box-shadow: 0 0 0 2px #c10101, 0 10px 24px rgba(31, 32, 34, 0.18) !important;
}

/* Смотреть все should be plain text-link */
.look_all a {
  background: transparent !important;
  border: none !important;
  color: #606060 !important;
  text-decoration: underline;
  padding: 0 !important;
}
.look_all a:hover {
  background: transparent !important;
  color: #c10101 !important;
}


/* Lower blocks border fix (Brands + News) */
.fn_all_brands,
.news,
.blog {
  position: relative;
}

/* Brand tiles: full border on each cell */
.fn_all_brands .fleft,
.all_brands .fleft,
.brand_item {
  border: 1px solid #e5e5e5 !important;
  box-sizing: border-box;
  margin-left: -1px;
  margin-top: -1px;
  background: #fff;
}
.all_brands_link,
.brand_link {
  border: none !important;
  box-shadow: none !important;
}

/* News/blog cards: full border on each card */
.news .blog_item,
.blog .blog_item,
.news .news_item {
  border: 1px solid #e5e5e5 !important;
  box-shadow: none !important;
  margin-left: -1px;
  margin-top: -1px;
  background: #fff;
  box-sizing: border-box;
}


/* Search icon button: black background */
.search_button {
  background: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
}
.search_button:hover {
  background: #1f2022 !important;
  border-color: #1f2022 !important;
}


/* Brands block: enforce side borders on first/last cells */
.fn_all_brands,
.all_brands {
  border-left: 1px solid #e5e5e5 !important;
  border-right: 1px solid #e5e5e5 !important;
}
.fn_all_brands .fleft:first-child,
.all_brands .fleft:first-child,
.brand .brand_item:first-child {
  border-left: 1px solid #e5e5e5 !important;
}
.fn_all_brands .fleft:last-child,
.all_brands .fleft:last-child,
.brand .brand_item:last-child {
  border-right: 1px solid #e5e5e5 !important;
}

/* hide share globally */
.product_share,
.post_share,
.foot_social,
.fn_share,
.jssocials {
  display: none !important;
}
