@media (min-width: 992px) {
  /* services */

  .services {
    margin-top: 40px;
  }

  /* kosik */

  .popup-widget.cart-widget {
    top: 140px !important;
  }

  /* přihlášení */
  .in-kosik .popup-widget.login-widget {
    top: 130px !important;
    margin-left: 165px;
  }

  .popup-widget.login-widget {
    top: 130px !important;
    margin-left: 40px;
  }

  ol.cart-header {
    margin: -40px -20px 0;

  }
}

@media (min-width: 768px) {
  ol.cart-header li a, ol.cart-header li strong {
    padding-left: 0;
    text-align: center;
  }
}

@media (max-width: 1440px) {
  /* carousel */
  .banners-row .banner-wrapper {
    margin-bottom: 10px;
    margin-right: 9px;
    width: 178px;
    height: 179px;
  }

  .carousel-inner .item {
    margin-right: 5px;
  }

  .next-to-carousel-banners {
    margin-left: 5px;
  }

  /* products HP */
  .in-index .products {
    justify-content: center;
  }

  .in-index .products .product:last-child {
    display: none;
  }
  /* detail produktu */

  .p-info-wrapper .add-to-cart button {
    width: 82%;
  }

  /* kosik */

  .popup-widget.cart-widget {
    margin-left: 140px;
  }

  /* Prihlaseni */

  .in-kosik .popup-widget.login-widget {
    margin-left: 145px;
  }

  .popup-widget.login-widget {
    margin-left: 10px;
  }
}

@media (max-width: 1200px) {
  /* carousel */
  .carousel-inner .item {
    margin-right: 0;
  }

  .next-to-carousel-banners {
    margin-left: 0;
  }

  .banners-row {
    display: flex;
    flex-direction: column;
  }

  .banners-row .col-sm-8 {
    width: 100%;
  }

  .banners-row .col-sm-4 {
    width: 100%;
  }

  .banners-row .banner-wrapper {
    margin-bottom: 20px;
    margin-right: 20px;
    width: auto;
    height: auto;
  }

  .banners-row .banner-wrapper:last-child {
    margin-right: 0;
  }

  .next-to-carousel-banners {
    margin-top: 20px;
    display: flex;
    flex-wrap: nowrap;
  }

  .carousel-inner {
    display: flex;
    justify-content: center;
  }

  .next-to-carousel-banners {
    display: flex;
    justify-content: center;
  }

  /* menu-helper */

  .menu-helper .menu-level-2 li {
    padding: 5px 0;
  }

  /*footer banners*/

  .footer-banners {
    display: flex;
  }

  .footer-banners .footer-banner:first-child {
    display: flex;
    justify-content: flex-end;
  }

  .footer-banners .footer-banner:nth-child(2) {
    display: flex;
    justify-content: center;
  }

  /* detail produktu */

  .p-info-wrapper {
    padding-left: 20px;
  }

  .p-info-wrapper .add-to-cart button {
    width: 89.5%;
  }

  .tab-content .extended-description {
    margin-right: auto;
  }

  /* kosik */

  .popup-widget.cart-widget {
    margin-left: 45px;
    top: 130px !important;
  }

  /* Přihlášení */

  .popup-widget.login-widget {
    margin-left: -95px;
  }

  .in-kosik .popup-widget.login-widget {
    margin-left: 40px;
  }

  .articleListItem {
    flex: 0 0 31%;
  }
}

@media (max-width: 992px) {
  /* products HP */

  .in-index .products .product:last-child {
    display: block;
  }

  .in-index .products-block .product:last-child,
  .products-block.products-related .product:last-child {
    margin-right: 15px;
  }

  /* services */

  .services .serviceItem:first-child {
    margin-right: 20px;
  }

  /* Košík */
  .popup-widget.cart-widget {
    top: 150px !important;
    margin-left: 0;
  }

  .cart-widget-product > div.cart-widget-product-unit {
    opacity: 0;
  }

  .quantity .decrease::before {
    top: -20px;
  }

  .cart-widget-product-delete {
    padding-left: 0;
  }

  /* Příhlášení */

  .popup-widget.login-widget {
    top: 150px;
    margin-left: 0;
  }

  .in-kosik .popup-widget.login-widget {
    margin-left: 0;
  }

  .popup-widget-inner h2 {
    max-width: 500px;
    margin: 50px auto 20px;
  }

  .popup-widget-inner #customerLogin {
    max-width: 500px;
    margin: 0 auto;
  }

  /* detail produktu */

  .p-info-wrapper .add-to-cart button {
    width: 80%;
  }

  .p-info-wrapper .add-to-cart {
    justify-content: space-between;
  }

  /* Zapomenute heslo */

  #formForgottenPassword #email {
    width: 100%;
  }

  #formForgottenPassword .login-wrapper .btn {
    float: left;
  }

  .logosItem {
    flex: 0 0 33%;
    margin-bottom: 15px;
  }

  .articleListItem {
    flex: 0 0 47%;
  }

  .heurekaRatingsItem {
    flex: 0 0 47.5%;
  }
}

@media (max-width: 767px) {
  #content .services {
    justify-content: flex-start;
  }
  #content .serviceItem {
    flex: 0 0 40%;
    margin-top: 20px;
    margin-bottom: 0;
    min-width: 44%;
  }

  /* navigation */
  .userProfile {
    display: none;
  }

  .navigation-in.menu > ul > li {
    height: auto;
  }

  .top-navigation-contacts {
    display: none !important;
  }

  .navigation-in > ul > li.ext > ul > li {
    padding: 10px;
    width: 100%;
    flex-basis: 100%;
    background-color: white;
    border-bottom: 1px solid #f0f0f0;
  }

  .navigation-in > ul > li.ext > ul > li > div > a {
    font-size: 15px;
    margin-bottom: 0;
  }

  .navigation-in {
    background-color: #81ba48;
  }

  .navigation-in a {
    color: white;
  }

  nav .container {
    border-left: 2px solid #81ba48;
    padding-left: 0;
    padding-right: 0;
  }

  .navigation-window-visible
    .top-navigation-bar
    .container
    > div.top-navigation-menu {
    background-color: #81ba48;
    color: white;
  }

  .top-navigation-bar-menu a {
    color: white;
    font-size: 15px;
  }

  .top-navigation-menu-trigger::before {
    color: white;
  }

  .top-navigation-menu-trigger:hover::before {
    color: white;
  }

  .navigation-close::before {
    color: white;
  }

  .top-navigation-bar .top-navigation-menu {
    visibility: hidden;
  }

  /* carousel */
  .banners-row .col-sm-4 {
    padding-left: 20px;
  }

  .extended-banner-text {
    font-size: 14px;
    line-height: 1.1;
  }

  .banners-row #carousel .extended-banner-text {
    font-size: 18px;
  }

  /* hodnoceni */
  .latest-contribution-wrapper {
    margin-left: 19px;
  }

  /* services */

  .serviceItem {
    flex-direction: column;
  }

  .serviceIcon {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .serviceText {
    text-align: center;
  }

  /* footer */
  .footerTitle {
    text-align: center;
  }

  .footerList li {
    justify-content: center;
  }

  .banner {
    margin-bottom: 0;
  }

  .custom-footer .banner {
    padding-top: 10px;
    min-height: auto;
  }
  .custom-footer .banner .banner-wrapper {
    margin-top: 0;
  }

  /* Košík */
  #header .cart-count .cartInfo i {
    display: none;
  }

  #header .cart-count {
    top: -45px;
    right: 60px;
  }

  .responsive-tools>a[data-target="navigation"]::before {
    border-radius: 0;
    background-color: #6ca534;
  }

  /* Přihlášení */

  .popup-widget-inner h2 {
    margin: 0 auto;
  }

  .popup-widget.login-widget {
    top: 60px;
  }

  /* Výpis produktů */

  .content-wrapper.container {
    padding-left: 30px;
    padding-right: 30px;
  }

  .type-category .category-perex p {
    font-size: 14px;
  }

  .products-block {
    justify-content: center;
  }

  .articleListItem {
    flex: 0 0 100%;
    margin-right: 0;
  }

  .heurekaRatingsItem {
    flex: 0 0 100%;
    margin-right: 0;
  }

  .next-to-carousel-banners {
    flex-wrap: wrap;
  }
  .banners-row .banner-wrapper {
    width: 48%;
  }
  .banners-row .banner-wrapper:nth-child(even) {
    margin-right: 0;
  }

  .banners-row .banner-wrapper img, .banners-row .banner-wrapper a {
    width: 100%;
  }

  .products-inline > div .p .p-in .p-bottom {
    flex-basis: 33%;
  }
}

@media (max-width: 675px) {
  /* Výpis produktů*/

  .products-block .product {
    margin-left: 10px;
    margin-right: 10px;
  }

  .products-block > div {
    width: 100%;
  }
}

@media (max-width: 545px) {
  /* Detail produktu */

  .p-info-wrapper .add-to-cart button {
    width: 75%;
  }

  .logosItem {
    flex: 0 0 50%;
  }

  .banners-row .banner-wrapper {
    width: 47%;
  }
}

@media (max-width: 486px) {
  #content .serviceItem {
    min-width: 100%;
  }
  .products-inline.products-top > div .p .p-in {
    width: 100%;
  }

  .products-inline.products-top > div .p .image {
    display: none;
  }

  .products-inline > div .p .p-in .p-bottom {
    flex-basis: 50%;
  }

  /* carousel */
  .homepage-box {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .banners-row #carousel .extended-banner-text {
    font-size: 16px;
  }

  .banners-row #carousel .extended-banner-text {
    padding: 15px 25px;
    height: auto;
  }

  .banners-row .banner-wrapper {
    margin-bottom: 10px;
    margin-right: 10px;
  }

  .next-to-carousel-banners {
    margin-top: 10px;
  }

  /* welcome */

  .homepage-box.welcome-wrapper {
    margin-top: 20px;
    margin-bottom: 0;
  }

  .homepage-box.welcome-wrapper .container {
    padding-left: 0;
    padding-right: 0;
  }

  .welcome {
    text-align: center;
    font-size: 26px;
  }

  .welcome h1 {
    font-size: 22px;
  }

  .welcome p {
    font-size: 14px;
  }

  /* hodnoceni */

  .latest-contribution h2 {
    text-align: center;
    font-size: 20px;
  }

  /* services */

  #services {
    flex-direction: column;
  }

  .serviceItem {
    margin-bottom: 40px;
  }

  /* Košík */

  .cart-widget-product-name a,
  .cart-widget-product-name > span {
    font-size: 12px;
  }

  /* Výpis produktů */

  .type-category .category-perex p {
    text-align: center;
  }

  .type-category .category-title {
    text-align: center;
    font-size: 22px;
  }

  .content-wrapper.container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Detail produktu */

  .p-info-wrapper .add-to-cart button {
    width: 60%;
  }

  .logosItem {
    flex: 0 0 100%;
  }
}
