.product-detail {
  --product-detail-offset: 67px;
  --product-detail-info-min-width: 300px;
  --product-detail-info-max-width: 413px;

  display: flex;
  column-gap: var(--product-detail-offset);
  align-items: start;
  max-width: 100%;

  @media screen and (max-width: 1280px) {
    --product-detail-offset: 24px;
    /* column-gap: 24px; */
  }

  @media screen and (max-width: 640px) {
    --product-detail-offset: 0;
    
    flex-direction: column;
    row-gap: 24px;
  }
}
.product-detail:not(:last-child) {
  margin-bottom: 120px;
}

.product-detail :is(.swiper, .swiper-wrapper) {
  height: 100%;
}
.product-detail__slider .swiper-pagination {
  --swiper-pagination-bottom: 20px;
  --swiper-pagination-bullet-width: 60px;
  --swiper-pagination-bullet-border-radius: 0;
  --swiper-pagination-bullet-horizontal-gap: 2px;
  --swiper-pagination-bullet-inactive-opacity: 1;
  --swiper-pagination-bullet-inactive-color: var(--primary-opacity6);

  flex-wrap: wrap;
  row-gap: 2px;
}
.product-detail__slider .swiper-pagination-bullet {
  font-size: 0;
  height: 2px;
}
.product-detail__slider .swiper-pagination-bullet-active {
  --swiper-pagination-color: var(--primary-accent2);
}

/* IMAGES */
.product-detail__images {
  width: 100%;
  max-width: calc(100% - var(--product-detail-info-max-width) - var(--product-detail-offset));
  display: flex;
  column-gap: 24px;
  align-items: stretch;
}
.product-detail__gallery {
  width: 50%;
  display: grid;
  row-gap: 24px;
  column-gap: 24px;
  grid-template-columns: repeat(2, 1fr);

  @media screen and (max-width: 1025px) {
    display: none;
  }
}
.product-detail__gallery .product-detail__image:nth-child(1n + 5) {
  display: none;
}
.product-detail__slider {
  width: 50%;
  min-width: 160px;
  /* height: calc(504px + 154 * var(--window-resize)); */
  overflow: hidden;
  position: relative;
  aspect-ratio: 9/13;

  @media screen and (max-width: 1025px) {
    width: 100%;
  }
}
.product-detail__image {
  height: 100%;
  overflow: hidden;

  @media screen and (max-width: 640px) {
    pointer-events: none;
  }
}
.product-detail__gallery .product-detail__image {
  /* aspect-ratio: 9/13; */
  /* height: 50%; */
  max-height: 320px;
}
.product-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail__obraz {
  --icon-size: 23px;
  --button-width: max-content;
  --button-height: 37px;
  --button-offset: 12px;

  display: none !important;

  z-index: 1;
  position: absolute;
  left: 20px;
  top: 20px;
  font-size: calc(12px + 0 * var(--window-resize));
}
.product-detail__obraz .icon {
  order: 5;
}

/* INFO */
.product-detail__info {
  width: 100%;
  min-width: var(--product-detail-info-min-width);
  max-width: var(--product-detail-info-max-width);

  @media screen and (max-width: 1280px) {
    max-width: 350px;
  }

  @media screen and (max-width: 640px) {
    max-width: 100%;
  }
}
.product-detail__info .separator {
  margin-top: 24px;
  margin-bottom: 24px;
}

.product-detail__top {
  display: flex;
  column-gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.product-detail__collection {
  --link-color: var(--primary-accent2);

  font-weight: 500;
  font-size: calc(12px + 0 * var(--window-resize));
}
.product-detail__article {
  --icon-size: 16px;
  --icon-fill: var(--primary-accent4);
  --link-color: var(--primary-accent4);

  display: flex;
  column-gap: 9px;
  align-items: center;

  font-weight: 300;
  font-size: calc(14px + 0 * var(--window-resize));
}
.product-detail__article .icon {
  order: 5;
}

.product-detail__name {
  font-weight: 300;
  font-size: calc(24px + 0 * var(--window-resize));
}
.product-detail__name:not(:first-child) {
  margin-top: 16px;
}

.product-detail__filter {
  display: flex;
  row-gap: 20px;
  flex-direction: column;
}

.product-detail__prices {
  display: flex;
  column-gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 17px;
  margin-bottom: 9px;
  white-space: nowrap;
}
.product-detail__price {
  font-weight: 700;
  font-size: calc(24px + 0 * var(--window-resize));
}
.product-detail__oldprice {
  font-weight: 500;
  text-decoration: line-through;
  font-size: calc(20px + 0 * var(--window-resize));
  color: var(--primary-accent4);
}
.product-detail__discount {
  font-weight: 500;
  font-size: calc(20px + 0 * var(--window-resize));
  color: var(--primary-accent2);
}

.product-detail__buy {
  display: flex;
  row-gap: 24px;
  column-gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.product-detail__basket {
  --button-width: 100%;
  width: calc(100% - 80px);

  display: flex;
  column-gap: 24px;
  align-items: center;

  @media screen and (max-width: 1440px) {
    width: 100%;
  }
}

.product-detail__wishlist {
  @media screen and (max-width: 1440px) {
    /* order: 5; */
    display: none;
  }
}
.product-detail__wishlist .button.delete-wishlist {
  --icon-fill: var(--primary-accent);
  --button-background: var(--primary-accent2);
}
.product-detail__wishlist .button.delete-wishlist:hover {
  --icon-fill: var(--primary-color);
  --button-background-hover: var(--primary-accent11);
}
.product-detail__wishlist .button.add-wishlist:focus {
  --icon-fill: var(--primary-color);
  --button-background-hover: var(--primary-accent11);
}
.product-detail__wishlist .button.delete-wishlist:focus {
  --icon-fill: var(--primary-accent);
  --button-background-hover: var(--primary-accent2);
}

.product-detail__credit {
  width: 100%;

  @media screen and (max-width: 1440px) {
    /* width: calc(100% - 80px); */
  }
}
.product-detail__credit .button {
  --icon-size: 12px;
  --button-width: 100%;
  --button-color: var(--primary-accent4);
}
.product-detail__credit .icon--podeli {
  --icon-size: auto;
  --icon-fill: var(--primary-accent2);
  margin-right: 24px;
}
.product-detail__credit .icon--podeli path[fill="black"] {
  fill: black;
}
.product-detail__credit:hover .icon--podeli path {
  fill: var(--primary-accent) !important;
}
.product-detail__credit .icon--arrow-right {
  order: 5;
  margin-left: auto;
}

.product-detail__size {
  font-weight: 500;
  font-size: calc(16px - 2 * var(--window-resize));
  color: var(--primary-accent4);
  margin-top: 28px;
}
.product-detail__size span {
  color: var(--primary-color);
  text-transform: uppercase;
}

.product-detail__tabs .tabs__contents {
  font-weight: 500;
}

.product-stickers {
  display: flex;
  row-gap: 10px;
  column-gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  pointer-events: none;

  @media screen and (max-width: 1025px) {
    row-gap: 6px;
    column-gap: 6px;
  }
}
.product-sticker {
  height: 40px;
  border-radius: 40px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 500;
  white-space: nowrap;
  font-size: calc(12px + 2 * var(--window-resize));
  color: var(--primary-color);

  @media screen and (max-width: 1025px) {
    height: 30px;
    border-radius: 30px;
    padding: 0 12px;
  }
}
.product-sticker.sale {
  color: var(--primary-accent);
  background-color: var(--primary-accent2);
}