/* Scoped to Purefit's native catalogue; not Elementor/header widgets. */
.shop .products.row .sf-shop-image-link { display: block; }
.shop .products.row .product--btn {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
}
.shop .products.row .product--btn a {
    justify-content: center;
    min-height: 42px;
    padding: 12px 8px;
    text-align: center;
    white-space: normal;
}
.shop .products.row .product--btn .strongerfit-buy-now {
    background: #151515;
    color: #fff;
    border: 1px solid #fff;
}
.shop .products.row .product:focus-within .product--btn a {
    opacity: 1;
    transform: none;
}
.shop .products.row .product--btn a:focus-visible {
    outline: 3px solid #ff4f2d;
    outline-offset: 2px;
}
.shop .products.row .product--btn a:hover {
    background: #fff;
    color: #111;
    box-shadow: 0 3px 10px #0002;
}
.shop .products.row .product--btn a:hover i { color: #111; }
.shop .products.row .product--btn a:active { transform: scale(.96); }

@media (max-width: 767px) {
    .shop { padding-top: 28px !important; padding-bottom: 40px !important; }
    .shop .products.row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
        margin: 0 !important;
    }
    .shop .products.row > [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        padding: 0 !important;
        margin: 0 !important;
        flex: none;
    }
    .shop .products.row .product {
        display: flex;
        flex-direction: column;
        height: 100%;
        margin: 0 !important;
        padding: 8px;
    }
    /* Move actions below name/price in the layout without changing the theme template. */
    .shop .products.row .product--img { display: contents; }
    .shop .products.row .product--img > .sf-shop-image-link { order: 0; }
    .shop .products.row .product--img > img,
    .shop .products.row .product--img > .sf-shop-image-link img {
        order: 0;
        width: 100% !important;
        height: clamp(110px, 33vw, 170px) !important;
        object-fit: contain;
        transform: none !important;
    }
    .shop .products.row .product--holder {
        order: 1;
        padding: 8px 0 !important;
    }
    .shop .products.row .product--title {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin: 0 0 5px;
        min-height: 2.6em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .shop .products.row .product--price { font-size: 15px !important; }
    .shop .products.row .product--btn {
        order: 2;
        position: static !important;
        transform: none !important;
        padding: 0 !important;
        margin-top: auto;
        gap: 5px;
    }
    .shop .products.row .product--btn a {
        opacity: 1 !important;
        transform: none;
        width: 100%;
        min-height: 36px;
        padding: 8px 3px;
        font-size: 11px;
        line-height: 1.15;
    }
    .shop .woocommerce-toolbar-top { margin-bottom: 15px; }
    .shop .woocommerce-ordering { margin: 0; }
    .shop .woocommerce-ordering select { max-width: 100%; font-size: 13px; }
}
@media (hover: none) and (min-width: 768px) {
    .shop .products.row .product--btn a { opacity: 1; transform: none; }
}
