
/*!
 * Code By "Amir H Fadaee"
 * Contact email: amir.gardeshgar@gmail.com
 * Contact email: amir_fadaiee@yahoo.com
 */

.product-card:hover {
    transform: translateY(-5px);
    transition: all .3s ease;
}

.product-card img {
    transition: transform .3s ease;
}

.group-item.active img {
    border-color: #7e37a9;
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}

.group-scroll {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.group-scroll::-webkit-scrollbar {
    height: 6px;
}

.group-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.group-item {
    flex: 0 0 auto;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
    width: 90px;
}

.group-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #eee;
    margin: 0 auto;
}

.group-item:hover {
    transform: translateY(-3px);
}

.group-item:hover img {
    border-color: #7e37a9;
}


.breadcrumb a {
    text-decoration: none;
}

.group-scroll {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.group-item.active img {
    border-color: #7e37a9;
    transform: scale(1.05);
}

.compare-btn {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    transition: all 0.2s;
}

.compare-btn.btn-primary {
    background-color: #7e37a9;
    color: #fff;
    border-color: #7e37a9;
}



#compareBox {
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

#compareList img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin: 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.color-mini-list {
    position: absolute;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.9);
    left: 0;
    right: 0;
    text-align: center;
}
.color-mini-list > div {
    width: 10px;
    height: 9px;
    display: inline-block;
    border-radius: 50%;
    border: 1px solid #333;
}

/* ریشه بالا */
.frame-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /*z-index: 2;*/
    pointer-events: none;
    transition: all .7s ease;
}

/* ریشه پایین */
.frame-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /*z-index: 2;*/
    pointer-events: none;
    transition: all .7s ease;
}




/*==========================[Sortbar]=======================*/
.sort-bar {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px 15px;
    background: #fafafa;
    background-color: #1e4384;
    color: #fff;
}

.sort-title {
    font-weight: 600;
    color: #555;
    color: #fff;
}

.sort-options {
    gap: 8px;
}

.sort-item {
    padding: 6px 14px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sort-item:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.sort-item.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.clear-search {
    position: absolute;
    color: #fff;
    left: 5px;
    top: 15px;
    border:0;
    background:none;
    cursor:pointer;

    opacity:0;
    visibility:hidden;
    transition:.2s;
}
.clear-search.show{
    opacity:1;
    visibility:visible;
}

/* موبایل */
@media (max-width: 768px) {
    .sort-bar {
        padding: 10px;
    }

    .sort-title {
        font-size: 14px;
    }
}
/*==========================[/Sortbar]======================*/