/* css/catlog/product_detail.html */

/* BREADCRUMBS */
.glove-detail-breadcrumb {
    position: static;
    top: var(--content-top-mobile);
    /* 108.2px */
    z-index: 1020;
    background-color: #f8f8f8;
    padding-top: 0.75rem;
    padding-left: 1.5625rem;
    font-size: 0.875rem;
    line-height: 1.125rem;
}

.back-link-mobile {
    display: block;
    /* вместо inline-flex */
    padding: 0.35rem 0.5rem;
    color: #6c757d;
    text-decoration: none;
    border-radius: 0.375rem;
    /* чуть приятнее на тап */
}

.back-link-mobile:active,
.back-link-mobile:focus {
    text-decoration: underline;
}

/* 1-я строка */
.back-link-label {
    display: block;
    font-size: 0.95rem;
    line-height: 1.1;
}

/* 2-я строка: товар */
.back-link-product {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.95rem;
    line-height: 1.1;
    color: var(--color-accent);
    /* можно акцентом, либо оставь muted */
    font-weight: 600;
    white-space: normal;
    /* разрешаем переносы */
    word-break: break-word;
    /* если попадётся очень длинное без пробелов */
}

/* Десктоп: оставляем только "назад", товар убираем */
@media (min-width: 992px) {
    .back-link-product {
        display: none;
    }

    .back-link-mobile {
        padding: 0;
    }

    /* чтобы не выглядело как плашка */
}

.glove-detail-breadcrumb ol {
    margin-bottom: 0;
}

.breadcrumb-item {
    color: var(--color-brand);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--color-accent);
    font-weight: 600;
}


@media (min-width: 992px) {
    .back-link-mobile {
        min-height: 0;
        font-size: 0.875rem;
    }

    .back-link-product {
        display: none;
    }

    .glove-detail-description-block {
        padding-top: 1rem;
    }
}

@media (max-width: 991.98px) {
    .glove-detail-breadcrumb {
        position: sticky;
        top: var(--content-top-mobile);
        z-index: 1020;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .glove-detail-breadcrumb nav[aria-label="breadcrumb"] {
        display: none;
    }
}

/* ЛЕВЫЙ БЛОК с основным изображением и миниатюрами доступных цветов */
.bg-glove-detail {
    background: #f7f6f1;
    /* Penguin White */
}

.product-gallery {
    width: 100%;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

@media (min-width: 992px) {
    .gallery-main {
        width: 90%;
        margin-inline: auto;
    }
}

@media (min-width: 1200px) {
    .gallery-main {
        width: 85%;
    }
}

/* ДО инициализации Swiper показываем только первый слайд */
.gallery-main:not(.swiper-initialized) .swiper-wrapper {
    display: block;
    height: 100%;
}

.gallery-main:not(.swiper-initialized) .swiper-slide {
    display: none;
    height: 100%;
}

.gallery-main:not(.swiper-initialized) .swiper-slide:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main:not(.swiper-initialized) a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-main:not(.swiper-initialized) img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Миниатюры до инициализации лучше вообще скрыть */
.gallery-thumbs:not(.swiper-initialized) {
    display: none;
}

/* После инициализации — обычная работа */
.gallery-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.gallery-thumbs .swiper-slide {
    opacity: .6;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.gallery-thumbs img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    padding: 0;
}

.gallery-main .gallery-nav {
    /* чтобы было видно поверх картинки */
    /* Swiper сам задаёт позицию, мы только улучшим читаемость */
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
}

/* сделать область клика чуть комфортнее */
.gallery-main .swiper-button-prev,
.gallery-main .swiper-button-next {
    width: 44px;
    height: 44px;
}



/* ПРАВЫЙ блок с описанием товара */
.left-description-block-col,
.right-description-block-col {
    padding: 1.5rem;
}

.glove-detail-prodname {
    font-weight: 600;
    color: black;
}

.glove-detail-shrtdscrptn {
    margin-top: 1rem;
    color: #58585A;
}

/* ORDER FORM */
.product-action-panel {
    width: 100%;
    max-width: 100%;
}

.prod-detail-order-form .order-form-card {
    border: 1px solid #d9d9d9;
    background: #f8f6f1;
    padding: 1rem 1rem 1.125rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
}

.prod-detail-order-form .order-form-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 0.875rem;
}

.prod-detail-order-form .order-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem 1rem;
}

.prod-detail-order-form .order-form-field {
    min-width: 0;
}

.prod-detail-order-form .order-form-field--full {
    grid-column: 1 / -1;
}

.prod-detail-order-form .order-form-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #3f3f3f;
}

.prod-detail-order-form .order-form-actions {
    margin-top: 1rem;
}

.prod-detail-order-form .order-submit-btn {
    width: 100%;
    font-weight: 600;
    padding: 0.55rem 1rem;
}

.prod-detail-order-form .order-form-note {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.detail-compare-form {
    margin-top: 0.75rem;
}

.detail-compare-btn {
    width: 100%;
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .prod-detail-order-form .order-form-card {
        padding: 0.875rem;
    }

    .prod-detail-order-form .order-form-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .prod-detail-order-form .order-form-field--full {
        grid-column: auto;
    }

    .prod-detail-order-form .order-submit-btn {
        width: 100%;
    }
}



.glove-extended-description {
    color: #939396;
    font-size: 1.0625rem;
}

.glove-pictograms {
    display: flex;
    flex-wrap: wrap;
    /* разрешаем перенос */
    gap: 0.5rem;
    /* расстояние между пиктограммами */
    align-items: center;
    /* вертикальное выравнивание */
    margin-top: 2rem;
    margin-bottom: .5rem;
}

.pictogram-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    flex: 0 0 auto;
    /* чтобы не растягивались */
}

/* картинка вписывается, не искажаясь */
.pictogram-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* ключевое */
    object-position: center;
    /* по центру */
    display: block;
}

.glove-standards-column,
.certificate-link-column {
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.glove-standards {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #58585A;
}

.certificate-link {
    width: auto;
    height: 34px;
    vertical-align: middle;
    display: inline-block;
    padding-top: 0;
    padding-bottom: 0;
}

@media (hover: none),
(pointer: coarse) and (orientation: landscape) {

    .glove-standards-column,
    .certificate-link-column {
        margin-bottom: 0;
    }

    .glove-standards,
    .st1-standard {
        margin-bottom: 0;
    }

    .certificate-link {
        height: 66px;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 1199.98px) {

    .glove-standards-column,
    .certificate-link-column {
        margin-bottom: 0;
    }

    .glove-standards,
    .st1-standard {
        margin-bottom: 0;
    }

    .certificate-link {
        height: 66px;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

.glove-risk-class {
    text-transform: uppercase;
    font-weight: 800;
    color: red;
}

.glove-made-in {
    font-weight: 700;
    color: #58585A;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.flag-ru {
    width: 43px;
    height: auto;
}


/* миниатюры доступных цветов */
.glove-color-images {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.thumbnails-color {
    display: flex;
    flex-direction: column;
    /* Размещаем элементы по вертикали */
    gap: 0.625rem;
    /* Отступ между блоком с текстом и миниатюрами */
    justify-content: center;
    /* Центрируем элементы */
    align-items: center;
    /* Центрируем блоки по горизонтали */
}

.color-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    /* Отступы между миниатюрами */
}

.thumbnails-color img {
    width: 80px;
    /* Размер миниатюр */
    height: auto;
    border: 2px solid #ddd;
    padding: 0;
    cursor: pointer;
}

@media (max-width: 767px) {
    .right-description-block-col {
        flex-direction: column-reverse !important;
        /* Меняем порядок блоков */
        margin-top: 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .right-description-block-col .glove-color-images {
        margin-top: 0;
        margin-bottom: 1.875rem;
    }
}

.color-images-mobile {
    display: none;
}

@media (max-width: 767px) and (orientation: landscape) {
    .glove-detail-description-block .description-block-row {
        flex-direction: column;
        /* Выстраиваем колонки одна над другой */
    }

    .glove-detail-description-block .description-block-col {
        width: 100%;
        /* Колонки занимают всю ширину */
    }

    .stickers .novelty-sticker-detail {
        left: 0.3rem;
        width: 14%;
    }

    .main_image {
        max-width: 50%;
        /* Уменьшаем основное изображение */
        margin: 0 auto;
        /* Центрируем изображение */
    }

    .glove-color-images {
        display: none;
    }

    .color-images-mobile {
        display: block;
        /* Показываем цветовые изображения на малых экранах */
        position: absolute;
        bottom: 0%;
        left: 55%;
    }

    .color-images {
        gap: 5px;
        /* Отступы между миниатюрами */
    }

    .thumbnails-color img {
        width: 75px;
    }
}

@media (max-width: 500px) and (max-height: 320px) {
    .color-images-mobile {
        display: none;
    }

    .glove-color-images {
        display: flex;
    }

    .main_image {
        max-width: 100%;
        /* Уменьшаем основное изображение */
        margin: 0 auto;
        /* Центрируем изображение */
    }
}

@media (max-width: 320px) and (max-height: 500px) {
    .color-images-mobile {
        display: none;
    }

    .glove-color-images {
        display: flex;
    }

    .main_image {
        max-width: 100%;
        /* Уменьшаем основное изображение */
        margin: 0 auto;
        /* Центрируем изображение */
    }
}

/* СВОДНЫЕ ДАННЫЕ ТОВАРА */
.product-summary {
    background: #f7f6f1;
    padding-top: 3.75rem;
}

/* Nav tabs */
.product-summary-nav {
    padding: 0;
    justify-content: center;
}

.product-summary-nav button {
    font-weight: 700;
    text-transform: uppercase;
}

.product-summary .nav-tabs .nav-link {
    color: var(--color-brand) !important;
}

.product-summary .nav-tabs .nav-link.active {
    color: var(--color-accent) !important;
}

/* Tab panes */
.product-summary-content {
    background: #ffffff;
}

/* DETAILS */
.row-product-summary-details {
    margin: 1.5rem 1rem 1rem 3rem;
}

.row-product-summary-details h5,
.specs-table-mainrow h5 {
    margin-top: 1.5rem;
    font-weight: 600;
    color: #1A1817;
}

.product-summary-details {
    padding-right: 1.5rem;
}

.product-summary-details ul {
    list-style-type: square;
    color: #939396;
    word-wrap: break-word;
    font-weight: 400;
}

.product-summary-details ul li::marker {
    color: var(--color-brand);
}

.list-areas-of-application,
.list-recommended-for {
    margin-top: 1.5rem;
}

.product-summary-applicns,
.product-summary-recomfr {
    color: #58585A !important;
    font-weight: 500 !important;
}


.product-detail-app-areas .app-area-icon--svg {
    display: inline;
    width: 1.5rem;
    height: auto;
    margin-right: 0.3125rem;
    vertical-align: middle;
}

.product-detail-app-areas .app-area-icon--fa {
    font-size: 1.0625rem;
}

.recommended_for_alter_svg {
    display: inline;
    width: 1.5rem;
    height: auto;
    margin-right: 0.3125rem;
    vertical-align: middle;
}

.recommended_for_font_awesom_icon {
    color: var(--color-brand);
    margin-right: 0.3125rem;
    font-size: 1.0625rem;
    vertical-align: middle;
}


/* SPECS */
.specs-table-mainrow {
    margin: 1.5rem 1rem 1rem 3rem;
}

.specs-table th {
    color: #58585A;
    font-weight: 600;
}

.specs-table td {
    color: #58585A;
    text-wrap: balance;
    word-wrap: break-word;
    font-weight: 400;
}

.app-protective-icon {
    color: var(--color-accent);
    margin-right: 0.3125rem;
}


/* FIT & SIZING */
.fit-and-sizing-row {
    margin: 1.5rem 1rem 1rem 3rem;
}

.sizes-table caption {
    color: #939396;
}

.sizes-table thead {
    vertical-align: middle;
}

.sizes-table th,
.sizes-table td {
    font-size: 1.25rem;
}

.color-coding-for-size {
    text-align: center;
}

/* центрируем блок в td */

.color-coding-for-size .size-pair {
    display: inline-grid;
    grid-template-columns: 1.25rem 2.25rem;
    /* 1-я — для кружка, 2-я — для числа */
    column-gap: 0.5rem;
    align-items: center;
    /* вертикальное центрирование внутри ряда */
    justify-content: center;
    /* центрируем всю сетку в td */
    width: fit-content;
    /* контейнер имеет строго ту ширину, что задали шаблоном */
}

.color-coding-for-size .rounded-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0;
    justify-self: center;
}

.color-coding-for-size .size-num {
    justify-self: center;
}

.fit-and-sizing-img {
    width: 55%;
}


/* BASE MATERIAL & COATING DESCRIPTION */
.base-material-description {
    margin-top: 3.75rem;
}

.expand-button {
    border: none;
    border-bottom-width: medium;
    border-bottom-style: none;
    border-bottom-color: currentcolor;
    background: none;
    width: 100%;
    text-align: center;
    padding-bottom: 1.875rem;
    border-bottom: 1.5px solid var(--color-brand);
}

.expand-button h5 {
    text-transform: uppercase;
    color: var(--color-brand);
    transition: color 0.3s ease;
}

.expand-button:hover {
    border-bottom: 1.5px solid #658c0d;
}

.expand-button:hover h5 {
    color: #658c0d;
}

.base-material-description .row {
    margin-top: 1.25rem;
}

.base-material-description ul {
    list-style-type: square;
    padding-left: 2rem;
}

.base-material-description h6 {
    color: red;
}

.coating-description-row {
    border-top: 1.5px solid #658c0d;
    margin-bottom: 1.25rem;
}

.coating-description-row h2 {
    margin-top: 1.25rem;
}


@media (max-width: 991.8px) {
    .fit-and-sizing-img {
        width: 100%;
    }

    .specs-table-mainrow,
    .fit-and-sizing-row {
        margin: 0;
    }

    .specs-table-mainrow .row,
    .fit-and-sizing-information-row {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 767px) and (orientation: landscape) {
    .fit-and-sizing-img {
        width: 55%;
    }

}

@media (max-width: 767px) {
    .row-product-summary-details {
        margin-left: 1rem;
        text-wrap: balance;
    }

    .product-summary-details {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 478px) {
    .product-summary-nav button {
        font-size: 0.75rem;
    }
}

@media (max-width: 388px) {
    .product-summary-nav .nav-item .nav-link {
        padding: 0.25rem 0.5rem;
    }

}

@media (max-width: 320px) {
    .product-summary-nav button {
        font-size: 0.65625rem;
    }

    .specs-table th {
        font-size: 0.875rem;
    }

    .specs-table td {
        font-size: 0.75rem;
    }
}


/* СВОДНЫЙ ПРОФИЛЬ МОДЕЛИ ПЕРЧАТОК */
.product-summary-profile {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.product-summary-profile-wrap {
    background: #fff;
    border: 1px solid #ece8df;
    padding: 3rem;
}

.product-summary-profile-head {
    margin-bottom: 1.5rem;
}

.product-summary-profile-head h3 {
    margin: 0;
    color: #2d2d2f;
}

.product-summary-profile-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-summary-profile-row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr auto;
    align-items: center;
    gap: 1rem;
}

.product-summary-profile-label {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    width: fit-content;
    cursor: help;
    border-radius: 0.375rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-summary-profile-label:hover {
    opacity: 0.85;
}

.product-summary-profile-label:focus-visible {
    outline: 2px solid rgba(132, 170, 50, 0.35);
    outline-offset: 3px;
}

.product-summary-profile-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

.product-summary-profile-title {
    color: #2d2d2f;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 0.2rem;
    text-decoration-color: rgba(45, 45, 47, 0.35);
}

.product-summary-profile-bar-wrap {
    min-width: 0;
}

.product-summary-profile-bar-bg {
    width: 100%;
    height: 1.1rem;
    background: #EAEAEA;
    border-radius: 999px;
    overflow: hidden;
}

.product-summary-profile-bar-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 999px;
    transition: width 0.5s ease;
}

.product-summary-profile-value {
    color: #58585A;
    font-size: 0.95rem;
    white-space: nowrap;
    text-align: right;
}

@media (max-width: 767px) {
    .product-summary-profile {
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .product-summary-profile-wrap {
        padding: 1rem;
    }

    .product-summary-profile-head {
        margin-bottom: 1.25rem;
    }

    .product-summary-profile-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .product-summary-profile-value {
        text-align: left;
        font-size: 0.9rem;
        margin-left: 1.9rem;
    }

    .product-summary-profile-bar-wrap {
        margin-left: 1.9rem;
    }
}

.bordrline-bottom-similaritms {
    border-bottom: 2px solid var(--color-accent);
}