/**
 * WooCommerce — desktop enhancements (loaded from 768px; rules scoped by min-width).
 */

/* Позиция бейджей на ≥1920px — только по числу .woo-pl-card__badge внутри блока (:has поддерживают современные браузеры). */
@media (min-width: 1920px) {
  /* Ровно 1 бейдж */
  .single-product .woo-single-gallery__badges:has(> .woo-pl-card__badge:nth-child(1):last-child) {
    left: 50%;
    transform: translateX(-330%);
  }

  /* Ровно 2 бейджа */
  .single-product .woo-single-gallery__badges:has(> .woo-pl-card__badge:nth-child(2):last-child) {
    left: 50%;
    transform: translateX(-176%);
  }

  /* Ровно 3 бейджа */
  .single-product .woo-single-gallery__badges:has(> .woo-pl-card__badge:nth-child(3):last-child) {
    left: 50%;
    transform: translateX(-120%);
  }
}

@media screen and (min-width: 992px) {
  .single-product div.product .woo-single__top {
    /* display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
    gap: 40px 48px;
    align-items: start; */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
  }

  .single-product div.product .woo-single__summary {
    width: auto;
    float: none;
  }

  .single-product div.product .woo-single-gallery__inner {
    flex-direction: row-reverse;
    align-items: center;
    gap: 20px;
  }

  .single-product .woo-gallery-thumbs {
    width: 92px;
    flex-shrink: 0;
    /* height: min(520px, 58vh); */
    max-height: 560px;
    box-sizing: border-box;
  }

  .single-product .woo-gallery-thumbs .swiper-slide {
    width: 88px;
    height: 88px;
    box-sizing: border-box;
  }

  .single-product .woo-gallery-main-wrap {
    flex: 1;
    min-width: 0;
  }

  .single-product .woo-single-detail__nav-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 28px;
  }

  .single-product .woo-single-summary__title-row {
    align-items: flex-start;
  }

  .single-product .woo-single-summary__cart-row form.cart {
    flex-wrap: nowrap;
    align-items: center;
  }

  .single-product .woo-single-summary__cart-row form.cart .button {
    flex: 1;
    min-width: 0;
  }
}

@media screen and (min-width: 1200px) {
  .single-product div.product .woo-single__top {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* Карточки слайдеров под товаром (десктоп) */
@media screen and (min-width: 992px) {
  .single-product .woo-pl-card__img-link {
    min-height: 240px;
  }

  .single-product .woo-pl-card__img {
    max-height: 250px;
  }

  .single-product .woo-pl-card__title {
    font-size: 15px;
  }

  .single-product .woo-pl-card__price {
    font-size: 20px;
  }
}

/*
 * Главная витрина: круги брендов — базовые правила в woo-mob.css.
 * Здесь только уточнения для viewport ≥768px (лист подключается с min-width: 768px).
 */

.nshop-brands__head {
  margin-bottom: 40px;
}

.nshop-brands__title {
  font-size: 26px;
}

@media screen and (min-width: 1200px) {
  .nshop-brands__title {
    font-size: 28px;
  }

  .ncat-archive__filter-open {
    display: none;
  }
}

/* Категории товаров */
@media screen and (min-width: 992px) {
  .ncat-archive__title {
    font-size: clamp(28px, 2.5vw, 40px);
  }

  .ncat-toolbar__select {
    min-width: 240px;
  }
}

.cc-poweredby.cc-text-center {
  display: none !important;
}

.ncat-archive {
  margin-top: 40px;
}

.single-product div.product .woo-single__top {
  margin-top: 40px;
}
