/*
Theme Name: Mamstor WoodMart Child
Template: woodmart
Version: 1.7.6
Text Domain: mamstor
*/

/* Mamstor: compact paper tags. Native WooCommerce text and discount calculation stay intact. */
.product-labels.labels-rectangular {
    gap: 6px;
    max-width: calc(100% - 24px);
    pointer-events: none;
}
:where(.wd-loop-builder-off) .product-labels.labels-rectangular {
    top: 12px;
    inset-inline-start: 12px;
}
.product-labels.labels-rectangular .product-label:not(.label-with-img) {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 0;
    min-height: 26px;
    max-width: 148px;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 0;
    background: #242824;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    box-shadow: none;
}
.product-labels.labels-rectangular .product-label.onsale {
    padding-inline: 17px 12px;
    background: #8c3831;
    color: #fff;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .015em;
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 50%, calc(100% - 5px) 100%, 0 100%);
}
.product-labels.labels-rectangular .product-label.onsale::before {
    content: '';
    position: absolute;
    inset-block: 3px;
    inset-inline-start: 8px;
    border-inline-start: 1px dashed rgb(255 255 255 / 55%);
}
.product-labels.labels-rectangular .product-label.new {
    background: #f7f5ef;
    color: #283d32;
    border-color: #d7ddd4;
}
.product-labels.labels-rectangular .product-label.new::before {
    content: '';
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    background: #506b53;
    transform: rotate(45deg);
}
.product-labels.labels-rectangular .product-label.out-of-stock,
.product-labels.labels-rectangular .product-label.attribute-label:not(.label-with-img) {
    background: #f7f5ef;
    color: #343a35;
    border-color: #d7ddd4;
}
@media (max-width: 576px) {
    :where(.wd-loop-builder-off) .product-labels.labels-rectangular {
        top: 0;
        bottom: auto;
        inset-inline-start: 0;
        max-width: calc(100% - 16px);
        gap: 4px;
    }
    .product-labels.labels-rectangular .product-label:not(.label-with-img) {
        gap: 5px;
        min-height: 20px;
        padding: 3px 7px;
        font-size: 10px;
        line-height: 12px;
        letter-spacing: .055em;
    }
    .product-labels.labels-rectangular .product-label.onsale {
        padding-inline: 13px 10px;
        font-size: 11px;
    }
    .product-labels.labels-rectangular .product-label.onsale::before {
        inset-inline-start: 6px;
    }
    .product-labels.labels-rectangular .product-label.new::before {
        flex-basis: 4px;
        width: 4px;
        height: 4px;
    }
}

/* Imported category photographs have different source heights; keep the two cards aligned. */
.home .wd-146a9b07 .category-image-wrapp img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
