


.title_product {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 50px;
    min-height: calc(20vh - 89px);
}
.hero-section.product {
    width: 100%;
    /* min-height: calc(100vh - 89px); */
    width: 100%;
    min-height: 250px;
    background-image: url('/public/static/img/project_mumie/product/bg_product.webp');
    /* background-attachment: fixed; */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    padding: 80px 0;
    filter: grayscale(85);
}
.hero-section.product:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(102, 101, 101, 0.5);
}
.product-card {
    max-width: 1100px;
    margin: 150px auto;
}

.product-main {
    display: flex;
    gap: 30px;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnails img {
    width: 80px;
    cursor: pointer;
    border: 1px solid #eee;
}

/* Главное фото */
.main-image img {
    max-width: 400px;
    height: auto;
}


.product-info {
    flex: 1;
}

.title {
    font-size: 24px;
    color: #333;
    font-weight: 400;
    margin-top: 0;
}

.rating {
    color: #ffb400;
    font-size: 14px;
    margin-bottom: 10px;
}

.reviews {
    color: #999;
    margin-left: 10px;
}

.product-price-block {
    font-size: 28px;
    color: #c96;
    font-weight: bold;
    margin-bottom: 20px;
}
.product-price-block.total_cost {
    font-size: 18px;
    color: #adadad;
}
.short-description {
    font-size: 14px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}


.option-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 30px;
}

.label {
    width: 50px;
    font-size: 14px;
}

.swatch {
    width: 35px;
    height: 45px;
    display: inline-block;
    border: 1px solid #ddd;
    cursor: pointer;
}

.swatch.active {
    border: 2px solid #333;
}

select {
    padding: 8px;
    width: 150px;
    border: 1px solid #ddd;
}

.size-guide {
    font-size: 12px;
    color: #999;
    text-decoration: none;
}

.qty-selector {
    display: flex;
    border: 1px solid #ddd;
}

.qty-selector button {
    background: none;
    border: none;
    padding: 5px 12px;
    cursor: pointer;
}

.qty-selector input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}


.actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.add-to-cart {
    background: white;
    border: 1px solid #c96;
    padding: 12px 40px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    color: #c96;
}

.add-to-cart:hover {
    background: #333;
    color: #fff;
}

.secondary-actions a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    margin-right: 15px;
}


.product-tabs {
    margin-top: 50px;
}

.tabs-header {
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.tab {
    padding-bottom: 10px;
    cursor: pointer;
    color: #999;
}

.tab.active {
    color: #c96;
    border-bottom: 2px solid #c96;
}

.tabs-content {
    border: 1px solid #eee;
    padding: 30px;
}

/*modal slider*/
#custom-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    user-select: none;
}

#custom-lightbox img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.lb-prev,
.lb-next {
    position: absolute;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    padding: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-prev {
    left: 10px;
}

.lb-next {
    right: 10px;
}



/* --- Стили для компьютера и общая база --- */
.product-main {
    display: flex;
    gap: 30px;
    /* Отступ между блоками картинок и инфы */
    align-items: flex-start;
}

/* Сетка картинок: миниатюры слева, главное фото справа */
.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
    /* Фиксированная ширина для мелких фото */
    flex-shrink: 0;
}

.thumbnails img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.main-image {
    flex-grow: 1;
    max-width: 500px;
    /* Максимальный размер главного фото */
}

.main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.product-info {
    flex-grow: 1;
}

/* Шапка табов на десктопе */
.tabs-header {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.tab {
    cursor: pointer;
    padding: 5px 10px;
}

.tab.active {
    /* border-bottom: 2px solid #000; */
    /* Подсветка активного таба */
    font-weight: bold;
}

/* Код для десктопа (больших экранов) */
.thumbnails {
    order: 1 !important;
    /* Станет первым в линии (слева) */
}

.main-image {
    order: 2 !important;
    /* Станет вторым в линии (по центру) */
}

.product-info {
    order: 3 !important;
    /* Станет третьим в линии (справа) */
}
/* --- Адаптив под планшеты (до 992px) --- */
@media (max-width: 992px) {
    .product-main {
        gap: 20px;
    }

    .main-image {
        max-width: 400px;
    }
}


/* --- Адаптив под мобильные (до 768px) --- */
@media (max-width: 768px) {
    .product-main {
        flex-direction: column;
        align-items: center;
        /* flex-direction: column-reverse; */
    }
    .prev-lb, .next-lb {
        color: #000;
    }
    .thumbnails {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        order: 2;
        margin-top: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        order: 2;
        margin-top: 10px;
        gap: 10px;
    }
                
}

.thumbnails img {
    width: 65px;
    height: 65px;
}

.main-image {
    width: 100%;
    order: 1;
}

.product-info {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
}
.add-to-cart {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

.tabs-header {
    flex-wrap: wrap;
    gap: 10px;
}

.tab {
    flex-grow: 1;
    text-align: center;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
}

.tab.active {
    background: #000;
    color: #fff;
    border-bottom: none;
}


/*modal photo*/
#custom-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}
#close-lb {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
}
#prev-lb {
    position: absolute;
    left: 10px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}
#next-lb {
    position: absolute;
    right: 10px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}
#lb-img {
    max-width: 95%; max-height: 95%; object-fit: contain; border: 1px solid #ffffff2f;}
