/* ==================== КАРТОЧКА ТОВАРА ==================== */
.breadcrumbs { padding: 100px 0 20px; font-size: 13px; color: #999; }
.breadcrumbs a { color: #666; text-decoration: none; }
.breadcrumbs a:hover { color: #000; }
.breadcrumbs .sep { margin: 0 8px; color: #ddd; }
.breadcrumbs .current { color: #000; font-weight: 500; }

.single-product { padding: 20px 0 80px; }
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 64px;
}

/* Галерея */
.product-gallery { position: sticky; top: 100px; }
.gallery-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f8f8f8;
    border: 1px solid #eee;
    margin-bottom: 16px;
    aspect-ratio: 1;
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid #eee;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #000;
    opacity: 0;
}
.gallery-main:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover {
    background: #f5c518;
    border-color: #f5c518;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(245,197,24,0.3);
}
.gallery-arrow-prev { left: 16px; }
.gallery-arrow-next { right: 16px; }

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.gallery-thumb {
    width: 76px;
    height: 76px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    flex-shrink: 0;
    background: #f8f8f8;
}
.gallery-thumb:hover { border-color: #ccc; }
.gallery-thumb.active {
    border-color: #f5c518;
    box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Инфо */
.product-info { display: flex; flex-direction: column; gap: 24px; }
.product-category-badge {
    display: inline-block;
    background: #fff9e6;
    color: #000;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    width: fit-content;
    border: 1px solid #f5c518;
}
.product-title {
    font-size: 34px;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
}
.product-price {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.02em;
}

/* Кнопки */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    background: #f5c518;
    color: #000;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-buy:hover {
    background: #e0b015;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245,197,24,0.4);
}

/* Описание */
.product-description {
    border-top: 1px solid #eee;
    padding-top: 24px;
}
.description-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}
.description-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: #000;
}
.description-content ul { padding-left: 20px; margin-bottom: 16px; }
.description-content li { margin-bottom: 6px; }
.description-content p { margin-bottom: 12px; }

/* Баннер */
.product-banner {
    margin-bottom: 48px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eee;
}
.banner-img { width: 100%; height: auto; display: block; }

/* Характеристики */
.product-specs-full {
    border-top: 1px solid #eee;
    padding-top: 56px;
}
.product-specs-full h2 {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 40px;
}
.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.specs-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.specs-item:hover {
    border-color: #f5c518;
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.specs-label {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.specs-value {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}
.specs-full {
    grid-column: 1 / -1;
    font-weight: 700;
    font-size: 16px;
}

/* Похожие товары */
.related-products {
    padding: 80px 0;
    background: #f8f8f8;
    border-top: 1px solid #eee;
}
.related-title {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    text-align: center;
}
.related-products .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Лайтбокс */
#simpleLightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
#simpleLightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Адаптив */
@media (max-width: 1024px) {
    .product-layout { gap: 40px; }
    .specs-grid { grid-template-columns: repeat(3, 1fr); }
    .related-products .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .product-gallery { position: static; }
    .product-title { font-size: 26px; }
    .product-price { font-size: 22px; }
    .product-actions { flex-direction: column; }
    .btn-buy { width: 100%; }
    .gallery-arrow { opacity: 1; width: 40px; height: 40px; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); }
    .related-products .product-grid { grid-template-columns: repeat(2, 1fr); }
    .breadcrumbs { padding-top: 90px; }
}

@media (max-width: 480px) {
    .specs-grid { grid-template-columns: 1fr; }
    .related-products .product-grid { grid-template-columns: 1fr; }
}


/* ==================== SINGLE PRODUCT ==================== */

/* Хлебные крошки */
.breadcrumbs {
    padding: 100px 0 20px;
    font-size: 13px;
    color: #999;
}
.breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs a:hover { color: #000; }
.breadcrumbs .sep { margin: 0 8px; color: #ddd; }
.breadcrumbs .current { color: #000; font-weight: 500; }

/* Layout */
.single-product { padding: 20px 0 80px; }
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 64px;
}

/* ==================== ГАЛЕРЕЯ ==================== */
.product-gallery { position: sticky; top: 100px; }
.gallery-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f8f8f8;
    border: 1px solid #eee;
    margin-bottom: 16px;
    aspect-ratio: 1;
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.4s ease;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid #eee;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #000;
    opacity: 0;
}
.gallery-main:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover {
    background: #f5c518;
    border-color: #f5c518;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(245,197,24,0.3);
}
.gallery-arrow-prev { left: 16px; }
.gallery-arrow-next { right: 16px; }

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.gallery-thumb {
    width: 76px;
    height: 76px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    flex-shrink: 0;
    background: #f8f8f8;
}
.gallery-thumb:hover { border-color: #ccc; }
.gallery-thumb.active {
    border-color: #f5c518;
    box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-placeholder {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}

/* ==================== ИНФО ==================== */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.product-category-badge {
    display: inline-block;
    background: #fff9e6;
    color: #000;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    width: fit-content;
    border: 1px solid #f5c518;
}
.product-title {
    font-size: 34px;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
}
.product-price {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.02em;
}
.product-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* ==================== КНОПКИ ==================== */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 8px;
}
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    background: #f5c518;
    color: #000;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}
.btn-buy:hover {
    background: #e0b015;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245,197,24,0.4);
}

/* ==================== ОПИСАНИЕ ==================== */
.product-description {
    border-top: 1px solid #eee;
    padding-top: 24px;
    margin-top: 8px;
}
.description-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}
.description-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: #000;
}
.description-content ul { padding-left: 20px; margin-bottom: 16px; }
.description-content li { margin-bottom: 6px; }
.description-content li::marker { color: #f5c518; }
.description-content p { margin-bottom: 12px; }
.description-content strong { color: #000; }

/* ==================== БАННЕР ==================== */
.product-banner {
    margin-bottom: 48px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eee;
}
.banner-img { width: 100%; height: auto; display: block; }

/* ==================== ХАРАКТЕРИСТИКИ ==================== */
.product-specs-full {
    border-top: 1px solid #eee;
    padding-top: 56px;
}
.product-specs-full h2 {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 40px;
}
.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.specs-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.specs-item:hover {
    border-color: #f5c518;
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.specs-label {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.specs-value {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}
.specs-full {
    grid-column: 1 / -1;
    font-weight: 700;
    font-size: 16px;
}

/* ==================== ПОХОЖИЕ ==================== */
.related-products {
    padding: 80px 0;
    background: #f8f8f8;
    border-top: 1px solid #eee;
}
.related-title {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    text-align: center;
}

/* ==================== ЛАЙТБОКС ==================== */
#simpleLightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 40px;
}
#simpleLightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ==================== АДАПТИВ ==================== */
@media (max-width: 1024px) {
    .product-layout { gap: 40px; }
    .specs-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .product-gallery { position: static; }
    .product-title { font-size: 26px; }
    .product-price { font-size: 22px; }
    .product-actions { flex-direction: column; }
    .gallery-arrow {
        opacity: 1;
        width: 40px;
        height: 40px;
    }
    .gallery-arrow-prev { left: 10px; }
    .gallery-arrow-next { right: 10px; }
    .gallery-thumb { width: 64px; height: 64px; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); }
    .breadcrumbs { padding-top: 90px; }
}

@media (max-width: 480px) {
    .specs-grid { grid-template-columns: 1fr; }
}