main {
    padding-top: 80px;
    margin: 0 auto;
}

#start_main {
    scroll-margin-top: 80px; /* высота шапки */
}

/*Блок вступления*/
.intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;               
    padding: 30px 10px;       
    box-sizing: border-box;
}

.intro-image {
    width: 45%;            
    height: auto;
    border-radius: 12px;    
    object-fit: cover;
}

.intro-text {
    width: 55%;
}

.intro-text h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.intro-text p {
    /*margin-bottom: 0px;
    text-align: none;*/
    font-size: 24px;
    line-height: 1.6;
}

.content-centr img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.new {
    position: relative;
    width: 100%;
    margin: 40px 0;
}

.new-link {
    display: block;
    position: relative;
}

.new-image {
    width: 100%;
    height: auto;
}

.new-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    color: white;
    font-size: 48px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0,0,0,0.8);
    
    pointer-events: none;
}

.collections {
    margin: 60px 0;
}



.slider {
    overflow: hidden; 
    position: relative; 
}

.slides {
    display: flex; 
     transition: transform 0.5s ease-in-out; 
}

.slide {
    width: 100%;
    flex-shrink: 0;
    position: relative;
    }

.slide img {
    width: 100%; 
    display: block; 
}

.prev, .next {
    position: absolute;
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(0, 0, 0, 0.5); 
    color: white; 
    border: none; 
    padding: 10px; 
    cursor: pointer; 
    font-size: 18px; 
    font-weight: bold; 
    z-index: 2; 
}


.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    color: white;
    font-size: 60px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0,0,0,0.8);
    
    pointer-events: none;
}

        
.stocks {
    margin: 60px 0;
}

.stock-image {
    width: 100%;
    display: block;
}


/*Слайдер образов*/

.imagesFromStylists {
    margin-bottom: 40px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.carousel-window {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    align-items: center;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-item {
    flex: 0 0 400px;
    margin: 0 20px;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.carousel-item.center {
    transform: scale(1); opacity: 1;
    pointer-events: auto;
    z-index: 2;
} 

.carousel-item.side {
    transform: scale(0.7);
    opacity: 0.7;
    pointer-events: auto;
    z-index: 1;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #000;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.arrow.left {
    left: -60px;
}

.arrow.right {
    right: -60px;
}

.arrow.hidden {
    display: none;
}

/* Стили для пустых слотов и админских кнопок */
.empty-look-slot {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: #f5f5f5;
    border: 2px dashed #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.empty-look-slot:hover {
    background-color: #e9ecef;
    border-color: #999;
}

.empty-look-slot i {
    font-size: 40px;
    color: #666;
    margin-bottom: 10px;
}

.user-placeholder {
    cursor: default;
    border: none;
    background-color: #fafafa;
}

.admin-look-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}

.admin-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.admin-btn:hover {
    transform: scale(1.1);
}

.edit-btn { color: #007bff; }
.delete-btn { color: #dc3545; }

/* Блок фильтров */
#admin-product-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.admin-filter-input {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.admin-filter-select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
}

/* Карточки выбора товаров */
.admin-product-select-card {
    display: flex;
    align-items: center;
    padding: 8px;
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

    .admin-product-select-card:hover {
        background-color: #f9f9f9;
    }

/* Скрываем стандартный чекбокс, но оставляем его функциональным */
.look-product-checkbox {
    width: 18px;
    height: 18px;
    margin-left: 10px;
    cursor: pointer;
}

.admin-product-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    margin-left: 15px;
}

.admin-product-mini-img {
    width: 50px;
    height: 65px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    border: 1px solid #ddd;
}

.admin-product-details {
    display: flex;
    flex-direction: column;
}

.admin-product-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.admin-product-art {
    font-size: 12px;
    color: #888;
}

/* Выделяем карточку, если чекбокс нажат (по желанию, работает через CSS-хак) */
.admin-product-select-card:has(input:checked) {
    border-color: #000; /* Замени на цвет своего бренда */
    background-color: #f0f0f0;
}


/* Сладйер статей */

.slider-article {
    width: 100%;
    padding: 40px 80px 20px 80px;
    box-sizing: border-box;
    position: relative;
}

.slider-article-viewport {
    overflow: hidden;
    width: 100%;
}

.slider-article-track {
    display: flex;
    gap: 20px; 
    transition: transform 0.4s ease;
}

.slide-article {
    flex: 0 0 calc((100% - (20px * 2)) / 3); /* ровно 3 карточки */
    background: #444;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.slide-article-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
}

.slide-article-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.slide-article-text {
    padding: 12px;
    font-size: 14px;
    text-align: center;
    background: #727272;
    color: #fff;
}

/* ====== СТРЕЛКИ ====== */
.controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.controls button {
    pointer-events: all;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease;
}

.controls button.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* --- Стили модального окна образа (lm-) --- */

.lm-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.lm-overlay.active {
    display: flex;
}

.lm-container {
    background: #fff;
    width: 100%;
    max-width: 1000px;
    height: 80vh;
    max-height: 800px;
    border-radius: 12px;
    display: flex;
    position: relative;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.lm-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    color: #000;
}

.lm-close-btn:hover {
    opacity: 0.6;
}

/* Левая часть (Фото) */
.lm-left {
    flex: 1;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lm-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Правая часть (Товары) */
.lm-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px 20px 20px;
    max-width: 500px;
    background: #fff;
}

.lm-title {
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: bold;
}

/* Список товаров (скроллируется) */
.lm-products-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
}

/* Стилизация скроллбара для красоты */
.lm-products-list::-webkit-scrollbar { width: 6px; }
.lm-products-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* Карточка товара */
.lm-product-card {
    display: flex;
    justify-content: space-between;
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.lm-product-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lm-product-link-area {
    display: flex;
    flex: 1;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.lm-product-img {
    width: 80px;
    height: 100px;
    flex-shrink: 0;
    background: #f9f9f9;
}

.lm-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lm-product-info {
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lm-product-name { margin: 0 0 5px 0; font-weight: bold; font-size: 14px; }
.lm-product-art { margin: 0 0 10px 0; color: #888; font-size: 12px; }
.lm-product-price { margin: 0; font-weight: bold; font-size: 16px; }

/* Блок с кнопками справа */
.lm-product-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.lm-fav-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s;
}

.lm-fav-btn:hover, .lm-fav-btn.active {
    color: #e74c3c; /* Красный при наведении/выделении */
}

.lm-add-to-cart-btn {
    background: #fff;
    border: 1px solid #000;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.lm-add-to-cart-btn:hover {
    background: #000;
    color: #fff;
}

/* Кнопка "Добавить образ" */
.lm-footer {
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.lm-add-look-btn {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.lm-add-look-btn:hover {
    opacity: 0.8;
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .lm-container {
        flex-direction: column;
        height: 90vh;
    }
    .lm-left {
        flex: none;
        height: 40%; /* Фото образа занимает 40% высоты экрана */
    }
    .lm-right {
        max-width: 100%;
        padding: 20px 15px;
    }
    .lm-product-img { width: 60px; height: 80px; }
}