/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/
/* استایل اسلایدر دسته‌بندی */
.category-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px;
    white-space: nowrap;
	margin-bottom:50px;
}

.category-item {
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    min-width: 120px; /* اندازه حداقلی برای اسلایدها */
}

.category-item img {
    width: 170px;  /* تنظیم اندازه تصاویر */
    height: 170px;
    object-fit: cover;
    transition: 0.3s;
}

.category-item:hover {
    transform: scale(1.1);
}

.category-item p {
    font-size: 14px;
    margin-top: 5px;
    color: #333;
}

/* مخفی کردن اسکرول در برخی مرورگرها */
.category-slider::-webkit-scrollbar {
    display: none;
}

.category-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* استایل محصولات */
.products {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.product-item {
    /*width: calc(33.33% - 10px); /* سه ستون در هر ردیف */ 
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: transform 0.3s;
}

.product-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.product-item h3 {
    font-size: 16px;
    margin: 10px 0;
}

.product-item p {
    font-size: 14px;
    font-weight: bold;
    color: #27ae60;
}

.product-item:hover {
    transform: scale(1.05);
}
/* نمایش محصولات در ۴ ستون در دسکتاپ و ۲ ستون در موبایل */
.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ۴ ستون در دسکتاپ */
    gap: 15px;
    margin-top: 20px;
}

.product-item {
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: transform 0.3s;
}

.product-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.product-item h3 {
    font-size: 16px;
    margin: 10px 0;
}

/* تغییر چینش در موبایل (۲ ستون) */
@media (max-width: 768px) {
    .products {
        grid-template-columns: repeat(2, 1fr); /* ۲ ستون در موبایل */
    }
}


    .carousel-container {
        position: relative;
        width: 80%;
        max-width: 100%;
        margin: auto;
        overflow: hidden;
    }
    .carousel {
        display: flex;
        transition: transform 0.5s ease-in-out;
    }
    .carousel-item {
        min-width: 100%;
        transition: transform 0.5s;
        text-align: center;
    }
    .carousel img {
        width: 100%;
        height: auto;
        border-radius: 5px;
    }
    .prev, .next {
        position: absolute;
        top: 30%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.5);
        color: white;
        border: none;
        padding: 10px;
        cursor: pointer;
        font-size: 18px;
    }
    .prev { left: 10px; }
    .next { right: 10px; }
	
/* استایل اسلایدر برچسب‌ها */
.tag-slider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    white-space: nowrap;
}

.tag-item {
cursor: pointer;
  text-align: center;
  transition: transform 0.3s ease-in-out;
  min-width: 120px;
}

.tag-item:hover {
    ransform: scale(1.1);
}

/* نمایش محصولات در ۴ ستون در دسکتاپ و ۲ ستون در موبایل */
.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ۴ ستون در دسکتاپ */
    gap: 15px;
    margin-top: 20px;
}

.product-item {
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: transform 0.3s;
}

.product-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.product-item h3 {
    font-size: 16px;
    margin: 10px 0;
}

.product-item h3 a {
    text-decoration: none;
    color: #333;
}

/* تغییر چینش در موبایل (۲ ستون) */
@media (max-width: 768px) {
    .products {
        grid-template-columns: repeat(2, 1fr); /* ۲ ستون در موبایل */
    }
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-item {
    text-align: center;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 10px;
    transition: 0.3s;
}

.product-item:hover {
    background: #eee;
}

.product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
    .product-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .product-item {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: center;
        background: white;
        border-radius: 8px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease-in-out;
    }

    .product-item:hover {
        transform: scale(1.05);
    }

    .product-item img {
        max-width: 100%;
        height: auto;
        border-radius: 5px;
    }

    @media (min-width: 1024px) {
        .product-list {
            grid-template-columns: repeat(4, 1fr); /* ۴ محصول در دسکتاپ */
        }
    }

    @media (max-width: 768px) {
        .product-list {
            grid-template-columns: repeat(2, 1fr); /* ۱ محصول در موبایل */
        }
    }

.tag-item {
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    min-width: 120px; /* اندازه حداقلی برای اسلایدها */
}

.tag-item img {
    object-fit: contain;
    transition: 0.3s;
}

.tag-item:hover {
    transform: scale(1.1);
}

.tag-item p {
    font-size: 14px;
    margin-top: 5px;
    color: #333;
}
.swiper-slide-inner {
    max-height: 450px!important;
}