.main{
    margin-top: 18px;
}

.general-title{
    display: flex;
    gap: 8px;
    align-items: center;
}
.contact-grid{
    display: flex;
    column-gap: 40px;
    align-items: flex-start;
}
.contacts{
    width: 160px;
}
.product-info-container{
    display: flex;
    flex-direction: column;
}
#productName{
    font-size: 24px;
    line-height: 33px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 18px;
}
#price {
    margin: 10px 0px;
    font-size: 28px;
    color: #DF4641;
    font-weight: 500;
    text-align: left;
}
#rrrId{
    color: #6A91B1;
    font-size: 16px;
    font-weight: 600;
}
#systemCode{
    color: #6A91B1;
    font-size: 16px;
    font-weight: 600;
}
.nds{
    color: #6A91B1;
    font-size: 12px;
}
#cartButton{
    display: flex;
    gap: 8px;
    align-items: center;
    background: #DF4641;
    color: white;
    height: 40px;
    justify-content: center;
    cursor: pointer;
}

#cartButton:hover {
    background-color: #D5433E; /* Темнее оттенок красного при наведении */
}

#cartButton:active {
    background-color: #B33834; /* Темнее оттенок красного при наведении */
}
#ndsNote {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
}

#ndsNoteImg:hover + #ndsNote {
    display: block;
}
.system-container{
    display: grid;
    grid-template-columns: 0.7fr 1fr;
}
.detail-information-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Создаем 2 равных столбца */
    border: 1px solid #6A91B1; /* Добавляем границу */
    gap: 18px; /* Добавляем отступы между элементами сетки (необязательно) */
    padding: 18px;
}
.product-container{
    display: flex;
    gap: 40px;
}

.product-left-block{
    display: flex;
    flex-direction: column;
    width: 560px;
    gap: 40px;
}
.product-right-block{
    width: 560px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.images-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image-container {
    width: 560px;
    height: auto;
}

.small-images-container {
    width: 560px;
    height: 80px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto; /* Добавлено для прокрутки по горизонтали */
}

.small-images-container img {
    width: 110px;
    cursor: pointer;
}

.main-image {
    width: 100%;
    height: auto;
}

/* Анимация загрузки */
@keyframes placeholderShimmer {
    0% {
        background-color: #F5F5F5;
    }
    50% {
        background-color: #D8D8D6;
    }
    100% {
        background-color: #F5F5F5;
    }
}

.loading-placeholder {
    width: 110px;
    animation: placeholderShimmer 1.5s infinite;
    background-color: #D8D8D6;
    color: transparent;
}

.main-image.loading-placeholder {
    width: 560px;
    height: 400px;
}

.small-images-container .loading-placeholder {
    width: 110px;
    height: 80px;
}

.popup-cart-container {
    width: 860px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding-bottom: 40px;
}
.popup-title-container{
    font-size: 20px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    text-transform: uppercase;
    gap: 8px;
}
.popup-data-container{
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.close-cart-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}
.close-cart-container {
    cursor: pointer;
}
.part-popup-container {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 24px;
}
.button-container {
    display: flex;
    justify-content: center;
    gap: 18px;
}
#nextProduct, #goToCart {
    padding: 10px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    width: 193px;
}
#nextProduct {
    background: #6A91B1;
}
#goToCart {
    background: #DF4641;
}
.popup-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(216, 216, 214, 0.8);
    z-index: 1000;
}
/* фото машины-донора в блоке "Описание автомобиля" */
.car-photo {
    grid-column: 1 / -1;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
}
