main {
    padding-top: 12rem;
}

.item-info-wrapper {
    display: flex;
    gap: 1rem;
    overflow: hidden;
}

.item-info-wrapper__imgs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 25rem;
}

.item-info-wrapper-title {
    display: none;
    margin-bottom: .5rem;
}

.item-page__img {
    width: 25rem;
    border-radius: .5rem;
}

.item-info-wrapper__img-small {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: .5rem;
}

.item-page__img-small {
    width: 5.8rem;
    border-radius: .5rem;
}


.item-info-wrapper__content {
    display: flex;
    align-items: start;
    justify-content: space-around;
    width: 100%;
    gap: 1rem;
}

.item-info-wrapper__content-right {
    max-width: 25rem;
}

.item-info-wrapper__content-title {
    font-size: 1.5rem;
    margin-bottom: 3rem;
}

.item-info-wrapper__content-about {
    width: 100%;
    margin-bottom: 1.5rem;
}

.item-info-wrapper__content-about__title {
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

.item-info-wrapper__content-about__text {
    line-height: 1.5rem;
    font-size: 1.05rem;
}

.item-info-wrapper__content-left {
    max-width: 27rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;

}

.item-info-wrapper__content-dropdown-container {
    display: flex;
    justify-content: space-evenly;
    gap: 1rem;
    align-items: start;
    margin-top: 2rem;
    margin-left: 1rem;
    width: 100%;
}

.drop-down1 {
    cursor: pointer;
    position: relative;
}

.item-info-wrapper__content-size-title-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ff0000;
    border-radius: .5rem;
    padding: .5rem;
    width: 7rem;
    height: 2rem;
    gap: .5rem;
}

.item-info-wrapper__content-size-title {
    font-size: 1.05rem;
    text-align: center;
    line-height: 2rem;
    color: #fff;
}

.item-info-wrapper__content-size-icon {
    width: 15px;
    height: 15px;
    order: -1;
    transition: all 150ms ease-in 90ms;
    color: #fff;
}

.item-info-wrapper__content-size--hover {
    position: absolute;
    top: 2.5rem;
    left: 0;
    visibility: hidden;
    opacity: 0;
    transition: all 150ms ease 50ms;
}

.item-info-wrapper__content-size-img {
    height: 28rem;
    width: 14rem;
    border-radius: .4rem;
}

.drop-down:hover>.item-info-wrapper__content-size--hover {
    visibility: visible;
    opacity: 1;
    transform: translateY(10deg);
}

.drop-down:hover .item-info-wrapper__content-size-icon {
    transform: rotate(180deg);
}

.item-info-wrapper__price>table,
.item-info-wrapper__price>tr {
    width: 100%;
    /* border: 1px solid #000; */
    /* border-collapse: collapse; */
}

.item-info-wrapper__price,
td {
    text-align: center;
    line-height: 4rem;
}

th {
    background-color: #000000;
    color: #fff;
    line-height: 2rem;
}

td {
    background-color: #000000d2;
    color: #fff;
}

.button-price {
    background-color: #ff0000;
    border: none;
    border-radius: 6px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    line-height: 25px;
    padding: 6px 16px;
    text-align: center;
}

.modal {
    display: none;
    /* مخفی کردن در ابتدا */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* پس‌زمینه نیمه شفاف */
    backdrop-filter: blur(10px);
    /* تار کردن پس‌زمینه */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    /* background-color: white; */
    /* padding: 10px; */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    display: flex;
    position: relative;
}

.modal-content img {
    max-width: 60vw;
    /* عرض تصویر حداکثر 90% عرض صفحه */
    max-height: 85vh;
    /* ارتفاع تصویر حداکثر 90% ارتفاع صفحه */
    border-radius: 5px;
}

.close {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    /* بالاتر از بقیه عناصر */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}


.download-btn {
    position: absolute;
    bottom: -40px;
    /* کمی پایین‌تر از عکس */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.download-btn:hover {
    background-color: rgba(200, 200, 200, 0.9);
    transform: scale(1.1);
}

@media only screen and (max-width : 1200px) {
    main {
        padding-top: 11rem;
    }

    .item-info-wrapper__content {
        flex-wrap: wrap;
    }

    .item-info-wrapper__content-left {
        gap: 2rem;
        justify-self: flex-start;
        margin-right: 2rem;
        width: 100%;
    }

    .item-info-wrapper__content-left {
        gap: 2rem;
        justify-self: flex-start;
        margin-right: 1.5rem;
        width: 100%;
        height: 30rem;
        overflow: visible;
    }

    .item-info-wrapper__content-right {
        max-width: 28rem;
    }

    .item-info-wrapper__content-size--hover {
        left: 0rem;
    }

    .item-info-wrapper__content-dropdown-container {
        margin-top: 1rem;
    }
}



@media only screen and (max-width : 992px) {
    main {
        padding-top: 10rem;
    }

    .item-info-wrapper__imgs {
        width: 50%;
    }

    .item-info-wrapper__content {
        width: 50%;
    }

    .item-page__img {
        width: 100%;
    }

    /* .item-info-wrapper__content-about__title{
        font-size: 1rem;
    }
    .item-info-wrapper__content-about__text {
        font-size: .98rem;
    } */
    .item-info-wrapper__content-about__title {
        margin-bottom: .6rem;
    }

    .item-page__img-small {
        width: 4.8rem;
    }

    .item-info-wrapper__content-size--hover {
        left: -50%;
    }

    .item-info-wrapper__content-about {
        margin-bottom: 1.5rem;
    }

    .item-price {
        width: 100%;
        margin: 0 auto;
        margin-top: 1.5rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .item-info-wrapper__content-dropdown-container {
        width: 100%;
        margin-left: 0rem;
    }

    .item-info-wrapper__price {
        width: 24rem;
        /* border: 1px solid #000; */
        /* border-collapse: collapse; */
    }

    td {
        font-size: .9rem;
        line-height: 3rem;
    }

    tr {
        font-size: .95rem;
    }
}

@media only screen and (max-width : 768px) {
    main {
        padding-top: 9rem;
    }

    .item-info-wrapper {
        flex-wrap: wrap;
    }

    .item-info-wrapper__imgs {
        width: 100%;
        gap: .5rem;
    }

    .item-page__img,
    .item-info-wrapper__img-small {
        width: 22rem;
    }

    .item-info-wrapper__img-small {
        gap: 0.3rem;
    }

    .item-page__img-small {
        width: 5rem;
    }

    .item-info-wrapper-title {
        display: block;
        font-size: 1.3rem;
    }

    .item-info-wrapper__content-title {
        display: none;
    }

    .item-info-wrapper__content {
        width: 70%;
        margin-top: 1.5rem;
    }

    .item-info-wrapper__content-about__title {
        margin-bottom: 0.3rem;
    }

    .item-info-wrapper__content-dropdown-container {
        position: relative;
    }

    .drop-down1 {
        position: relative;
    }

    .item-info-wrapper__content-size--hover {
        left: -80%;
    }

    .item-info-wrapper__content-about__text {
        line-height: 1.4rem;
        font-size: .95rem;
    }

    .item-info-wrapper__content-about {
        margin-bottom: 1.5rem;
    }

    .item-info-wrapper__content-dropdown-container {
        margin-left: 0;
    }

    .item-price {
        margin-top: 0;
    }

    th {
        font-size: .95rem;
    }

    td {
        font-size: .9rem;
    }
}

@media only screen and (max-width: 768px) {
    /* .item-info-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    } */

    .item-price {
        flex-direction: column-reverse;
        width: 100%;
    }

    .item-info-wrapper__imgs,
    .item-info-wrapper__content {
        width: 100%;
    }

    /* .item-info-wrapper__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    } */

    .item-info-wrapper__content-right,
    .item-info-wrapper__content-left {
        max-width: 100%;
        width: 100%;
    }

    .item-info-wrapper__content-left {
        height: 34rem;
    }

    /* .item-page__img {
        width: 100%;
        max-width: 20rem;
    } */

    /* .item-info-wrapper__img-small {
        justify-content: center;
    } */

    .item-info-wrapper__content-dropdown-container {
        flex-direction: column;
        align-items: start;
        width: 100%;
        gap: 1rem;
    }

    .item-info-wrapper__content-size--hover {
        position: absolute;
        top: 1.5rem;
        left: 0;
        right: 8rem;
        visibility: hidden;
        opacity: 0;
        transition: all 150ms ease 50ms;
    }
    .button-price {
        margin-top: 3rem;
    }
}


@media only screen and (max-width : 576px) {
    main {
        padding-top: 6.5rem;
    }
}

@media only screen and (max-width : 481px) {
    main {
        padding-top: 5.5rem;
    }

    /* .item-info-wrapper{
         justify-content: center;
    } */
    /* .item-info-wrapper__imgs
    ,.item-info-wrapper__img-small{
        align-items: center;
        justify-content: center;
    } */
    .item-page__img,
    .item-info-wrapper__img-small {
        width: 100%;
    }

    .item-info-wrapper__img-small {
        gap: .5rem;
    }

    .item-page__img-small {
        width: 5rem;
    }

    .item-info-wrapper__content {
        width: 85%;
        margin-top: 1.5rem;
    }

    .item-price {
        flex-direction: column-reverse;
        width: 100%;
    }

    .item-info-wrapper__price {
        width: 85%;
    }

    th {
        font-size: .9rem;
    }

    td {
        line-height: 2.5rem;
        font-size: .8rem;
    }

    .item-info-wrapper__content-size-title {
        font-size: .75rem;
    }

    .item-info-wrapper__content-size-title-wrapper {
        width: 6rem;
        height: 2rem;
    }

    .item-info-wrapper__content-size-icon {
        width: 13px;
        height: 13px;
    }

    .item-info-wrapper__content-dropdown-container {
        width: 100%;
        flex-direction: column;
    }

    .item-info-wrapper__content-size--hover {
        left: 0;
        right: 8rem;
        top: 0;
    }

    .item-info-wrapper__content-size-img {
        height: 20rem;
        width: 11rem;
    }

}

@media only screen and (max-width : 392px) {
    .item-info-wrapper__img-small {
        gap: .3rem;
    }

    .item-page__img-small {
        width: 4.8rem;
    }
}

@media only screen and (max-width : 371px) {
    .item-info-wrapper__img-small {
        gap: .3rem;
    }

    .item-page__img-small {
        width: 4.5rem;
    }

    .item-info-wrapper__content-about__title {
        font-size: .95rem;
    }

    .item-info-wrapper__content-about__text {
        font-size: .9rem;
    }

    .item-info-wrapper__price {
        width: 100%;
    }

    th {
        font-size: .8rem;
    }

    td {
        font-size: .75rem;
        line-height: 2rem;
    }

    .item-info-wrapper__content-size--hover {
        left: 0;
        right: 6rem;
        top: 0;
    }

    .item-info-wrapper__content-size-title-wrapper {
        width: 5.2rem;
        height: 1.8rem;
    }

    .item-info-wrapper__content-size-title {
        font-size: .65rem;
    }

    .item-info-wrapper__content-size--hover {
        right: 5.5rem;
        top: 0;
    }
}

@media only screen and (max-width : 355px) {
    .item-info-wrapper-title {
        font-size: 1.05rem;
    }
}