/* Scoped to sale rugs only; the existing listing, filters and links are retained. */
.woocommerce ul.products li.product.i038-rug-deal-card {
    container-type: inline-size;
    box-sizing: border-box;
    padding: 12px 14px 16px;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 5px 12px rgb(0 0 0 / 10%);
    font-family: Manrope, sans-serif;
    overflow: hidden;
}
.woocommerce ul.products li.product.i038-rug-deal-card:hover { transform: none; }
.woocommerce ul.products li.product.i038-rug-deal-card::after { display: none; }
.woocommerce ul.products li.product.i038-rug-deal-card .woocommerce-loop-product__link { height: 100%; color: #263143; }
.i038-rug-deal-labels { display: flex; align-items: center; width: 100%; height: 46px; gap: 0; flex-shrink: 0; }
.i038-rug-deal-ribbon { display: flex; align-items: center; width: 70%; height: 38px; padding: 0 8px 0 14px; box-sizing: border-box; border-radius: 18px 2px 24px 2px; clip-path: polygon(0 0, 100% 0, 91% 85%, 87% 96%, 80% 100%, 0 100%); background: #263143; color: #fff; font-size: 16px; font-size: 5.8cqw; font-weight: 800; letter-spacing: -.045em; white-space: nowrap; }
.i038-rug-deal-discount { display: flex; align-items: center; justify-content: center; width: 34%; height: 46px; margin-left: -2%; padding-left: 9px; box-sizing: border-box; border-radius: 20px 13px 13px 22px; clip-path: polygon(26% 0, 100% 0, 100% 100%, 26% 100%, 0 68%, 15% 15%); background: #e7b872; color: #080808; font-size: 26px; font-size: 8.7cqw; line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.woocommerce ul.products li.product.i038-rug-deal-card a img { box-sizing: border-box; display: block; width: 100% !important; height: auto !important; aspect-ratio: 1.12; object-fit: contain !important; background: #fff; margin: 0 0 16px; padding: 0; border-radius: 0; }
.woocommerce ul.products li.product.i038-rug-deal-card .woocommerce-loop-product__title { box-sizing: border-box; padding: 0 8px; margin: 0 0 12px; color: #263143; font-family: inherit; font-size: 19px; font-size: clamp(15px, 5.8cqw, 26px) !important; font-weight: 700; line-height: 1.35; letter-spacing: -.035em; min-height: 2.7em; }
.woocommerce ul.products li.product.i038-rug-deal-card .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin: auto 0 12px; padding: 0 8px; line-height: 1.2; color: #263143; }
.woocommerce ul.products li.product.i038-rug-deal-card .price del { opacity: 1; margin: 0; color: #7c848e; font-size: 19px; font-size: 6cqw; font-weight: 700; white-space: nowrap; }
.woocommerce ul.products li.product.i038-rug-deal-card .price ins { color: #263143; background: none; font-size: 28px; font-size: 8.6cqw; font-weight: 800; text-decoration: none; white-space: nowrap; }
.i038-rug-deal-stock { box-sizing: border-box; display: flex; align-items: center; gap: 14px; min-height: 38px; margin: 0 4px; padding: 7px 16px; border-radius: 14px; background: #eee; color: #111; font-size: 16px; font-size: clamp(14px, 5.4cqw, 24px); font-weight: 600; line-height: 1.25; letter-spacing: -.03em; }
.i038-rug-deal-stock svg { width: 26px; height: 26px; flex: 0 0 26px; }
.woocommerce ul.products li.product.i038-rug-deal-card a:focus-visible { outline: 2px solid #263143; outline-offset: 2px; border-radius: 12px; }

@media (max-width: 600px) {

    /* Twee vloerkleden naast elkaar */
    .bb-shop-content ul.products:has(.i038-rug-deal-card):not(:has(li.product:not(.i038-rug-deal-card))) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .woocommerce ul.products li.product.i038-rug-deal-card {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 8px 7px 10px !important;
        border-radius: 14px;
    }

    /* Kleinere actie-labels */
    .i038-rug-deal-labels {
        height: 28px;
    }

    .i038-rug-deal-ribbon {
        height: 25px;
        padding-left: 7px;
        font-size: 5.8cqw;
        font-weight: 700;
    }

    .i038-rug-deal-discount {
        height: 28px;
        padding-left: 4px;
        font-size: 8cqw;
    }

    /* Productfoto */
    .woocommerce ul.products li.product.i038-rug-deal-card a img {
        height: auto !important;
        aspect-ratio: 1 / 1;
        margin-bottom: 8px;
        object-fit: contain !important;
    }

    /* Productnaam */
    .woocommerce ul.products li.product.i038-rug-deal-card .woocommerce-loop-product__title {
        font-size: 14px !important;
        font-weight: 600;
        line-height: 1.35;
        padding: 0 3px;
        margin-bottom: 8px;
        min-height: 0;
    }

    /* Prijzen */
    .woocommerce ul.products li.product.i038-rug-deal-card .price {
        gap: 4px 7px;
        padding: 0 3px;
        margin-bottom: 8px;
    }

    .woocommerce ul.products li.product.i038-rug-deal-card .price del {
        font-size: 13px;
    }

    .woocommerce ul.products li.product.i038-rug-deal-card .price ins {
        font-size: 14px;
        font-weight: 700;
    }

    /* Voorraad */
    .i038-rug-deal-stock {
        min-height: 27px;
        padding: 5px 7px;
        margin: 0;
        gap: 5px;
        border-radius: 8px;
        font-size: 10px;
        font-weight: 500;
    }

    .i038-rug-deal-stock svg {
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
    }
}


/* Keep WooCommerce amount descendants aligned with their price hierarchy. */
.woocommerce ul.products li.product.i038-rug-deal-card .price del { text-decoration: line-through; }
.woocommerce ul.products li.product.i038-rug-deal-card .price .amount,
.woocommerce ul.products li.product.i038-rug-deal-card .price bdi,
.woocommerce ul.products li.product.i038-rug-deal-card .price .woocommerce-Price-currencySymbol { font-weight: inherit; }
.i038-rug-deal-ribbon { border-radius: 0; clip-path: none; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath d='M28 0H297Q300 0 298 4L282 37Q270 60 237 60H3Q0 60 0 57V28Q0 0 28 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
.i038-rug-deal-discount { border-radius: 0; clip-path: none; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 74' preserveAspectRatio='none'%3E%3Cpath d='M48 0H130Q150 0 150 20V54Q150 74 130 74H52Q40 74 28 67L0 51 26 13Q34 0 48 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
