/* Contrast (WCAG AA 4.5:1) and small rendering fixes reported by Lighthouse. Same hues, slightly darker or lighter. */

/* brand red on white: #e3402a is 4.17:1, #d93a25 is 4.59:1 */
.block-title .subtitle,
.block_title span,
.product-video .subtext,
.overview-item span,
.price bdi,
.price ins bdi,
.news-sidebar .view-all,
.news-sidebar .news-cat li.active a,
.news_detail-text_content p a,
.sytech_filter .widget ul.terms li.haschild,
.woocommerce ul.products li.product .price,
#cr-launcher .cr-lb-sub {
  color: #d93a25 !important;
}
.about-text-part .text-content h2 {
  color: #d03520 !important;
}
.contact-main .contact-item span {
  color: #d00000 !important;
}

/* white on brand red */
.text-content a.button,
.news_detail-box .text_content .date,
.single_add_to_cart_button,
.woocommerce div.product .buy-now {
  background-color: #d93a25 !important;
}
ul.products li.product span.onsale,
span.onsale {
  background-color: #d93a25 !important;
  color: #fff !important;
}
.footer_copyright {
  background-color: #d93a25 !important;
}
.footer_copyright,
.footer_copyright p,
.footer_copyright a {
  color: #fff !important;
}

/* red link on the dark top bar */
.header-contact_left a {
  color: #ff5a40 !important;
}

/* footer grey on black */
.footer .footer_main a,
.footer .footer_main li,
.footer .footer_main span {
  color: #84878a !important;
}

/* secondary text on white */
.home-news .block-title ul li,
.news-sidebar .news-cat li a,
.sytech_filter .widget ul.terms li,
.sytech_filter .widget ul.childrenTerm li,
ul.products li.product a.cat,
.mess span,
.mess span.cat,
.custom-infos .catname,
.link_card-item p,
.summary .sku_id {
  color: #6e6e6e !important;
}
.home-news .block-title ul li.active,
.news-sidebar .news-cat li.active a,
.sytech_filter .widget ul.terms li.active {
  color: #d93a25 !important;
}
.mess span.price bdi,
.sytech_filter .widget ul.terms li.haschild {
  color: #d93a25 !important;
}
.price del,
ul.products li.product span.price del {
  opacity: 1 !important;
  color: #757575 !important;
}
.price del bdi {
  color: #757575 !important;
}

/* images squeezed by a fixed box */
img.attachment-woocommerce_thumbnail,
.footer_bottom img {
  object-fit: contain;
}

/* wrapper that keeps the filter's nested list valid */
div.widget ul.terms li.crp-childwrap {
  margin: 0;
  padding: 0;
}
div.widget ul.terms li.crp-childwrap::before,
div.widget ul.terms li.crp-childwrap::after {
  display: none !important;
}

/* product cards: the theme's width:auto ignores the image's size attributes, so cards jumped as each image arrived */
@media screen and (max-width: 786px) {
  body.woocommerce .content-area ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
  }
}

/* below the fold: no layout work until the visitor gets near */
.home-artists,
.home-news,
footer.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

/* default category banner: same picture, 222 KB JPEG -> WebP, and a phone-sized file on phones */
.product-banner {
  background-image: url(../img/default-banner.webp);
}
@media screen and (max-width: 786px) {
  .product-banner {
    background-image: url(../img/default-banner-mobile.webp);
  }
  /* cards further down the list: no layout work until the visitor gets near */
  ul.products li.product:nth-child(n+5) {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
  }
}
