/* utilities */
.purple-color {
    color: #b12ba4;
}
.myProductFeatureSwiper .nav-link {
    width: auto;
    min-width: fit-content;
    border: none!important;
    position: relative;
    padding: 0.5rem 0!important;
    color: #6c757d;
    transition: all 0.3s ease;
    font-weight: 500;
    background: transparent!important;
}

.myProductFeatureSwiper .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #0d6efd;
    transition: all 0.4s ease;
    border-radius: 3px 3px 0 0;
}
.custom-scrollbar::-webkit-scrollbar {
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

/* استایل مودال */
#imageModal .modal-dialog {
    max-width: 90%;
    max-height: 90vh;
}
#imageModal .carousel-item img {
    max-height: 80vh;
    object-fit: contain;
}

.myProductFeatureSwiper .nav-link.active {
    color: #0d6efd;
}

.myProductFeatureSwiper .nav-link.active::after {
    width: 100%;
}

/* حذف hover effect اگر نیاز نیست */
.myProductFeatureSwiper .nav-link:hover::after {
    width: 0;
}
.slider {
    overflow: hidden;
    height: 25px; /* Adjust based on the height of your text */
    position: relative;
}

.slider p {
    margin: 0;
    position: absolute;
    width: 100%;
    top: 100%;
    opacity: 0;
    transition: all 1s ease-in-out;
}

.slider p.active {
    top: 0;
    opacity: 1;
}

.slider p.next {
    top: 100%;
    opacity: 1;
}

/* Color Picker */
.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    outline: 4px solid transparent;
    outline-offset: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.color-circle.selected {
    outline-color: rgb(0, 191, 255);
}

.check-svg {
    position: absolute;
    display: none;
}

.color-circle.selected .check-svg {
    display: block;
}

.color1 {
    background-color: #000;
}

.color2 {
    background-color: green;
}

.color3 {
    background-color: blue;
}

/* sellers */
#sellers > div:nth-child(2n) {
    background-color: #eee;
}

/* Product Detials */
.nav-item a {
    color: #6c757d;
    text-align: center;
}

.border-title {
    width: 80px;
    border: 1.8px solid red;
}

.nav-item .indicator {
    display: none;
    width: 100%;
    height: 3px;
    background-color: red;
}

.nav-item.active a {
    color: #000;
    font-weight: bold;
}

.nav-item.active .indicator {
    display: block;
}

.content-div {
    display: none;
}

.content-div.active {
    display: block;
}

/* Show more / less  */
.more-content {
    display: none;
}

.toggle-btn {
    background-color: transparent;
    border: 0;
    padding: 0;
    color: #007bff;
}

.toggle-btn:focus {
    outline: none;
    box-shadow: none;
}

.chevron {
    transition: transform 0.3s;
}

.chevron.down {
    transform: rotate(0deg);
}

.chevron.up {
    transform: rotate(180deg);
}

#colorList li {
    cursor: pointer;
}

/* mobile product image */
.swiper.myGallerySwiper {
    width: 100%;
    height: 350px;
}


.myGallerySwiper .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.myGallerySwiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.myGallerySwiper .swiper-pagination {
    transform: translate(-30%, 50%);
}

.myGallerySwiper .swiper-pagination-bullet {
    background-color: #007bff;
    width: 6px;
    height: 6px;
}

.myGallerySwiper .swiper-pagination-bullet-active {
    background-color: #ef394e;
    width: 8px;
    height: 8px;
}

/* mobile feature */
.myProductFeatureSwiper.swiper {
    width: auto !important;
    text-align: center;
}
.warranty-text {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    word-break: break-word;
    line-height: 1.6;
}

.myQuestionSwiper .swiper-slide {
    border: 1px solid #d8d8d8 !important;
    border-radius: 8px;
}

.myQuestionSwiper button.swiper-slide {
    border: none !important;
}

.modal-fullscreen-lg-down {
    height: auto;
    width: 100vw;
}


#commentModal .modal-content {
    height: 600px;
    overflow: auto;
}

/* Remove focus outline from input and button */
#inputTextPositive:focus, #inputTextNegative:focus, #addButtonPositive:focus, #addButtonNegative:focus {
    outline: none;
    box-shadow: none;
}

/* Add padding to input for better alignment */
#inputTextPositive, #inputTextNegative {
    padding-left: 10px;
}

/* Adjust button hover effect */
#addButtonPositive:hover, #addButtonNegative:hover {
    color: #007bff;
}


/* question modal */
textarea {
    resize: none;
}

#charCount {
    margin-top: 10px;
}

/* Media Queries */
@media screen and (max-width: 425px) {
    .border {
        border: none !important;
    }

    .breadcrumb {
        font-size: 0.6rem;
    }

    .productDescription a {
        font-size: 0.6rem;
    }

    .productDescription h5 {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .productDescription .rating p,
    a {
        font-size: 0.6rem;
    }

    .productFeatures div {
        width: auto;
        gap: 0;
    }

    .productFeatures div p {
        font-size: 0.5rem;
    }
    .myProductFeatureSwiper .swiper-wrapper {
        flex-wrap: nowrap;
    }

    .myProductFeatureSwiper .swiper-slide p {
        white-space: nowrap;
        padding: 0.5rem 1rem;
        margin: 0;
        font-size: 0.6rem;
    }

    .color-circle {
        width: 20px;
        height: 20px;
    }

    .seller {
        background-color: #e9e9e9;
    }

    .seller div {
        border-radius: 5px;
        margin-top: 10px;
    }

    .seller h6 {
        font-size: 0.7rem;
    }

    .seller p {
        font-size: 0.6rem;
    }

    .seller svg {
        width: 18px;
    }

    .options a p {
        font-size: 0.56rem;
    }

    #details ul li {
        font-size: 0.7rem;
    }

    .nav-item .indicator {
        height: 1px;
    }

    #details #content p {
        font-size: 0.7rem;
    }

    #details #content h5 {
        font-size: 0.9rem;
    }

    .border-title {
        width: 50px;
    }


    footer {
        margin-bottom: 100px !important;
    }
}
@media (max-width: 768px) {
    #comment-content .content-section {
        flex-direction: column;
    }
    .seller > .bg-light {
        background-color: transparent !important;
        border: none !important; /* اگر میخواید حاشیه هم برداشته بشه */
        box-shadow: none !important; /* اگر سایه هم هست حذفش کنید */
        padding: 15px !important; /* اختیاری، اگر میخواید فاصله هم برداشته بشه */
    }
    #comment-content .col-lg-3 {
        position: static !important;
        width: 100% !important;
        margin-bottom: 1rem;
        padding: 0 1rem;
        display: block !important;
    }
    #comment-content .col-lg-3 button {
        width: 100% !important;
        font-size: 1rem;
    }
    #comment-content .col-lg-9 {
        width: 100% !important;
        padding: 0 1rem;
    }
    #comment-content h5 {
        font-size: 1.2rem;
    }
    #comment-content h6 {
        font-size: 1rem;
    }
    #comment-content p {
        font-size: 0.9rem;
    }
    #comment-content svg {
        width: 18px;
        height: 18px;
    }
    #comment-content .my-4 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    #comment-content .mt-4 {
        margin-top: 1.2rem !important;
    }
    #comment-content .col-lg-9 {
        padding-left: 30px;
        padding-right: 30px;
    }
}

