/**
 * Eurocars — белый фон и чистая шапка (подключается последним).
 * Главное меню #menu: серые пункты без синей полосы.
 * Подвал .autoeuropa-footer: не трогаем цвета ссылок (theme-modern.css).
 * Цены в карточках: не задаём здесь .price / .price-tag / .product-thumb.
 */

html {
  background-color: #ffffff !important;
}

body,
body .wrapper,
body .main,
body > .container,
#common-home,
#common-home > .container,
#product-category,
#product-product,
#information-information,
.extended-container,
.row.layout-row {
  background-color: #ffffff !important;
}

/* Верхняя сервисная полоса — без лишних серых линий */
#top {
  background-color: #ffffff !important;
  border-bottom: none !important;
  margin-bottom: 12px !important;
}

/* Шапка с логотипом и поиском */
header {
  background-color: #ffffff !important;
  box-shadow: none !important;
}

/* Поиск — кнопка без серого градиента Bootstrap */
#search .btn,
#search .btn-default,
#search .btn-lg,
#search button[type="button"] {
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #e0e0e0 !important;
  color: #333 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

#search .btn:hover,
#search .btn-default:hover,
#search .btn-lg:hover {
  background-color: #fafafa !important;
  border-color: #d0d0d0 !important;
  color: #111 !important;
}

/* Мини-корзина в шапке */
#cart .dropdown-menu {
  background: #ffffff !important;
}

/* ========== Главное меню: серые пункты, без синей полосы ========== */
#menu,
#menu.navbar {
  background-color: #ffffff !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 40px !important;
  margin-bottom: 0 !important;
}

#menu .container,
#menu .navbar-collapse,
#menu .collapse.navbar-collapse {
  background-color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}

#menu .nav > li > a {
  color: #666 !important;
  text-shadow: none !important;
  font-weight: 600 !important;
  padding: 10px 15px !important;
  min-height: 15px !important;
  background-color: transparent !important;
}

#menu .nav > li > a:hover,
#menu .nav > li.open > a {
  background-color: #f5f5f5 !important;
  color: #333 !important;
}

#menu .dropdown-menu {
  padding-bottom: 0 !important;
  border: 1px solid #e8e8e8 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

#menu .dropdown-inner {
  display: table !important;
}

#menu .dropdown-inner ul {
  display: table-cell !important;
}

#menu .dropdown-inner a {
  min-width: 160px !important;
  display: block !important;
  padding: 3px 20px !important;
  clear: both !important;
  line-height: 20px !important;
  color: #333333 !important;
  font-size: 12px !important;
}

#menu .dropdown-inner li a:hover {
  color: #222 !important;
  background-color: #ececec !important;
  background-image: none !important;
}

#menu .see-all {
  display: block !important;
  margin-top: 0.5em !important;
  border-top: 1px solid #e0e0e0 !important;
  padding: 3px 20px !important;
  border-radius: 0 0 3px 3px !important;
  font-size: 12px !important;
  color: #666 !important;
}

#menu .see-all:hover,
#menu .see-all:focus {
  text-decoration: none !important;
  color: #333 !important;
  background-color: #f0f0f0 !important;
  background-image: none !important;
}

#menu #category {
  float: left !important;
  padding-left: 15px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 40px !important;
  color: #666 !important;
  text-shadow: none !important;
}

#menu .btn-navbar {
  font-size: 15px !important;
  color: #666 !important;
  padding: 2px 18px !important;
  float: right !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
}

#menu .btn-navbar:hover,
#menu .btn-navbar:focus,
#menu .btn-navbar:active {
  color: #333 !important;
  background-color: #f8f8f8 !important;
}

@media (min-width: 768px) {
  #menu .dropdown:hover .dropdown-menu {
    display: block !important;
  }
}

@media (max-width: 767px) {
  #menu {
    border-radius: 0 !important;
  }
  #menu div.dropdown-inner > ul.list-unstyled {
    display: block !important;
  }
  #menu div.dropdown-menu {
    margin-left: 0 !important;
    padding-bottom: 10px !important;
    background-color: #fafafa !important;
    border: 1px solid #eee !important;
  }
  #menu .dropdown-inner {
    display: block !important;
  }
  #menu .dropdown-inner a {
    width: 100% !important;
    color: #555 !important;
  }
  #menu .dropdown-menu a:hover,
  #menu .dropdown-menu ul li a:hover {
    background: #ececec !important;
    color: #222 !important;
  }
  #menu .see-all {
    margin-top: 0 !important;
    border-radius: 0 !important;
    border-top: 1px solid #e0e0e0 !important;
    color: #666 !important;
  }
}

/* Колонки каталога и контент */
#content,
.content-wrapper,
#column-left,
#column-right,
#column-left .ocf-filter,
#column-right .ocf-filter,
aside#column-left,
aside#column-right {
  background-color: #ffffff !important;
}

/* Плейсхолдер под фото в списке */
.product-thumb-image {
  background-color: #ffffff !important;
}

/* ========== Главная: сетка карточек (только #common-home) ========== */
/* Ряд карточек модуля (h3 + .row в latest/featured): только он, без других .row в #content */
#common-home #content > h3 + .row::before,
#common-home #content > h3 + .row::after {
  display: none !important;
  content: none !important;
}

#common-home #content > h3 + .row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 16px;
  margin-left: 0;
  margin-right: 0;
}

#common-home #content > h3 + .row > .product-layout {
  float: none !important;
  width: auto !important;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 768px) {
  #common-home #content > h3 + .row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

#common-home #content > h3 + .row .product-horizontal .product-thumb-image {
  flex: 0 1 260px;
  min-width: 100px;
  max-width: 100%;
}

#common-home #content > h3 + .row .product-horizontal .product-thumb {
  min-width: 0;
}
