
/* =========================================
   ELECTRICBIKES.BG - CLEAN CUSTOM CSS
   ========================================= */

/* ОСНОВНИ НАСТРОЙКИ */

#header {
  width: 100%;
}

#header .logo {
  height: auto;
  object-fit: contain;
}

/* =========================================
   МАРКИ - DESKTOP
   ========================================= */

.eb-info-block {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.eb-brand-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1000px !important;
  margin: 15px auto 25px !important;
}

.eb-brand-grid .eb-brand-item {
  flex: 0 0 20% !important;
  width: 20% !important;
  max-width: 20% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  text-align: center;
  padding: 10px;
}

.eb-brand-grid .eb-brand-item img {
  display: block !important;
  width: auto !important;
  max-width: 150px !important;
  max-height: 100px !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

/* =========================================
   DESKTOP - LOGO
   ========================================= */

@media (min-width: 768px) {

  #header .header-top #_desktop_logo {
    width: auto;
    max-width: 300px;
    flex: 0 1 300px;
  }

  #header .header-top #_desktop_logo img,
  #header .header-top img.logo {
    display: block;
    width: 260px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 110px !important;
    object-fit: contain !important;
  }

}

/* =========================================
   MOBILE - ДО 767px
   ========================================= */

@media (max-width: 767px) {

  /* HEADER */

  #header .header-nav {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 65px;
    max-height: none !important;
    box-sizing: border-box !important;
  }

  #header .header-nav .container,
  #header .header-nav .row {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  #header .header-nav .mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 65px;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  /* МЕНЮ */

  #header #menu-icon {
    order: 1;
    flex: 0 0 42px;
    width: 42px;
    float: none !important;
    text-align: center;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ЛОГО */

  #header #_mobile_logo {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
  }

  #header #_mobile_logo img,
  #header .header-nav .top-logo img {
    display: inline-block !important;
    width: auto !important;
    max-width: 140px !important;
    max-height: 65px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* СКРИВАНЕ НА ПРОФИЛА */

  #header #_mobile_user_info,
  #header .header-nav .user-info {
    display: none !important;
  }

  /* ЕЗИК */

  #header #_mobile_language_selector {
    order: 3;
    flex: 0 1 auto;
    min-width: 0;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #header #_mobile_language_selector
  .language-selector-wrapper {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 3px !important;
  }

  /* КОЛИЧКА */

  #header #_mobile_cart {
    order: 4;
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 0 !important;
    max-width: 42px !important;
    float: none !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  #header #_mobile_cart .blockcart {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    min-width: 0 !important;
    max-width: 42px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  #header #_mobile_cart .blockcart .header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #header #_mobile_cart .blockcart .header a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  #header #_mobile_cart .cart-label,
  #header #_mobile_cart .cart-products-count,
  #header #_mobile_cart .header a > span:not(.material-icons) {
    display: none !important;
  }

  #header #_mobile_cart .shopping-cart {
    display: inline-block !important;
    font-size: 27px !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  /* ТЪРСАЧКА */

  #header .header-top-right {
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
  }

  #header #search_widget {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    clear: both;
  }

  #header #search_widget form,
  #header #search_widget input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* БАНЕР */

  #index #wrapper {
    padding-top: 0;
  }

  #index .carousel {
    margin-bottom: 12px;
  }

  #index #carousel,
  #index .carousel,
  #index .carousel-inner,
  #index .carousel-item {
    width: 100%;
    max-width: 100%;
  }

  #index .carousel .carousel-item img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* ДВА ПРОДУКТА НА РЕД */

  #products .products > .js-product,
  .featured-products .products > .js-product,
  .product-accessories .products > .js-product {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    box-sizing: border-box;
  }

  #products .products .product-miniature,
  .featured-products .products .product-miniature,
  .product-accessories .products .product-miniature {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* МАРКИ - ДВЕ НА РЕД */

  .eb-info-block {
    padding: 20px 10px !important;
  }

  .eb-brand-grid {
    gap: 12px 0 !important;
  }

  .eb-brand-grid .eb-brand-item {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    padding: 12px !important;
  }

  .eb-brand-grid .eb-brand-item img {
    max-width: 125px !important;
    max-height: 85px !important;
  }
}

/* Responsive header repair — 2026-10-18 */
@media (min-width: 992px) {
  #header .header-nav { min-height: 56px; }
  #header .header-nav #search_widget { margin-top: 8px; }
  #header .header-nav .right-nav { min-height: 56px; align-items: center; gap: 12px; }
  #header .header-nav .right-nav > div { flex: 0 0 auto; }
  #header .header-top { height: 90px; padding: 0 !important; }
  #header .header-top .container > .row { height: 90px; display: flex; align-items: center; }
  #header .header-top #_desktop_logo { width: 140px !important; max-width: 140px !important; flex: 0 0 140px !important; padding: 5px 0 !important; margin: 0 !important; }
  #header .header-top #_desktop_logo img,
  #header .header-top img.logo { display: block !important; width: 120px !important; max-width: 100% !important; height: auto !important; max-height: 80px !important; object-fit: contain; }
  #header .menu-wrapper { position: absolute !important; top: 56px !important; left: 0; width: 100%; z-index: 20; }
  #header .menu-wrapper .main-menu { box-sizing: border-box; padding-left: 140px; text-align: left; }
  #header .menu-wrapper .main-menu > li > a { font-size: 14px !important; padding: 12px 8px !important; line-height: 20px !important; }
}
@media (max-width: 991px) {
  #header .header-nav .hidden-sm-down { display: block !important; height: 56px; }
  #header .header-nav .hidden-sm-down > .col-md-5 { height: 56px; }
  #header .header-nav .right-nav { display: none !important; }
  #header .header-nav #search_widget { width: 100% !important; height: 40px; margin: 8px 0 !important; clear: none; }
  #header .header-nav #search_widget form,
  #header .header-nav #search_widget input[type="text"] { width: 100%; }
  #header .header-nav .mobile { position: relative; height: 64px !important; min-height: 64px !important; }
  #header .header-nav #_mobile_logo { height: 64px; }
  #header .header-nav #_mobile_logo img { max-height: 58px; width: auto; }
  #header .header-nav #_mobile_cart { position: absolute !important; right: 10px; top: 14px; width: 60px !important; margin: 0; padding: 0; z-index: 2; }
  #header .header-nav #_mobile_cart .hidden-sm-down { display: none !important; }
  #header .header-nav #_mobile_cart .cart-products-count { display: inline-block !important; white-space: nowrap; }
  #header .header-nav #_mobile_cart .blockcart,
  #header .header-nav #_mobile_cart .header { width: auto !important; min-width: 0; }
  #header .header-top { display: none !important; }
  #header .menu-wrapper { position: absolute !important; top: 56px !important; left: 0; width: 72px; height: 64px; z-index: 30; }
  #header .menu-wrapper .slicknav_menu { padding-top: 10px; }
}

/* Header alignment refinements */
@media (min-width: 992px) {
  #header .menu-wrapper .main-menu > li > a { font-size: 15px !important; padding: 11px 9px !important; }
  #header .menu-wrapper .main-menu > li:nth-child(7) { margin-left: 110px; }
}
@media (max-width: 991px) {
  #header .header-top { display: block !important; height: 0 !important; padding: 0 !important; }
}
