﻿.PriceAdjustment {
    white-space: nowrap;
}

.PriceAdjustment strike {
    font-size: 0.8em !important;
}

.mbd-ads-list .Soldout {
    position: relative;
}

.mbd-ads-list .Soldout:before {
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    backdrop-filter: blur(1.5px);
    border-radius: var(--radius-8);
    z-index: 1;
    pointer-events: none;
}

.mbd-ads-list .Soldout:after {
    content: "فروخته شد";
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%) rotate(-15deg);
    z-index: 2;
    padding: 0.5rem;
    font-size: 1.6rem;
    background: rgba(249, 249, 249, 0.8);
    width: 50%;
    text-align: center;
    border-radius: var(--radius-8);
    color: #000;
    font-weight: bold;
    pointer-events: none;
}

.description-container {
    position: relative;
    margin-top: 3rem;
}

.description {
    overflow: hidden;
    max-height: 138px;
    transition: all 0.4s ease;

    h1,
    h2,
    h3 {
        font-size: 1.24rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }
}

.description img {
    margin: 1rem auto;
    max-width: 100%;
    border-radius: var(--radius-5);
    -webkit-border-radius: var(--radius-5);
    -moz-border-radius: var(--radius-5);
    -ms-border-radius: var(--radius-5);
    -o-border-radius: var(--radius-5);
}

.description.expanded {
    max-height: none;
}

#toggleBtn {
    background: var(--accent-color);
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 0.92rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.57rem;
    padding: 0.3rem 0.87rem;
    margin-top: 2rem;

    svg {
        max-width: 0.87rem;
        stroke: #000;
        transition: all 0.3s ease;
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
        -o-transition: all 0.3s ease;
    }

    &.less {
        svg {
            transform: rotate(180deg);
            -webkit-transform: rotate(180deg);
            -moz-transform: rotate(180deg);
            -ms-transform: rotate(180deg);
            -o-transform: rotate(180deg);
        }
    }
}