
body {
    color: var(--text-normal-color);
    font-family: var(--font);
    background: var(--background);
}

.container-main {
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

header {
    min-height: var(--header-height);
    margin-bottom: 4vh;
    background: var(--background-header);
    color: var(--text-color);
    box-shadow: 0px 9px 4px rgba(50, 50, 93, .11), 0 5px 5px rgba(0, 0, 0, .08);
}

header .header-content {
    justify-content: space-between;
}

.container-main,
.container-main > div,
header .logo-link {
    height: inherit;
}

header .logo {
    height: inherit;
    width: auto;
    display: flex;
    align-items: center;
}

header .logo img {
    max-height: 80%;
    height: var(--logo-height);
}

header .header-right-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: inherit;
    font-size: 1.4rem;
    padding: 10px 10px 10px 0;
    font-weight: bold;
}

.body-content .container-main {
    max-width: 94%;
    margin: 0 auto;
    padding-bottom: 2rem;
    overflow: hidden;
}

.item-list.grid {
    display: grid;
    grid-auto-flow: row dense;
    grid-template-columns: repeat(auto-fit, minmax(350px, 2fr));
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2rem;
    min-height: 0;
}

body.portrait .item-list.grid {
    grid-template-columns: 1fr;
}

.item-list .item-box {
    height: 19vh;
    display: grid;
    align-items: center;
    padding: var(--gap);
    justify-content: space-between;
    background-color: #FFF;
    -webkit-border-radius: .5rem;
    -moz-border-radius: .5rem;
    -ms-border-radius: .5rem;
    border-radius: .5rem;
    border: 1px solid #ededed;
    grid-template-rows: 1fr;
    /*grid-template-columns: minmax(15vh, 1fr) 15vh;*/
    grid-template-columns: minmax(200px, 1fr) 200px;

    position: relative;
    /*gap: .5rem;*/
    box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08);
    box-sizing: border-box;
    text-decoration: none;
    color: unset;
    overflow: hidden;
}

body.portrait .item-list .item-box {
    height: calc((calc(100vh - 12vh - 16vh) / 8));
    /*grid-template-columns: minmax(16vh, 1fr) 16vh;*/
    /*grid-template-columns: minmax(100px, 1fr) 100px;*/
}

.item-list .item-box .info {
    width: 100%;
}

.item-list .item-box picture {
    /*overflow: hidden;*/
    /*display: flex;*/
    /*!*border-radius: .5rem;*!*/
    /*!*border: 1px solid #eee;*!*/
    /*width: 100%;*/
    /*max-width: 100%;*/
    /*max-height: 100%;*/
    /*aspect-ratio: auto 1 / 1;*/
    /*!*min-width: 100px;*!*/
    /*right: 0;*/
    /*position: relative;*/
    /*justify-content: right;*/

    overflow: hidden;
    display: flex;
    border-radius: .5rem;
    border: 1px solid #eee;
    width: 200px;
    max-height: 200px;
    aspect-ratio: auto 1 / 1;
    min-width: 200px;
    right: 0;
    position: relative;
    justify-content: right
}

.item-list .item-box picture img {
    /*object-fit: cover;*/
    /*height: 100%;*/
    /*max-width: 100%;*/
    /*border-radius: .5rem;*/
    /*border: 1px solid #eee;*/

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-list .item-box h6.title {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.item-list .item-box .info > p {
    font-size: 1rem;
}

.item-list .item-box .info > .extras > .price {
    color: #444;
    font-weight: var(--font-weight-bold);
    font-size: 1.3rem;
}

@media only screen and (min-width: 680px) and (max-width: 1023px) {
    .item-list .item-box h6.title {
        font-size: 1.2rem;
    }
    .item-list .item-box .info > .extras > .price {
        font-size: 1rem;
    }
    .item-list .item-box .info > p {
        font-size: 0.8rem;
    }
}

@media only screen and (max-width: 680px) {
    .container-main .header-content {
        flex-direction: column;
    }

    header .header-right-content {
        font-size: 1rem;
    }

    .item-list .item-box {
        height: auto;
    }

    body.portrait .item-list .item-box {
        height: auto;
    }
}

.modalCover {
    height: 100%;
    max-height: 290px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ebebeb;
    width: 100%;
}

.modal-header .close {
    color: #767676;
    background-color: #e3e3e3;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    border-radius: 50%;
    top: 10px;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    line-height: 32px;
    justify-content: center;
    position: absolute;
    padding: 0;
    margin: 0;
}
.modal-content {
    border-radius: 2rem;
    border: none;
    box-shadow: 0px 5px 9px 1px rgb(46 51 51 / 8%), 0px 31px 64px 0px rgb(46 51 51 / 15%);
    overflow: hidden;
}

figure#modalImgPart {
    margin-bottom: 0;
}

h4#modalPrice {
    font-weight: 600;
    margin-bottom: 0;
    /* background-color: #ffffff; */
    /* padding: 18px 24px; */
    border-radius: 1rem;
    white-space: nowrap;
}

.modal-header h6 {
    width: 100%;
    text-align: center;
    color: #767676;
}
