/* === Single Product Page Styles === */
.view-list .products-grid .product-card {
    margin-bottom: 20px;
}

.product-single-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #d1d5db;
    overflow: hidden;
    margin-bottom: 40px;
}

.product-breadcrumbs {
    margin-bottom: 20px;
    padding: 20px 30px;
    border-bottom: 1px solid #d1d5db;
    background: #f8f9fa;
}

.product-single-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px;
}

/* Левая колонка с изображением */
.product-image-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-main-image {
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #d1d5db;
}

.product-featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.product-gallery {
    margin-top: 15px;
}

.product-gallery h4 {
    margin: 0 0 15px 0;
    color: #6b7280;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Georgia', serif;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #8b4513;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Правая колонка с информацией */
.product-info-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    font-family: 'Georgia', serif;
}

/* Список деталей товара */
.product-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.product-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #d1d5db;
}

.product-detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #6b7280;
    min-width: 140px;
    font-size: 14px;
}

.detail-value {
    color: #2c3e50;
    font-weight: 500;
    text-align: right;
    font-size: 14px;
}

/* Специфичные стили для разных полей */
.detail-sku {
    color: #9ca3af;
    font-style: italic;
}

.product-price-item {
    background: linear-gradient(135deg, #fdf6f0, #faebd7);
    margin: 10px -25px -25px -25px !important;
    padding: 20px 25px !important;
    border-bottom: none !important;
    border-radius: 0 0 8px 8px;
}

.product-price-single {
    font-size: 1.4em !important;
    font-weight: 700;
    color: #8b4513;
}

/* Состояния марки */
.state-excellent { color: #27ae60; font-weight: 600; }
.state-very_good { color: #27ae60; font-weight: 600; }
.state-good { color: #8b4513; font-weight: 600; }
.state-satisfactory { color: #e67e22; font-weight: 600; }

/* Кнопки */
.product-actions-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.add-to-cart-single .single-add-to-cart {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    background: #8b4513;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;
    font-family: 'Georgia', serif;
}

.add-to-cart-single .single-add-to-cart:hover {
    background: #6b3410;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.product-actions-single .single-quick-order {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    background: #c0392b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;
    font-family: 'Georgia', serif;
}

.product-actions-single .single-quick-order:hover {
    background: #a33225;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

/* Описание */
.product-short-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.product-short-description h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
    font-family: 'Georgia', serif;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .product-single-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-actions-single {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-single-content {
        padding: 20px;
    }
    
    .product-title {
        font-size: 1.4em;
    }
    
    .product-details-list {
        padding: 20px;
    }
    
    .product-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .product-price-item {
        margin: 10px -20px -20px -20px !important;
        padding: 15px 20px !important;
    }
}
/* DEV-B7: полное описание вверху правой колонки + краткое под изображениями */
.product-full-description {
    margin: 4px 0 18px;
    font-size: 15px;
    line-height: 1.6;
    color: #344054;
}
.product-full-description p { margin: 0 0 10px; }
.product-full-description p:last-child { margin-bottom: 0; }

.product-short-description.under-image {
    margin-top: 16px;
    padding: 14px 16px;
    background: #f8f9fb;
    border: 1px solid #eceef2;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.55;
    color: #475467;
}
.product-short-description.under-image h3 { display: none; }

/* Разделитель перед блоком «ID товара / Префикс товара 1» */
.product-details-list .product-detail-sep {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e2e5ea;
}

/* Кликабельные значения в карточке товара: ведут в поиск по этому же
   значению. Подчёркивание пунктиром — чтобы было видно, что это ссылка,
   но строка не превращалась в «простыню» из синих ссылок. */
.detail-value .detail-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed #b45309;
    transition: color .15s, border-color .15s;
}

.detail-value .detail-link:hover,
.detail-value .detail-link:focus {
    color: #b45309;
    border-bottom-color: #b45309;
}
