/* ===== Стили для детальной страницы товара ===== */

/* Основная карточка товара (правая часть, подгружаемая через AJAX) */
.content-box {
    flex: 1;
    background: #f1f4f5;
    border-radius: 45px;
    padding: 45px;
    display: flex;
    flex-direction: column;
}

.content-box h1 {
    font-family: 'Zona Pro', sans-serif;
    font-size: 64px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 30px;
}

/* Сетка особенностей (2×2) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.feature-box {
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 50px auto;
    gap: 15px;
    transition: transform 0.2s;
}

.feature-box:hover {
    transform: translateY(-3px);
}

.feature-icon-wrap {
    width: 50px;
    height: 40px;
    background-color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #83c767;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.feature-box span {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
    color: #1f2022;
}

/* Варианты цветов */
.variants-label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.variants-list {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
}

.variant-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
}

/* Цена */
.price-text {
    font-size: 16px;
    color: #8a9299;
    margin-bottom: 35px;
}

.price-text span {
    font-size: 32px;
    font-weight: bold;
    color: #1f2022;
    margin-left: 5px;
}

/* Кнопки */
.actions-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.btn-action {
    background-color: #83c767;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 15px;
    padding: 18px 50px;
    border-radius: 40px;
    text-decoration: none;
}

.btn-action:hover {
    background-color: #72b358;
    color: #ffffff;
}

.circle-icon {
    width: 58px;
    height: 58px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.circle-icon:hover {
    background: #e8ecec;
}

/* ===== Блок преимуществ покрытия ===== */
.advantages-pvc {
    margin-top: 60px;
    margin-bottom: 19.5rem !important;
}

.adv-pvc-title {
    font-family: 'Zona Pro', sans-serif;
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #1f2022;
	line-height: 1.5;
}

.adv-pvc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.adv-pvc-card {
    background: #ffffff;
    border-radius: 60px;
    padding: 45px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
}

.adv-pvc-card:hover {
    transform: translateY(-8px);
}

.adv-pvc-visual {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f4f5;
}

.adv-pvc-image {
    border-radius: 3em;
}

.adv-pvc-badge {
    position: absolute;
    top: 0;
    right: -10px;
    background: #83c767;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(131, 199, 103, 0.3);
}

.adv-pvc-icon {
    width: 110px;
    height: 110px;
    background: #f1f4f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.adv-pvc-card h3 {
    font-family: 'Zona Pro', sans-serif;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #1f2022;
	line-height: 1.5;
}

.adv-pvc-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #8a9299;
}

/* ===== Стили для проектов ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card__info {
    padding: 20px;
}

.project-card__info h4 {
    font-family: 'Zona Pro', sans-serif;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.project-card__link {
    color: #83c767;
    text-decoration: none;
    font-weight: bold;
}

.project-card__link:hover {
    text-decoration: underline;
}

/* ===== Стили для видео ===== */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 25px;
}

.specification__tab:not(.active) {
    display: none
}

/* Сетка характеристик */
.characteristics-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: auto;
}

.characteristics-grid-1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.char-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.char-label {
    font-size: 16px;
    color: #8a9299;
    white-space: nowrap;
}

.char-dots {
    flex-grow: 1;
    border-bottom: 1px dotted #d8dcde;
    margin: 0 10px;
    position: relative;
    top: -4px;
}

.char-value {
    font-size: 16px;
    font-weight: bold;
    color: #1f2022;
    text-align: right;
}

.specification__content {
    padding: 50px !important;
}

.specification__els {
    margin-bottom: 0 !important;
}

.catalog-section.bx-green {
	margin: auto !important
}

/* ===== Адаптивность ===== */
@media (max-width: 1200px) {
    .content-box h1 {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .adv-pvc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-box {
        padding: 30px;
    }

    .content-box h1 {
        font-size: 36px;
    }
}

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

    .feature-box {
        grid-template-columns: 40px auto;
    }

    .feature-icon-wrap {
        width: 40px;
        height: 34px;
    }

    .feature-box span {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .adv-pvc-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .adv-pvc-title {
        font-size: 28px;
    }

    .content-box h1 {
        font-size: 28px;
    }

    .content-box {
        padding: 20px;
        border-radius: 30px;
    }

    .price-text span {
        font-size: 24px;
    }

    .btn-action {
        padding: 14px 30px;
        font-size: 13px;
    }

    .circle-icon {
        width: 48px;
        height: 48px;
    }

	.characteristics-grid-1 {
		grid-template-columns: repeat(1, 1fr)
	}

	.char-value {
		line-height: 1.25
	}
}

/* ===== Существующие классы с обновлёнными стилями ===== */

/* ===== PRODUCT SLIDER - кастомные стили ===== */

/* Контейнер слайдера */
.card__slider {
    position: relative;
    flex: 0 0 540px;
    max-width: 540px;
}

/* Главный слайдер */
.product-main-swiper {
    width: 100%;
    height: 420px;
    border-radius: 45px;
    overflow: hidden;
    position: relative;
    background: #f1f4f5;
}

.product-main-slide {
    width: 100%;
    height: 100%;
}

.product-main-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-main-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-main-slide.no-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f1f4f5;
}

.product-main-slide.no-img img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.product-main-slide.no-img p {
    margin-top: 15px;
    font-size: 16px;
    color: #8a9299;
    text-align: center;
}

/* Кнопки навигации главного слайдера */
.product-main-next,
.product-main-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: none !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-main-next:hover,
.product-main-prev:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.product-main-next {
    right: 15px;
}
.product-main-next::after {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 2px solid #1f2022;
    border-top: 2px solid #1f2022;
    transform: rotate(45deg);
    margin-left: 4px;
}

.product-main-prev {
    left: 15px;
}
.product-main-prev::after {
    content: '';
    width: 12px;
    height: 12px;
    border-left: 2px solid #1f2022;
    border-bottom: 2px solid #1f2022;
    transform: rotate(45deg);
    margin-right: 4px;
}

/* ===== Thumbs Swiper (миниатюры) ===== */
.product-thumbs-swiper {
    margin-top: 15px;
    height: 195px;
    overflow: hidden;
    width: 100%;
}

.product-thumbs-swiper .swiper-wrapper {
    height: 100%;
}

.product-thumbs-swiper .swiper-slide {
    width: calc(50% - 7.5px) !important;
    flex-shrink: 0;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.2s, border 0.3s;
    border: 3px solid transparent;
    background: #f1f4f5;
}

.product-thumbs-swiper .swiper-slide:hover {
    transform: scale(1.02);
    opacity: 0.7;
}

.product-thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #83c767;
}

.product-thumbs-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Заглушки для миниатюр */
.product-thumbs-placeholder {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.product-thumbs-placeholder .product-thumbs-slide {
    flex: 1;
    height: 195px;
    border-radius: 25px;
    overflow: hidden;
    background: #f1f4f5;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    border: none !important;
    cursor: default;
}

.product-thumbs-placeholder .product-thumbs-slide img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.product-thumbs-placeholder .product-thumbs-slide:hover {
    transform: none;
}

.content-box {
	padding: 0 !important
}

/* ===== Адаптив ===== */
@media (max-width: 1200px) {
    .card__slider {
        flex: 0 0 45%;
        max-width: 45%;
    }
}

@media (max-width: 992px) {
    .card__slider {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .product-main-swiper {
        height: 380px;
        border-radius: 35px;
    }
    
    .product-thumbs-swiper {
        height: 160px;
    }
    
    .product-thumbs-placeholder .product-thumbs-slide {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .product-main-swiper {
        height: 320px;
        border-radius: 30px;
    }
    
    .product-thumbs-swiper {
        height: 120px;
    }
    
    .product-thumbs-swiper .swiper-slide {
        width: calc(50% - 5px) !important;
        border-radius: 18px;
    }
    
    .product-thumbs-placeholder .product-thumbs-slide {
        height: 120px;
        border-radius: 18px;
    }
}

@media (max-width: 576px) {
    .product-main-swiper {
        height: 280px;
        border-radius: 20px;
    }
    
    .product-thumbs-swiper {
        height: 100px;
        margin-top: 10px;
    }
    
    .product-thumbs-swiper .swiper-slide {
        width: calc(50% - 5px) !important;
        border-radius: 15px;
        border-width: 2px;
    }
    
    .product-thumbs-placeholder {
        gap: 10px;
    }
    
    .product-thumbs-placeholder .product-thumbs-slide {
        height: 100px;
        border-radius: 15px;
    }
    
    .product-main-next,
    .product-main-prev {
        width: 36px;
        height: 36px;
    }
    
    .product-main-next {
        right: 10px;
    }
    
    .product-main-prev {
        left: 10px;
    }
}