
.page-wrap{
    text-align: center;
    min-height: calc(100vh - 130px);
}

.catalog-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;

    margin-left: 5px;
    margin-bottom: 1rem;
    padding-bottom: .75rem;

    border-bottom: 1px solid #ddd;
}

.catalog-count {
    color: var(--text-dark);
    font-size: 1.2rem;
}


/* OPTIONS */

.catalog-options {
    position: relative;
}

.catalog-options__trigger {
    display: inline-flex;
    align-items: center;
    gap: .45rem;

    min-height: 38px;
    padding: .45rem .75rem;

    color: #504b46;
    font: inherit;
    font-size: .85rem;
    font-weight: 600;

    background: #f1f1f1;
    border: 1px solid #bbb6b0;
    border-radius: 5px;

    cursor: pointer;
}

.catalog-options__trigger:hover {
    background: #f3f2f0;
    border-color: #8e8983;
}


/* POPOVER */

.catalog-options__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 5;
    z-index: 100;

    width: min(320px, calc(100vw - 2rem));
    padding: 1rem;

    background: #fff;
    border: 1px solid #ccc8c3;
    border-radius: 7px;

    box-shadow:
            0 6px 20px rgba(0, 0, 0, .14);
}

.catalog-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.catalog-option + .catalog-option {
    margin-top: 1rem;
    padding-top: 1rem;

    border-top: 1px solid #e3e0dc;
}

.catalog-option strong {
    display: block;

    color: #44403c;
    font-size: .86rem;
}

.catalog-option span {
    display: block;
    margin-top: .2rem;

    color: #77716b;
    font-size: .75rem;
    line-height: 1.35;
}


/* SORT */

.catalog-option--sort {
    display: block;
}

.catalog-option--sort label {
    display: block;
    margin-bottom: .4rem;

    color: #44403c;
    font-size: .83rem;
    font-weight: 600;
}

.catalog-option--sort select {
    width: 100%;
    min-height: 40px;
    padding: .4rem .6rem;

    color: #44403c;
    font: inherit;
    font-size: .85rem;

    background: #fff;
    border: 1px solid #bbb6b0;
    border-radius: 5px;
}


/* SWITCH */

.switch {
    position: relative;
    flex: 0 0 auto;

    width: 42px;
    height: 24px;
}

.switch input {
    position: absolute;
    opacity: 0;
}

.switch__slider {
    position: absolute;
    inset: 0;

    background: #bbb;
    border-radius: 999px;

    cursor: pointer;

    transition: background-color .15s ease;
}

.switch__slider::before {
    content: "";

    position: absolute;
    top: 3px;
    left: 3px;

    width: 18px;
    height: 18px;

    background: #fff;
    border-radius: 50%;

    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);

    transition: transform .15s ease;
}

.switch input:checked + .switch__slider {
    background: #55514d;
}

.switch input:checked + .switch__slider::before {
    transform: translateX(18px);
}

.switch input:focus-visible + .switch__slider {
    outline: 3px solid rgba(80, 80, 80, .25);
    outline-offset: 2px;
}
.catalog-action {
    width: 64px;
    min-height: 70px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    font-size: .8rem;
    cursor: pointer;
    margin: 0 24px;
}

.catalog-action img {
    width: 48px;
    height: 48px;
}

.catalog-select-action {
    position: relative;
}

.catalog-select-action select {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.catalog-title{
    text-align: center;
    h1{
        font-size: 2em;
    }
    h4{
        font-size: 1em;
    }
}

.item-list{
    font-size: 11px;
    display: inline-block;
    margin: 5px;
    vertical-align: middle;
}

.item-border{
    display: inline-block;
    /*background: #EEEEEE;*/
    padding: 10px;
    position: relative;
    background: #fff;
    border: 1px solid var(--bgd-medium);
    border-radius: 7px;

    transition:
            border-color .15s ease,
            box-shadow .15s ease,
            transform .15s ease;
}

.item-wrap{
    width: 200px;
    height: 340px;
    padding: 5px;
    /*background-color: var(--bgd-light);*/
}

.image-button{
    width:100% !important;
}

.items{
    display: inline-block;
    width: 100%;
    max-width: 190px;
    min-width: 120px;
    height: 190px;
    /*border: 2px var(--bgd-contrast-dark) solid;*/
    /*box-shadow: 5px 5px 20px var(--shadow-dark);*/
    /*border-radius: 5px;*/
    position: relative;
    background-color: #f4f4f4;
    vertical-align: middle;
    color: var(--bgd-medium);
    a{
        color: var(--text-link-medium);
    }
}

.items-stock{
    display: inline-block;
    width: 100%;
    max-width: 190px;
    min-width: 120px;
    height: 190px;
    border: 2px var(--important) solid;
    border-radius: 10px;
    position: relative;
    background-color: #fff;
    vertical-align: middle;
}

.item-img{
    display: inline-block;
    width: 100%;
    height: 100%;
    max-height: 140px;
    line-height: 100px;
    max-width: 140px;
    padding: 5px;
    margin-bottom: 5px;
}

.item-text{
    margin-top: 45%;
}

.item-number{
    font-size: 1.5em;
    font-weight: 700;

    a{
        color:var(--text-medium);
        &:hover{
            text-decoration:var(--text-medium) underline;
        }
    }
}

.item-desc{
    color: var(--text-medium);
}
.item-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;

    margin-top: auto;
    padding-top: 12px;
}

.item-card__details,
.item-card__order {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 6px 8px;

    font-size: .82rem;
    font-weight: 600;

    text-decoration: none;

    border-radius: 5px;

    transition:
            background-color .15s ease,
            color .15s ease,
            border-color .15s ease;
}
.item-card__details {
    color: #4d4944;

    background: #fff;
    border: 1px solid #aaa49d;
}

.item-card__details:hover {
    color: #262422;

    background: #f1efec;
    border-color: #77716b;
}


/* ORDER */

.item-card__order {
    color: #fff;

    background: #4a4743;
    border: 1px solid #4a4743;
}

.item-card__order:hover {
    background: #292725;
    border-color: #292725;
}
.item-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;

    margin-top: 10px;
}

.item-card__price-value {
    color: #383532;

    font-size: 1rem;
    font-weight: 500;
}

.item-card__price-unit {
    color: #77716b;

    font-size: .73rem;
}
.svgs{
    max-width: 140px;
    max-height: 140px;
    vertical-align: middle;
    filter: grayscale(50%);
}

.no-matches-found{
    font-size: 1.5em;
    margin-top: 100px;
}


#filter-box{
    display: none;
}

#width-list{
    display:none;
}

.favorite-button{
    width: 50px;
    height: 50px;
    border: solid 1px var(--text-link-medium);
    background-color: var(--bgd-light);
    border-radius: 50%;
    &:hover{
        background-color: var(--bgd-medium);
    }
}

.favorite-icon{
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

#btn-top-of-page{
    display: none;
    position: fixed;
    bottom: 70px;
    right: 20px;
    z-index: 9;
}

#compareMenu{
    background-color: #EEEEEE;
    display: none;
    position: fixed;
    bottom:5px;
//width: 100%;
    padding: 5px;
    z-index: 9;
}

#compareItems{
    display: flex;
    height: 75px;
//width: 100%;
    text-align: center;
}
.compare-item{
    flex:1;
    display: none;
    position: relative;
    height:80px;
    width: 80px;
    border: 2px darkgray inset;
    border-radius: 5px;
    margin-left: 5px;
    background-color: #FFF;
    padding:3px;
}

.xOut{
    background-color: #8C2F39;
    color: var(--bgd-bright);
    float:right;
    margin-right: 2px;
    margin-top: 2px;
    width: 12px;
    height: 12px;
    font-size:10px;
}

.helper{
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.compare-item-image{

    img {
        align-content: center;
        max-width: 50px;
        max-height: 50px;
        vertical-align: middle;
    }
}

.compare-item-number{
//position: absolute;
//width: 100%;
    text-align: center;
//bottom: 5px;
//left:0;
    display: inline-block;
    font-size: 10px;
}
.compare-controls{
    img{
        margin-left: 5px;
    }
}
#btnCompareIn{
    display: none;
}
#btnCompareItems{
    display: none;
}

#molding-options-box{
    display:block;
    position: absolute;
    background-color: var(--bgd-light);
    color: var(--text-dark);
    border: var(--bgd-dark) 4px solid;
    border-radius: 9px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.item-example{
    display: block;
    background-color: var(--bgd-bright);
    vertical-align: top;
//width:50%;
    text-align: center;
}

.items-buttons{
    display: inline-block;
    text-align: center;
    background-color: var(--bgd-light);
}


.fa-window-close{
    font-size: 2em;
}

#items-itemnumber{
    display: inline-block;
    font-size: large;
}
#items-close{
    display: inline-block;
    position: relative;
    float: right;
    margin-right:5px;

}


#items-buttons-links{
//font-size:smaller;
//a{
//  text-decoration: underline;
//}
}

.items-links{
    padding:10px;
    &:hover{
        color: var(--bgd-medium);
    }
}

.item-description{
    text-align:center;
    font-size: 14px;
    font-weight: bolder;
}

.item-details-table{
    width: 100%;
    margin: 20px -10px;
}

.window-close-x{
    color: var(--text-link-dark);
    background-color: var(--bgd-light);
    a{
        &hover{
            color: var(--important);
        }
    }
}
.molding-menu-actions {
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:1rem;
    margin:auto;
}

/*.catalog-controls {*/
/*    display:flex;*/
/*    gap:1rem;*/
/*    align-items:flex-end;*/
/*}*/

.molding-menu-actions label {
    /*display:flex;*/
    /*flex-direction:column;*/
    /*gap:.25rem;*/
    /*font-size:.85rem;*/
    font-weight:600;
}

#showMore{
    margin-bottom: 25px;
}

@media (max-width: 600px), (max-height: 600px) {
    #full-view{
        display: none;
    }
    .catalog-menu{
        /*display: none;*/
        display:block;
        justify-content: center;

    }
    .catalog-action {
        width: 32px;
        min-height: 32px;
    }
    .catalog-action img {
        width: 24px;
        height: 24px;
    }
    .catalog-action span {
        display:none;
    }

}