﻿:root {
    --grey: #808080; /*серый*/
    --border: #17a2b8;
    --lightGrey: rgb(249, 249, 249);
}

.flex-col {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%
}

.flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.flex-center {
    align-items: center;
    justify-content: center;
}

.flex-top {
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
    align-self: center;
}

.conditions-panel {
    width: 320px;
    font-size: small;
    background-color: var(--lightGrey);
    margin: 0px 20px
}
.conditions-header {
    width: 100%;
    padding: 10px;
    font-size: 1.4em;
    margin: 4px 10px;
    color: var(--border)
}


@media screen and (max-width: 1000px) {
    .conditions-panel {
        width: 100%;
        padding-bottom: 20px;
    }
}

.search-field-block {
    width: 80%;
    display: flex;
    margin-top: 20px;
    flex-direction: row;
    flex: 90% 10%;
    margin-bottom: 20px;
}

.search-field-btn {
    background: #FFFFFF;
    border: 2px solid var(--border);
    color: var(--border);
    /*#3187D6*/
    height: 40px;
    width: 40px;
    border-radius: 0px 4px 4px 0px;
    border-left-width: 0px;
    cursor: pointer;
    font-size: 1.4em;
}

.search-field {
    flex-grow: 1;
    border-width: 2px;
    color: var(--border);
    padding-left: 4px;
    background-color: transparent;
    background-image: none;
    border-radius: 4px 0px 0px 4px;
    border-color: var(--border);
}

    .search-field:hover {
        border-color: var(--border);
    }

    .search-field:focus, .search-field.focus {
    }

.provider-container {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.provider-right {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    flex-grow: 1;
    margin: 0px 20px;
    max-width:1000px;
}

.provider-info {
    min-width: 320px;
    max-width: 740px;
    flex-grow: 1;
}

.provider-info-val {
    color: var(--border);
}

@media screen and (max-width: 1000px) {
    .provider-info {
        text-align: center;
        justify-content: center;
        align-items: center;
        align-content: center;
    }

    .provider-right {
        display: flex;
        flex-direction: column;
        margin: 10px 20px;
        flex-grow: 1;
        width: 100%;
    }
}

.pager-link {
    cursor: pointer;
    color: var(--border);
    font-size: 1.5em;
    padding: 2px 6px;
    font-weight: normal;
}

.pager-btn {
    border-radius: 4px;
    background-color: var(--lightGrey);
    cursor: pointer;
    font-size: 1.5em;
    border: 1px solid var(--border);
}

.pager-btn-active {
    cursor: pointer;
    /*background-color: var(--border);*/
    text-decoration: none;
    color: #fefbfb;
    font-size: 1.5em;
    font-weight: bold;
}

.pager-btn-edge {
    width: 100%;
    padding: 4px 10px;
    font-weight: bolder;
    display: inline-flex;
    flex: 30% 40% 30%;
    align-items: center;
    justify-content: center;
    align-content:center;
    vertical-align:central;
}


.goods-container {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    flex-wrap: wrap;
    padding: 20px;
    padding-bottom: 40px;
    justify-content: center;
}

.goods-item {
    flex-grow: 1;
    flex-direction: row;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: flex-start;
    background-color: transparent;
    min-width: 600px;
    padding: 0px;
    height: 100%;
    border-bottom: 1px solid #b0aeae;
}

.goods-item:hover {
    /*opacity: 1;*/
}

.goods-block-left {
    flex-direction: column;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    vertical-align: top;
    width: 200px;
    height: auto;
    padding: 20px;
}

.goods-block-right {
    flex-direction: column;
    display: flex;
    width: 100%;
    max-width: 400px;
    margin: 10px 0px;
    text-align: left;
}

.goods-image {
    max-width: 180px;
    height: auto;
    width: auto;
    cursor: pointer;
    align-items: center;
    align-content: center;
    justify-content: center;
}
.goods-image-hover {
    /*opacity: 0.9;*/
    display:block;
}

.goods-header {
    font-size: 1.2em;
    margin-bottom: 10px;
    overflow-wrap: break-word;
}
.goods-property {
    font-size: 1em;
    color:gray;
}

.goods-image-hover {
    z-index: 100;
    display:none;
    width:100%;
    /*opacity: 0;*/
    /*position: absolute;
    top:100px;
    left:100px;*/
    /*padding: 10px;
    transition: .5s ease;
    transform: translate(24%, -14%);
    -ms-transform: translate(24%, -14%);
    -webkit-filter: drop-shadow(16px 16px 10px rgba(0,0,0,0.9));
    filter: drop-shadow(16px 16px 10px rgba(0,0,0,0.9));*/
}


@media screen and (max-width: 600px) {
    .goods-item {
        flex-direction: column;
        /*width:100%;*/
        min-width: 100%;
    }

    .goods-block-right {
        text-align: center;
        justify-content: center;
        align-items: center;
        align-content: center;
    }

    .goods-block-left {
        flex-direction: column;
        display: flex;
        align-items: center;
        width: 100%;
        padding: 20px;
    }

    .goods-image {
        max-width: 90%;
        height: auto;
        width: auto;
    }
}

.check-custom {
    display: none;
}

.check-custom-label {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    margin: 5px;
    cursor: pointer;
    color: var(--grey);
}

.check-custom + .check-custom-label:before {
    content: "";
    background: #fff;
    border-radius: 3px;
    border: 2px solid var(--grey);
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    padding: 2px;
    margin-right: 10px;
    text-align: center;
}

.check-custom:checked + .check-custom-label:after {
    content: "";
    padding: 2px;
    text-align: center;
    position: absolute;
    width: 1px;
    height: 14px;
    border: 2px solid var(--grey);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    top: 2px;
    left: 8px;
}

.dropdown {
    position: relative;   
    height:36px;
    border-radius:4px;
    background: rgba(235, 206, 159, 0.5);
    background-color: #e8f3f3; 
    background-image: linear-gradient(to bottom, #ebce9f, #F4F4F4); 
    outline: none;
    box-shadow: none;
    cursor: pointer;
    background-image: -webkit-linear-gradient(top, lightgray, #fff); /* For Chrome and Safari */
    background-image: -moz-linear-gradient(top, lightgray, #fff); /* For old Firefox (3.6 to 15) */
    background-image: -ms-linear-gradient(top, lightgray, #fff);
    background-image: -o-linear-gradient(top, lightgray, #fff);
    -moz-appearance: none; 
    -webkit-appearance: none;
    appearance: none;

    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'), linear-gradient(to bottom, lightgray 0%,#fff 100%);
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
}
.dropdown-item{

}

.basket-green {
    color: limegreen;
    border-color: limegreen;
}
.basket-green:hover {
    background-color: limegreen;
}

.images-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    
}
.images-modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    height:80%;
    border-radius: 10px;
    display:flex;
    flex-direction:column;
}
.images-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    align-self:flex-end;
}
.images-modal-close:hover,
.images-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.images-main {
    max-width: 100%;
    max-height: 80%;
    width: auto;
    height: auto;
    align-self: center; /*горизонт*/
    justify-content: flex-start; /*вертикаль*/
}

.images-thumbnail {
    max-width: 120px;
    width: auto;
    height: auto;
    align-self: center;
    justify-content: center;
    margin:10px 10px;
    cursor:pointer;
}
@media screen and (max-width: 600px){
    .images-modal{
        margin-top:20%;
    }
}