/* Match the green left accent on the other storefront section headings. */
body.home #dealsofday-products .heading-default > .title,
body.home #popular-products .heading-default > .title,
body.home #trending-product-section .heading-default > .title,
body.home #post-section .heading-default > .title {
    border-left: 4px solid #7aa228;
}

/* Grønne tilbud: follow Owl's wrappers without changing its widths/transform.
 * One-column mobile keeps the theme's natural content height.
 */
@media (min-width: 576px) {
    #dealsofday-products .woocommerce ul.products.owl-loaded > .owl-stage-outer > .owl-stage {
        display: flex;
        align-items: stretch;
    }

    #dealsofday-products .woocommerce ul.products.owl-loaded > .owl-stage-outer > .owl-stage::after {
        display: none;
    }

    #dealsofday-products .woocommerce ul.products.owl-loaded .owl-stage > .owl-item {
        display: flex;
        flex: 0 0 auto;
        float: none;
        min-width: 0;
    }

    #dealsofday-products .woocommerce .owl-item > li.product,
    #dealsofday-products .woocommerce .owl-item > li.product > .product,
    #dealsofday-products .woocommerce .owl-item > li.product > .product > .product-single,
    #dealsofday-products .woocommerce .owl-item .product-content-outer,
    #dealsofday-products .woocommerce .owl-item .product-content {
        display: flex;
        flex-direction: column;
        flex: 1 0 auto;
        min-width: 0;
        height: auto;
    }

    #dealsofday-products .woocommerce .owl-item .product-img {
        flex: 0 0 auto;
    }

    /* Balance the two visually oversized product photos in Grønne tilbud.
       Scope to product IDs: no changes to other product grids or photos. */
    /* Witt: WooCommerce's 300x300 thumbnail is hard-cropped from the
       complete 490x581 source. Show the original within the same square
       thumbnail box, without changing the product's media or gallery. */
    #dealsofday-products .woocommerce .owl-item li.product.post-2119 .product-img > a.woocommerce-LoopProduct-link {
        background: url("https://greentechs.dk/wp-content/uploads/2026/10/Witt-Classic-–-redigeret.png") center center / auto 73% no-repeat;
    }
    #dealsofday-products .woocommerce .owl-item li.product.post-2119 .product-img > a.woocommerce-LoopProduct-link > img.attachment-woocommerce_thumbnail {
        opacity: 0;
        transform: none;
    }
    #dealsofday-products .woocommerce .owl-item li.product.post-2115 .product-img > a.woocommerce-LoopProduct-link > img.attachment-woocommerce_thumbnail {
        transform: scale(.75);
        transform-origin: center center;
    }

    /* The title absorbs only the space needed by longer neighbouring titles.
       Price, stock text and stock bar remain together below it. */
    #dealsofday-products .woocommerce .owl-item .product-content > h3 {
        flex: 1 0 auto;
    }

    /* Flex items with horizontal auto margins would shrink the stock bar. */
    #dealsofday-products .woocommerce .owl-item .product-content > .storely-stocks {
        margin-left: 0;
        margin-right: 0;
    }

    /* Block margins previously collapsed with the stock block's top margin. */
    #dealsofday-products .woocommerce .owl-item .product-content > .price {
        margin-bottom: 0;
    }

    #dealsofday-products .woocommerce .owl-item .product-action {
        flex: 0 0 auto;
        width: 100%;
        margin-top: auto;
    }

    /* Seneste tilføjelser uses the same Owl product-card structure. */
    #popular-products .woocommerce ul.products.owl-loaded > .owl-stage-outer > .owl-stage {
        display: flex;
        align-items: stretch;
    }
    #popular-products .woocommerce ul.products.owl-loaded > .owl-stage-outer > .owl-stage::after {
        display: none;
    }
    #popular-products .woocommerce ul.products.owl-loaded .owl-stage > .owl-item {
        display: flex;
        flex: 0 0 auto;
        float: none;
        min-width: 0;
    }
    #popular-products .woocommerce .owl-item > li.product,
    #popular-products .woocommerce .owl-item > li.product > .product,
    #popular-products .woocommerce .owl-item > li.product > .product > .product-single,
    #popular-products .woocommerce .owl-item .product-content-outer,
    #popular-products .woocommerce .owl-item .product-content {
        display: flex;
        flex-direction: column;
        flex: 1 0 auto;
        min-width: 0;
        height: auto;
    }
    #popular-products .woocommerce .owl-item .product-img {
        flex: 0 0 auto;
    }
    #popular-products .woocommerce .owl-item .product-content > h3 {
        flex: 1 0 auto;
    }
    #popular-products .woocommerce .owl-item .product-content > .storely-stocks {
        margin-left: 0;
        margin-right: 0;
    }
    #popular-products .woocommerce .owl-item .product-content > .price {
        margin-bottom: 0;
    }
    #popular-products .woocommerce .owl-item .product-action {
        flex: 0 0 auto;
        width: 100%;
        margin-top: auto;
    }
}


