.modern-product-page {
    width: 100%;
    min-height: 100vh;
    background: #f8fafc;
}

.product-main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.product-single {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.breadcrumbs-wrapper {
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 0; /* Убираем отступ, header теперь над breadcrumbs */
    position: relative;
    z-index: 10;
}

.breadcrumbs {
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: #94a3b8;
    font-weight: 600;
    margin-left: 8px;
}

.breadcrumb-item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.breadcrumb-item a:hover {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.1);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #374151;
    font-weight: 600;
}

/* Скрываем дублирующиеся WooCommerce breadcrumbs */
.prod--container .woocommerce-notices-wrapper,
.prod--container .breadcrumbs--wrapper,
.breadcrumbs--wrapper[typeof="BreadcrumbList"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

.product-content {
    padding: 30px;
}

.product-gallery {
    margin-bottom: 30px;
}

/* Основная галерея */
.gallery-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.main-gallery-swiper {
    width: 100%;
    height: 500px;
}

.main-gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Счетчик изображений */
.image-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Навигация галереи */
.gallery-nav-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gallery-nav-btn:hover {
    background: white;
    color: #2563eb;
    transform: scale(1.1);
}

.gallery-nav-btn::after {
    display: none;
}

/* Пагинация галереи */
.gallery-pagination {
    bottom: 15px !important;
}

.gallery-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.7);
    opacity: 1;
}

.gallery-pagination .swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

/* Миниатюры */
.gallery-thumbnails {
    margin-top: 15px;
}

.thumbnail-swiper {
    width: 100%;
    height: 80px;
}

.thumbnail-swiper .swiper-slide {
    width: 80px;
    height: 80px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-swiper .swiper-slide:hover {
    border-color: #2563eb;
}

.thumbnail-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 6px;
    overflow: hidden;
}

.thumbnail-container.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Заглушка для отсутствующего изображения */
.placeholder-container {
    position: relative;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
}

.placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #94a3b8;
}

.placeholder-text i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.placeholder-text p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2469BE;
    margin-bottom: 20px;
}

.product-sales-stats-single {
    margin: 15px 0;
    padding: 12px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.sales-count-single {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
}

.sales-count-single i {
    color: #28a745;
    font-size: 16px;
}

.product-excerpt {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #555;
}

.product-options {
    margin-bottom: 25px;
}

.product-option {
    margin-bottom: 15px;
}

.product-option label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.product-option-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s ease;
}

.product-option-select:focus {
    outline: none;
    border-color: #2563eb;
}

.product-actions {
    margin-top: 30px;
}

.custom-add-to-cart {
    text-align: center;
}

.custom-add-to-cart-button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.custom-add-to-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.custom-add-to-cart-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.order-notice {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-style: italic;
}

/* Вкладки товара */
.product-tabs-wrapper {
    margin-top: 50px;
    border-top: 1px solid #e2e8f0;
    padding-top: 40px;
}

.tabs-navigation {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-button:hover {
    color: #2563eb;
    background: #f8fafc;
}

.tab-button.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: #eff6ff;
}

.tab-button i {
    font-size: 1rem;
}

.tabs-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

.tab-content-inner {
    padding: 30px 0;
    line-height: 1.7;
    color: #475569;
}

.tab-content-inner h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Стили для описания товара */
.product-description-content {
    line-height: 1.7;
    color: #475569;
}

.product-description-content p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.product-description-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.product-description-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.description-placeholder {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.description-placeholder i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 15px;
    display: block;
}

.description-placeholder h4 {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.description-placeholder p {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.description-placeholder ul {
    text-align: left;
    display: inline-block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.description-placeholder li {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.description-placeholder li:last-child {
    border-bottom: none;
}

.description-placeholder strong {
    color: #2563eb;
}

/* Таблицы характеристик */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.specs-table tr:nth-child(even) {
    background: #f8fafc;
}

.specs-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.spec-label {
    font-weight: 600;
    color: #374151;
    width: 30%;
    background: #f1f5f9;
}

.spec-value {
    color: #475569;
}

/* Таблица размеров */
.size-guide {
    margin: 20px 0;
}

.size-info {
    background: #eff6ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #2563eb;
}

.size-info ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.size-info li {
    margin-bottom: 8px;
    color: #475569;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.size-table th {
    background: #2563eb;
    color: white;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
}

.size-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.size-table tr:nth-child(even) {
    background: #f8fafc;
}

.size-table tr:hover {
    background: #eff6ff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-main-content {
        padding: 1rem;
    }

    .product-content {
        padding: 20px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .main-gallery-swiper {
        height: 350px;
    }

    .gallery-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .thumbnail-swiper {
        height: 70px;
    }

    .thumbnail-swiper .swiper-slide {
        width: 70px;
        height: 70px;
        margin-right: 8px;
    }

    .tabs-navigation {
        gap: 0;
        padding-bottom: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-button {
        padding: 12px 16px;
        font-size: 0.9rem;
        gap: 6px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .tab-button i {
        font-size: 0.9rem;
    }

    .specs-table,
    .size-table {
        font-size: 0.9rem;
    }

    .specs-table td,
    .size-table td,
    .size-table th {
        padding: 12px 15px;
    }

    .product-sales-stats-single {
        margin: 12px 0;
        padding: 10px 0;
    }

    .sales-count-single {
        font-size: 13px;
        gap: 6px;
    }

    .sales-count-single i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tabs-navigation {
        gap: 0;
    }

    .tab-button {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .tab-button span {
        display: none;
    }

    .tab-button i {
        font-size: 1rem;
    }

    .size-info {
        padding: 15px;
    }

    .size-info ul {
        margin-left: 15px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Стили для галереи в описании товара */
.product-gallery-in-description {
    margin-bottom: 30px;
}

.product-gallery-in-description .gallery-main {
    margin-bottom: 15px;
}

.product-gallery-in-description .gallery-main .gallery-image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-gallery-in-description .gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.product-gallery-in-description .image-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.product-gallery-in-description .gallery-nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.product-gallery-in-description .gallery-nav-btn:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-gallery-in-description .swiper-button-prev {
    left: 15px;
}

.product-gallery-in-description .swiper-button-next {
    right: 15px;
}

.product-gallery-in-description .gallery-pagination {
    bottom: 15px !important;
}

.product-gallery-in-description .gallery-thumbnails {
    margin-top: 15px;
}

.product-gallery-in-description .thumbnail-swiper .swiper-slide {
    width: 80px;
    margin-right: 10px;
}

.product-gallery-in-description .thumbnail-container {
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-gallery-in-description .thumbnail-container.active {
    border-color: var(--primary-color);
}

.product-gallery-in-description .thumbnail-container img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    display: block;
}

.description-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 30px 0;
}

.product-description-text {
    color: #475569;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .product-gallery-in-description .gallery-main img {
        height: 300px;
    }

    .product-gallery-in-description .thumbnail-swiper .swiper-slide {
        width: 60px;
    }

    .product-gallery-in-description .thumbnail-container img {
        height: 45px;
    }
}
