.fp-products {
  position: relative;
  padding: clamp(24px, 3vw, 96px) 0;
  overflow: clip;
  overflow-clip-margin: 80px;
}

.fp-products::before {
  content: "";
  position: absolute;
  inset: 18px 0 auto auto;
  width: min(42vw, 620px);
  height: min(42vw, 620px);
  background:
    radial-gradient(
      circle at 35% 35%,
      rgba(154, 126, 151, 0.22),
      transparent 58%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(106, 77, 103, 0.16),
      transparent 56%
    );
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
  z-index: 0;
}

.fp-products .container {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.fp-products__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  /* margin-bottom: clamp(24px, 3vw, 40px); */
}

.fp-products__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent, #6a4d67);
}

.fp-products__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.fp-products__title {
  margin: 0;
  color: var(--color-text, #343036);
  font-size: clamp(2.25rem, 4vw, 4.5rem);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.055em;
}

.fp-products__subtitle {
  max-width: 620px;
  margin: 16px 0 0;
  font-size: clamp(0.95rem, 1.1vw, 1.12rem);
  line-height: 1.55;
  color: rgba(61, 52, 64, 0.68);
}

.fp-products__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fp-products__nav {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(106, 77, 103, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-accent, #6a4d67);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
  backdrop-filter: blur(10px);
}

.fp-products__nav:hover {
  transform: translateY(-2px);
  background: var(--color-accent, #6a4d67);
  color: #fff;
  border-color: var(--color-accent, #6a4d67);
}

.fp-products__link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--color-accent, #6a4d67);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 14px 36px rgba(106, 77, 103, 0.22);
}

.fp-products__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(106, 77, 103, 0.28);
}

.fp-products__link span {
  transition: transform 0.25s ease;
}

.fp-products__link:hover span {
  transform: translateX(4px);
}

.fp-products__slider {
  overflow: hidden;
  padding: 24px 8px 20px 8px;
}
.fp-products .swiper-slide {
  height: auto;
  height: auto;
  padding: 8px 0 30px;
}
.fp-products__slider .swiper-wrapper {
  align-items: stretch;
}
.fp-product-card {
  position: relative;
  height: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(106, 77, 103, 0.08);
  border-radius: clamp(18px, 2vw, 32px);
  overflow: hidden;
  /* box-shadow: 0 20px 60px rgba(41, 31, 44, 0.07); */
  backdrop-filter: blur(14px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* .fp-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 38px rgba(41, 31, 44, 0.1);
  border-color: rgba(106, 77, 103, 0.18);
} */

.fp-product-card:hover,
.product-card:hover {
  transform: translate(-2px, -2px);
  top: 0;
  box-shadow: 0 1.25rem 3rem rgba(47, 41, 45, 0.1);
}

.fp-product-card__image,
.fp-product-card__image img,
.product-card__image,
.product-card__image img {
  display: block;
  width: 100%;
  transform: none;
}

.fp-product-card:hover .fp-product-card__image img,
.product-card:hover .product-card__image img {
  transform: none;
}

.fp-product-card__badge,
.fp-product-card__code {
  position: absolute;
  z-index: 3;

  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.fp-product-card__badge {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;

  min-height: 34px;
  display: inline-flex;
  align-items: center;

  padding: 0 13px;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.62);
  color: var(--color-accent, #6a4d67);

  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 10px 25px rgba(41, 31, 44, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
}

.fp-product-card__code {
  padding: 0 14px;
  background: rgba(106, 77, 103, 0.52);
  color: #fff;
  font-style: italic;
  font-weight: 500;
  backdrop-filter: blur(10px);
  top: 10%;
  right: 5px;
  left: auto;
}

.fp-product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1100 / 1440;
  min-height: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 50% 58%,
      rgba(106, 77, 103, 0.12),
      transparent 42%
    ),
    linear-gradient(180deg, #fff 0%, #faf7fb 100%);
  overflow: hidden;
}

.fp-product-card__image img {
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  object-position: top;
  margin: 0px !important;
  transition: transform 0.45s ease;
  filter: drop-shadow(0 22px 22px rgba(41, 31, 44, 0.18));
  object-fit: cover;
}

/* .fp-product-card:hover .fp-product-card__image img {
  transform: scale(1.055);
} */

.fp-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  position: relative;
}

.fp-product-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;

  overflow: hidden;
  text-overflow: ellipsis;

  min-height: calc(1.35em * 3);
  max-height: calc(1.35em * 3);

  color: var(--color-dark, #463748);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.fp-product-card__title:hover {
  color: var(--color-accent, #6a4d67);
}

.fp-product-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: #6ca24f;
  min-height: 27px;
  position: absolute;
  top: calc(0% - 27px);
  right: 0;
  background-color: white;
  padding: 10px 17px;
  border-top-left-radius: 12px;
}

.fp-product-card__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fp-product-card__stock::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.fp-product-card__stock--out {
  color: #a85b5b;
}
.fp-product-card__stock strong {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  padding: 0 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 600;
}
.fp-product-card__price-main {
  font-size: 1.22rem;
  font-weight: 800;
  color: #344968;
}

.fp-product-card__unit {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(52, 73, 104, 0.78);
  font-style: italic;
}
.fp-product-card__price-old {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(61, 52, 64, 0.38);
  text-decoration: line-through;
}
.fp-product-card__price {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 1.22rem;
  font-weight: 800;
  color: #344968;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.fp-product-card__price-value {
  font-size: 1.22rem;
  font-weight: 800;
  color: #344968;
}
.fp-product-card__price del {
  color: rgba(61, 52, 64, 0.38);
  font-size: 0.92rem;
  font-weight: 500;
}

.fp-product-card__price ins {
  text-decoration: none;
}

.fp-product-card__btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(106, 77, 103, 0.09);
  color: var(--color-accent, #6a4d67);
  text-decoration: none;
  font-weight: 800;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
  margin-top: 10px;
}

.fp-products--sale {
  background: linear-gradient(180deg, #fff 0%, #fbf5f7 100%);
  padding-top: 0px !important;
}

/* .fp-products--sale .fp-products__link,
.fp-products--sale .fp-products__nav:hover,
.fp-products--sale .fp-product-card__btn:hover {
  background: #79394e;
  border-color: #79394e;
} */

.fp-products--sets {
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(106, 77, 103, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, #faf8fb 0%, #fff 100%);
}

.fp-product-card__bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.fp-product-card__bottom .fp-product-card__btn {
  margin-top: 0;
}

.fp-product-card__cart {
  position: relative;

  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(106, 77, 103, 0.08);
  color: var(--color-accent, #6a4d67);

  text-decoration: none;
  cursor: pointer;

  box-shadow: none;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}

.fp-product-card__cart:hover {
  transform: translateY(-2px);
  background: rgba(106, 77, 103, 0.14);
  color: var(--color-accent, #6a4d67);
}

.fp-product-card__cart:active {
  transform: translateY(0) scale(0.96);
}

.fp-product-card__cart.is-loading {
  pointer-events: none;
  opacity: 0.68;
}

.fp-product-card__cart.is-loading .fp-product-card__cart-icon {
  animation: fpCartSpin 0.8s linear infinite;
}

@keyframes fpCartSpin {
  to {
    transform: rotate(360deg);
  }
}

.fp-product-card__cart.is-in-cart,
.fp-product-card__cart.is-added {
  background: var(--color-accent, #6a4d67);
  color: #fff;
  box-shadow: 0 14px 32px rgba(106, 77, 103, 0.22);
}

.fp-product-card__cart.is-in-cart:hover,
.fp-product-card__cart.is-added:hover {
  background: var(--color-accent, #6a4d67);
  color: #fff;
  box-shadow: 0 18px 42px rgba(106, 77, 103, 0.3);
}
.fp-product-card__cart::after {
  content: "Додати в кошик";

  position: absolute;
  right: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(50%) translateY(6px);

  min-width: max-content;
  padding: 7px 10px;
  border-radius: 999px;

  background: rgba(53, 43, 55, 1);
  color: #fff;

  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  box-shadow: 0 10px 24px rgba(41, 31, 44, 0.16);

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.fp-product-card__cart::before {
  content: "";

  position: absolute;
  right: 50%;
  bottom: calc(100% + 5px);
  transform: translateX(50%) translateY(6px);

  width: 8px;
  height: 8px;

  background: rgba(53, 43, 55, 1);
  rotate: 45deg;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.fp-product-card__cart:hover::after,
.fp-product-card__cart:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
}

.fp-product-card__cart:hover::after {
  right: 90%;
}

.fp-product-card__cart:hover::before {
  right: 50%;
}

.fp-product-card__cart.is-in-cart::after,
.fp-product-card__cart.is-added::after {
  content: "У кошику";
}

.fp-cart-toast {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 9999;

  width: min(420px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;

  padding: 14px;
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(106, 77, 103, 0.12);
  box-shadow: 0 24px 70px rgba(41, 31, 44, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;

  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s ease;
}

.fp-cart-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fp-cart-toast__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #6ca24f;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(108, 162, 79, 0.26);
}

.fp-cart-toast__content {
  min-width: 0;
}

.fp-cart-toast__content strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.96rem;
  line-height: 1.2;
  color: #352b37;
}

.fp-cart-toast__content span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(53, 43, 55, 0.62);
}

.fp-cart-toast__link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 14px;
  border-radius: 999px;

  background: var(--color-accent, #6a4d67);
  color: #fff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.fp-cart-toast__link:hover {
  transform: translateY(-1px);
}

.fp-product-card__wishlist {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;

  width: 38px;
  height: 38px;

  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.58);
  color: var(--color-accent, #6a4d67);

  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 10px 24px rgba(41, 31, 44, 0.1);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.fp-product-card__wishlist:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(41, 31, 44, 0.14);
}

.fp-product-card__wishlist:active {
  transform: scale(0.94);
}

.fp-product-card__wishlist.is-active {
  background: var(--color-accent, #6a4d67);
  color: #fff;
  border-color: rgba(106, 77, 103, 0.28);
}

.fp-product-card__wishlist.is-active i::before {
  content: "\f415";
}

.fp-product-card .added_to_cart.wc-forward {
  display: none !important;
}

/*-------------------------------------------------------------------------------1640px-------------------------------------*/
@media (max-width: 1640px) {
}

@media (max-width: 425px) {
  .fp-cart-toast {
    grid-template-columns: 40px 1fr;
  }

  .fp-cart-toast__link {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@keyframes fpCartSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .fp-products__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-products__actions {
    width: 100%;
    justify-content: space-between;
  }

  .fp-products__link {
    margin-left: auto;
  }

  .fp-product-card {
    min-height: 500px;
  }
  /* .fp-product-card__meta {
    margin-top: 6px;

    min-height: none;
  } */
  .fp-product-card__price {
    margin-top: 5px;
    font-size: 1rem;
    font-weight: 700;
  }
  .fp-product-card__btn {
    min-height: 40px;
    padding: 0 16px;
    font-weight: 600;
    margin-top: 6px;
  }
  .fp-product-card__price-main {
    font-size: 1rem;
    font-weight: 700;
  }
}

@media (max-width: 768px) {
  .fp-products {
    padding: 24px 0;
  }

  .fp-products--catalog .container .fp-products__actions {
    gap: 8px;
  }
  .fp-products.fp-products--related.lm-product-related-slide
    .container
    .fp-products__actions {
    gap: 8px;
    justify-content: space-between;
  }
  .fp-products__nav {
    width: 40px;
    height: 40px;
  }

  .fp-products__link {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .fp-product-card {
    /* min-height: 470px; */
    border-radius: 16px;

    min-height: 440px;
  }

  .fp-product-card__body {
    padding: 18px;
  }

  .fp-product-card__title {
    font-size: 0.95rem;
    font-size: 0.95rem;
    line-height: 1.25;
    min-height: calc(1.25em * 3);
    max-height: calc(1.25em * 3);
  }
  .fp-products__slider {
    overflow: hidden;
    padding: 0px;
  }
  /* .fp-products .container {
    padding: 0px;
  }  */
  /* .fp-products {
    padding: 0px;
  } */
  .fp-products__head {
    gap: 12px;
    margin-bottom: 10px;
  }
  .fp-product-card__body {
    padding: 16px 10px 10px 10px;
  }
  .fp-product-card__bottom {
    margin-top: auto;
  }
  .fp-product-card__price {
    margin-bottom: 10px;
  }
  .lm-product-attributes {
    grid-template-columns: 1fr 1fr;
  }
  .fp-product-card__unit {
    font-size: 0.6275rem;
  }
  .fp-product-card__wishlist {
    top: 10px;
    right: 10px;
  }
  .fp-product-card__code {
    top: 9%;
    font-size: 0.6275rem;
    padding: 0 10px;
    font-weight: 300;
  }
}
@media (max-width: 425px) {
  .fp-products__head {
    margin-bottom: 16px;
  }

  .fp-products__actions {
    flex-wrap: wrap;

    justify-content: right;
  }

  .fp-products__link {
    width: 100%;
    justify-content: center;
    order: 3;
    margin-left: 0;
  }

  .fp-products__nav {
    border-radius: 999px;
  }

  .fp-product-card__badge {
    right: 14px;
    top: 14px;
  }
  .fp-product-card__meta {
    font-size: 0.5rem;
    padding: 3px 7px;
    min-height: 14px;
    top: calc(0% - 14px);
  }
  .fp-product-card__stock strong {
    min-width: 18px;
    height: 18px;
    margin-left: 4px;
    font-size: 0.5rem;
    line-height: 1;
    font-weight: 500;
  }
  .fp-products__link {
    width: auto;
    margin-left: auto;
  }
  .fp-product-card__title {
    font-size: 0.875rem;
    font-size: 0.875rem;
    line-height: 1;
    min-height: calc(1em * 3);
    max-height: calc(1em * 3);
  }
  .fp-product-card__btn {
    font-size: 0.875rem;
  }
  .fp-product-card {
    /* min-height: 470px; */
    /* border-radius: 16px; */

    min-height: 400px;
  }
}
