/* product.css - Улучшенные стили для страницы товара */
li {
    list-style-type: none; /* Убирает маркеры полностью */
}
/* Основные стили контейнера */
.product-page.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    line-height: 1.6;
}

/* Хлебные крошки */
.breadcrumbs {
    margin-bottom: 0;
    font-size: 14px;
    color: #7f8c8d;
    padding: 10px 0;
}

.breadcrumbs a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumbs .current {
    color: #34495e;
    font-weight: 600;
}

/* Основной блок товара */
.product-main {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    position: relative;
}

/* Галерея изображений */
.product-gallery-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    position: relative;
}

/* Главный слайдер */
.mySwiperMain {
    width: 100%;
    height: 450px;
    margin-bottom: 15px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.mySwiperMain:hover {
    transform: translateY(-3px);
}

.mySwiperMain .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #f9f9f9, #f0f0f0);
    position: relative;
}

.mySwiperMain img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.mySwiperMain .swiper-slide:hover img {
    transform: scale(1.02);
}

/* Навигация для главного слайдера */
.mySwiperMain .swiper-button-next,
.mySwiperMain .swiper-button-prev {
    color: #fff;
    background: rgba(52, 152, 219, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mySwiperMain .swiper-button-next:after,
.mySwiperMain .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.mySwiperMain .swiper-button-next:hover,
.mySwiperMain .swiper-button-prev:hover {
    background: rgba(41, 128, 185, 0.9);
    transform: scale(1.1);
}

/* Миниатюры */
.mySwiperThumbs {
    width: 100%;
    height: 110px;
    padding: 5px;
}

.mySwiperThumbs .swiper-slide {
    opacity: 0.5;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    filter: grayscale(20%);
}

.mySwiperThumbs .swiper-slide:hover {
    opacity: 0.8;
    /*transform: translateY(-3px);*/
}

.mySwiperThumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #3498db;
    filter: grayscale(0);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.mySwiperThumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Заглушка для отсутствующих изображений */
.main-image-container {
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    background: #f9f9f9;
    color: #95a5a6;
}

.main-image-container img {
    max-width: 80%;
    max-height: 80%;
    opacity: 0.4;
    margin-bottom: 15px;
}

.main-image-container:after {
    content: "Изображение отсутствует";
    font-style: italic;
}

/* Информация о товаре */
.product-info {
    flex: 1;
    min-width: 300px;
    padding: 10px;
}

#product-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    padding-bottom: 15px;
}

#product-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 2px;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}



.short-description {
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 16px;
    color: #34495e;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 0 4px 4px 0;
}

.short-description p {
    margin-bottom: 10px;
}

.short-description p:last-child {
    margin-bottom: 0;
}

/* Кнопки действий */
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border: none;
    background: #3a3a3a;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(66, 66, 66, 0.2);
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(145, 145, 145, 0.4);
}

.btn:hover:before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: #000000;
    box-shadow: 0 4px 6px rgba(51, 51, 51, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 7px 14px rgba(32, 32, 32, 0.4);
    background: #151515;
}

/* Иконки для кнопок (можно добавить через псевдоэлементы) */
.btn:after {
    margin-left: 8px;
}

/* Характеристики товара */
.specifications {
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid #eaeaea;
}

.specifications h2 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.specifications h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 3px;
}

/* Контейнер для группы характеристик */
.spec-group {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spec-group:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.spec-group h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #3498db;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
    display: flex;
    align-items: center;
}



/* Список характеристик */
.spec-list {
    display: flex;
    flex-direction: column;

}

/* Каждая характеристика как строка таблицы */
.spec-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #e0e0e0;
    transition: background-color 0.2s ease;
    align-items: center
}

.spec-item:hover {
    background-color: #f9f9f9;

    border-radius: 4px;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-key {
    font-weight: 600;
    color: #2c3e50;
    flex: 0 0 40%;
    max-width: 250px;
    position: relative;
    padding-left: 15px;
}

.spec-key:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.spec-val {
    color: #555;
    flex: 1;
    text-align: right;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .product-main {
        gap: 30px;
        padding: 20px;
    }

    .mySwiperMain {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .product-page.container {
        padding: 15px;
    }

    .product-main {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .product-gallery-wrapper,
    .product-info {
        max-width: 100%;
    }

    .mySwiperMain {
        height: 350px;
    }

    .mySwiperThumbs {
        height: 90px;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .specifications h2 {
        font-size: 24px;
    }

    .spec-group {
        padding: 20px;
    }

    .spec-group h3 {
        font-size: 18px;
    }

    .spec-item {

        gap: 5px;
    }

    .spec-key {
        max-width: none;
        flex: 1;
        padding-left: 0;
    }

    .spec-key:before {
        display: none;
    }

    .spec-val {
        text-align: left;
        flex: 1;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    #product-title {
        font-size: 26px;
    }

    .product-price {
        font-size: 24px;
    }

    .mySwiperMain {
        height: 300px;
    }

    .mySwiperThumbs {
        height: 80px;
    }

    .specifications h2 {
        font-size: 22px;
    }

    .spec-group {
        padding: 15px;
    }

    .spec-group h3 {
        font-size: 17px;
    }

    .spec-item {
        font-size: 14px;
    }

    .spec-val {
        padding-left: 10px;
    }
}
