/* Shared image and text tracks keep neighbouring prices on the same baseline. */
:is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) {
    --sts-card-ink: #201f1e;
    --sts-card-sale: #b62c26;
    --sts-card-gold: #634711;
    --sts-card-gap: clamp(12px, 1.8vw, 24px);
}
/* The header's cart and wishlist display rules also match Elementor's hidden spacer clones. */
:root body.sts-catalog-layout [data-elementor-id="22"].elementor-location-header .elementor-sticky__spacer {
    display: none !important;
}
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) :is(ul.products, .wc-block-product-template, .wc-block-grid__products) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 32px var(--sts-card-gap) !important;
    padding: 0 !important;
    list-style: none !important;
}
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products::before,
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products::after {
    display: none !important;
}
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) :is(ul.products, .wc-block-product-template, .wc-block-grid__products) > :is(li.product, .wc-block-product, .wc-block-grid__product) {
    position: relative !important;
    display: block !important;
    float: none !important;
    align-self: stretch !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: start !important;
    transform: none !important;
}
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product > :is(.woocommerce-LoopProduct-link, .woocommerce-loop-product__link) {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-rows: auto 4.15em auto auto !important;
    align-items: start !important;
    align-content: start !important;
    gap: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--sts-card-ink) !important;
    font-family: inherit !important;
    font-size: clamp(14px, 1.05vw, 17px) !important;
    text-align: start !important;
    text-decoration: none !important;
}
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product > :is(.woocommerce-LoopProduct-link, .woocommerce-loop-product__link) > :is(img,picture,.jet-woo-product-thumbnail,.jet-woo-products__thumb),
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) :is(.wc-block-product,.wc-block-grid__product) :is(.wc-block-components-product-image,.wc-block-grid__product-image) {
    grid-area: 1 / 1 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    background: #f4f2ef !important;
    object-fit: cover !important;
    object-position: center !important;
}
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product :is(picture,.jet-woo-product-thumbnail,.jet-woo-products__thumb) img,
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) :is(.wc-block-components-product-image,.wc-block-grid__product-image) img {
    width: 100% !important; height: 100% !important; aspect-ratio: 1 !important;
    object-fit: cover !important; margin: 0 !important; border-radius: inherit !important;
}
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product :is(.woocommerce-loop-product__title,h2.woocommerce-loop-product__title),
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) :is(.wc-block-product,.wc-block-grid__product) :is(.wp-block-post-title,.wc-block-grid__product-title) {
    grid-area: 2 / 1 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3;
    overflow: hidden !important;
    width: 100% !important;
    min-height: 0 !important;
    max-height: 3.78em !important;
    margin: .40em 0 0 !important;
    padding: 0 !important;
    color: var(--sts-card-ink) !important;
    font: 650 1em/1.24 system-ui, sans-serif !important;
    font-family: inherit !important;
    text-transform: none !important;
    text-align: start !important;
    letter-spacing: -.01em !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}
.sts-catalog-layout .sts-card-brand { display: block; font-weight: 700; }
.sts-catalog-layout .sts-card-name { display: block; font-weight: 450; }
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product .price,
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) :is(.wc-block-product,.wc-block-grid__product) :is(.wc-block-components-product-price,.wc-block-grid__product-price) {
    grid-area: 3 / 1 !important;
    display: block !important;
    min-height: 0 !important;
    margin: .25em 0 0 !important;
    padding: 0 !important;
    color: var(--sts-card-ink) !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    font-size: 1.03em !important;
    line-height: 1.3 !important;
    text-align: start !important;
    letter-spacing: normal !important;
}
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product .price :is(span,bdi) { color: inherit !important; font: inherit !important; }
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product .price del { color: #625f5d !important; font-weight: 450; opacity: 1 !important; }
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product .price ins { color: var(--sts-card-sale) !important; font-weight: 750; text-decoration: none; }
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product :is(.sts-rating-card-score,.sts-living-card-score,.star-rating) {
    grid-area: 4 / 1 !important;
    justify-self: start !important;
    margin: .35em 0 0 !important;
    text-align: start !important;
}
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product:has([data-sts-rating-card]) .star-rating { display: none !important; }

/* Existing labels stay in the DOM positions used by the catalogue's rating and stock logic. */
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product > :is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link) > :is(.sts-bestseller-mark,.sts-type-badge,.sts-smiski26-badge,.sts-bl25-badge,.onsale,.sts-catalog-soldout) {
    grid-area: 1 / 1 !important;
    z-index: 1 !important;
    position: relative !important;
    inset: auto !important;
    align-self: end !important;
    justify-self: start !important;
    display: inline-flex !important;
    align-items: center;
    width: max-content !important;
    max-width: calc(100% - 12px) !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 6px !important;
    padding: .28em .52em !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #2c2926 !important;
    font: 650 clamp(10px,.8vw,12px)/1.15 system-ui,sans-serif !important;
    letter-spacing: .005em !important;
    text-transform: none !important;
    box-shadow: 0 1px 3px #251d1015;
    pointer-events: none;
}
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product > a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link) > :is(.sts-bestseller-mark,.sts-catalog-soldout) {
    align-self: start !important;
    background: #fff4d5 !important;
    color: var(--sts-card-gold) !important;
}
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product > a > .sts-bestseller-mark i { display: none !important; }
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product > a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link) > .sts-catalog-soldout { color: #fff !important; background: #343330 !important; }
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product > a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link):has(.sts-catalog-soldout) > .sts-bestseller-mark { display: none !important; }
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product > a:is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link) > .onsale { justify-self: end !important; background: var(--sts-card-sale) !important; color: white !important; }

.sts-catalog-layout .wc-stripe-bnpl-shop-message:empty { display: none; }

/* The theme lifts hovered cards and zooms their photos, including on touch screens. */
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) :is(ul.products li.product,.wc-block-product,.wc-block-grid__product,.jet-woo-products__item,.jet-listing-grid__item:has(.jet-woo-product-thumbnail,.jet-woo-products__thumb,li.product)),
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product > :is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link),
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product > :is(.woocommerce-LoopProduct-link,.woocommerce-loop-product__link) :is(img,picture),
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) :is(.wc-block-components-product-image,.wc-block-grid__product-image,.jet-woo-product-thumbnail,.jet-woo-products__thumb),
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) :is(.wc-block-components-product-image,.wc-block-grid__product-image,.jet-woo-product-thumbnail,.jet-woo-products__thumb) :is(a,picture,img) {
    transform: none !important;
    translate: none !important;
    scale: none !important;
    transition-property: none !important;
}

:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) ul.products li.product > a:focus-visible { outline: 2px solid currentColor !important; outline-offset: 2px; }
@media (max-width:767px) {
    :root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) :is(ul.products, .wc-block-product-template, .wc-block-grid__products) {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        gap: 24px 12px !important;
    }
}

/* Gift-guide templates carry an older inline mobile stylesheet. Override it only in standard grids. */
:root .sts-sale-packs .woocommerce.sts-card-grid-context ul.products > li.product {
    padding: 0 !important;
}
:root .sts-sale-packs .woocommerce.sts-card-grid-context ul.products li.product h2.woocommerce-loop-product__title {
    min-height: 0 !important;
    max-height: 3.78em !important;
    margin: .4em 0 0 !important;
    line-height: 1.24 !important;
}
:root .sts-sale-packs .woocommerce.sts-card-grid-context ul.products li.product .price {
    margin: .25em 0 0 !important;
}
