/* =========================================
   MAVI HAM - SHOP PAGE
========================================= */

body.woocommerce-shop {
    background: #f7f8fa;
}


/* =========================================
   SHOP HEADER
========================================= */

.mavi-shop-intro {
    padding: 55px 20px 45px;
    text-align: center;
    background: #f3f5f7;
    border-bottom: 1px solid #e8ebee;
}

.mavi-shop-intro__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.mavi-shop-intro h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #1d2b3a;
}

.mavi-shop-intro p {
    margin: 12px 0 0;
    color: #68737d;
    font-size: 15px;
}


/* =========================================
   SHOP CATEGORIES
========================================= */

.mavi-shop-categories {
    max-width: 1280px;
    margin: 35px auto 45px;
    padding: 0 20px;
}

.mavi-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.mavi-section-heading h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 800;
    color: #1d2b3a;
}

.mavi-section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e8eb;
    margin-right: 20px;
}


/* CATEGORY GRID */

.mavi-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}


/* CATEGORY CARD */

.mavi-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background: #fff;
    border: 1px solid #edf0f2;

    border-radius: 16px;

    padding: 18px 12px;

    text-decoration: none;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

    min-height: 190px;
}

.mavi-category-card:hover {
    transform: translateY(-6px);

    border-color: #cfd8df;

    box-shadow:
        0 12px 30px rgba(24, 39, 54, .10);
}


/* CATEGORY IMAGE */

.mavi-category-card__image {
    width: 125px;
    height: 115px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;
}

.mavi-category-card__image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: transform .3s ease;
}

.mavi-category-card:hover
.mavi-category-card__image img {
    transform: scale(1.06);
}


/* CATEGORY TITLE */

.mavi-category-card__title {
    color: #1f2d3a;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.8;

    transition: color .25s ease;
}

.mavi-category-card:hover
.mavi-category-card__title {
    color: #1769aa;
}


/* PRODUCT COUNT */

.mavi-category-card__count {
    margin-top: 4px;

    font-size: 12px;

    color: #8a949d;
}


/* =========================================
   SHOP PRODUCTS AREA
========================================= */

.mavi-shop-products {
    max-width: 1280px;

    margin: 0 auto 70px;

    padding: 0 20px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1200px) {

    .mavi-category-grid {
        grid-template-columns: repeat(5, 1fr);
    }

}


@media (max-width: 992px) {

    .mavi-category-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}


@media (max-width: 768px) {

    .mavi-shop-intro {
        padding: 40px 15px 35px;
    }

    .mavi-shop-intro h1 {
        font-size: 26px;
    }

    .mavi-shop-categories {
        margin-top: 28px;
        padding: 0 15px;
    }

    .mavi-category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .mavi-category-card {
        min-height: 165px;

        padding: 12px 8px;

        border-radius: 12px;
    }

    .mavi-category-card__image {
        width: 95px;
        height: 90px;

        margin-bottom: 10px;
    }

    .mavi-category-card__title {
        font-size: 12px;
    }

}


@media (max-width: 480px) {

    .mavi-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mavi-section-heading h2 {
        font-size: 19px;
    }

}

/* =========================================
   MAVI HAM SHOP CATEGORIES
========================================= */

.maviham-shop-categories {
    max-width: 1280px;
    margin: 40px auto 55px;
    padding: 35px;

    background: #ffffff;

    border: 1px solid #e9edf0;
    border-radius: 18px;
}


/* HEADER */

.maviham-shop-categories__header {
    margin-bottom: 28px;
}

.maviham-section-label {
    display: block;

    margin-bottom: 6px;

    font-size: 12px;
    font-weight: 600;

    color: #7b8790;
}

.maviham-shop-categories-title {
    margin: 0;

    color: #1c2b38;

    font-size: 25px;
    font-weight: 800;

    line-height: 1.5;
}


/* GRID */

.maviham-category-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 16px;
}


/* CARD */

.maviham-category-card {
    display: flex;
    flex-direction: column;

    align-items: center;

    min-height: 215px;

    padding: 18px 12px;

    text-align: center;
    text-decoration: none;

    background: #fafbfc;

    border: 1px solid #edf0f2;
    border-radius: 14px;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


.maviham-category-card:hover {
    transform: translateY(-5px);

    background: #ffffff;

    box-shadow:
        0 12px 30px
        rgba(25, 45, 60, .10);
}


/* IMAGE */

.maviham-category-card__image {
    width: 130px;
    height: 130px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 14px;
}


.maviham-category-card__image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: transform .3s ease;
}


.maviham-category-card:hover
.maviham-category-card__image img {
    transform: scale(1.06);
}


/* CONTENT */

.maviham-category-card__content h3 {
    margin: 0 0 5px;

    color: #1d2d3a;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.8;
}


.maviham-category-card__content span {
    color: #87929a;

    font-size: 12px;
}


/* FOOTER */

.maviham-shop-categories__footer {
    display: flex;

    justify-content: center;

    margin-top: 28px;
}


.maviham-view-all-categories {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 11px 20px;

    border: 1px solid #dce3e7;

    border-radius: 9px;

    color: #263846;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition: all .25s ease;
}


.maviham-view-all-categories:hover {
    transform: translateY(-2px);

    background: #f4f7f9;

    border-color: #cbd5db;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .maviham-category-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

}


@media (max-width: 768px) {

    .maviham-shop-categories {
        margin: 25px 15px 40px;

        padding: 22px 15px;

        border-radius: 14px;
    }

    .maviham-category-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 10px;
    }

    .maviham-category-card {
        min-height: 175px;

        padding: 10px 6px;
    }

    .maviham-category-card__image {
        width: 90px;
        height: 95px;
    }

    .maviham-category-card__content h3 {
        font-size: 12px;
    }

}


@media (max-width: 480px) {

    .maviham-category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .maviham-shop-categories-title {
        font-size: 21px;
    }

}

/* =========================================
   MAVI HAM - PRODUCT CARDS
========================================= */


/* فضای کلی محصولات */

.woocommerce ul.products {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;

    margin: 0 !important;

    padding: 0 !important;
}


/* کارت محصول */

.woocommerce ul.products li.product {
    width: 100% !important;

    margin: 0 !important;

    padding: 0 0 20px !important;

    background: #ffffff;

    border: 1px solid #e9edf0;

    border-radius: 16px;

    overflow: hidden;

    display: flex !important;

    flex-direction: column;

    position: relative;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


/* Hover کارت */

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);

    border-color: #d8e0e5;

    box-shadow:
        0 14px 35px
        rgba(20, 35, 50, .10);
}


/* =========================================
   PRODUCT IMAGE
========================================= */


/* لینک تصویر */

.woocommerce ul.products li.product > a:first-child {
    display: block;

    position: relative;

    width: 100%;

    padding: 16px;

    background: #fafbfc;

    border-bottom: 1px solid #f0f2f4;

    overflow: hidden;
}


/* تصویر */

.woocommerce ul.products li.product img {
    display: block;

    width: 100% !important;

    height: 245px !important;

    object-fit: contain;

    margin: 0 !important;

    transition:
        transform .35s ease;
}


/* Hover تصویر */

.woocommerce ul.products li.product:hover img {
    transform: scale(1.045);
}


/* =========================================
   PRODUCT TITLE
========================================= */

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 58px;

    margin: 18px 16px 8px !important;

    padding: 0 !important;

    color: #243442;

    font-size: 15px !important;

    font-weight: 700 !important;

    line-height: 1.9;

    text-align: center;
}


/* لینک عنوان */

.woocommerce ul.products li.product
.woocommerce-loop-product__link {
    text-decoration: none;
}


/* =========================================
   CATEGORY / META
========================================= */

/* اگر دسته‌بندی توسط قالب نمایش داده شود */

.woocommerce ul.products li.product .posted_in,
.woocommerce ul.products li.product .product-categories {
    display: block;

    margin: 0 16px 12px;

    color: #7b8790;

    font-size: 12px;

    text-align: center;
}


/* =========================================
   PRICE
========================================= */

.woocommerce ul.products li.product .price {
    display: block;

    min-height: 30px;

    margin: 8px 16px 14px !important;

    color: #1769aa;

    font-size: 16px !important;

    font-weight: 800;

    text-align: center;
}


.woocommerce ul.products li.product .price del {
    color: #9ba5ad;

    font-size: 12px;
}


.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}


/* =========================================
   PRODUCT BUTTON
========================================= */

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
    display: flex !important;

    align-items: center;

    justify-content: center;

    width: calc(100% - 32px);

    min-height: 43px;

    margin: auto 16px 0 !important;

    padding: 10px 15px !important;

    background: #2f67c7 !important;

    color: #ffffff !important;

    border: none !important;

    border-radius: 8px !important;

    font-size: 13px !important;

    font-weight: 700 !important;

    text-decoration: none !important;

    transition:
        background .25s ease,
        transform .25s ease;
}


.woocommerce ul.products li.product .button:hover {
    background: #2457ad !important;

    transform: translateY(-2px);
}


/* =========================================
   SOLD OUT
========================================= */

.woocommerce ul.products li.product .out-of-stock {
    color: #ffffff !important;
}


/* Badge فروخته شد */

.woocommerce ul.products li.product .ct-woo-card-extra {
    z-index: 5;
}


/* =========================================
   RATING
========================================= */

.woocommerce ul.products li.product .star-rating {
    margin: 8px auto !important;

    float: none !important;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1200px) {

    .woocommerce ul.products {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 900px) {

    .woocommerce ul.products {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 16px;
    }

    .woocommerce ul.products li.product img {
        height: 210px !important;
    }

}


@media (max-width: 650px) {

    .woocommerce ul.products {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .woocommerce ul.products li.product {
        border-radius: 12px;
    }

    .woocommerce ul.products li.product > a:first-child {
        padding: 10px;
    }

    .woocommerce ul.products li.product img {
        height: 160px !important;
    }

    .woocommerce ul.products li.product
    .woocommerce-loop-product__title {
        min-height: 52px;

        margin:
            12px 10px 6px !important;

        font-size: 12px !important;

        line-height: 1.8;
    }

    .woocommerce ul.products li.product .price {
        margin:
            6px 10px 10px !important;

        font-size: 13px !important;
    }

    .woocommerce ul.products li.product .button {
        width: calc(100% - 20px);

        margin:
            auto 10px 0 !important;

        min-height: 38px;

        font-size: 12px !important;
    }

}