@import './fonts.css';
@import './normalize.css';

:root {
  scroll-behavior: smooth;
  background-color: #f3f0ea;
  background-image: url('../img/bg.png');
  background-repeat: repeat-y;
  background-size: cover;
  background-position: center top;
  color: #000;
  --font: 'Abril Fatface', serif;

  --primary: #142e38;
  --secondary: #318161;

  --font-family: 'SF Pro Display', sans-serif;
  --second-family: 'Open Sans', sans-serif;
  --third-family: 'PT Serif', sans-serif;
  --font3: 'Lato', sans-serif;
  --font4: 'Poppins', sans-serif;
}
html {
  overflow-x: hidden;
}
/* a {
  color: #000;
}
a:hover {
  color: #333;
} */
::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 50px;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::selection {
  background-color: var(--primary);
  color: #fff;
}

body {
  font-family: 'sf pro', sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}
.alert-danger {
  color: #ff6363;
}
.text-danger {
  color: #ff6363;
}
.alert-success {
  color: #54b773;
}
.container {
  max-width: 1378px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}
.container-right {
  padding: 0 calc(50% - 675px);
  padding-right: 0;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 2;
  position: relative;
}

.header-list {
  display: flex;
  align-items: center;
}

.header-icons {
  width: 305px;
  height: 110px;
  background-color: var(--primary);
  border-bottom-left-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
}
.header-icons::before {
  content: '';
  position: absolute;
  width: 9999%;
  height: 100%;
  background-color: var(--primary);
  right: -9999%;
}
.header-menu {
  display: flex;
  align-items: center;
  gap: 37px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.header-button {
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  color: var(--primary);
  font-family: var(--second-family);
  font-weight: 600;
}

.header-button.active,
.header-button:hover {
  text-decoration: underline;
}

.header-search,
.header-like {
  width: 60px;
  height: 60px;
  border-radius: 50px;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.5s;
}

.header-search path,
.header-like path {
  width: 60px;
  height: 60px;
  border-radius: 50px;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.5s;
}

.header-search path {
  fill: #000;
  transition: fill 0.5s;
}

.header-like path path {
  stroke: #000;
  transition: stroke 0.5s;
}

.header-search:hover,
.header-like:hover {
  background-color: #000;
}

.header-search:hover path {
  fill: #fff;
}

.header-like:hover path {
  stroke: #fff;
}

.product {
  background-color: var(--secondary);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.product:hover {
  border-color: #000;
}

.product-img {
  border-radius: 14px;
  width: 100%;
  max-height: 316px;
  object-fit: cover;
}

.like-button {
  position: absolute;
  left: 24px;
  top: 24px;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background-color: rgb(255, 255, 255, 0.3);
  transition: all 0.5s;
  opacity: 0;
}
.product:hover .like-button {
  opacity: 1;
}

.like-button svg {
  transition: fill 0.5s;
  fill: transparent;
}

.like-button path {
  transition: stroke 0.5s;
}

.like-button:hover svg,
.like-button.active svg {
  fill: #ffffff;
}

.like-button:hover path,
.like-button.active path {
  stroke: #ffffff;
}

.product-content {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  padding: 20px 30px 30px 33px;
}

.product-left {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
  justify-content: space-between;
  color: #fff;
  font-family: var(--font3);
}

.product-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 120%;
  color: #fff;
}

.product-price {
  font-weight: 700;
  font-size: 18px;
  line-height: 120%;
  color: #fff;
}

.shop-link {
  display: flex;
  justify-content: center;
  margin-top: 17px;
}
.shop-link a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 32px;
  line-height: 185%;
  color: #142e38;
  font-family: var(--second-family);
}
.swiper-container {
  position: relative;
  padding: 0px 88px;
}

.swiper-button-next,
.swiper-button-prev {
  width: 50px;
  height: 50px;
  background-color: #fff;
  border-radius: 50%;
  padding: 11px;
}
.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
  display: none;
}
.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
  display: none;
}
.swiper-button-next,
.swiper-rtl .swiper-button-prev {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.swiper-button-prev,
.swiper-rtl .swiper-button-next {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
  margin: 50px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {
  display: block;
  width: 15px;
  height: 15px;
  background-color: #e4e7ec;
  opacity: 1;
  border-radius: 20px;
  transition: width 0.5s, background-color 0.5s;
}

.swiper-pagination-horizontal.swiper-pagination-bullets
  .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: #000;
  width: 60px;
}

.tab {
  padding: 14px 40px;
  border-radius: 50px;
  border: 1px solid var(--primary);
  transition: color 0.5s, background-color 0.5s;
  width: max-content;
  white-space: nowrap;
  line-height: 16px;
  color: var(--primary);
  width: 100%;
  text-align: center;
}

.tab.active,
.tab:hover {
  background-color: var(--primary);
  color: #fff;
}

.footer-wrapper {
  width: 100%;
  background-color: var(--primary);
}

.footer {
  display: flex;
  justify-content: center;
  max-width: 1440px;
  padding-top: 35px;
  padding-bottom: 50px;
}
.footer-item {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 280px;
  width: 100%;
}
.footer-item + .footer-item {
  margin-left: 113px;
}

.footer-item:last-child {
  border: none;
}
.footer-item-checkbox {
}
.footer-title {
  font-weight: 500;
  font-size: 21px;
  color: #fff;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list.big {
  gap: 24px;
}

.footer-link {
  font-weight: 500;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: 0.03em;
  color: #c4c4c4;
}

.footer-link:hover {
  color: #fff;
}

.footer-form {
  gap: 16px;
  margin-left: 62px !important;
  padding-top: 50px;
  width: 100%;
  max-width: 328px;
}

.footer-field-title {
  font-size: 14px;
  line-height: 120%;
  font-weight: 400;
  color: #fff;
}

.footer-input {
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  height: 55px;
  padding: 0px 16px;
  font-weight: 500;
  font-size: 14px;
  line-height: 120%;
  color: #808080;
  background-color: #fff;
}

.footer-button {
  background-color: var(--secondary);
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  height: 55px;
  color: #fff;
}
.footer-button[disabled] {
  background-color: #919191;
}
.footer-button:not([disabled]):hover {
  background-color: #fff;
  color: #000;
}
.menu-button {
  z-index: 2;
  display: none;
  flex-direction: column;
  gap: 4px;
  border-radius: 8px;
  width: 40px;
  height: 34px;
  background-color: var(--primary);
  justify-content: center;
  align-items: center;
  transition: background-color 0.5s;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #fff;
  border-radius: 10px;
  transition: background-color 0.5s;
}

.header-top {
  align-items: center;
  justify-content: space-between;
  display: none;
}

.header-list-item {
  font-size: 18px;
  font-weight: 500;
}

.header-list-mob {
  z-index: 1;
  position: absolute;
  top: 0px;
  left: -100%;
  display: none;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  overflow: hidden;
  padding: 20px;
  padding-top: 80px;
  background-color: #fff;
  transition: left 0.5s;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 40px;
  margin-top: 25px;
}

.breadcrumbs-item {
  font-size: 18px;
  font-weight: 500;
  color: rgb(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 7px;
}

.breadcrumbs-item:after {
  content: '';
  display: block;
  height: 20px;
  width: 1px;
  background-color: rgb(0, 0, 0, 0.4);
}

.breadcrumbs-item.active {
  cursor: default;
  color: rgb(0, 0, 0, 0.8);
}

.breadcrumbs-item.active::after {
  content: none;
}

.header-top-list {
  display: flex;
  align-items: center;
  gap: 16px;
}

.popup-cart-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 3;
  display: flex;
  transition: opacity 0.5s;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.popup-cart {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  overflow: hidden;
  scale: 0.5;
  transition: scale 0.5s;
}
.popup-cart__inner {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-bottom-right-radius: 0px;
  border-top-right-radius: 0px;
}

.popup-cart-wrapper.open {
  opacity: 1;
  pointer-events: unset;
  user-select: unset;
}

.popup-cart-wrapper.open .popup-cart {
  scale: 1;
}

.cart-item {
  padding: 25px 40px;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  gap: 24px;
}
.cont_cart {
  overflow: hidden;
}
.cont_cart_insert {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cart-divider {
  width: 100%;
  height: 1px;
  background-color: #000;
}

.cart-title {
  font-weight: 500;
}

.cart-subtotal {
  font-weight: 500;
  font-size: 18px;
}

.cart-amount {
  font-weight: 500;
  font-size: 21px;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  overflow-y: auto;
}

.cart-product-info {
  font-size: 14px;
  text-align: center;
  width: 100%;
}

.cart-button {
  width: 100%;
  background-color: var(--secondary);
  font-weight: 500;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  padding: 20px;
  gap: 20px;
}

.cart-item-remove {
  font-weight: 600;
  color: #808080;
}

.cart-item-amount {
  font-size: 20px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid #000;
}

.cart-item-amount-button {
  padding: 8px 12px;
}

.cart-item-content {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-title,
.cart-item-price {
  font-size: 18px;
  font-weight: 500;
}

.cart-item-image {
  border-radius: 12px;
  border: 1px solid #000;
  width: 100%;
  max-width: 160px;
}

.popup-alert {
  max-width: 400px;
  line-height: 120%;
  z-index: 10;
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background-color: var(--secondary);
  border-radius: 8px;
  transform: translate(calc(-100% - 16px));
  transition: transform 0.5s;
  color: #ffffffc0;
}
.popup-alert a {
  color: #fff;
}

.popup-alert.error {
  background-color: #ff6363;
}

.popup-alert.active {
  transform: translate(0px);
}

.pag {
  padding-bottom: 80px;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: auto;
  padding-bottom: 15px;
}
.form-button {
  padding: 20px 60px;
  border-radius: 15px;
  background-color: #318161;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  width: fit-content;
  transition: color 0.5s, background-color 0.5s;
}
.form-button:hover {
  background-color: #000;
  color: #fff;
}
.pagination li span,
.pagination li a {
  display: block;
  font-size: 18px;
  padding: 8px 12px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  transition: color 0.5s, background-color 0.5s;
  color: var(--primary);
}

.pagination li a:hover {
  background-color: var(--primary);
  color: #fff;
}

.pagination li.active span {
  background-color: var(--primary);
  color: #fff;
}
#information-information{
  margin-bottom: 50px;
}
@media (max-width: 1220px) {
  .header-icons {
    height: 80px;
    width: unset;
    padding: 0 20px;
  }
  .header-menu{
    gap: 20px;
  }
  .header-button{
    font-size: 16px;
  }
}
@media (max-width: 1023px) {
  .hero-img{
    width: 300px;
  }
  .hero-img img{
    width: 100%;
  }
  .footer {
    gap: 30px;
  }
  .footer-item {
    border: none;
  }
  .footer-item + .footer-item {
    margin-left: 0px;
  }
  .footer-item {
    max-width: 100%;
  }

  .footer-form {
    order: 2;
    margin-left: 0px !important;
  }

  .header-search,
  .header-like {
    width: 52px;
    height: 52px;
  }
  .header-top {
    display: flex;
  }
  .header-list {
    display: none;
  }

  .menu-button {
    display: flex;
  }
  .header-menu {
    display: none;
  }

  .header-list-mob {
    display: flex;
  }

  .header.open .header-list-mob {
    left: 0%;
  }
  
}

@media (max-width: 767px) {
  .header-icons {
    gap: 15px;
    .header-icon {
      width: 24px;
      display: flex;
    }
  }
  .footer {
    display: flex;
    flex-direction: column;
  }

  .footer-item {
    padding-top: 0px;
    border-right: none !important;
  }

  .header {
    padding: 0px 16px 0;
  }

  .header-search,
  .header-like {
    width: 40px;
    height: 40px;
  }
  .header.open .menu-button {
    background-color: #000;
  }

  .header.open .menu-button span {
    background-color: #fff;
  }

  .breadcrumbs {
    padding-bottom: 40px;
  }

  .breadcrumbs-item {
    font-size: 13px;
  }

  .cart-item {
    gap: 8px;
    padding: 10px;
  }

  .cart-item-remove {
    font-size: 13px;
  }

  .cart-item-amount,
  .cart-item-title,
  .cart-item-price {
    font-size: 14px;
  }

  .cart-item-amount-button {
    padding: 6px;
  }

  .cart-item-content {
    gap: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .popup-alert {
    max-width: calc(100% - 32px);
  }
}
