body {
    background-color: #fff5ee !important;
}
/*************************/
.category-thumbnail {
    margin-bottom: 30px;
    text-align: center;
}

.category-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.category-description {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.category-item {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 40px;
    background: #fff;
}

.category-item:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.category-item a img {
    max-width: 100%;
    height: auto;
    border-radius: 35px;
}

.category-item h2 {
    margin: 10px 0;
    font-size: 1.2em;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    width: 100%;
}

.product-item {
    display: flex;
    border: 1px solid #ddd;
    padding: 25px 0px 25px 0px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 40px;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 10px;
    
}

.product-item:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.product-item img {
    max-width: 75%;
    height: auto;
    border-radius: 25px;
}

.product-item h2 {
    margin: 10px 0;
    font-size: 1.1em;
    border-bottom: 1px solid #00224D1C;
    padding-bottom: 30px;
}
.product-item-cats{
    background-color: #00224D4F;
    padding: 8px 8px 8px 8px;
    border-radius: 25px 25px 25px 25px;
}
.product-item-cats-btn{
    background: #d0070e;
    padding: 10px;
    border-radius: 5px;
    width: 48%;
}
.product-item-cats-btn a{
    color: #ffffff;
}
/* استایل برای عنوان اصلی */
/* h1 {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    color: #333;
} */
/*************************/
.single-product-content {
    display: flex;
    /* flex-direction: column; */
    flex-wrap: wrap;
    margin-bottom: 75px;
    align-content: center;
    align-items: center;
}

.single-image-thumbnail {
    width: 35%;
    display: flex;
    flex-direction: column;
}

.single-image-thumbnail img {
    border-radius: 25px;
}

.product-features-widget {
    display: flex;
    width: 65%;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: space-between;
    align-items: center;
}

.product-features-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    
}

.product-feature-item {
    border: 1px solid;
    border-radius: 8px;
    padding: 5px;
    width: 45%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: center;
}
.product-feature-item:last-child {
    width: 92%; /* تمام عرض برای آخرین آیتم */
}
.product-title {
    border-bottom: 1px solid;
    width: 90%;
    padding-bottom: 30px;
}

.product_category_name {
    border: 1px solid;
    width: 100%;
    display: block;
    padding: 5px;
    margin: 8px 0px 8px 0px;
}

.custom-product-button {
    background: #d0070e;
    color: #ffffff;
    width: 100%;
    display: flex;
    padding: 12px 24px;
    border-radius: 3px;
    justify-content: center;
    text-decoration: none !important;
}
.custom-product-button:hover {
    background: #dd2027;
    color: #ffffff;
}
.product_description{
    background: #ffffff;
    padding: 36px;
    border-radius: 16px 16px 16px 16px;
    box-shadow: 0px 10px 60px 0px rgba(0, 0, 0, 0.05);
}

.content-wrapper {
    display: flex;
    gap: 30px;
    margin: 20px 45px 0px 0px;
    flex-direction: row;
	font-family: 'yekanbakh' ;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.main-content {
    flex-grow: 1;
}

.category-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px;
    position: sticky;
    top: 20px;
}

.category-sidebar h3 {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    font-size: 16px;
}

.category-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-tree ul {
    list-style: none;
    padding-right: 20px;
    display: none;
}

.category-tree li {
    margin: 5px 0;
}

.cat-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s;
    background: #d0070e;
    color: #fff;
}

.cat-item:hover {
    background: #00224d;
    color: #fff;
}

.toggle {
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    margin-left: 5px;
    font-weight: bold;
}

.current-cat > .cat-item {
    background: #00224d;
}

.category-tree a {
    text-decoration: none;
    color: #fff;
    flex-grow: 1;
}
.category-tree a:hover {

    color: #fff;

}

/************************/

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
		margin: 20px auto;
		
    }
    
    .sidebar {
        width: 100%;
    }
    
    .category-sidebar {
        position: relative;
        top: 0;
    }

    .products-grid,
    .subcategories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
@media (max-width: 1024px) {
    .single-product-content {
        flex-direction: column;
        gap: 30px;
    }

    .single-image-thumbnail {
        width: 100%;
    }

    .product-features-widget {
        width: 100%;
    }

    .product-feature-item {
        width: 100%; /* آیتم‌ها در عرض کامل */
        justify-content: flex-start;
    }
    .product-feature-item:last-child {
        width: 100%; /* آیتم‌ها در عرض کامل */
        justify-content: flex-start;
    }

    .product-title {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .product_description {
        padding: 24px;
		width: 100%;
    }

    .custom-product-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .product-features-list {
        gap: 10px;
        padding: 0;
        margin: 0;
    }

    .product-feature-item {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .single-image-thumbnail img {
        border-radius: 16px;
    }

    .custom-product-button {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .product_description {
        padding: 16px;
		width: 100%;
    }
}