body {
  height: max-content !important;
}
/*html:has(>body.modal-open),*/
/*html:has(>body.no-scroll){*/
/*    position: fixed;*/
/*    width: 100%;*/
/*    overflow-y: scroll;*/
/*}*/
body.no-scroll {
  overflow: hidden;
}
.header-inscription {
  text-align: center;
  font-size: 10px;
  background-color: var(--background-gray-secondary);
  color: #e7e7e7;
  position: relative;
}
.line-through-red{
  text-decoration: line-through;
  text-decoration-color: var(--red-color);
}
.close-header-inscription {
  position: absolute;
  right: 10px;
  top: 0;
  height: 100%;
  aspect-ratio: 1;
  background: url(/uploads/images/cross-svg-top-header.svg) no-repeat center
    center;
  background-size: cover;
  cursor: pointer;
  animation: rotateAnimation 8s infinite;
}
.header-inscription a {
  text-decoration: none;
  color: white;
}
.header-inscription a:hover {
  text-decoration: none;
  color: white;
}

header {
  height: auto;
}
nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--background-gray-secondary);
}
nav p {
  margin: 0;
}
.container:before,
.container:after {
  content: none;
}
.header-item {
  font-size: 18px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: fit-content;
  text-decoration: none;
}
.header-design__icon-text {
  font-weight: 400;
  font-size: 18px;
  line-height: 128%;
  text-align: right;
  color: white;
  margin-right: 5px;
  margin-top: 20px;
}

.header-design__icon-text:hover {
  color: var(--red-color);
  text-shadow: 0 0 3px 0 rgba(135, 118, 118, 0.65);
}

.header-design__icon-text:active {
  color: #5a5a5a;
  text-shadow: 0 0 3px 0 rgba(135, 118, 118, 0.65);
}
.header-item a {
  color: rgb(95, 95, 95);
  text-decoration: none;
  font-size: 18px;
  transition: background-color 0.5s;
}

.header-item a:active {
  color: white;
}

.header-item a:hover {
  color: var(--red-color);
}
.header-item .btn {
  font-size: 18px;
}
.btn.btn-secondary.dropdown-toggle {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none !important;
}
.header-dropdown-button a {
  color: white !important;
  text-decoration: none;
  cursor: pointer;
}
.dropdown-item img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.dropdown-toggle::after {
  transition: transform 0.5s, color 0.5s;
  color: white;
}
.dropdown-toggle:hover::after {
  color: #5a5a5a;
}

#dropdownMenuButtonCities span {
  padding-left: 20px;
  background: url("/uploads/images/cities-dropdown.svg") no-repeat;
  background-position-y: center;
}
#dropdownMenuButtonPhone + ul li a {
  padding-left: 40px;
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position-y: center;
  background-position-x: 10px;
}
#dropdownMenuButtonPhone + ul li:nth-child(1) a {
  background-image: url("/uploads/images/vodafone.png");
}
#dropdownMenuButtonPhone + ul li:nth-child(2) a {
  background-image: url("/uploads/images/dropdown-phone.svg");
}
#dropdownMenuButtonPhone + ul li:nth-child(3) a {
  background-image: url("/uploads/images/kievstar.png");
}

#phoneMobileModal .modal-body a {
  display: block;
  padding: 10px 0;
  background-repeat: no-repeat;
  background-position-y: center;
  background-position-x: 85px;
  font-size: 20px;
  font-weight: 400;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: black;
  border-bottom: 1px solid rgb(221 221 221);
  background-size: 25px;
}
#phoneMobileModal .modal-body a:last-child {
  border: 0;
}
#phoneMobileModal .modal-body a:nth-child(1) {
  background-image: url("/uploads/images/vodafone.png");
}
#phoneMobileModal .modal-body a:nth-child(2) {
  background-image: url("/uploads/images/vodafone.png");
}
#phoneMobileModal .modal-body a:nth-child(3) {
  background-image: url("/uploads/images/dropdown-phone.svg");
}
#phoneMobileModal .modal-body a:nth-child(4) {
  background-image: url("/uploads/images/kievstar.png");
}

.dropdown-menu {
  transition: transform 0.4s ease-out;
  animation: 0.5s fadeIn;
}
.dropdown-menu.show {
  opacity: 1;
}
.dropdown-menu li {
  border-bottom: 1px solid #e8e8e8;
}
.dropdown-menu li:last-child {
  border: none;
}
.dropdown-menu a:active {
  background-color: #e9ecef;
}
.icon-only-button {
  width: 40px;
}
.mini-design-icon {
  background: url("/uploads/images/mini_design_icon.svg") no-repeat center
    center;
  background-size: 25px;
}
.phone-button-header-mobile {
  background: url("/uploads/images/phone_mob_but.svg") no-repeat center center;
  background-size: 25px;
}
.account_button_header {
  background: url("/uploads/images/account_button_login.svg") no-repeat center
    center;
  background-size: 25px;
}
.account_button_header.guest {
  background: url("/uploads/images/account_button_guest.svg") no-repeat center
    center;
  background-size: 25px;
}
.account_button_header.guest:hover {
  background: url("/uploads/images/account_button_guest_active.svg") no-repeat
    center center;
  background-size: 25px;
}
.cart-button-header {
  cursor: pointer;
  background: url("/uploads/images/buy_icon_but.svg") no-repeat center center;
  background-size: 25px;
}
.cart-button-header:hover {
  background: url("/uploads/images/buy_icon_but_active.svg") no-repeat center
    center;
  background-size: 25px;
}
.cart-button-header.active {
  background: url("/uploads/images/buy_icon_but_active.svg") no-repeat center
    center;
  background-size: 25px;
}
.basket-count {
  width: 15px;
  height: 15px;
  border-radius: 100px;
  background-color: var(--red-color);
  position: absolute;
  top: 11px;
  left: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  line-height: 13px;
}
.basket-count > span {
  margin-top: 2px;
  margin-left: -1px;
}

.menu-mobile {
  display: none;
}

.but_menu_mobile_dropdown {
  padding: 15px 15px 15px 15px;
  border-top: 1px solid #f7f7f7;
}
.but_menu_mobile_dropdown.active-caret::after {
  content: "";
  height: 30px;
  aspect-ratio: 1;
  background: url(/uploads/images/caret_arrow_left_white.svg) no-repeat right
    center;
  background-size: 25px;
  rotate: -90deg;
  transition: rotate 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0s;
}
.but_menu_mobile_dropdown.active-caret.active-dropdown::after {
  rotate: 90deg;
}
.but_menu_mobile_dropdown.active-caret.active-dropdown + .catalog-dropdown {
  max-height: 1000px !important;
}

.but_menu_mobile_cat {
  display: block;
  text-decoration: none;
  color: white;
  padding: 15px 15px 15px 30px;
  border-top: 1px solid #f7f7f7;
}
.but_menu_mobile_cat a {
  color: white;
  text-decoration: none;
}
.but_menu_mobile {
  padding: 15px 15px 15px 15px;
  border-top: 1px solid #f7f7f7;
}
.but_menu_mobile a {
  color: white;
  text-decoration: none;
}

.second-dropdown-catalog-items {
  display: none;
  box-shadow: 5px 12px 30px rgba(0, 0, 0, 0.35);
  position: absolute;
  background-color: #fff;
  min-width: 200px;
  top: 0;
  left: 100%;
  min-height: 100%;
  width: max-content;
}

#catalog-rotate {
  display: flex;
  transition: transform 0.4s ease 0.1s;
}
#catalog-rotate:hover .img-catalog {
  transform: rotate(180deg);
}

.img-catalog {
  transition: transform 0.4s ease 0.1s;
}

.item-category {
  display: flex;
  align-items: center;
  border-top: 1px solid #f7f7f7;
}
.item-category.active-caret {
  background: url("/uploads/images/caret_mobile_menu.svg") no-repeat right
    center;
}
.item-category:hover {
  background-color: #dddddd;
  transition: all 0.3s ease-in-out;
}
.item-category:hover .second-dropdown-catalog-items {
  display: block;
}
.item-category-link {
  width: 100%;
  padding: 15px 15px 15px 15px;
  color: black;
  text-decoration: none;
}

.dropdown-catalog-items {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 200px;
  z-index: 1;
  width: max-content;
  left: 0;
  top: 100%;
  box-shadow: 5px 12px 30px rgba(0, 0, 0, 0.35);
}

.dropdown-catalog-items ul {
  padding: 0;
  margin: 0;
}

.catalog-items:hover .dropdown-catalog-items {
  display: block;
}
.logo-header img {
  max-width: 300px;
}

.switch {
  position: relative;
  width: 48px;
  height: 24px;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  transition: 0.4s;
  border-radius: 30px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 0;
  top: 0;
  transition: 0.4s;
  border-radius: 30px;
}
.lang-ru > .slider {
  background-color: #fff;
}
.lang-ru > .slider:before {
  transform: translateX(16px);
}
.slider.round:before {
  content: url("/uploads/images/lang-ua-but.svg");
}
.lang-ru > .slider.round:before {
  content: url("/uploads/images/lang-ru-but.svg");
}

.search-input {
  width: 100%;
  outline: none;
  box-shadow: none;
  border: none;
  background-image: url("/uploads/images/search_icon.svg");
  background-size: 20px 20px;
  background-repeat: no-repeat;
  padding: 5px 0 5px 30px;
  background-position: 5px center;
  border-radius: 5px 0 0 5px;
}
nav .row > * {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.5s;
  position: relative;
}

nav .row > *:not(.no-hover):hover {
  background-color: #6f6f6f;
  color: white;
  text-decoration: none;
}
.catalog-items:hover {
  position: relative;
  background-color: #6f6f6f;
  transition: all 0.3s ease-in-out;
}
.catalog-items:hover .dropdown-catalog-items {
  display: block;
}

.logo {
  max-width: 100%;
  width: 80%;
  margin: 10px 0 0 0;
}

.icon img {
  margin-right: 5px;
}
.search-container-mobile {
  display: flex;
  align-items: center;
  height: 30px;
}
.search-back-mobile {
  display: none;
  height: 100%;
  position: relative;
  border-radius: 4px 0 0 4px;
  border: 1px solid white;
  border-right: none;
  background: url("/uploads/images/caret_arrow_left_white.svg") no-repeat center
    center;
  background-color: var(--background-gray-secondary);
  background-size: cover;
  aspect-ratio: 1;
}
.submit-search-mobile {
  height: 100%;
  border-radius: 0 5px 5px 0;
  background: url("/uploads/images/submit_search_button.svg") no-repeat center
    center;
  background-color: var(--red-color);
  background-size: cover;
  aspect-ratio: 1;
  fill: white;
}
.mobile-menu {
  background-color: var(--background-gray-secondary);
  height: calc(100vh - 50px);
  max-width: 500px;
  transition: left 0.5s ease-in-out 0s;
  left: -500px;
  position: absolute;
  z-index: 100;
  overflow: scroll;
}
.catalog-overlay {
  width: 100vw;
  height: 100vh;
  background-color: black;
  opacity: 0;
  display: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
  position: absolute;
  left: 0;
}

#back-top {
  display: none;
  position: fixed;
  left: 30px;
  bottom: 30px;
  z-index: 100;
  margin-bottom: 0;
  text-align: center;
  border-radius: 50%;
  transition: opacity 0.3s ease;
  width: 50px;
  height: 50px;
  line-height: 50px;
  opacity: 0.45;
  background: var(--background-gray-color) url(/uploads/images/back_top.svg)
    no-repeat center center;
  background-size: cover;
  cursor: pointer;
  animation: bounce 2000ms infinite cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
#back-top:hover {
  opacity: 1;
  animation-play-state: paused;
}

#popupCart {
  z-index: 99999999;
}
#popupCart > .modal-dialog {
  min-width: 700px;
}
#popupCart .modal-body {
  max-height: 70vh;
  overflow: auto;
}
.fr-cart-product-container {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  grid-auto-rows: 60px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}
.fr-cart-product-container:last-child {
  border: 0;
}
.fr-cart-product-container > div {
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.fr-cart-product-image {
  width: 120px;
  height: 120px;
  grid-row-start: 1;
  grid-row-end: 3;
  object-fit: contain;
}
.fr-cart-product-name {
  grid-column-start: 2;
  grid-column-end: 4;
}
.fr-cart-product-name > a {
  color: black;
  text-decoration: none;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.fr-cart-delete {
  aspect-ratio: 1;
  height: 100%;
  margin-left: auto;
  background: url(/uploads/images/cart-delete.svg) no-repeat center center;
  background-size: 30px;
  cursor: pointer;
}
.fr-cart-qty-container {
  display: flex;
  font-size: 20px;
}
.fr-cart-qty-button {
  width: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.3);
  color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.fr-cart-qty-button:first-child {
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
}
.fr-cart-qty-button:last-child {
  border-bottom-right-radius: 5px;
  border-top-right-radius: 5px;
}
.fr-cart-qty {
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  width: 50px;
  text-align: center;
  color: rgba(0, 0, 0, 0.3);
  transition: color 0.5s;
}
.fr-cart-qty:focus {
  outline: none;
  color: rgba(0, 0, 0, 0.7);
}
.fr-cart-price {
  font-size: 25px;
  font-weight: 400;
  white-space: nowrap;
}
.fr-cart-order-button {
  display: block;
  text-decoration: none;
  background-color: var(--red-color);
  width: max-content;
  padding: 5px 10px;
  border-radius: 10px;
  color: white;
  font-size: 18px;
}
.cart-continue {
  margin-right: auto;
  color: black;
  padding-left: 25px;
  background: url(/uploads/images/caret-left-cart.svg) no-repeat center left;
  opacity: 0.4;
  transition: opacity 0.5s;
  cursor: pointer;
}
.cart-continue:hover {
  opacity: 0.8;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  /* display: none; <- Crashes Chrome on hover */
  -webkit-appearance: none;
  margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type="number"] {
  -webkit-appearance: none; /* Chrome, Safari, Opera */
  -moz-appearance: none; /* Firefox */
  appearance: none; /* Standard property */
}

@media screen and (max-width: 992px) {
  .logo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .catalog-items {
    display: none;
  }
  .menu {
    display: none;
  }
  .menu-mobile {
    display: flex;
  }
  .switch input {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .fr-cart-product-container {
    grid-template-columns: 100px 1fr 1fr;
  }
  .fr-cart-product-image {
    height: 100px;
    width: 100px;
  }
  .fr-cart-delete {
    height: 30px;
  }
  .fr-cart-qty-grid {
    grid-column-start: 1;
    grid-column-end: 4;
  }
  #popupCart > .modal-dialog {
    min-width: auto;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounce {
  50% {
    transform: translateY(-15px);
  }
}

@keyframes rotateAnimation {
  0% {
    transform: rotate(0deg);
  }
  88.5% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  padding-left: 0 !important;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
  margin-top: 5px;
}

.viber-icon {
  color: #665cac !important;
}

.telegram-icon {
  color: #0088cc !important;
}

.facebook-icon {
  border-radius: 50%;
  background-color: #ffffff !important;
  color: #4267b2 !important;
}

.instagram-icon {
  color: #c13584 !important;
}

.viber-icon:hover,
.telegram-icon:hover,
.facebook-icon:hover,
.instagram-icon:hover {
  transform: scale(1.1);
}
