.product-gallery-thumbs .swiper-slide img {
 
    object-fit: contain!important;

}@media (max-width: 576px) {
    .product-detail__gallery {
        max-width: 100%;
        width: calc(100% - 30px);
        padding: 0px 10px;
    }
}.btn-add-to-cart:hover {
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #ffffff;
    border: 3px solid #111112 !important;
    background-color: #db701f !important;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
}.product-detail__quantity

 {

    overflow: hidden;
}.product-detail__article
{color: #777;}
.product-detail__title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1f5e;
    font-weight: 700;
    text-transform: uppercase;
}.product-detail__wrapper {
    display: grid
;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    font-family: 'unitedleague', Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.55;
}.swiper-button-next:after, .swiper-button-prev:after

 {
    font-family: swiper-icons;
    font-size: var(--swiper-navigation-size);
    text-transform: none !important;
    letter-spacing: 0;
    font-variant: initial;
    line-height: 1;
    width: 40px;
    height: 20px;
    border: 1px solid rgb(0, 0, 0);
    background-color: rgb(255, 255, 255);
    margin-top: 0px;
    font-size: 20px!important;
    padding: 10px 15px!important;
    border-radius: 50%!important;
}.qty-btn {
    background: #ffffff !important;
    border: none;
    padding: 5px 10px;
    font-size: 18px;
    cursor: pointer;
}.btn-add-to-cart {
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #ffffff;
    border: 3px solid #111112!important;
    background-color: #010070!important;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
}
.product-detail__gallery {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 20px;
  overflow: hidden;
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1; /* Квадратный контейнер — идеален для фото */
  margin-bottom: 10px;
  position: relative;
}

.product-gallery-main .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.product-gallery-main .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.product-gallery-thumbs {
  box-sizing: border-box;
  padding-top: 5px;
}

.product-gallery-thumbs .swiper-slide {
  width: 80px;
  height: 80px;
  opacity: 0.5;
  cursor: pointer;
  border: 1px solid transparent;
}

.product-gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: #000;
}

.product-gallery-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
  .product-detail__gallery {
    max-width: 500px;
  }

  .product-gallery-thumbs .swiper-slide {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 768px) {
  .product-detail__gallery {
    max-width: 400px;
  }
.swiper-backface-hidden .swiper-slide {

    max-width: 94%;
}
  .product-gallery-thumbs .swiper-slide {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 576px) {
  .product-detail__gallery {
    max-width: 100%;
    padding: 0 10px;
  }

  .product-gallery-main {
    aspect-ratio: auto;
    height: auto;
  }
    .product-gallery-main .swiper-slide img {
        width: 100%;
        height: auto;
        max-width: 320px;
    }
  .product-gallery-main .swiper-slide img {
    width: 100%;
    height: auto;
  }

  .product-gallery-thumbs .swiper-slide {
    width: 50px;
    height: 50px;
  }

  .product-gallery-main .swiper-button-prev,
  .product-gallery-main .swiper-button-next {
    display: none; /* прячем стрелки на мобилках */
  }
}
.product-detail__gallery { flex: 1 1 45%; }
.product-detail__main-image img { width: 100%; border: 1px solid #eee; }
.product-detail__thumbs { display: flex; gap: 10px; margin-top: 10px; }
.product-detail__thumbs img { width: 70px; height: 70px; object-fit: cover; cursor: pointer; border:1px solid #ccc; }

.product-detail__content { flex: 1 1 45%; }
.product-detail__title { font-size: 24px; font-weight: 700; text-transform: uppercase; }
.product-detail__price { font-size: 20px; font-weight: 600; margin: 15px 0; }

.product-detail__cart { display: flex; gap: 10px; align-items: center; }
.product-detail__quantity

 {
    display: flex
;
    border: 1px solid #000;
    font-size: 14px;
    height: 45px;
    margin: 0 4px 8px 0;
    vertical-align: top;
    border-radius: 20px;
    border: 1px solid #ccc;
    background: #fff;
}
.product-detail__quantity input { width: 50px; text-align: center; border: none; }
.qty-btn { border-radius: 20px; background: none; border: none; padding: 5px 10px; cursor: pointer; font-size: 18px; }
.btn-add-to-cart { background: #00008b; color: #fff; padding: 10px 20px; border: none; cursor: pointer; font-weight: 600; }

.product-detail__description { margin-top: 30px; }

.similar-products { margin-top: 60px; }
.similar-products__title { font-size: 22px; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; }

.similar-item { text-align: center; background: #fff; border: 1px solid #eee; padding: 10px; }
.similar-item__image img { max-width: 100%; }
.similar-item__title { display: block; margin: 10px 0; font-weight: 600; color: #000; text-decoration: none; }
.similar-item__price { font-weight: 700; color: #00008b; }
.similar-item__buttons { margin-top: 10px; }
.btn-detail { display: block; background: #00008b; color:#fff; padding:6px 10px; margin-bottom:5px; text-decoration:none; }
.similar-item__cart { display: flex; align-items: center; gap: 5px; justify-content: center; }
.similar-item__cart input { width: 40px; text-align: center; border: 1px solid #ccc; }

@media(max-width: 768px){
  .product-detail__wrapper { flex-direction: column; }
}