.category_heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.category_heading h1 {
    font-size: 1.2rem;
    color: var(--text-color-500);
}

/* Category Filter */
.category__filter {
    display: flex;
    align-items: center;
    justify-content: end;
    margin-top: 0.5rem;
    color: var(--text-color-500);
}

.category__filter-label {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color-500);
    padding-left: 0.5rem;
}

.category__filter-select-container {
    border: 1px solid var(--primary-border-color);
    border-radius: 3rem;
    padding: 0.5rem;
    cursor: pointer;
}

.category__filter-select {
    cursor: pointer;
    padding: 0 0.5rem;
}

/* Category Items */
.category__items {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Product Card */

.product-card__container {
    width: 250px !important;
    background: var(--primary-color);
    border-radius: 1rem;
    border: 1px solid var(--primary-border-color);
}

.product-card__img-container {
    position: relative;
    width: 220px;
    /* Make image center */
    text-align: -webkit-center;
    margin: 0 auto;
    display: block;
    border-radius: 1rem;
    overflow: hidden;
}


.product-card-img {
    display: block;
    width: 100%;
    height: auto;
}


.product-card__discount-label {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    background: #f00;
    color: #fff;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__stock {
    font-size: 1rem;
    font-weight: 600;
    color: #f00;
    text-align: -webkit-center;
}

.product-card__detail {
    height: 130px;
    /* height: 100%; */
}

.product-card__title {
    color: var(--text-color-500);
    padding: 1rem 1rem 0rem 1rem;
}

.product-card__price {
    margin-top: auto;
    text-align: center;
    padding-bottom: 0.5rem;
}

.product-card__old-price {
    color: #979797;
    text-decoration-line: line-through;
    padding-bottom: 0.5rem;
    font-family: 'Vazirmatn', 'IranSans', sans-serif;
    font-size: 1.1rem;
    font-weight: bolder;
}

.product-card__new-price {
    color: var(--text-color-hover);
    font-size: 1.4rem;
    font-family: 'Vazirmatn', 'IranSans', sans-serif;
    font-weight: bolder;
}

/* Category Description */
.category__description {
    color: var(--text-color-500);
    font-family: inherit !important;
    /* استفاده از فونت پیش‌فرض سایت */
}

.category__description p {
    font-size: 0.875rem !important;

}

.category__description h2,
h3,
h4,
h5,
h6 {
    color: #e74c3c !important;
    margin: 1.2rem 0;
}

.category__description * {
    font-family: inherit !important;
    line-height: 2rem;
    /* لغو فونت‌های داخلی برای همه‌ی تگ‌های داخلی */
}



.d-none {
    display: none;
}


@media(max-width:768px) {
    .category_heading {
        display: block;
    }

    .category__filter {
        justify-content: start;
    }

    .product-card__container {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }

    .product-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .product-card__img-container {
        width: 40%;
        height: 100%;
    }

    .product-card__detail {
        width: 60%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 135px;
    }

    .product-card__title {
        font-size: 1rem;
        font-weight: bold;
        padding: 0.5rem;
    }

    .product-card__stock {
        text-align: left;
        padding: 0 0 1rem 1rem;
    }

    .product-card__price {
        font-weight: bold;
        text-align: left;
        padding-left: 1rem;
    }
}