/* Стили для отдельной страницы товара */
.product-single {
    padding: 20px 0 60px;
}

/* Хлебные крошки удалены, но класс может остаться без использования */

/* Основная сетка */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 70px;
    align-items: start;
}

/* Галерея */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-main {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s;
}

.gallery-main:hover {
    transform: scale(1.01);
    box-shadow: 0 25px 40px -8px rgba(198,164,63,0.2);
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-thumbnails {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gallery-thumbnails .thumbnail-link {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gallery-thumbnails .thumbnail-link:hover {
    border-color: #C6A43F;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(198,164,63,0.15);
}

.gallery-thumbnails .thumbnail-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Информация о товаре */
.product-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.product-title {
    width: 100%;
    font-size: 42px;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.2;
    color: #2E2E2E;
}

.product-excerpt {
    width: 100%;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    border-left: 4px solid #C6A43F;
    padding-left: 20px;
    margin: 0 0 15px;
    background: rgba(198,164,63,0.02);
    border-radius: 0 20px 20px 0;
}

.product-sku {
    width: 100%;
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f5f0e8;
    padding: 5px 15px;
    border-radius: 40px;
    width: fit-content;
}

.product-sku .label {
    font-weight: 500;
    color: #2E2E2E;
}

/* Цена и кнопка на одной строке */
.product-price-block {
    margin: 0;
    order: 1;
}

.wb-button {
    order: 2;
    margin: 0 0 0 20px;
}

.old-price {
    font-size: 20px;
    color: #aaa;
    text-decoration: line-through;
    margin-right: 15px;
}

.current-price {
    font-size: 40px;
    font-weight: 600;
    color: #C9683B;
    letter-spacing: -0.5px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.current-price.sale {
    color: #d9534f;
}

/* Кнопка Wildberries */
.wb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #7B3FE4 0%, #9f6eff 100%);
    color: #fff;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    width: fit-content;
    border: none;
    box-shadow: 0 10px 25px rgba(123, 63, 228, 0.3);
    position: relative;
    overflow: hidden;
}

.wb-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.wb-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(123, 63, 228, 0.4);
    background: linear-gradient(135deg, #6a30c4 0%, #8f5ae6 100%);
}

.wb-button:hover::before {
    left: 100%;
}

.wb-button i {
    font-size: 20px;
}

/* Контейнер для всех групп атрибутов */
.product-attributes {
    width: 100%;
    order: 3;
    margin: 20px 0;
}

/* Отдельная группа атрибутов */
.attribute-group {
    background: #ffffff;
    border-radius: 30px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    border: 1px solid rgba(198,164,63,0.15);
}

.attribute-group:last-child {
    margin-bottom: 0;
}

.attribute-group-title {
    font-size: 20px;
    margin: 0 0 15px 0;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: #2E2E2E;
    padding-bottom: 8px;
    border-bottom: 2px solid #C6A43F;
    display: inline-block;
}

/* Список атрибутов внутри группы */
.attribute-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Элемент атрибута с точками-лидерами */
.attribute-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.attribute-item dt {
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.attribute-item dt i {
    color: #C6A43F;
    font-size: 14px;
}

/* Точки-лидеры между dt и dd */
.attribute-item .leader {
    flex: 1 1 auto;
    border-bottom: 1px dotted #ccc;
    margin: 0 4px;
    height: 1em;
}

.attribute-item dd {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    text-align: right;
    max-width: 60%;
}

.attribute-item dd span {
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.attribute-item dd span:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Полное описание */
.product-description {
    margin-top: 60px;
    background: #ffffff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    border: 1px solid #f0e8dd;
}

.product-description h2 {
    font-size: 28px;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: #2E2E2E;
    position: relative;
    display: inline-block;
}

.product-description h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #C6A43F, transparent);
}

/* Стили для контента описания */
.entry-content {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

/* Отступы между абзацами */
.entry-content p {
    margin-bottom: 1.2em;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

/* Списки: отступы и маркеры */
.entry-content ul,
.entry-content ol {
    margin-left: 2.2em;
    padding-left: 0;
    margin-bottom: 1.2em;
}

.entry-content li {
    margin-bottom: 0.4em;
    line-height: 1.7;
}

.entry-content li:last-child {
    margin-bottom: 0;
}

/* Вложенные списки */
.entry-content ul ul,
.entry-content ul ol,
.entry-content ol ul,
.entry-content ol ol {
    margin-left: 1.5em;
    margin-bottom: 0.3em;
    margin-top: 0.3em;
}

/* Стили для маркеров */
.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content ul li::marker {
    color: #C6A43F;
}

.entry-content ol li::marker {
    color: #C6A43F;
    font-weight: 500;
}

/* Похожие товары */
.related-products {
    margin-top: 60px;
    margin-bottom: 40px;
}

/* Заголовок в стиле глянцевого журнала */
.related-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    font-style: italic;
    font-variant: small-caps;
    letter-spacing: 1px;
    color: #2E2E2E;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 20px;
    background: #FDF8F2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.related-title::before,
.related-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C6A43F, transparent);
}

.related-title::before {
    left: -110px;
}

.related-title::after {
    right: -110px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.related-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(198,164,63,0.1);
}

.related-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-image {
    background: #f5f5f5;
    line-height: 0;
    text-align: center;
}

.related-image img {
    width: 100%;
    height: auto;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.related-name {
    font-size: 18px;
    margin: 15px 15px 5px;
    font-weight: 500;
    color: #2E2E2E;
    line-height: 1.4;
}

.related-excerpt {
    font-size: 14px;
    color: #666;
    margin: 0 15px 10px;
    line-height: 1.5;
}

.related-price {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #C9683B;
    margin: 0 15px 10px;
}

.related-button {
    display: inline-block;
    margin: 0 15px 20px;
    padding: 8px 20px;
    background: transparent;
    border: 2px solid #C6A43F;
    color: #C6A43F;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    width: fit-content;
    align-self: center;
}

.related-button:hover {
    background: #C6A43F;
    color: #fff;
}

/* Кнопка назад (Вернуться в коллекцию) */
.back-to-catalog {
    margin-top: 60px;
    text-align: center;
}

.back-to-catalog a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 35px;
    background: transparent;
    border: 2px solid #C6A43F;
    color: #C6A43F;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 500;
    transition: all 0.3s;
}

.back-to-catalog a:hover {
    background: #C6A43F;
    color: #fff;
    gap: 15px;
}

.back-to-catalog i {
    font-size: 14px;
    transition: transform 0.2s;
}

.back-to-catalog a:hover i {
    transform: translateX(-5px);
}

/* Адаптивность */
@media screen and (max-width: 1024px) {
    .product-grid {
        gap: 40px;
    }
    .product-title {
        font-size: 36px;
    }
    .current-price {
        font-size: 36px;
    }
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .related-title::before,
    .related-title::after {
        width: 50px;
    }
    .related-title::before {
        left: -60px;
    }
    .related-title::after {
        right: -60px;
    }
}

@media screen and (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .product-title {
        font-size: 32px;
    }
    .current-price {
        font-size: 32px;
    }
    .attribute-group {
        padding: 20px;
    }
    .attribute-item {
        flex-wrap: wrap;
    }
    .attribute-item .leader {
        display: none;
    }
    .attribute-item dd {
        max-width: 100%;
        text-align: left;
        margin-left: 24px;
    }
    .product-description {
        padding: 25px;
    }
    .wb-button {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
    }
    .product-info {
        justify-content: flex-start;
    }
    .entry-content ul,
    .entry-content ol {
        margin-left: 1.5em;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .related-title {
        font-size: 28px;
    }
    .related-title::before,
    .related-title::after {
        width: 30px;
    }
    .related-title::before {
        left: -40px;
    }
    .related-title::after {
        right: -40px;
    }
}

@media screen and (max-width: 480px) {
    .product-title {
        font-size: 28px;
    }
    .current-price {
        font-size: 28px;
    }
    .product-sku {
        font-size: 12px;
        padding: 4px 12px;
    }
    .attribute-group {
        padding: 15px;
    }
    .attribute-group-title {
        font-size: 18px;
    }
    .attribute-item dt {
        font-size: 14px;
    }
    .attribute-item dd span {
        font-size: 13px;
        padding: 3px 10px;
    }
    .entry-content {
        font-size: 15px;
    }
    .entry-content ul,
    .entry-content ol {
        margin-left: 1.2em;
    }
    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .related-title {
        font-size: 24px;
    }
    .related-title::before,
    .related-title::after {
        display: none;
    }
    .related-name {
        font-size: 16px;
    }
    .related-price {
        font-size: 18px;
    }
    .related-button {
        font-size: 13px;
        padding: 6px 16px;
    }
    .back-to-catalog a {
        padding: 10px 25px;
        font-size: 14px;
    }
    .gallery-thumbnails .thumbnail-link {
        width: 60px;
        height: 60px;
    }
}