.widget-scroll-up{
    z-index: 1;
}
.mw-1600 {
    max-width: 1600px;
}

/* ===== ОСНОВНАЯ СЕТКА ===== */
.prod-show {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr 1.5fr;
    grid-template-areas:
            "image info banner"
            "image info banner"
            "tabs tabs banner";
    gap: 20px;
    margin-bottom: 30px;
}

.prod-image-wrapper {
    grid-area: image;
}

.prod-info {
    grid-area: info;
}

.prod-banner-wrapper {
    grid-area: banner;
    margin-top: 20px;
}

.prod-tabs-wrapper {
    grid-area: tabs;
}
.prod-new-design{
    margin-top: 30px;
}


/* ===== СТИЛИ ДЛЯ ВСЕХ ЭЛЕМЕНТОВ ===== */
.prod-new-design .widget-quantity-selector,
.prod-new-design .prod-info .btn.btn-outline-primary.widget-cart-add-button.with-text {
    width: 50%;
}

.prod-new-design .widget-quantity-selector input {
    width: 100%;
}

.prod-new-design .prod-info .btn.btn-outline-primary.widget-cart-add-button.with-text {
    background: #006ebd;
    color: white;
}
.prod-new-design .prod-info .btn.btn-outline-primary.widget-cart-add-button.with-text:hover{
    background: white;
    color: #006ebd;
    border: 1px solid #006ebd;
}


.prod-new-design .prod-info #w2.btn.btn-outline-primary.widget-cart-add-button.with-text {
    position: relative;
}

.prod-new-design .prod-tabs {
    background: none;
    border-bottom: none;
}

.prod-new-design .attrs th {
    background: none;
}

.prod-view .prod-new-design .tab-pane.tab-attrs .attrs .attr {
    border: none;
}

.prod-new-design .prod-tabs-wrapper {
    background: none;
    box-shadow: none;
}

/* Иконка корзины */
.prod-new-design .prod-info #w2.btn.btn-outline-primary.widget-cart-add-button.with-text::before {
    content: "\f07a";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
    margin-right: 8px;
    display: inline-block;
    color: inherit;
    vertical-align: middle;
    left: 12%;
    position: absolute;
}

.prod-new-design .prod-banner.widget-usp-form {
    background: none;
    box-shadow: none;
}

.prod-new-design .background-new-blue {
    background: #ebf5ff;
    border-radius: 10px;
    border: 1px solid #dfdfdf;
}

.background-new-blue .h3 {
    color: black;
    font-size: 1.3rem;
}

.background-new-blue form.prod-banner.widget-usp-form p {
    color: black;
}

.background-new-blue form .submit.btn.btn-outline-primary {
    background: #006ebd;
    color: white;
}
.background-new-blue form .submit.btn.btn-outline-primary:hover{
    background: white;
    color: #006ebd;
}

.background-new-blue form .help-block {
    color: #727272;
    margin-top: 5px;
    margin-left: 5px;
    font-size: 12px;
}

/* Иконки для кнопок */
.prod-new-design .p3 .btn-outline-primary {
    position: relative;
}

.prod-new-design .prod-info .p3 .btn-outline-primary:first-child::before {
    content: "\f002";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
    margin-right: 8px;
    display: inline-block;
    color: inherit;
    vertical-align: middle;
    position: absolute;
    left: 12%;
}

.prod-new-design .prod-info .p3 .btn-outline-primary:last-child::before {
    content: "\f15c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
    margin-right: 8px;
    display: inline-block;
    color: inherit;
    vertical-align: middle;
    position: absolute;
    left: 12%;
}

.prod-view .prod-new-design .prod-show .p3 .btn {
    width: 50%;
}

/* ===== СТИЛИ ДЛЯ БЛОКА ИНФОРМАЦИИ ===== */
.prod-info h1 {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 10px;
    margin-top: 20px;
}

.prod-info .price .text {
    display: block;
    font-size: 11px;
    margin-bottom: 10px;
}

.prod-info .price span,
.prod-info .price span.currency {
    color: black;
}

.prod-info .widget-compare-add-button.with-icon.with-text:after {
    color: #006ebd;
}

.articule {
    color: #727272;
}

/* ===== ИЗОБРАЖЕНИЯ ===== */
.prod-image-wrapper {
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prod-image-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 300px;
    margin-bottom: 15px;
    border: 1px solid #dfdfdf;
    background: white;
    border-radius: 10px;
}

.image-main {
    max-height: 360px;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    border: none !important;
}

/* ===== СЛАЙДЕР МИНИАТЮР ===== */
.prod-image-thumbs-slider {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 5px 0;
}

.thumb-nav-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #f8f9fa;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 2;
    position: relative;
}

.thumb-nav-btn:hover {
    background: #007bff;
    color: #fff;
}

.thumb-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.thumbs-track-wrapper {
    overflow: hidden;
    flex: 1;
    position: relative;
    padding: 5px 0;
}

.thumbs-track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
    will-change: transform;
    padding: 5px 0;
}

.thumb-item {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    cursor: pointer;
    overflow: visible;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    position: relative;
    z-index: 1;
}

.thumb-item:hover {
    border-color: #007bff;
    transform: scale(1.1);
    z-index: 10;
}

.thumb-item.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.thumb-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* ===== ТАБЫ ===== */
.prod-tabs {
    padding: 15px 15px 0 15px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.prod-tabs .nav-link {
    color: #495057;
    border: none;
    padding: 10px 20px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.prod-tabs .nav-link:hover {
    background: #e9ecef;
    color: #212529;
}

.prod-tabs .nav-link.active {
    background: #fff;
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.prod-content {
    padding: 20px;
    background: #fff;
}

.prod-content .tab-pane {
    display: none;
}

.prod-content .tab-pane.active {
    display: block;
}

/* ===== ПРАЙС И КНОПКИ ===== */
.prod-new-design .prod-info .price {
    font-size: 24px;
    font-weight: 700;
}

.prod-new-design .prod-info .price .text {
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
    margin-right: 10px;
}

.prod-new-design .prod-info .price .currency {
    font-size: 18px;
    font-weight: 400;
}

.prod-new-design .prod-info .p1, .prod-new-design .prod-info .p2, .prod-new-design .prod-info .p3 {
    margin-top: 15px;
}

.prod-view .prod-content .tab-pane.tab-attrs{
    columns: 2;
    column-gap: 5rem;
}
.prod-view .prod-show .p1 {
    display: flex;
    flex-flow: row nowrap;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.prod-view .prod-content .tab-pane.tab-attrs .attrs .attr th {
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.25;
    color: #636E79;
    text-align: left;
    vertical-align: middle;
    padding: 0.75rem 1rem 0.75rem 0;
}
.prod-view .prod-content .tab-pane.tab-attrs .attrs .attr td {
    font-size: 1.125rem;
    line-height: 1.55;
    color: #202F3F;
    padding: 0.5rem 0 0.5rem 1rem;
    text-align: right;
    vertical-align: middle;
}
.prod-view .prod-content {
    background: #fff;
    border: 1px solid;
    border-color: #ededed !important;
    border-radius: 5px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
}

.prod-new-design .p2 {
    display: flex;
    align-items: center;
    gap: 10px;

}

.prod-new-design .p3 {
    display: flex;
    gap: 10px;

}

/* ===== ТАБЛИЦА ХАРАКТЕРИСТИК ===== */
.attrs {
    width: 100%;
    border-collapse: collapse;
}

.attrs tr {
    border-bottom: 1px solid #dee2e6;
}

.attrs tr:last-child {
    border-bottom: none;
}

.attrs th {
    padding: 10px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    width: 30%;
    background: #f8f9fa;
}

.attrs td {
    padding: 10px 15px;
    color: #212529;
}

.attrs td a {
    color: #007bff;
    text-decoration: none;
}

.attrs td a:hover {
    text-decoration: underline;
}

/* ===== ДОКУМЕНТЫ ===== */
.docs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.doc {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.doc:hover {
    background: #e9ecef;
    color: #212529;
    text-decoration: none;
}

.doc .ext {
    color: #6c757d;
    font-size: 12px;
    text-transform: uppercase;
    margin-left: 5px;
}

/* ===== БЛОК FEATURE-GRID ===== */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px 10px;
    margin: 24px 0;
    max-width: 100%;
    box-sizing: border-box;
}

.feature-grid .feature-item {
    flex: 1 1 130px;
    min-width: 140px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 0;
}

.feature-grid .feature-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    color: black;
    font-size: 18px;
    line-height: 1;
    text-align: center;
}

.feature-grid .feature-icon i {
    font-size: 18px;
}

.feature-grid .feature-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-grid .feature-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: black;
    line-height: 1.3;
}

.feature-grid .feature-value {
    font-size: 10px;
    font-weight: 500;
    color: #0f1a2b;
    line-height: 1.4;
}

.feature-grid .feature-value .nowrap {
    white-space: nowrap;
}

.feature-grid .feature-value .from {
    font-weight: 400;
    color: #2c3e50;
}

.feature-grid .feature-value .price {
    font-size: 10px;
    font-weight: 600;
    color: #0b1a2e;
}

/* ===== БЛОК BENEFITS-GRID ===== */
.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 30px;
    border-radius: 16px;
    padding: 0px 45px;
    margin: 0px 0 24px;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    max-width: 100%;
    box-sizing: border-box;
}

.benefits-grid .benefit-item {
    flex: 1 1 200px;
    min-width: 160px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 0;
}

.benefits-grid .benefit-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    color: #006ebd;
    font-size: 18px;
    line-height: 1;
    text-align: center;
    margin-right: 20px;
}

.benefits-grid .benefit-icon i {
    font-size: 30px;
}

.benefits-grid .benefit-icon img {
    width: 35px;
}

.benefits-grid .benefit-text {
    font-size: 12px;
    font-weight: 400;
    color: #727272;
    line-height: 1.5;
}

.benefits-grid .benefit-text strong {
    font-weight: 600;
    color: black;
    display: block;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты (992px и меньше) */
@media (max-width: 1300px) {
    .prod-show {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
                "image info"
                "banner banner"
                "tabs tabs";
        gap: 20px;
    }
}

@media (max-width: 1090px) {
    .prod-new-design .prod-info .p3 .btn-outline-primary:first-child::before{
        display: none;
    }
}
@media (max-width: 940px) {
    .prod-new-design .prod-info #w2.btn.btn-outline-primary.widget-cart-add-button.with-text::before{
        display: none;
    }
    .prod-new-design .prod-info .p3 .btn-outline-primary:last-child::before{
        display: none;
    }
}
@media (max-width: 900px) {
    .prod-new-design .p3 .btn-outline-primary:first-child{
        font-size: 12px;
    }
}

/* Мобильные устройства (768px и меньше) */
@media (max-width: 768px) {
    .prod-view .prod-content .tab-pane.tab-attrs{
        columns:1;
        padding: 20px;
    }

    .prod-new-design .prod-image-wrapper, .prod-new-design .prod-content{
        padding: 0px;
    }

    .prod-new-design .nav-tabs .nav-item.nav-link.active{
        padding: 10px;
    }
    .feature-grid .feature-item{
        flex: 1;
    }
    .benefits-grid .benefit-item{
        flex: 1;
    }
    .prod-show {
        grid-template-columns: 1fr;
        grid-template-areas:
                "image"
                "info"
                "banner"
                "tabs";
        gap: 15px;
    }

    .prod-info {
        padding: 15px;
    }

    .prod-new-design .prod-info .p3 .btn {
        width: 100%;
    }

    .prod-image-main {
        min-height: 200px;
    }

    .image-main {
        max-height: 250px;
    }

    .prod-image-thumbs-slider {
        max-width: 100%;
    }

    .thumb-item {
        width: 60px;
        height: 60px;
    }


    .prod-new-design .prod-info{
        padding-top: 0px;
    }

    .feature-grid {
        flex-direction: column;
        gap: 16px;
        padding: 0px;
        margin-top: 0px;
    }

    .feature-grid .feature-item {
        min-width: unset;
        width: 100%;
    }

    .feature-grid .feature-value {
        font-size: 14px;
    }

    .benefits-grid {
        flex-direction: column;
        gap: 14px;
        padding: 20px 18px;
    }

    .benefits-grid .benefit-item {
        min-width: unset;
        width: 100%;
    }

    .benefits-grid .benefit-text {
        font-size: 14px;
    }
}

/* Маленькие мобильные (480px и меньше) */
@media (max-width: 480px) {
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .prod-image-main {
        min-height: 150px;
    }

    .image-main {
        max-height: 200px;
    }

    .thumb-item {
        width: 50px;
        height: 50px;
    }

    .thumb-nav-btn {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}
