/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* ===== SINGLE LOT TEMPLATE ===== */

/* Секция 1: Хедер */
.lot-header-section {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.lot-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.lot-header-content h4, .lot-header-content p {
    margin-bottom: 10px;

}

.lot-navigation {
    text-align: right;
}

.lot-nav-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.lot-nav-prev,
.lot-nav-next {
    display: inline-block;
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.lot-nav-prev.disabled,
.lot-nav-next.disabled {
    color: #ccc;
}

.current-lot-number {
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

.auction-date {
    padding-top: 10px;
}

/* Секция 2: Основной контент */
.lot-main-section {
    padding: 60px 0;
}

.lot-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

/* Колонка с изображением */
.lot-image-column {
    position: sticky;
    top: 30px;
}

.lot-featured-image {
    margin-bottom: 20px;
    overflow: hidden;
}

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

.lot-sku {
    text-align: center;
    padding: 8px;
    font-size: 0.8em;
}

/* Колонка с деталями */
.lot-details-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-row {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-value {
    margin: 0;
    line-height: 1.4;
}

.lot-title-year {
    font-size: 1.1em;
}

/* Кнопка "Участвовать" */
.action-row {
    margin-top: 20px;
}

.participate-button {
    display: block;
    background: #000;
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.button-note {
    margin: 10px 0 0 0;
    color: #95a5a6;
    font-style: italic;
}

/* Секция 3: Описание */
.lot-description-section {
    padding: 60px 0;
}

.lot-description-text {
    line-height: 1.6;
}

/* Секция 4: Художник */
.artist-preview-section {
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.artist-preview-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.artist-preview-link:hover {
    opacity: 0.9;
}

.artist-preview-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.artist-avatar {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    border-radius: 50%; 
    overflow: hidden;
    border: 3px solid #eee;
}

.artist-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.artist-info {
    flex: 1;
    min-width: 300px;
}

.artist-name {
    margin: 0 0 15px 0;
}

.artist-bio-excerpt {
    line-height: 1.6;
}

/* ===== АДАПТИВ ===== */

/* Планшеты (меньше 992px) */
@media (max-width: 992px) {
    .lot-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Мобильные (меньше 768px) */
@media (max-width: 768px) {
    .lot-header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .lot-navigation {
        text-align: center;
        width: 100%;
    }
    
    .lot-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .lot-image-column {
        order: 1;
        position: static;
    }
    
    .lot-details-column {
        order: 2;
    }
    
    .artist-preview-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .artist-info {
        min-width: auto;
    }
}

/* Маленькие мобильные (меньше 480px) */
@media (max-width: 480px) {
    .lot-header-section,
    .lot-main-section,
    .lot-description-section,
    .artist-preview-section {
        padding: 40px 0;
    }
}
/* Обновленная навигация лотов */
.lot-nav-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.lot-nav-item {
    display: flex;
    align-items: center;
}

.lot-nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 8px;
}

.lot-nav-link:hover {
    opacity: 0.8;
}

.lot-nav-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #eee;
    transition: border-color 0.2s ease;
}

.lot-nav-link:hover .lot-nav-image {
    border-color: #000;
}

.nav-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lot-nav-arrow {
    font-weight: bold;
    font-size: 1.2em;
}

.lot-nav-item.disabled {
    opacity: 0.3;
}

.lot-nav-item.disabled .lot-nav-arrow {
    color: #ccc;
}

.lot-nav-placeholder {
    width: 40px;
    height: 40px;
    display: block;
}

/* Ссылка на аукцион */
.auction-title-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.auction-title-link:hover {
    opacity: 0.8;
}

.auction-title-link h4 {
    margin: 0;
}

/* Адаптив для навигации */
@media (max-width: 768px) {
    .lot-nav-image {
        width: 30px;
        height: 30px;
    }
    
    .lot-nav-placeholder {
        width: 30px;
        height: 30px;
    }
    
    .lot-nav-arrow {
        font-size: 1em;
    }
}