/* === Карточка лампы === */
.lamp-cards-list {
    max-width: 100%;
    width: 100%;
}

.lamp-card {
    display: flex;
    flex-direction: column; /* заголовок сверху, колонки снизу */
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.lamp-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #353535;
    word-break: break-word;
}

.lamp-card-columns {
    display: flex;
    gap: 20px;
}

/* Левая колонка: галерея */
.lamp-card-left {
    flex: 0 0 300px;      /* фиксированная ширина колонки */
    display: flex;
    align-items: center;   /* вертикальное центрирование картинки */
    justify-content: center; /* горизонтальное центрирование */
}

.lamp-card-left .lamp-gallery {
    width: 100%;          /* занимает всю ширину колонки */
    max-width: 300px;     /* не больше, чем ширина колонки */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lamp-card-left .swiper-wrapper {
    display: flex;
    align-items: center;
}

.lamp-card-left .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Центр: атрибуты */
.lamp-card-center {
    flex: 1 1 auto;
}

.lamp-card-center .lamp-attributes {
    display: flex;
    flex-direction: column;
}

.lamp-attributes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    max-height: 250px; /* высота видимых атрибутов */
    transition: max-height 0.4s linear;
}

.lamp-attributes-list.expanded {
    max-height: 600px; /* достаточно для полного раскрытия */
}

.lamp-attributes-list li {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 5px;
}

.lamp-attr {
    display: flex;
    align-items: center;
    font-size: 14px;
    padding: 4px 0;
    border-bottom: none !important;
}

.lamp-attr .attr-name {
    color: #555;
    font-weight: 500;
    white-space: nowrap;
}

/* линия из точек между именем и значением */
.lamp-attr .dots {
    flex: 1;
    border-bottom: 1px dotted #bdbdbd;
    margin: 0 8px;
    height: 1px;
}

/* значение — справа */
.lamp-attr .attr-value {
    color: #111;
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}

/* Toggle кнопка "Показать все характеристики" */
.show-more-attrs {
    background: none !important;
    border: none;
    color: #ff6600;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
    align-self: flex-start;
    transition: color 0.3s;
}

.show-more-attrs:hover {
    color: #ff6600;
    text-decoration: underline;
}

.show-more-attrs .button-text {
    color: #ff6600;
    text-decoration: inherit;
    font-size: inherit;
    transition: inherit;
}

/* Правая колонка: кнопка "Где купить" */
.lamp-card-right {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-button {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 2; /* кнопка */
    text-align: center;
    background-color: #e0e0e0;
    color: #353535;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none !important;
    border-radius: 8px;
    transition: background 0.3s;
    padding: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-button:hover {
    background-color: #f0f0f0;
    color: #353535;
}

@media (max-width: 1024px) {
    .lamp-card-columns {
        flex-direction: column;
    }
    .lamp-card-left,
    .lamp-card-center,
    .lamp-card-right {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .lamp-card-left .lamp-gallery {
        height: auto;
        margin-bottom: 15px;
    }
    .buy-button {
        aspect-ratio: auto;
        padding: 20px;
    }
}
