.selection-page-header {
    grid-area: head;
    display: grid;
    max-width: 100%;
    background: var(--color-bg-box);
    border: var(--color-box-border);
    box-shadow: var(--box-shadow-externa);
    width: -webkit-fill-available;
    padding: 5px;
    border-radius: 7px;
    grid-template-columns: 266px auto;
    gap: 10px;
    grid-template-areas: "img text";
}

.selection-page-img img {
    width: 256px;
    height: 115px;
    border-radius: 10px;
    box-shadow: var(--box-shadow-interna);
    background-color: var(--color-bg-box-secondary-1);
    padding: 5px;
    float: left;
}

.selection-page-header-title {
    display: grid;
    grid-template-rows: auto auto;
    gap: 10px;
    grid-template-areas:
        "title"
        "descr";
}

.selection-page-title {
    grid-area: title;
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
    color: var(--color-text-main);
    padding: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.selection-page-descr {
    grid-area: descr;
    font-weight: 500;
    font-size: 14px;
    line-height: 13px;
    color: var(--color-text-main);
    padding: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.selection-page-body {
    display: grid;
    gap: 10px;
    grid-template-columns: 273px auto;
    grid-template-areas:
    "head head"
    "left right"
    "S S";
    }
.selection-page-img {
    position: relative;
}
.selection-page-left {
    position: relative;
    grid-area: left;
    display: flex;
    gap: 10px;
    max-width: 100%;
    flex-direction: column;
}

.selection-page-right {
    grid-area: right;
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.selection-page-sort-checkbox {
    display: flex;
    width: auto;
    background: var(--color-bg-box);
    box-shadow: var(--box-shadow-externa);
    border-radius: 8px;
    flex-direction: column;
    padding: 5px;
}
/* список товаров  */
.selection-page-product-list {
    display: flex;
    width: auto;
    background: var(--color-bg-box);
    box-shadow: var(--box-shadow-externa);
    border-radius: 8px;
    flex-direction: column;
    padding: 5px;
}
.selection-page-product-list-title {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.selection-page-product-list-title span {
    color: var(--color-text-main);
    font-weight: 600;
}
.selection-page-product-list-body {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    box-shadow: var(--box-shadow-interna);
    background: var(--color-bg-box-secondary);
    border-radius: 8px;
    padding: 5px;
    gap: 5px;
}

.selection-page-product-list-item a {
    display: flex;
    max-width: 100%;
    border-radius: 6px;
    padding: 5px;
    color: var(--color-text-main);
    font-weight: 600;
    gap: 5px;
    align-items: center;
}
.selection-page-product-list-item a:hover {
    background: #03a2ff;
    color: #fff;
}
span.selection-page-list-title-icon {
    border-radius: 6px;
    height: 29px;
    justify-content: center;
    width: 29px;
    display: flex;
    align-items: center;
    margin-right: 8px;
    color: rgb(239, 248, 253);
    text-align: center;
    box-sizing: border-box;
    background-color: var(--color-bg-box-subsecondary);
    border: var(--color-box-border-subsecondary);
    border-top-color: var(--color-box-border-top-subsecondary);
    box-shadow: var(--box-shadow-externa-subsecondary);
    background-image: var(--bg-image-gradient);
}

/* конец */


.selection-page-sort-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 5px;
}

span.selection-page-sort-icon {
    border-radius: 6px;
    height: 29px;
    justify-content: center;
    width: 29px;
    display: flex;
    align-items: center;
    margin-right: 8px;
    color: rgb(239, 248, 253);
    text-align: center;
    box-sizing: border-box;
    background-color: var(--color-bg-box-subsecondary);
    border: var(--color-box-border-subsecondary);
    border-top-color: var(--color-box-border-top-subsecondary);
    box-shadow: var(--box-shadow-externa-subsecondary);
    background-image: var(--bg-image-gradient);
}


span.selection-page-sort-title {
    display: flex;
    color: var(--color-text-main);
    font-weight: 600;
}

.product-page-right {
    position: relative;
    display: flex;
    max-width: 100%;
    width: 100%;
    min-height: 800px;
    flex-wrap: wrap;
    justify-content: flex-end;
    height: fit-content;
}

.button-selection-container {
    display: none;
}
button.show-selection-btn {
    font-weight: 600;
    display: flex;
    gap: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    font-size: 16px;
    background: #ffffff00;
    border: 0px solid #f0f0f000;
    border-radius: 8px;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0px 5px 0px 5px;
}
button.show-selection-btn:hover {
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
    position: relative;
    border-radius: 8px;
    box-shadow: var(--box-shadow-interna);
}
button.show-selection-btn:focus {
    box-shadow: var(--box-shadow-interna);
    background-color: var(--color-bg-box-secondary-1);
}
@media (max-width: 1000px) {
    .button-selection-container {
        grid-area: list;
        display: flex;
        background: var(--color-bg-box);
        box-shadow: var(--box-shadow-externa);
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        width: auto;
        height: 44px;
    }
    .selection-page-left {
        display: grid;
        grid-template-areas: 
        "checkbox sort list";
        grid-template-rows: auto;
        grid-template-columns: 140px 171px auto;
        width: 100%;
    }
    .selection-page-product-list {
        position: absolute;
        max-width: 100%;
        top: 54px;
        display: none;
    }
    .selection-page-product-list-body {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .selection-page-product-list-item {
        width: calc(50% - 5px);
    }
    .selection-page-sort {
        display: flex;
        justify-content: space-between;
    }

    
    section.pagination-selection-page {
        margin: 12px 0px 2px 0px;
    }
    .selection-page-sort-header {
        margin-bottom: 5px;
    }

    .selection-page-right {
        max-width: 100%;
    }

    .selection-page-body {
        display: grid;
        flex-wrap: nowrap;
        gap: 10px;
        grid-template-columns: auto;
        grid-template-areas:
            "head "
            "left "
            "right"
            "S";
    }

    .selectlink {
        width: 100%;
    }


    .selection-page-sort-checkbox {
        width: 100%;
    }
    .product-page-right {
        max-width: 100%;
    }
    
}

@media (max-width: 600px) {
    .selection-page-header {
        position: relative;
        grid-template-columns: auto;
        gap: 0px;
        grid-template-areas:
        "img"
        "title"
        "descr";
    }
    .selection-page-header-title {
        -webkit-line-clamp: 4;
        padding: 0px 5px 0px 5px;
        position: absolute;
        bottom: 20px;
        right: 10px;
        left: 10px;
        gap: 0px;
    }
    .selection-page-img img {
        width: calc(100% - 10px);
        height: auto;
        float: none;
    }

    .selection-page-right {
        justify-content: center;
    }

    .selection-page-title {
        grid-area: title;
        line-height: 28px;
        padding: 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-size: 19px;
        font-weight: bold;
        letter-spacing: 0.1ch;
        color: white;
        text-shadow: 0 1px 3px rgb(0 0 0 / 50%);
        text-transform: uppercase;
    }

    .selection-page-descr {
        padding: 0px 5px 0px 5px;
        font-weight: bold;
        letter-spacing: 0.1ch;
        color: white;
        text-shadow: 0 1px 3px rgb(0 0 0 / 50%);
        text-transform: uppercase;
        font-size: 12px;
    }
    .gradient {
        position: absolute;
        top: 5px;
        right: 5px;
        left: 5px;
        bottom: 5px;
        height: calc(100% - 12px);
        width: calc(100% - 10px);
        background: linear-gradient(rgba(0, 0, 0, 0), rgb(3 45 74) 100%);
        border-radius: 0px 0px 8px 8px;
    }
}

@media (max-width: 516px) {
    .selection-page-left {
        grid-template-areas: 
        "list list"
        "checkbox sort";
        grid-template-columns: 140px auto;
    }
    .button-selection-container {
        max-width: 100%;
        width: 100%;
    }
}
#overlay-cat.active {
    display: block;
}
#overlay-cat {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

label.selections_categories_label {
    display: grid;
    margin: 0;
    grid-template-columns: 18px auto;
    gap: 6px;
    padding: 0px 3px 0px 3px;
    font-size: 16px;
    line-height: 21px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
    align-items: center;
}

input[class='catalog_categories'] {
    width: 18px;
    height: 18px;
    cursor: pointer;
  }
  
  input[class='catalog_categories']:hover {
    width: 19px;
    height: 19px;
  }

  .seo_description {
    grid-area: S;
    padding: 10px;
    line-height: normal;
    background: var(--color-bg-box);
    box-shadow: var(--box-shadow-externa);
    border-radius: 8px;
}