﻿
/* =========================================
       PRODUCT RATING
       ========================================= */
.product-rating-box {
    margin-bottom: 22px;
    padding: 13px 16px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 12px;
}

.rating-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

.rating-title-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff3cd;
    color: #f5b301;
    font-size: 13px;
}

.rating-result {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rating-stars {
    direction: ltr;
    display: flex;
    align-items: center;
    gap: 2px;
}

    .rating-stars .star {
        font-size: 20px;
        color: #d8d8d8;
        line-height: 1;
    }

        .rating-stars .star.active {
            color: #f5b301;
        }

.rating-number {
    font-size: 15px;
    font-weight: 800;
    color: #333;
    margin-right: 4px;
}

    .rating-number span {
        font-size: 12px;
        font-weight: 500;
        color: #777;
    }

.rating-count {
    font-size: 12px;
    color: #888;
}
/* =========================================================
           PRODUCT GALLERY
           ========================================================= */

.rasha-product-gallery {
    position: relative;
}

.rasha-gallery-main {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eeeeee;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

    .rasha-gallery-main .swiper-slide {
        height: 430px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.product-main-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #fff;
    cursor: zoom-in;
}

.product-main-image {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .35s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.product-main-slide:hover .product-main-image {
    transform: scale(1.035);
}


/* =========================================================
           ZOOM HINT
           ========================================================= */

.zoom-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 8px 13px;
    background: rgba(255,255,255,.92);
    border-radius: 20px;
    font-size: 12px;
    color: #555;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    opacity: 0;
    transform: translateY(8px);
    transition: all .25s ease;
    pointer-events: none;
}

.product-main-slide:hover .zoom-hint {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
           MAIN SLIDER BUTTONS
           ========================================================= */

.gallery-main-next,
.gallery-main-prev {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    box-shadow: 0 5px 18px rgba(0,0,0,.12);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s ease;
}

.gallery-main-next {
    left: 15px;
}

.gallery-main-prev {
    right: 15px;
}

    .gallery-main-next i,
    .gallery-main-prev i {
        font-size: 14px;
        color: #333;
    }

    .gallery-main-next:hover,
    .gallery-main-prev:hover {
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 7px 22px rgba(0,0,0,.18);
    }

        .gallery-main-next:hover i,
        .gallery-main-prev:hover i {
            color: #f5a900;
        }


/* =========================================================
           THUMBNAILS
           ========================================================= */

.rasha-gallery-thumbs {
    margin-top: 15px;
    overflow: hidden;
}

    .rasha-gallery-thumbs .swiper-wrapper {
        align-items: center;
    }

    .rasha-gallery-thumbs .swiper-slide {
        width: 88px;
        height: 88px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border: 1px solid #eeeeee;
        border-radius: 12px;
        overflow: hidden;
        cursor: pointer;
        opacity: .65;
        transition: all .25s ease;
    }

        .rasha-gallery-thumbs .swiper-slide:hover {
            opacity: 1;
            border-color: #ddd;
            transform: translateY(-2px);
        }

    .rasha-gallery-thumbs .swiper-slide-thumb-active {
        opacity: 1;
        border: 2px solid #f5b301;
        box-shadow: 0 5px 18px rgba(245,179,1,.18);
        transform: translateY(-2px);
    }

    .rasha-gallery-thumbs img {
        width: 100%;
        height: 100%;
        padding: 6px;
        object-fit: contain;
    }


/* =========================================================
           PRODUCT ACTIONS
           ========================================================= */

.rasha-product-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
}

    .rasha-product-actions li {
        position: relative;
    }

        .rasha-product-actions li > a {
            width: 43px;
            height: 43px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #fff;
            border: 1px solid #eeeeee;
            box-shadow: 0 4px 15px rgba(0,0,0,.06);
            transition: all .25s ease;
        }

            .rasha-product-actions li > a:hover {
                transform: translateY(-3px);
                box-shadow: 0 8px 20px rgba(0,0,0,.12);
                border-color: #f5b301;
            }


/* =========================================
       PROFESSIONAL PRODUCT LIGHTBOX
       ========================================= */

.product-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, .94);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 30px;
}

    .product-lightbox.active {
        display: flex;
    }

    .product-lightbox img {
        max-width: none;
        max-height: none;
        width: auto;
        height: auto;
        object-fit: contain;
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
        -webkit-user-drag: none;
        transform: translate3d(0, 0, 0) scale(1);
        transition: transform .15s ease;
    }

        .product-lightbox img.zoomed {
            cursor: grab;
        }

        .product-lightbox img.dragging {
            cursor: grabbing;
            transition: none;
        }

.product-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 30px;
    line-height: 40px;
    cursor: pointer;
    z-index: 100001;
    transition: all .2s ease;
}

    .product-lightbox-close:hover {
        background: rgba(255,255,255,.3);
        transform: rotate(90deg);
    }


/* دکمه های زوم */

.product-lightbox::after {
    content: "اسکرول موس برای زوم • کشیدن عکس برای جابه‌جایی";
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.75);
    font-size: 12px;
    pointer-events: none;
}


/* موبایل */

@@media (max-width: 768px) {

    .product-lightbox {
        padding: 10px;
    }

    .product-lightbox-close {
        top: 12px;
        right: 12px;
    }

    .product-lightbox::after {
        font-size: 10px;
        bottom: 12px;
    }
}

/* =========================================================
           RATING
           ========================================================= */

.product-rating-stars {
    direction: ltr;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 5px;
}

    .product-rating-stars span {
        font-size: 20px;
        line-height: 1;
    }


/* =========================================================
           RATING FORM
           ========================================================= */

#productRating {
    direction: ltr;
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 3px;
}

    #productRating input {
        display: none;
    }

    #productRating label {
        font-size: 34px;
        color: #d5d5d5;
        cursor: pointer;
        line-height: 1;
        transition: color .2s ease, transform .2s ease;
    }

        #productRating label:hover {
            transform: scale(1.12);
        }

            #productRating label:hover,
            #productRating label:hover ~ label,
            #productRating input:checked ~ label {
                color: #ffc107;
            }


/* =========================================================
           COMMENTS
           ========================================================= */

.rasha-comments-title {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 12px;
}

    .rasha-comments-title i {
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: #f5b301;
        color: #fff;
    }


/* =========================================================
           SIMILAR PRODUCTS
           ========================================================= */

.rasha-similar-section {
    margin-top: 25px;
}

    .rasha-similar-section .section-title {
        font-size: 18px;
        font-weight: 800;
    }

.rasha-product-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
}

    .rasha-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0,0,0,.10);
    }

    .rasha-product-card .product-card-top {
        position: relative;
        background: #fff;
    }

    .rasha-product-card .product-image {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 210px;
        padding: 12px;
        background: #fff;
    }

        .rasha-product-card .product-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform .3s ease;
        }

    .rasha-product-card:hover .product-image img {
        transform: scale(1.05);
    }

    .rasha-product-card .product-card-middle {
        padding: 12px 14px 8px;
    }

    .rasha-product-card .product-name {
        min-height: 45px;
        margin-top: 10px;
        font-size: 14px;
        font-weight: 700;
    }

        .rasha-product-card .product-name a {
            color: #333;
        }

            .rasha-product-card .product-name a:hover {
                color: #f0a900;
            }

    .rasha-product-card .ratings-container {
        margin-bottom: 5px;
    }

    .rasha-product-card .product-card-bottom {
        padding: 10px 14px 15px;
        border-top: 1px solid #f2f2f2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

        .rasha-product-card .product-card-bottom .product-price {
            font-size: 14px;
            font-weight: 800;
        }

    .rasha-product-card .btn-add-to-cart {
        font-size: 12px;
        white-space: nowrap;
    }


/* =========================================================
           MOBILE
           ========================================================= */

@@media (max-width: 768px) {

    .rasha-gallery-main .swiper-slide {
        height: 330px;
    }

    .product-main-image {
        max-width: 88%;
        max-height: 88%;
    }

    .zoom-hint {
        display: none;
    }

    .rasha-gallery-thumbs .swiper-slide {
        width: 70px;
        height: 70px;
    }

    .gallery-main-next,
    .gallery-main-prev {
        width: 35px;
        height: 35px;
    }

    .gallery-main-next {
        left: 8px;
    }

    .gallery-main-prev {
        right: 8px;
    }

    .product-lightbox {
        padding: 10px;
    }

    .product-lightbox-close {
        top: 10px;
        right: 10px;
    }

    .rasha-product-card .product-image {
        height: 180px;
    }
}


