.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;
}
/* Кнопки покупки в одну строку: Купить в 1 клик (primary) + В корзину (secondary) */
.product-buy-row{
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-top: 4px;
}
.product-buy-row > div{ flex: 1; }

/* Вторичная кнопка "В корзину": белый фон, красная рамка/текст */
#cartButton{
    display: flex;
    gap: 8px;
    align-items: center;
    background: #fff;
    color: #DF4641;
    border: 1px solid #DF4641;
    height: 40px;
    justify-content: center;
    cursor: pointer;
}

#cartButton:hover {
    background-color: #FFF3F2;
}

#cartButton:active {
    background-color: #FCE7E6;
}
/* Иконка корзины перекрашена в красный из белого svg через маску (под secondary-стиль) */
.cart-ico{
    width: 20px;
    height: 20px;
    display: inline-block;
    background: #DF4641;
    -webkit-mask: url(/svg/ShoppingCartWhite.svg) center / contain no-repeat;
    mask: url(/svg/ShoppingCartWhite.svg) center / contain no-repeat;
}
#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;
}
/* Серверный список «остатки с этой машины»: живет до подгрузки карусели,
   после нее скрипт удаляет блок. Пока он виден, выглядит как обычные ссылки. */
.seo-same-car-links{
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 12px;
}
.seo-same-car-links a{
    font-size: 14px;
    text-decoration: underline;
}

.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;
}

/* ===== Купить сейчас (основная кнопка, primary) ===== */
#quickBuyButton {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 1px solid #DF4641;
    color: #fff;
    background: #DF4641;
    font-weight: 600;
    cursor: pointer;
}
#quickBuyButton:hover { background: #D5433E; }
#quickBuyButton:active { background: #B33834; }

.qb-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
}
.qb-popup {
    position: fixed; z-index: 1001; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 92%; max-width: 460px; max-height: 90vh; overflow-y: auto;
    background: #fff; border-radius: 10px; padding: 24px; box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.qb-close {
    position: absolute; top: 8px; right: 12px; border: none; background: none;
    font-size: 28px; line-height: 1; cursor: pointer; color: #888;
}
.qb-title { font-size: 20px; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.qb-label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
.qb-input, .qb-select {
    width: 100%; box-sizing: border-box; height: 40px; padding: 0 12px;
    border: 1px solid #ccc; border-radius: 6px; font-size: 15px;
}
.qb-note { font-size: 12px; color: #777; margin-top: 4px; }
.qb-options { margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.qb-radio { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qb-radio .qb-select { width: auto; flex: 1; min-width: 140px; }
/* Доставка: подпись "Доставка в" над дропдауном страны */
.qb-radio--col { flex-direction: column; align-items: stretch; gap: 6px; }
.qb-opt-head { display: flex; align-items: center; gap: 8px; }
.qb-radio--col .qb-select { width: 100%; flex: none; }
.qb-summary { border-top: 1px solid #eee; margin-top: 12px; padding-top: 12px; }
.qb-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 15px; }
.qb-total { font-weight: 700; text-transform: uppercase; font-size: 17px; margin-top: 6px; }
.qb-button {
    width: 100%; height: 46px; margin-top: 16px; border: none; border-radius: 6px;
    background: #DF4641; color: #fff; font-weight: 700; text-transform: uppercase;
    font-size: 16px; cursor: pointer;
}
.qb-button:hover { background: #D5433E; }
.qb-button:disabled { opacity: 0.6; cursor: default; }
.qb-button--light { background: #fff; color: #DF4641; border: 1px solid #DF4641; }
.qb-error { color: #DF4641; font-size: 14px; margin-top: 10px; }
.qb-done { color: #2E9E4F; font-weight: 600; margin-top: 12px; }
.qb-stripe { margin-top: 16px; }
.qb-locked {
    background: #F5F5F5; border-radius: 6px; padding: 8px 12px; margin: 10px 0; font-weight: 600;
}
.qb-order-no { font-size: 22px; font-weight: 700; margin: 8px 0 16px; }
.qb-map { margin: 12px 0; }
.qb-map iframe { width: 100%; height: 220px; border: 0; border-radius: 6px; }
.qb-contacts { font-size: 14px; line-height: 1.5; margin-bottom: 8px; }

@media (max-width: 720px) {
    .qb-popup { width: 96%; padding: 18px; border-radius: 10px 10px 0 0; top: auto; bottom: 0; left: 0;
        transform: none; max-width: none; max-height: 92vh; }
}

/* ===== Подсказки адреса + геопозиция в попапе (пост-оплата) ===== */
.qb-geo-btn{ display:inline-flex; align-items:center; gap:6px; margin:8px 0 2px; padding:7px 10px;
    border:1px solid #ccc; border-radius:6px; background:#fff; font-size:13px; cursor:pointer; }
.qb-geo-btn img{ width:16px; height:16px; }
.qb-geo-btn:hover{ background:#f7f7f7; }
.qb-geo-btn:disabled{ opacity:.6; cursor:default; }
.qb-geo-status{ display:block; font-size:12px; margin:2px 0 4px; color:#5A6B7A; }
.qb-suggest-wrap{ position:relative; }
.qb-suggest{ list-style:none; margin:2px 0 0; padding:0; position:absolute; z-index:5; left:0; right:0;
    background:#fff; border:1px solid #ccc; border-radius:6px; max-height:220px; overflow:auto;
    box-shadow:0 6px 20px rgba(0,0,0,.12); display:none; }
.qb-suggest-item{ padding:8px 10px; font-size:13px; cursor:pointer; }
.qb-suggest-item--active, .qb-suggest-item:hover{ background:#fdecec; }
.qb-suggest-spinner{ position:absolute; right:10px; top:11px; width:14px; height:14px;
    border:2px solid #ddd; border-top-color:#DF4641; border-radius:50%; animation:qbspin .8s linear infinite; }
@keyframes qbspin{ to{ transform:rotate(360deg); } }

/* Бейдж успешной оплаты над формой адреса */
.qb-paid-badge{ display:flex; align-items:center; gap:8px; background:#eaf7ec; color:#2e7d32;
    border:1px solid #bfe3c4; border-radius:8px; padding:10px 12px; font-weight:600; margin-bottom:12px; }
.qb-paid-badge .qb-check{ display:inline-flex; align-items:center; justify-content:center;
    width:22px; height:22px; border-radius:50%; background:#2e7d32; color:#fff; font-size:14px; flex:none; }
