/*
Theme Name: PawFriends
Theme URI: https://pawfriends.qodeinteractive.com/
Description: Pet Shop and Veterinary Theme
Author: Mikado Themes
Author URI: http://themeforest.net/user/mikado-themes
Text Domain: pawfriends
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-menu, featured-images, flexible-header, post-formats, sticky-post, threaded-comments, translation-ready
Requires at least: 6.3
Tested up to: 6.8.2
Requires PHP: 7.4
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

CSS changes can be made in files in the /css/ folder. This is a placeholder file required by WordPress, so do not delete it.

*/

.mkdf-product-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(350px,1fr));
    gap:1.25rem;
    margin-bottom:3rem;

    & .mkdf-category-item {
        position:relative;
        padding:1rem;
        border-radius:0.25rem;
        overflow:hidden;

        & a{
            display:grid;
            grid-template-columns: 1fr;
            gap:1rem;

            &:hover .btn-bg {
                scale:1.1;
            }
        }

        & a:has(.cat-img) {
            grid-template-columns: 1fr 125px;
        }
        
        & .btn-bg {
            position:Absolute;
            inset:0;
            object-fit:cover;
            width:100%;
            height:100%;
            z-indeX:-1;
            transition:scale 0.25s ease;
        }

        & .cat-img {
            width:100%;
            aspect-ratio:1.6/1;
            object-fit:contain;
            mix-blend-mode: multiply;
        }
    }
}

.categories-outer,
.intro {
    box-sizing: border-box;
    display:block;
    clear:left;
    display:block;
    width:100%;
    padding-inline:5vw;
    background-color:#fff;
    padding-bottom:5vw;
    text-align: center;
}

    .categories-inner {
        box-sizing: border-box;
        clear:left;
        margin-inline:auto;
        width:min(1300px,100%);

        display:grid;
        grid-template-columns: repeat(3,1fr);
        grid-gap:1rem;
    }

    .category-item img {
        margin-bottom:0;
        opacity:1;
        transition:opacity 0.25s;
    }

    .category-item p {
        font-size:1rem;
        margin-top:0;
        text-align:center;
        color:#8f9093;
    }

    .category-item:hover img {
        opacity:0.75;
    }

    .sform {
        display:grid;
        grid-template-columns: 1fr 50px;
        grid-gap:1rem;
        width:min(500px,100%);
        margin-inline:auto;
        margin-top:2rem;
    }

        .sform input {
            margin:0 !important;
            border:1.5px solid #bbbdbe !important;
            background-color:#fff !important;
            border-radius:0 !important;
            padding:0.75rem !important;
            box-shadow:-4px 4px 5px #0002;
        }

        .sform ::placeholder {
            color:#bbbdbe !important;
            opacity:1 !important;
        }

        .sform button {
            outline:none;
            border:none;
            background-color:transparent;
            cursor: pointer;
        }

        .sform button svg {
            width:40px;
            stroke-width:0.5px;
            stroke:#000000;
        }

@media screen and (width < 900px){
    .categories-inner{
        grid-template-columns: 1fr;
    }
}