/* aside with goals and products */
.sidebar {
  .menu-categories {
    li {
      .fa {
        position: absolute;
        top: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 60px;
        height: 50px;
        padding-right: 10px;
      }

      &.open {
        .fa {
          transform: rotate(0deg);

          &:before {
            transform: rotate(90deg);
          }
        }
      }
    }
  }
}

.tabs__content.tabs__content-opt-page {
  .tab-inner {
    justify-content: flex-start;
  }
}

#toTop {
  bottom: 50px !important;
  @media (max-width: 1024px) {
    bottom: 90px !important;
    right: 27px !important;
  }
}

/*product card*/
.product-item {
  /*overflow: hidden;*/
  box-shadow: none;
  border: 1px solid #d0d0d0;
}

.product-item .img {
  border-radius: 6px;
}

.product-item .block {
  overflow: hidden;
  border-radius: 5px;
}

.product-item .block .composition-info {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.product-item:after {
  content: "";
  display: block;
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  opacity: 0;
  border: 3px solid #758eae;
  border-radius: 6px;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.product-item:hover {
  border: 1px solid transparent;
}

.product-item:hover:after {
  opacity: 1;
}

.product-item-top {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  overflow: hidden;
}

.product-item-bottom {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  overflow: hidden;
}

/* product card +- btns*/
@media screen and (max-width: 450px) {
  .complex-item .complex-item-bottom {
    flex-direction: column;
  }

  .complex-item .item-bottom {
    justify-content: space-between;
  }

  .complex-item .item-bottom .block-discount-price {
    margin: 10px 15px 0;
  }

  .complex-item .complex-item-bottom .complext-product-list-add-to-cart {
    width: 100%;
  }

  .complex-item .counter_btn {
    padding: 15px;
  }
}

@media screen and (max-width: 375px) {
  .complex-item .counter_btn {
    padding: 10px;
  }
}

/* z-index */
header.page-header {
  z-index: 1000;
}

#myModal, #oneClickModal {
  z-index: 1001;
}

/* */
@media screen and (max-width: 500px) {
  .special-offers .wrapper-brands .slider .slick-next,
  .special-offers .wrapper-brands .slider .slick-prev {
    top: 13px;
  }
}

/* mobile mini cart*/
@media screen and (max-width: 450px) {
  .shopping:before {
    right: 79px;
  }

  .shopping {
    width: calc(100vw - 20px);
    right: -71px;
    max-width: unset;
  }
}

/* update certificates */
.certificates {
  margin-bottom: 50px;
  border-radius: 10px;
}

.certificates .lates-blog {
  width: unset;
  padding-bottom: 40px;
}

.certificates .certificates__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.certificates .certificates_img {
  cursor: pointer;
}

.certificates .h2 {
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 30px;
  line-height: 38px;
  color: #000000;
  font-family: 'Open Sans';
  text-align: center;
}

.certificates .certificates__buy-btn {
  display: block;
  width: 150px;
  margin: 30px auto 0;
  cursor: pointer;
}

@media screen and (max-width: 479px) {
  .certificates {
    width: calc(100% + 30px);
    margin: 0 -15px 50px;
    border-radius: 0;
  }

  .certificates .h2 {
    font-size: 6vw;
    line-height: 120%;
    margin-bottom: 30px;
  }

  .certificates .certificates__items {
    grid-template-columns: repeat(1, 1fr);
    gap: 0px;
  }

  .certificates .certificates_img {
    margin-bottom: 10px;
  }

  .certificates .certificates__buy-btn {
    margin-top: 20px;
  }
}

/*main page map*/
.main-page-map-container {
  height: 320px;
}

.main-page-map-container .map {
  height: 100%;
  width: 100%;
}

@media only screen and (max-width: 767px) {
  .main-page-map-container {
    height: 250px;
  }
}

/*compare*/
.compare-container {
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  /*bottom: 50px;*/
  bottom: 0;
  left: calc(50% - 690px);
  /*width: 200px;*/
  height: 30px;
  /*border: 1px solid red;*/
  /*border-radius: 50%;*/
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  background-color: #019EE1;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .7);
  font-size: 14px;
  line-height: 30px;
  overflow: hidden;
  /*animation: tilt-shaking 8.5s 5s ease-in-out infinite;*/

  /*&.js--show {*/
  /*  display: flex;*/
  /*}*/

  .compare-link {
    padding-left: 15px;
    padding-right: 7px;
    position: relative;
    text-decoration: none;
    color: #ffffff;
    height: 100%;
    transition: background-color 0.15s ease-in-out;

    &::after {
      content: '';
      position: absolute;
      top: 15%;
      right: -1px;
      height: 70%;
      width: 1px;
      background-color: #ffffff;
    }

    &:hover {
      background-color: rgba(4, 68, 129, 0.3);
    }
  }
}

.compare-title {
}

.compare-counter {
  font-weight: 700;
}

.compare-delete-icon {
  height: 30px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  padding-right: 12px;
  transition: background-color 0.15s ease-in-out;
  cursor: pointer;


  &:hover {
    background-color: rgba(4, 68, 129, 0.3);
  }
}

@media only screen and (max-width: 1400px) {
  .compare-container {
    /*bottom: 30px;*/
    left: 30px;
  }
}

@media screen and (max-width: 450px) {
  .compare-container {
    left: 5px;
  }

  .compare-link {
    padding-left: 12px;
    padding-right: 6px;
  }

  .compare-delete-icon {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* datapicker*/
.ui-datepicker {
  background: #000000;
  padding: 10px;
  border: 1px solid #0b64b2;
  width: 300px;

  .ui-datepicker table td {
    text-align: center;
  }

  .ui-datepicker a {
    cursor: pointer;
    text-decoration: none;
  }

  .ui-datepicker-prev {
    background-color: white;
  }

  .ui-datepicker-next {
    float: right;
    background-color: white;
  }

  .ui-datepicker-title {
    text-align: center;
    font-weight: bold;
  }

  .ui-widget.ui-widget-content {
    border: 2px solid #0b64b2;
  }

  .ui-datepicker th {
    padding: .7em .3em;
    text-align: center;
    font-weight: bold;
    border: 0;
    color: #0b64b2;
  }

  .ui-state-default,
  .ui-widget-content .ui-state-default,
  .ui-widget-header .ui-state-default {
    border: 1px solid red;
    background: #000000;
    font-weight: normal;
    color: #0b64b2;
  }

  a.ui-state-default:hover {
    border: 1px solid white;
    background: #0b64b2;
    font-weight: bold;
    color: white;
  }

  .ui-state-active, .ui-widget-content .ui-state-active,
  .ui-widget-header .ui-state-active {
    border: 1px solid white;
    background: #0b64b2;
    font-weight: bold;
    color: white;
  }

  .ui-state-highlight,
  .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {
    border: 1px solid #dad55e;
    background: #fffa90;
    color: black;
  }

  .ui-widget-header {
    border: 1px solid #0b64b2;
    background: #0b64b2;
    color: black;
    font-weight: bold;
  }
}

/*cart form phone help msg*/
.cart-new__form .form-cart .flex {
  position: relative;
  margin-bottom: 5px;
}

.cart-new__form .form-cart .flex input[name="telephone"] {
  margin-bottom: 25px;
}

.cart-new__form .form-cart .flex .phone-info-msg {
  position: absolute;
  top: 65px;
  font-weight: 600;
}

@media only screen and (max-width: 767px) {
  .cart-new__form .form-cart .flex .phone-info-msg {
    top: 141px;
    margin-left: 5px;
    font-size: 13px;
  }
}

@media screen and (max-width: 450px) {
  .cart-new__form .form-cart .flex .phone-info-msg {
    max-width: 270px;
  }
}

/* селект сортировки на страницах подкатегорий(tag.blade.php)*/
.rd-tag-sort.sort .medium .select-styled {
  padding-left: 0;
}

/* доставка и оплата таб в карточке продукта*/
.custom-tabs .tabs__caption li {
  width: 20%;
}

@media screen and (max-width: 991px) {
  .custom-tabs .tabs__caption li {
    padding: 10px 5px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .custom-tabs .tabs__caption li:last-of-type {
    font-size: 12px;
    text-align: center;
  }
}
