/**
 * Стили для страницы детальной информации о товаре
 * product_detail.html
 * 
 * Версия: 2.0 (оптимизированная)
 * Дата: 24.11.2025
 */

/* ================================================
   БЛОК ЦЕН И ДЕЙСТВИЙ
   ================================================ */

/* Контейнер с ценами и кнопками действий */
.product-card-price-and-actions {
    display: flex;
    align-items: center;
    margin: 20px 0;
    flex-wrap: nowrap;
    width: 100%;
    gap: 20px;
}

/* Контейнер с ценами */
.product-card-price-container {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Блок общей цены (скрыт по умолчанию, показывается JS) */
.product-card-total-price {
    display: none;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

/* Блок с маркетплейсами */
.marketplace-badges {
    flex: 0 0 auto;
    margin: 0 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Карточка действий (наличие, корзина, КП) */
.product-card-actions {
    flex: 0 0 250px;
    width: 250px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ================================================
   БЛОК НАЛИЧИЯ
   ================================================ */

/* Индикатор отсутствия товара */
.product-card-stock--out {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 12px;
}

/* Индикатор наличия товара */
.product-card-stock-available {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 12px;
    gap: 4px;
}

/* Строка с наличием и иконкой */
.product-card-stock-line {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Информация о доставке */
.product-card-delivery-info {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #6c757d;
    margin-top: 2px;
}

/* ================================================
   КНОПКИ ДЕЙСТВИЙ
   ================================================ */

/* Кнопка "В корзину" */
.btn-add-to-cart {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto 8px auto;
    gap: 8px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
}

.btn-add-to-cart:hover {
    background-color: #0056b3;
}

/* Кнопка "Запросить КП" - основная (когда нет наличия/цены) */
.btn-request-quote-primary {
    width: 100%;
    margin-bottom: 8px;
}

/* Кнопка "Запросить КП" - вторичная (когда есть наличие) */
.btn-request-quote-secondary {
    width: 100%;
    margin-bottom: 8px;
}

/* Иконка в кнопке КП */
.btn-request-quote-icon {
    margin-right: 6px;
}

/* Текст кнопки КП с переносом */
.btn-request-quote-text {
    white-space: normal;
    display: inline-block;
}

/* ================================================
   АДАПТИВНОСТЬ
   ================================================ */

@media (max-width: 992px) {
    .product-card-price-and-actions {
        flex-wrap: wrap;
    }
    
    .marketplace-badges {
        flex: 1 1 100%;
        margin: 10px 0;
        justify-content: center;
    }
    
    .product-card-actions {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .product-card-price-container {
        flex: 1 1 100%;
    }
    
    .product-card-actions {
        padding: 12px;
    }
    
    .btn-add-to-cart {
        font-size: 13px;
        padding: 6px 12px;
    }
}

