/**
 * Карточки товара в витрине — только телефон ≤767.
 * PC / tablet ≥768 не трогаем.
 */

@media (max-width: 767px) {
  html body ul.products,
  html body ul.products.columns-2,
  html body ul.products.columns-3,
  html body ul.products.columns-4,
  html body .woocommerce ul.products,
  html body .sk-full-catalog ul.products,
  html body.sk-catalog .sk-shop__main ul.products,
  html body.tax-product_cat .sk-shop__main ul.products,
  html body.post-type-archive-product .sk-shop__main ul.products,
  html body.woocommerce-shop .sk-shop__main ul.products,
  html body.home .sk-home-catalog-pair ul.products,
  html body.home .sk-home-catalog-six ul.products,
  html body.home .sk-shelf ul.products {
    gap: 12px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  html body ul.products > li.product,
  html body .woocommerce ul.products > li.product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transform: none !important;
    padding: 8px 8px 10px !important;
  }

  html body.sk-ritual .woocommerce ul.products li.product:not(.product-category):hover,
  html body.sk-ritual ul.products li.product:not(.product-category):hover {
    transform: none !important;
  }

  html body ul.products li.product .astra-shop-thumbnail-wrap,
  html body.sk-ritual .woocommerce ul.products li.product:not(.product-category) .astra-shop-thumbnail-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 6px !important;
    padding: 4px !important;
    box-sizing: border-box !important;
  }

  html body.sk-ritual ul.products li.product:not(.product-category) .astra-shop-thumbnail-wrap::after,
  html body.sk-ritual .woocommerce ul.products li.product:not(.product-category) .astra-shop-thumbnail-wrap::after {
    display: none !important;
  }

  html body ul.products li.product img.attachment-woocommerce_thumbnail,
  html body ul.products li.product .astra-shop-thumbnail-wrap img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: min(220px, 42vw) !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  html body ul.products li.product .ast-loop-product__link {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html body ul.products li.product .astra-shop-summary-wrap {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
  }

  html body.sk-ritual ul.products li.product:not(.product-category) .woocommerce-loop-product__title {
    font-size: 12px !important;
    line-height: 1.28 !important;
    max-height: 2.6em !important;
    margin: 0 0 4px !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  html body.sk-ritual ul.products li.product:not(.product-category) .price {
    font-size: 14px !important;
    margin: 0 0 6px !important;
    flex-wrap: wrap !important;
  }

  html body ul.products li.product .sk-rating-badge {
    font-size: 10px !important;
    margin: 2px 0 4px !important;
    gap: 4px !important;
    max-width: 100%;
  }

  html body ul.products li.product .button,
  html body.sk-ritual .woocommerce ul.products li.product a.button,
  html body.sk-ritual ul.products li.product:not(.product-category) .button {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 6px 0 0 !important;
    padding: 9px 8px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    letter-spacing: 0.1em !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }

  html body ul.products li.product .sk-lux-rim {
    display: none !important;
  }

  html body ul.products li.product .sk-lux-heart {
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
  }

  html body ul.products li.product .sk-lux-stock {
    left: 6px;
    bottom: 6px;
    max-width: calc(100% - 40px);
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  html body ul.products li.product .sk-lux-stock--in {
    top: auto;
    bottom: 6px;
  }
}

@media (max-width: 430px) {
  html body ul.products,
  html body .woocommerce ul.products {
    gap: 10px 8px !important;
  }

  html body.sk-ritual ul.products li.product:not(.product-category) .woocommerce-loop-product__title {
    font-size: 11px !important;
  }
}