/*!
 * Code By "Amir H Fadaee"
 * Contact email: amir.gardeshgar@gmail.com
 * Contact email: amir_fadaiee@yahoo.com
 */

.product-single .main-image {
    max-height: 400px;
    object-fit: contain;
    width: 100%;
}

.product-single .thumb-image:hover {
    border: 2px solid #007bff;
}

.product-single .product-description {
    white-space: pre-line;
}

.variant-card .variant-header {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.variant-card .variant-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.variant-card .color-badge {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 50%;
    border: 1px solid #ccc;
    margin-right: 4px;
}

.variant-card .size {
    padding: 2px 6px;
    font-size: 0.75rem;
}


.variant-card {
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
    border: 2px solid transparent;
}

.variant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.variant-card .color-badge {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 50%;
    border: 1px solid #ccc;
}

@media (max-width: 768px) {
    .product-single .variants .variant-card {
        flex: 0 0 48%;
    }
}

@media (max-width: 576px) {
    .product-single .variants .variant-card {
        flex: 0 0 100%;
    }
}

.variant-card.selected-variant {
    border: 2px solid #007bff;
    /* رنگ دلخواه */
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* حذف تریگرهای input عدد */
#product-qty::-webkit-inner-spin-button,
#product-qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#product-qty {
    -moz-appearance: textfield;
    /* برای فایرفاکس */
}

.input-group .btn-increase {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.25rem !important;
    border-bottom-right-radius: 0.25rem !important;
}

.input-group .btn-decrease {
    border-top-left-radius: 0.25rem !important;
    border-bottom-left-radius: 0.25rem !important;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn-increase,
.input-group .btn-decrease {
    width: 38px;
    /* یا مقداری که متناسب با ارتفاع input باشه */
    padding: 0;
    /* برای هماهنگی */
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group .btn-increase:focus,
.input-group .btn-decrease:focus {
    outline: none;
    box-shadow: none;
}


.easyzoom {
    width: 100%;
}

.input-group .btn-increase {
    border-left: 0;
}

.input-group .btn-decrease {
    border-right: 0;
}

.product-quantity .input-group {
    width: 120px
}

.product-quantity .input-group input {
    border: 1px solid rgb(108, 117, 125);
    background: transparent;
}

.text-justify {
    text-align: justify;
}

.p-xs-3 {
    padding: 1rem !important;
}

.mt-xs-2 {
    margin-top: .5rem !important;
}

#productTabContent .tab-pane .mt-3 {
    min-height: 158.5px;
}

.relatedSwiper .product-card {
    min-height: 557px;
}


.swiper-button-next,
.swiper-button-prev {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    color: #fff;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #eaeaea;
}

.swiper-button-next svg,
.swiper-button-prev svg {
    fill: #fff; /* یا هر رنگی */
    width: 20px !important;
    height: 20px !important;
}

.swiper-button-next {
    top: 25px !important;
    left: 0 !important;
    right: auto !important;
}
.swiper-button-prev {
    top: 25px !important;
    left: 60px !important;
    right: auto !important;
}

.relatedSwiper {
    padding-top: 60px !important;
    margin-top: -50px !important;
}


.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;
}



.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;
}

/* ریشه پایین */
.frame-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /*z-index: 2;*/
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-5px);
    transition: all .3s ease;
}

.product-card img {
    transition: transform .3s ease;
}

#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;
}