/* KEHR: readable native WooCommerce product cards on phones and tablets. */
@media (max-width: 991px) {
  body.woocommerce.archive .woocommerce.main-products {
    --ts-columns: 2 !important;
    --ts-h-gap: 16px;
    min-width: 0;
    max-width: 100%;
  }

  body.woocommerce.archive .woocommerce.main-products > .products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    width: 100%;
    margin: 0 !important;
  }

  body.woocommerce.archive .main-products > .products > .product {
    float: none !important;
    width: auto !important;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.woocommerce.archive .main-products .product-wrapper {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 14px;
    border: 1px solid #dfe5df !important;
    border-radius: 12px;
    background: #fff;
  }

  body.woocommerce.archive .main-products .thumbnail-wrapper figure {
    aspect-ratio: 4 / 3;
    width: 100%;
    margin: 0;
    background: #fff;
  }

  body.woocommerce.archive .main-products .thumbnail-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }

  body.woocommerce.archive .main-products .meta-wrapper {
    display: flex !important;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 12px 0 0 !important;
  }

  body.woocommerce.archive .main-products .product-name {
    order: 1;
    margin: 0 !important;
  }

  body.woocommerce.archive .main-products .product-name a {
    font-size: 17px !important;
    line-height: 1.4 !important;
    color: #244b40 !important;
    word-break: normal !important;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  body.woocommerce.archive .main-products .meta-wrapper > .price {
    order: 2;
    width: 100%;
    margin: 0 !important;
    overflow: visible;
  }

  body.woocommerce.archive .main-products .custom-preis-block {
    min-width: 0;
    margin: 0;
  }

  body.woocommerce.archive .main-products .preis-netto {
    margin: 0 !important;
    min-height: 0 !important;
    font-size: 25px !important;
    line-height: 1.25;
    color: #244b40;
  }

  body.woocommerce.archive .main-products .preis-netto .netto,
  body.woocommerce.archive .main-products .preis-netto .mwst,
  body.woocommerce.archive .main-products .preis-brutto {
    font-size: 12px !important;
    font-weight: 400;
    line-height: 1.5;
  }

  body.woocommerce.archive .main-products .price .amount {
    display: inline-block;
    white-space: nowrap;
  }

  body.woocommerce.archive .main-products .wc-gzd-additional-info {
    order: 3;
    margin: 0 !important;
    min-height: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    white-space: normal;
  }

  body.woocommerce.archive .main-products .product-categories-plp {
    display: none;
  }

  body.woocommerce.archive .main-products .meta-wrapper > a.button {
    order: 4;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    min-height: 46px;
    height: auto !important;
    margin: auto 0 0 !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    text-align: center;
    overflow: visible;
    color: #fff !important;
    background: #354b3a;
    border-radius: 8px;
  }

  body.woocommerce.archive .main-products .meta-wrapper > a.button .button-tooltip {
    font-size: inherit !important;
    line-height: inherit;
    white-space: normal;
  }

  body.woocommerce .breadcrumbs {
    max-width: 100%;
    font-size: 13px !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.single-product .woocommerce-tabs :is(h1, h2, h3) {
    max-width: 100%;
    font-size: 22px !important;
    line-height: 1.4 !important;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  body.single-product .product_title {
    max-width: 100%;
    font-size: 24px !important;
    line-height: 1.35 !important;
    text-transform: none;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  body.single-product .woo-product-gallery-slider .slick-slide .attachment-shop_single {
    height: auto !important;
    max-height: 360px;
    object-fit: contain !important;
  }

  button.cmplz-manage-consent {
    left: auto !important;
    right: 12px !important;
    bottom: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 88px) !important;
    min-height: 44px;
    padding: 10px 12px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-break: normal;
    border-radius: 8px 8px 0 0;
  }
}

@media (max-width: 479px) {
  body.woocommerce.archive .woocommerce.main-products {
    --ts-columns: 1 !important;
  }

  body.woocommerce.archive .woocommerce.main-products > .products {
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce.archive .main-products .product-wrapper {
    padding: 16px;
  }
}
