﻿/* ================= PRODUCT GALLERY ================= */
.product-gallery {
    position: relative;
    /* برای اینکه فضای آیکن ها داخل باکس حساب شود */
    padding-right: 70px;
}

/* تصویر اصلی کمی کوچکتر */
.product-main-image {
    width: 100%;
    max-width: calc(100%);
    margin-right: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--silver);
}

/* ================= THUMBNAILS ================= */

.thumb-list {

}

.thumb-item {
    margin-top: 20px;
}

    .thumb-item:hover {
        border-color: #7c3aed;
    }

    .thumb-item img {

        max-width:100%;
        object-fit: cover;
        border-radius: 20px;
        border: 1px solid var(--silver);
        cursor: pointer;
        transition: .2s;
    }

/* ================= ACTION BUTTONS ================= */

/* ستون آیکن ها */
.product-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20;
}

.product-action-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid #ececec;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

    .product-action-btn:hover {
        border-color: #7c3aed;
        transform: translateX(-2px);
    }

    .product-action-btn svg {
        width: 22px;
        height: 22px;
    }
/* tooltip */

.tooltip {
    font-family: inherit;
}

    .tooltip .tooltip-inner {
        background: #111;
        border-radius: 10px;
        padding: 8px 12px;
        font-size: 12px;
    }

.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #111 !important;
}

/* موبایل */

@@media(max-width:768px) {

    .product-gallery {
        padding-right: 0;
    }

    .product-main-image {
        max-width: 100%;
    }

    .product-actions {
        position: static;
        flex-direction: row;
        margin-top: 15px;
        flex-wrap: wrap;
    }
}
/* ================= CATEGORY LINKS ================= */

.product-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

    .product-links a {
        text-decoration: none;
        color: #777;
    }

        .product-links a:hover {
            color: #7c3aed;
        }
/* ================= PRODUCT TITLE ================= */

.product-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.9;
    margin-bottom: 12px;
}

.product-subtitle {
    color: #8d8d8d;
    font-size: 14px;
    line-height: 1.8;
}
/* ================= PRODUCT META ================= */

.product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.meta-badge {
    border: 1px solid var(--silver);
    background:var(--white);
    border-radius: 50px;
    padding:2px 8px 1px 8px;
    color: var(--silver-dark);
    font-size:12px;
}
/* ================= COLORS ================= */


.color-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid var(--black);
    padding: 3px;
    transition: .2s;
}



.color-circle.active {
    border: 2px solid var(--primary-dark);
}

.color-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
/* ================= PURCHASE BOX ================= */

.purchase-box {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 20px;
    padding: 20px;
    position: sticky;
    top: 120px;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.old-price {
    color: #b5b5b5;
    text-decoration: line-through;
    font-size: 14px;
}

.new-price {
    font-size: 18px;
    font-weight: 800;
}

.stock-warning {
    color: #dc3545;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}



.guarantee-text {
    display:flex;
    justify-content:space-between;
    color: var(--silver-dark);
    font-size: 13px;
    line-height: 1.8;
}
/* ================= SHIPPING ================= */

.shipping-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shipping-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--silver-dark);
}
/* ================= MOBILE ================= */

@@media(max-width:768px) {

    .product-actions {
        position: static;
        flex-direction: row;
        margin-top: 15px;
    }

    .purchase-box {
        position: static;
        margin-top: 30px;
    }
}
/* ===================================================== */
/* GUARANTEE */
/* ===================================================== */

.guarantee-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guarantee-item {
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: .2s;
    background: #fff;
}

    .guarantee-item:hover {
        border-color: #d0c2ff;
        background: #fcfaff;
    }

.guarantee-check {
    width: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #ececec;
    padding-left: 14px;
}

    .guarantee-check .form-check-input {
        width: 18px;
        height: 18px;
        border-radius: 4px;
        cursor: pointer;
    }

        .guarantee-check .form-check-input:checked {
            background-color: #7c3aed;
            border-color: #7c3aed;
        }

.guarantee-content {
    display:flex;
    justify-content:space-between;
    width:100%;
}

.guarantee-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);

}

.guarantee-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.guarantee-price {
    font-size: 15px;
    font-weight: 700;
    color: #666;
}

.guarantee-link {
    color: #7c3aed;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

    .guarantee-link:hover {
        color: #5b21b6;
    }

/* ===================================================== */
/* PRODUCT DETAILS */
/* ===================================================== */

.product-detail-card {
    background: var(--primary-light);
    border-radius: 16px;
    padding: 16px;
    height: 100%;
}

.product-detail-title {
    font-size: 12px;
    color: var(--black);
    margin-bottom: 10px;
    text-align: right;
}

.product-detail-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--silver-dark);
    text-align: right;
}

.show-all-features-btn {
    text-decoration:none;
    color:var(--primary);
}

    .show-all-features-btn:hover {
        border-color: #7c3aed;
        color: #7c3aed;
    }
/* ===================================================== */
/* TABS */
/* ===================================================== */

.product-tabs {
    display: flex;
    gap: 20px;
    padding-bottom: 00px;
    border-bottom: 1px solid #ececec;
    margin-bottom: 10px;
    top: 0;
    z-index: 50;
}

.product-tab {
    text-decoration: none;
    color: #888;
    font-size: 14px;
    font-weight: 700;
    padding-bottom: 14px;
    position: relative;
    transition: .2s;
}

    .product-tab.active {
        color: #7c3aed;
    }

        .product-tab.active::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: -15px;
            width: 100%;
            height: 3px;
            background: #7c3aed;
            border-radius: 20px;
        }

/* ===================================================== */
/* SECTIONS */
/* ===================================================== */

.product-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.section-title {
    display: inline-block;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 3px solid #7c3aed;
}

.section-text {
    line-height: 2.3;
    color: #555;
    font-size: 15px;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more-btn {
    border: 0;
    background: transparent;
    color: #7c3aed;
    font-weight: 700;
    margin-top: 20px;
}

/* ===================================================== */
/* SPECS */
/* ===================================================== */

.spec-list {
    display: flex;
    flex-direction: column;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #ececec;
}

.spec-title {
    color: #8c8c8c;
    font-size: 14px;
}

.spec-value {
    color: #111;
    font-size: 16px;
    font-weight: 300;
}
#productSpecs{
    margin-bottom:0px!important;
}
/* ===================================================== */
/* COMMENTS */
/* ===================================================== */
.comment-rate-box {
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 20px;
}

.rating-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

    .rating-stars span {
        font-size: 28px;
        cursor: pointer;
        color: #d4d4d4;
        transition: .2s;
    }

        .rating-stars span.active {
            color: #f59e0b;
        }

.product-gallery-modal {
    border-radius: 24px;
    overflow: hidden;
    border: none;
}

.gallery-main-wrapper {
    position: relative;
    background: #fff;
    padding: 30px;
    text-align: center;
}

.gallery-main-image {
    max-height: 70vh;
    max-width: 100%;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

    .gallery-thumbs::-webkit-scrollbar {
        height: 6px;
    }

    .gallery-thumbs img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 14px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: 0.2s;
        background: #fff;
    }

        .gallery-thumbs img.active {
            border-color: #692CA2;
        }

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,.12);
    z-index: 5;
}

    .gallery-nav.prev {
        left: 20px;
    }

    .gallery-nav.next {
        right: 20px;
    }

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}


/* ===================================================== */
/* items */
/* ===================================================== */

.items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: stretch;
    gap: 14px;
    cursor: pointer;
    transition: .2s;
    background: #fff;
}

.checkbox-item:hover {
    border-color: #d0c2ff;
    background: #fcfaff;
}

.item-check {
    width: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #ececec;
    padding-left: 14px;
}

    .item-check .form-check-input {
        width: 18px;
        height: 18px;
        border-radius: 4px;
        cursor: pointer;
    }

        .item-check .form-check-input:checked {
            background-color: #7c3aed;
            border-color: #7c3aed;
        }

.checkbox-Item-content {
    flex: 1;
}

.checkbox-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--silver-dark);
    line-height: 1.8;
    margin-bottom: 10px;
    display:flex;
    justify-content:space-between;
}

.checkbox-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.checkbox-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--silver-dark);
}

.checkbox-item-link {
    color: #7c3aed;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

    .checkbox-item-link:hover {
        color: #5b21b6;
    }

#ajax-product-details-mini{
    margin-top:10px;

}