/* =========================================================
   PRODUCT DETAIL
   ========================================================= */


/* =========================================================
   BREADCRUMBS / BACK LINK
   ========================================================= */

.glove-detail-breadcrumb {
    position: static;
    top: var(--content-top-mobile);
    z-index: 1020;

    padding-top: 0.75rem;
    padding-left: 1.5625rem;

    background-color: #f8f8f8;

    font-size: 0.875rem;
    line-height: 1.125rem;
}

.glove-detail-breadcrumb ol {
    margin-bottom: 0;
}

.back-link-mobile {
    display: block;

    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;
}

.back-link-label {
    display: block;

    font-size: 0.95rem;
    line-height: 1.1;
}

.back-link-product {
    display: block;

    margin-top: 0.15rem;

    color: var(--color-accent);

    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.1;

    white-space: normal;
    overflow-wrap: anywhere;
}

.glove-detail-breadcrumb .breadcrumb-item {
    color: var(--color-brand);
    font-weight: 500;
}

.glove-detail-breadcrumb .breadcrumb-item.active {
    color: var(--color-accent);
    font-weight: 600;
}


/* =========================================================
   HERO
   ========================================================= */

.bg-glove-detail {
    background: #f7f6f1;
}

.glove-detail-description-block {
    padding-bottom: 0;
}

.left-description-block-col,
.right-description-block-col {
    padding: 1.5rem;
}

.right-description-block-col {
    display: flex;
    align-items: flex-start;
}

.product-main-info {
    width: 100%;
}


/* =========================================================
   PRODUCT GALLERY
   ========================================================= */

.product-gallery {
    width: 100%;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;
}

.gallery-thumbs {
    width: 100%;
}


/* Before Swiper initialization */

.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;
}


/* After Swiper initialization */

.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;
}


/* Thumbnails */

.gallery-thumbs .swiper-slide {
    aspect-ratio: 1 / 1;

    opacity: 0.6;

    cursor: pointer;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.gallery-thumbs img {
    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    padding: 0;

    object-fit: cover;
}


/* Navigation */

.gallery-main .gallery-nav {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.gallery-main .swiper-button-prev,
.gallery-main .swiper-button-next {
    width: 44px;
    height: 44px;
}


/* =========================================================
   PRODUCT TITLE / SHORT DESCRIPTION
   ========================================================= */

.glove-detail-prodname {
    margin: 0;

    color: #1f1f1f;

    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;

    text-wrap: balance;
}

.glove-detail-shrtdscrptn {
    margin-top: 1rem;
    margin-bottom: 0;

    color: #58585A;

    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
}


/* =========================================================
   ORDER / COMPARE
   ========================================================= */

.product-action-panel {
    width: 100%;
    max-width: 100%;

    margin-top: 1.5rem;
}

.prod-detail-order-form .order-form-card {
    padding: 1rem 1rem 1.125rem;

    border: 1px solid #d9d9d9;
    border-radius: 0.5rem;

    background: #f8f6f1;

    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
}

.prod-detail-order-form .order-form-title {
    margin: 0 0 0.875rem;

    color: #1f1f1f;

    font-size: 1rem;
    font-weight: 600;
}

.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;

    color: #3f3f3f;

    font-size: 0.875rem;
    font-weight: 500;
}

.prod-detail-order-form .order-form-actions {
    margin-top: 1rem;
}

.prod-detail-order-form .order-submit-btn {
    width: 100%;

    padding: 0.55rem 1rem;

    font-weight: 600;
}

.prod-detail-order-form .order-form-note {
    margin-top: 0.75rem;

    color: #6c757d;

    font-size: 0.875rem;
}

.detail-compare-form {
    margin-top: 0.75rem;
}

.detail-compare-btn {
    width: 100%;

    font-weight: 500;
}


/* =========================================================
   PROTECTIVE PICTOGRAMS
   ========================================================= */

.glove-pictograms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 0.5rem;

    margin-top: 1.5rem;
    margin-bottom: 0;
}

.glove-detail-pictogram {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    cursor: help;
}

.glove-detail-pictogram img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
}


/* =========================================================
   DOCUMENTS / ORIGIN
   ========================================================= */

.glove-detail-documents {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    gap: 1rem 2rem;

    max-width: 62rem;

    margin: 2rem auto 0;
    padding: 1.5rem 0 0;

    border-top: 1px solid #ddd9cf;
}

.glove-detail-document-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
}

.glove-detail-document-link {
    display: inline-flex;
    align-items: center;

    text-decoration: none;
}

.glove-detail-document-image {
    display: block;

    width: auto;
    height: 38px;

    object-fit: contain;
}


/* =========================================================
   FULL DESCRIPTION
   ========================================================= */

.glove-detail-full-description {
    max-width: 62rem;

    margin: 3rem auto 0;
    padding-bottom: 3rem;
}

.glove-detail-section-title {
    margin: 0 0 1rem;

    color: #303336;

    font-size: 1.3rem;
    font-weight: 700;
}

.glove-extended-description {
    color: #58585A;

    font-size: 1rem;
    line-height: 1.7;
}

.glove-extended-description p {
    margin-bottom: 1rem;
}

.glove-extended-description p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   PRODUCT SUMMARY
   ========================================================= */

.product-summary {
    padding-top: 3.75rem;

    background: #f7f6f1;
}


/* =========================================================
   SUMMARY NAV
   ========================================================= */

.product-summary-nav {
    justify-content: center;

    padding: 0;
}

.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 CONTENT
   ========================================================= */

.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;

    color: #1A1817;

    font-weight: 600;
}

.product-summary-details {
    padding-right: 1.5rem;
}

.product-summary-details ul {
    color: #939396;

    list-style-type: square;

    font-weight: 400;

    overflow-wrap: break-word;
}

.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;
}


/* Application icons */

.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;
}


/* Recommendation icons */

.recommended_for_alter_svg {
    display: inline;

    width: 1.5rem;
    height: auto;

    margin-right: 0.3125rem;

    vertical-align: middle;
}

.recommended_for_font_awesom_icon {
    margin-right: 0.3125rem;

    color: var(--color-brand);

    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;

    font-weight: 400;

    text-wrap: balance;
    overflow-wrap: break-word;
}

/*
   Цвет .app-protective-icon должен задаваться в общем
   файле иконок. Здесь оставляем только локальный отступ
   для таблицы характеристик.
*/
.specs-table .app-protective-icon {
    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;
}

.color-coding-for-size .size-pair {
    display: inline-grid;

    grid-template-columns: 1.25rem 2.25rem;

    align-items: center;
    justify-content: center;

    column-gap: 0.5rem;

    width: fit-content;
}

.color-coding-for-size .rounded-circle {
    width: 15px;
    height: 15px;

    margin: 0;

    border-radius: 50%;

    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;
}

.product-detail-expand-button {
    width: 100%;

    padding: 0 0 1.875rem;

    border: 0;
    border-bottom: 1.5px solid var(--color-brand);

    background: none;

    text-align: center;
}

.product-detail-expand-button__title {
    color: var(--color-brand);

    font-size: 1.25rem;
    font-weight: 600;

    text-transform: uppercase;

    transition: color 0.3s ease;
}

.product-detail-expand-button:hover {
    border-bottom-color: #658c0d;
}

.product-detail-expand-button:hover .product-detail-expand-button__title {
    color: #658c0d;
}

.base-material-description .row {
    margin-top: 1.25rem;
}

.base-material-description ul {
    padding-left: 2rem;

    list-style-type: square;
}

.product-detail-material-warning {
    margin-bottom: 1.75rem;

    color: red;
}

.product-detail-coating-description {
    margin-bottom: 1.25rem;

    border-top: 1.5px solid #658c0d;
}

.product-detail-coating-description .product-detail-material-warning {
    margin-top: 1.25rem;
}


/* =========================================================
   PRODUCT SUMMARY PROFILE
   ========================================================= */

.product-summary-profile {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.product-summary-profile-wrap {
    padding: 3rem;

    border: 1px solid #ece8df;

    background: #fff;
}

.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;

    border-radius: 0.375rem;

    cursor: help;

    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 {
    flex: 0 0 20px;

    width: 20px;
    height: 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-decoration-color: rgba(45, 45, 47, 0.35);
    text-underline-offset: 0.2rem;
}

.product-summary-profile-bar-wrap {
    min-width: 0;
}

.product-summary-profile-bar-bg {
    width: 100%;
    height: 1.1rem;

    overflow: hidden;

    border-radius: 999px;

    background: #EAEAEA;
}

.product-summary-profile-bar-fill {
    height: 100%;

    border-radius: 999px;

    background: var(--color-accent);

    transition: width 0.5s ease;
}

.product-summary-profile-value {
    color: #58585A;

    font-size: 0.95rem;

    text-align: right;

    white-space: nowrap;
}


/* =========================================================
   PRODUCT OFFERING DIVIDER
   ========================================================= */

.bordrline-bottom-similaritms {
    border-bottom: 2px solid var(--color-accent);
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 992px) {

    .back-link-mobile {
        min-height: 0;

        padding: 0;

        font-size: 0.875rem;
    }

    .back-link-product {
        display: none;
    }

    .glove-detail-description-block {
        padding-top: 1rem;
    }

    .gallery-main,
    .gallery-thumbs {
        width: 90%;

        margin-inline: auto;
    }

}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    .gallery-main,
    .gallery-thumbs {
        width: 85%;
    }

}


/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@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;
    }

    .glove-detail-documents {
        gap: 1rem 1.5rem;
    }

    .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-right: 0;
        padding-left: 0;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .left-description-block-col,
    .right-description-block-col {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    .right-description-block-col {
        margin-top: 0.75rem;
    }

    .glove-detail-prodname {
        font-size: 1.35rem;
    }

    .glove-detail-shrtdscrptn {
        font-size: 0.95rem;
    }


    /* Order */

    .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%;
    }


    /* Pictograms */

    .glove-pictograms {
        margin-top: 1.25rem;
    }


    /* Documents */

    .glove-detail-documents {
        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 1rem;

        margin-top: 1.5rem;
        padding: 1.25rem 0.5rem 0;
    }

    .glove-detail-document-item {
        justify-content: flex-start;
    }

    .glove-detail-document-image {
        max-width: 100%;
        height: 34px;
    }


    /* Description */

    .glove-detail-full-description {
        margin-top: 2rem;

        padding-right: 0.5rem;
        padding-bottom: 2.25rem;
        padding-left: 0.5rem;
    }

    .glove-detail-section-title {
        font-size: 1.15rem;
    }

    .glove-extended-description {
        font-size: 0.95rem;
        line-height: 1.65;
    }


    /* Summary details */

    .row-product-summary-details {
        margin-left: 1rem;

        text-wrap: balance;
    }

    .product-summary-details {
        padding-right: 0;
        padding-left: 0;
    }


    /* Summary profile */

    .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 {
        margin-left: 1.9rem;

        font-size: 0.9rem;
        text-align: left;
    }

    .product-summary-profile-bar-wrap {
        margin-left: 1.9rem;
    }

}


/* =========================================================
   MOBILE LANDSCAPE
   ========================================================= */

@media (max-width: 767.98px) and (orientation: landscape) {

    .glove-detail-description-block .description-block-row {
        flex-direction: column;
    }

    .glove-detail-description-block .description-block-row>.col {
        width: 100%;
    }

    .gallery-main {
        max-width: 50%;

        margin-inline: auto;
    }

    .gallery-thumbs {
        max-width: 50%;

        margin-inline: auto;
    }

    .fit-and-sizing-img {
        width: 55%;
    }

}


/* =========================================================
   NARROW MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .glove-detail-documents {
        grid-template-columns: 1fr 1fr;
    }

    .glove-detail-document-image {
        height: 32px;
    }

}


/* =========================================================
   VERY NARROW
   ========================================================= */

@media (max-width: 388px) {

    .glove-detail-documents {
        grid-template-columns: 1fr;

        width: fit-content;

        margin-inline: auto;
    }

    .glove-detail-document-item {
        width: 13.5rem;

        justify-content: flex-start;
    }

}

/* =========================================================
   SUMMARY NAV — MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .product-summary-nav {
        flex-wrap: nowrap;
        width: 100%;
    }

    .product-summary-nav .nav-item {
        flex: 0 1 auto;
        min-width: 0;
    }

    .product-summary-nav .nav-link {
        padding: 0.4rem 0.55rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

}

@media (max-width: 360px) {

    .product-summary-nav .nav-link {
        padding-right: 0.4rem;
        padding-left: 0.4rem;
        font-size: 0.7rem;
    }

}

@media (max-width: 320px) {

    .product-summary-nav .nav-link {
        padding-right: 0.3rem;
        padding-left: 0.3rem;
        font-size: 0.65625rem;
    }

    .specs-table th {
        font-size: 0.875rem;
    }

    .specs-table td {
        font-size: 0.75rem;
    }

}