﻿.product-image {
    border-radius: 4px;
    padding: 0.5rem;
}

.swiper {
    width: 100%;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}

.mySwiper2 {
    height: 80%;
    width: 100%;
}

.mySwiper {
    height: 20%;
    box-sizing: border-box;
    padding-top: 10px;
}

    .mySwiper .swiper-slide {
        width: 25%;
        height: 100%;
        opacity: 0.4;
    }

    .mySwiper .swiper-slide-thumb-active {
        opacity: 1;
    }

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.swiper-thumbnail {
    border: 1px solid rgba(229, 229, 229, 1);
    padding: 0.15rem;
}

.product-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    justify-content: space-evenly;
}

    .product-content h3 {
        font-size: 16px;
        color: rgba(82, 82, 82, 1);
        font-weight: 300;
        margin-bottom: 0.5rem;
    }

    .product-content h1 {
        font-size: 14px;
        font-weight: 400;
        margin-bottom: 1rem;
    }

.product-variant {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid rgba(212, 212, 212, 1);
    padding: 0.5rem 0;
    font-size: 16px;
    font-weight: 300;
    color: rgba(82, 82, 82, 1);
}

.product-price-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

    .product-price-box .discount-box {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .product-price-box .discount-box span {
            background-color: rgba(185, 4, 4, 1);
            padding: 0.2rem 0.5rem;
            color: #fff;
            border-radius: 5px;
            font-size: 14px;
            font-weight: 700;
        }

        .product-price-box .discount-box p:first-child {
            font-size: 20px;
            font-weight: 400;
            color: rgba(115, 115, 115, 1);
            text-decoration: line-through;
        }

    .product-price-box .price {
        font-size: 24px;
        font-weight: 400;
        margin: 0;
        text-align: left;
    }

    .product-price-box .button-box {
        display: flex;
        margin-top: 1.5rem;
    }

        .product-price-box .button-box a {
            display: flex;
            justify-content: center;
            background-color: rgba(234, 82, 1, 1);
            color: #fff;
            padding: 12px 10px;
            border-radius: 4px;
            border: 0;
            width: 100%;
        }

            .product-price-box .button-box a:hover {
                background-color: rgb(255, 97, 12);
            }

            .product-price-box .button-box a:active {
                background-color: rgb(255, 130, 63);
            }

.v-counter {
    border-radius: 4px;
    padding: 0px 4px;
    border: 2px solid rgba(250, 84, 28, 1);
    margin-left: 10px;
    display: flex;
}

    .v-counter > button {
        color: rgba(250, 84, 28, 1);
        width: 100%;
    }

        .v-counter > button:hover {
            color: rgb(203, 51, 0);
        }

    .v-counter input[type=button],
    input[type=text] {
        display: inline-block;
        width: 24px;
        background-color: transparent;
        outline: none;
        border: none;
        text-align: center;
        cursor: pointer;
        color: rgb(203, 51, 0);
    }

div.product-price-box > div.button-box > button {
    width: 100%;
}

.detail-title {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 2rem;
}

.product-detail {
    border-radius: 8px;
    border: 1px solid rgba(212, 212, 212, 1);
    padding: 0.5rem;
    line-height: normal;
    text-align: justify;
}

    .product-detail .detail {
        display: flex;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(212, 212, 212, 1);
    }

        .product-detail .detail:last-child {
            border: none;
        }

        .product-detail .detail p {
            font-size: 12px;
        }

            .product-detail .detail p:first-child {
                width: 20vw;
				font-weight:bold;
            }

#toggleBtn{
font-size:12px;
	text-decoration:none;
	margin: 0 auto;
    display: block;
}

.more-text {
    max-height: 20em;
    overflow: hidden;
    line-height: 1.5em;
    position: relative;
    transition: max-height 0.5s ease;
    mask-image: linear-gradient(to bottom, black 60%, transparent); /* فید در پایین */
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent); /* برای Chrome و Safari */
}

    .more-text.expanded {
        max-height: 20000px;
        mask-image: none;
        -webkit-mask-image: none;
    }

#toggleBtn {
    margin-top: 0.5em;
}

body > main > div > div.row.mt-2.mb-5.box > div:nth-child(1) > nav > ol {
    margin: 0;
    padding: 0;
}

li.breadcrumb-item.active {
    white-space: nowrap;
    width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media(min-width:768px) {
    .box {
        padding: 1rem 1rem;
    }

    div.product-price-box > div.button-box > button {
        width: unset;
    }

    .product-detail .detail p:last-child {
        margin-right: 4rem;
    }

    .product-content h1 {
        font-size: 20px;
        font-weight: 400;
        margin-bottom: 1rem;
    }

    .product-price-box .discount-box {
        display: flex;
        justify-content: flex-start;
        gap: 5rem;
    }

    .product-detail {
        padding: 1rem 2rem;
    }

        .product-detail .detail {
            display: flex;
            padding: 1rem 0;
            border-bottom: 1px solid rgba(212, 212, 212, 1);
        }

            .product-detail .detail p {
                font-size: 14px;
            }

    .detail-title {
        font-size: 24px;
        font-weight: 400;
        margin-bottom: 2rem;
    }
}
