.product__body {
    background: linear-gradient(to bottom, #000000, #00014e, #00196b);
    /* background-attachment: fixed; */
    background-repeat: no-repeat;
}

/* Product Top */
.product__top {
    display: flex;
}

/* Gallery */
.product__gallery {
    width: 35%;
}

.product__info {
    width: 65%;
    margin-right: 2rem;
}

.product__info-title {
    color: var(--text-color-500);
    font-size: 0.875rem;
}

.product-gallery__main-img {
    border-radius: 1rem;
    overflow: hidden;
}

.product-gallery__images-thumbnail {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.7rem;
}

.product-gallery__images-thumbnail-item {
    cursor: pointer;
    width: 90px;
    padding: 0.5rem;
    border: 1px solid var(--primary-border-color);
    border-radius: 0.5rem;
    margin: 0 0.3rem;
}

/* Product Detail */
.product__stock-txt {
    color: #f00;
    font-weight: 800;
    font-size: 1.5rem;
}

/* Feature */
.home-feature {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-feature__img-container {
    font-size: 3rem;
    text-align: -webkit-center;
    color: var(--text-color-900);
}

.home-feature__title {
    color: var(--text-color-900);
    padding-top: 0.5rem;
    font-weight: 600;
    text-align: -webkit-center;
}

.product__price-old,
.product__old-price {
    color: var(--text-color-500);
    font-family: 'Vazirmatn', 'IranSans', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration-line: line-through;
    padding-bottom: 0.5rem;
}

.product__price-new,
.product__discount-price,
.product__one-price {
    font-size: 1.4rem;
    font-family: 'Vazirmatn', 'IranSans', sans-serif;
    color: var(--text-color-hover);
}

.product__stock {
    padding-top: 2rem;
}

.product_rule {
    font-family: 'Vazirmatn', 'IranSans', sans-serif;
    color: var(--text-color-500);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 3rem;
}


.product_category {
    color: var(--text-color-500);
    font-size: 1.2rem;
    font-weight: 500;
}

.product__buy-btn {
    color: var(--text-color-hover) !important;
}

.product_category a:hover,
.product_rule a:hover {
    color: var(--text-color-hover);
}

.product_rule a {
    color: #f00;
}

.home-feature__txt {
    padding-top: 0.5rem;
    text-align: -webkit-center;
}

/* Variation */
.input__label {
    color: var(--text-color-500);
}

.product__variation-select {
    background-color: #f0f1f0;
    box-shadow: 0 0 10px rgba(0, 0, 0, .4);
}

/* Product Meta */
.product__meta {
    display: flex;
    align-items: center;
}

.product__meta-item {
    padding: 0.5rem;
    border: 1px solid var(--primary-border-color);
    border-radius: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    margin-left: 0.5rem;
}

.product__meta-key {
    font-size: 1rem;
    font-weight: 600;
}

.product__meta-value {
    font-size: 1rem;
}

/* Product Detail Tabs */
.product__details {
    padding-top: 0.5rem;
    border-top: 3px solid var(--text-color-500);
}

.product__details-tabs-container {
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--text-color-500);
    padding-bottom: 0.5rem;

}

.product__details-tab-item {
    padding: 0 1rem;
    color: var(--text-color-500);
}

.product__details-tab-link {
    position: relative;
}

.product__details-tab-link:focus,
.product__details-tab-link:active {
    color: var(--text-color-500);
}

.product__details-tab-link:focus::after,
.product__details-tab-link:active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 5px;
    background: var(--secondary-color);
    border-top-right-radius: 0.5rem;
    border-top-left-radius: 0.5rem;
}

.product__details-summary,
.product__details-description {
    padding-bottom: 1rem;
    line-height: 2rem;
    border-bottom: 1px solid var(--primary-border-color);
}

.product__details-description h2,
h3,
h4,
h5,
h6 {
    color: #e74c3c !important;
    margin: 1.2rem 0;
}

.nav-item a {
    color: var(--text-color-500);
    text-align: center;
}

.border-title {
    width: 80px;
    border: 1.8px solid red;
}

.nav-item .indicator {
    display: none;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 5px;
    background: var(--secondary-color);
    border-top-right-radius: 0.5rem;
    border-top-left-radius: 0.5rem;
}

.nav-item {
    cursor: pointer;
}

.nav-item.active a {
    color: var(--text-color-hover);
    font-weight: bold;
}

.nav-item.active .indicator {
    display: block;
}

.content-div {
    display: none;
}

.content-div.active {
    display: block;
}

#colorList li {
    cursor: pointer;
}


/* Comments */
.comments__box {
    width: 30%;
    margin-left: 2rem;
}

.comments__box-item {
    position: sticky;
    top: 6rem;
}

.comments-container {
    width: 70%;
}

.comments-item {
    border: 1px solid var(--primary-border-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

.comments-head {
    border-bottom: 2px solid var(--primary-border-color);
    padding-bottom: 0.5rem;
}

.comments-name,
.comments-time {
    font-size: 0.875rem;
    color: var(--text-color-500);
}

.comments-content {
    color: var(--text-color-900);
}

.input__control {
    background: #f0f1f0;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

.comments-star.readonly .star {
    pointer-events: none;
}

.answer-comments {
    width: 100%;
    padding: 0.5rem 0;
    border-top: 1px solid var(--primary-border-color);
    /* margin-right: 3rem; */
}

/* Stars */
.stars {
    direction: rtl;
    /* چینش از راست به چپ */
    display: inline-flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.5rem;
    color: #a1a3a8;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star.active {
    color: #f9a825;
}


/* Related Slider */
/* Product Card */
.related-slider__item-container {
    width: 250px !important;
    margin: 1rem;
}

.product-card__container {
    background: #fff;
    border-radius: 1rem;
}

.product-card__img-container {
    position: relative;
    width: 250px;
    /* Make image center */
    text-align: -webkit-center;
    display: block;
    margin-bottom: 0;
    border-radius: 1rem;
    overflow: hidden;
}

.product-card__img-container:hover {
    transform: scale(1.05);
}

.product-card__first-img {
    display: block;
    width: 100%;
    height: auto;
}

.product-card__second-img {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: auto;
    transition: all 0.7s ease;
    border-radius: 35px;
}

.product-card__second-img:hover {
    border-radius: 35px;
}

.product-card__img-container:hover .product-card__second-img {
    opacity: 1;
}

.product-card__discount-label {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    background: #f00;
    color: #fff;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__stock {
    font-size: 1rem;
    font-weight: 600;
    color: #f00;
    text-align: -webkit-center;
}

.product-card__detail {
    height: 130px;
    /* height: 100%; */
}

.product-card__title {
    color: var(--text-color-900);
    padding: 1rem 1rem 0.5rem 1rem;
}

.product-card__price {
    margin-top: auto;
    text-align: center;
    padding-bottom: 0.5rem;
}

.product-card__old-price {
    color: var(--text-color-500);
    text-decoration-line: line-through;
    padding-bottom: 0.5rem;
}

.product-card__new-price {
    color: var(--text-color-900);
}

.related-sale__top {
    text-align: center;
    margin-bottom: 2rem;
}

.related-sale__top-title {
    background: var(--secondary-color);
    color: var(--text-color-900);
    padding: 0.875rem;
    border-radius: 0.875rem;
}

.related-sale__bottom {
    background: var(--primary-color);
    padding: 0.8rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

@media(max-width:1199px) {
    .home-feature__item {
        margin-top: 1.5rem;
    }

    .related-sale.container {
        padding: 0;
        border-radius: 0;
    }

    .related-sale__bottom {
        padding: 0;
        border-radius: 0;
    }

    .product__meta {
        flex-wrap: wrap;
    }

    .product__meta-item {
        margin: 0.5rem;
    }

    .product__price-old,
    .product__old-price {
        font-size: 0.875rem;
        padding-bottom: 0.2rem;
    }

    .product__price-new,
    .product__discount-price {
        font-size: 0.875rem;
        font-weight: 600;
    }

    .comments__box-container {
        display: block;
    }

    .comments__box,
    .comments-container {
        width: 100%;
    }

    .comments-container {
        display: flex;
    }

    .comments-item {
        margin-left: 1rem;
        min-width: 300px;
        height: 250px;
    }

    .comments-item:last-child {
        margin-bottom: 2rem;
    }
}

@media (min-width:493px) and (max-width:1199px) {
    .product__gallery {
        width: 45%;
    }

    .product__info {
        width: 55%;
        margin-left: 1.5rem;
    }

}

@media screen and (max-width: 492px) {

    .product__info-title {
        margin-top: 1rem;
        font-size: 0.8rem;
        font-weight: 600;
        border-top: 2px solid var(--primary-border-color);
        padding-top: 0.5rem;
    }

    .breadcrumb__item-container {
        white-space: nowrap;
        font-size: 0.7rem;
    }

    .product-gallery__images-thumbnail-item {
        width: 70px;
        padding: 0.3rem;
        margin: 0 0.3rem;
    }

    .product__top {
        display: flex;
        flex-direction: column;
    }

    .product__gallery {
        width: 100%;
    }

    .product__info {
        width: 100%;
        margin: 0;
    }

}