@font-face {
    font-family: "Rubik";
    src: url("https://euromixceramica.ru/template/font/Rubik/Rubik-Regular.woff2") format("woff2"),
        url("https://euromixceramica.ru/template/font/Rubik/Rubik-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Rubik";
    src: url("https://euromixceramica.ru/template/font/Rubik/Rubik-Medium.woff2") format("woff2"),
        url("https://euromixceramica.ru/template/font/Rubik/Rubik-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Rubik";
    src: url("https://euromixceramica.ru/template/font/Rubik/Rubik-Bold.woff2") format("woff2"),
        url("https://euromixceramica.ru/template/font/Rubik/Rubik-Bold.woff") format("woff");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

HTML,
BODY {
    padding: 0px;
    margin: 0px;
    width: 100%;
    height: 100%;
    font-size: 14px;
}

* {
    font-family: "Rubik", sans-serif;
    box-sizing: border-box;
}

HTML {
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

A {
    color: #000;
    text-decoration: none;
}

IMG {
    vertical-align: middle;
}

A:hover {
    text-decoration: underline;
}

.wrapper {
    min-height: 100%;
}

.content {
    display: grid;
    grid-template-columns: 1fr 4fr;
}

.content,
.header {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.content>div:last-child {
    padding-top: 20px;
    padding-left: 20px;
}

.content .left {
    min-width: 250px;
}

.content .left .cont,
.content .left .user,
.content .left .logout,
.content .left .menu {
    display: none;
}

.content .left .menu ul {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

.content .left .menu li a {
    display: block;
    padding: 10px 0px;
    border-bottom: 1px solid #ddd;
}

/* Login */

.login {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.login img {
    width: 250px;
}

.login h3 {
    font-weight: normal;
    font-size: 1.5em;
    text-transform: lowercase;
    opacity: 0.6;
    padding: 0px;
    margin: 5px 0px 10px 0px;
}

/* Header */

.header>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f8f8f8;
}

.header .menu-button {
    padding: 10px;
    width: 32px;
    background-image: url("https://euromixceramica.ru/template/img/menu.svg");
    background-repeat: no-repeat;
    background-size: 28px;
    background-position: center;
    margin-right: 20px;
    display: none;
}

.header .menu-button.opened {
    background-image: url("https://euromixceramica.ru/template/img/menu-close.svg");
    background-size: 22px;
}

.header .logo {
    display: flex;
    align-items: center;
}

.header .logo img {
    width: 200px;
}

.logout {
    cursor: pointer;
    padding-left: 20px;
    background-image: url("https://euromixceramica.ru/admin/img/logout.svg");
    background-repeat: no-repeat;
    background-size: 14px;
    background-position: left center;
}

.logout::after {
    content: "Выйти";
}

.manager {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: #eee;
}

.manager:empty {
    display: none;
}

.manager::before {
    content: "Ваш менеджер:";
}

.manager>div:first-child {
    font-weight: bold;
}

.manager>div {
    padding: 5px 0px;
}

.header>div>div.user-logout {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-end;
}

.header .user {
    font-weight: bold;
    margin-bottom: 4px;
}

.header .cont {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .cont>div {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 5px;
}

.header .cont p {
    padding: 0px;
    margin: 0px;
}

.header .cont a {
    text-decoration: underline;
}

/* Modal */

.modal {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 5;
}

.modal>div {
    position: relative;
    padding: 20px;
    background-color: #fff;
    border-radius: 0px;
    min-width: 200px;
    min-height: 50px;
    max-width: calc(100% - 30px);
    max-height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
}

.modal>div>div:last-child {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
}

.modal>div>div:last-child::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.modal>div>.close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    background-color: transparent;
}

.modal>div>.close:after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background-color: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal>div>.close:before {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background-color: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Form */

form label {
    display: block;
    margin: 10px 0px 5px 0px;
    opacity: 0.6;
}

input[type=text],
input[type=password],
textarea {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    width: 100%;
}

form button,
.button {
    margin: 15px 0px 5px 0px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
}

form .error {
    color: #f00;
    padding: 10px;
}

/* Menu */

.shop-menu {
    background-color: #f8f8f8;
}

.shop-menu ul,
.shop-menu li {
    padding: 0px;
    margin: 0px;
    list-style: none;
}

.shop-menu li a {
    padding: 10px;
    display: block;
    cursor: pointer;
}

.shop-menu li {
    border-bottom: 1px solid #ddd;
}

.shop-menu li ul {
    border-top: 1px solid #ddd;
    display: none;
    font-size: 0.9em;
}

.shop-menu li.selected ul {
    display: block;
}

.shop-menu li ul a {
    padding-left: 32px;
}

.shop-menu li ul li {
    background-color: #eeeeee;
}

.shop-menu li ul>li:last-child {
    border-bottom: none;
}

.shop-menu .selected>a {
    font-weight: bold;
}

/* Search */

.search {
    position: relative;
    margin-bottom: 20px;
}

.search button {
    margin: 0px;
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    background-color: transparent;
    background-image: url("https://euromixceramica.ru/template/img/search.svg");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Factorys */

.factorys {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.factorys>div {
    display: flex;
    padding: 20px;
    align-items: stretch;
    justify-content: center;
    text-align: center;
    border: 1px solid #ddd;
}

.factorys>div>a {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.factorys .image {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.factorys>div img {
    max-height: 100%;
    max-width: 100%;
}

.factorys-or-items {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.factorys-or-items::before {
    content: "Показывать: ";
    opacity: 0.5;
    margin-right: 10px;
}

.factorys-or-items .selected {
    font-weight: bold;
    border-bottom: 1px solid #000;
}

.factorys-or-items>a:first-child {
    margin-right: 10px;
}

/* Collections */

.collections {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.collections .images {
    position: relative;
    display: block;
    cursor: pointer;
    margin-bottom: 10px;
}

.collections .images .image {
    display: none;
}

.collections .images>.image:first-child {
    display: block;
}

.collections .images .image img {
    width: 100%;
}

/* Items */

.items {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    width: 100%;
}

.items .item {
    cursor: pointer;
    position: relative;
    display: contents;
}

.items .image {
    width: 96px;
    max-height: 150px;
}

.items .image img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.items .item>div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.items .name {
    font-weight: bold;
}

.items .name+div {
    margin-top: 10px;
    display: grid;
    align-items: center;
    grid-template-columns: auto 1fr;
    gap: 5px;
}

.items .name+div>div {
    display: contents;
}

.items .art::before {
    content: "Артикул:";
}

.items .size::before {
    content: "Размер:";
}

.items .status::before {
    content: "Статус:";
}

.items .risynok::before {
    content: "Рисунок:";
}

.items .poverhnost::before {
    content: "Поверхность:";
}

.quantity-za,
.rest,
.rest-sv,
.rest-road,
.rest-road-sv {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rest:empty::after,
.rest-sv:empty::after,
.rest-road:empty::after,
.rest-road-sv:empty::after {
    content: "0";
}

.items .art::before,
.items .size::before,
.items .status::before,
.items .risynok::before,
.items .poverhnost::before,
.price-opt::before,
.price-roz::before,
.quantity-za .rest::before,
.quantity-za .rest-sv::before,
.quantity-za .rest-road::before,
.quantity-za .rest-road-sv::before {
    font-size: 0.8em;
    opacity: 0.6;
    margin-right: 10px;
}

.quantity-za {
    margin: 5px 0px;
}

.quantity-za .rest::before {
    content: "Склад: ";
}

.quantity-za .rest-sv::before {
    content: "Склад свободно: ";
}

.quantity-za .rest-road::before {
    content: "В пути: ";
}

.quantity-za .rest-road-sv::before {
    content: "В пути свободно: ";
}

.items .price-cart {
    padding-right: 10px;
}

.price-za {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-opt::before {
    content: "Цена опт.:";
}

.price-roz::before {
    content: "Цена розн.:";
}

.price-za .price {
    flex-grow: 1;
    text-align: right;
}

.za {
    padding-left: 3px;
}

.price+.za::before {
    content: "за";
    margin-right: 5px;
}

.price>div::after {
    content: "\20BD";
    margin-left: 3px;
}

.price>div:empty::after {
    display: none;
}

.items .item-sum {
    justify-content: flex-end;
    margin-top: 10px;
}

.items .item-sum .price {
    flex-grow: unset;
    font-weight: bold;
}

.items .item-sum.price-opt::before {
    content: "Сумма:";
}

/* Item */

.shop-item {
    max-width: 1000px;
}

.shop-item>h1+div {
    display: grid;
    align-items: center;
    gap: 20px;
    grid-template-columns: auto 1fr auto;
    margin: 30px 0px;
}

.shop-item .thumbnails {
    display: none;
}

.shop-item .data {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(5, auto);
    gap: 10px;
    border-radius: 8px;
}

.shop-item .data>div {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background-color: #f9f9f9;
    font-size: 0.9em;
}

.shop-item .data>div>div:first-child {
    opacity: 0.5;
    font-size: 0.9em;
}

.shop-item .data>div>div:last-child {
    text-align: right;
    padding-left: 10px;
}

.shop-item .image img {
    max-width: 200px;
    max-height: 300px;
}

.shop-item .category-images {
    display: flex;
    overflow-x: auto;
    width: 100%;
}

.shop-item .category-images img {
    height: 200px;
    margin-right: 10px;
}

.shop-item .buy {
    padding: 20px;
    background-color: #f8f8f8;
}

.shop-item .buy .price-cart {
    margin-top: 20px;
}

.shop-item .buy .price-cart>div {
    margin-top: 5px;
}

/* Filter */

.filter {
    margin-bottom: 10px;
}

.filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.filter>div {
    margin-right: 10px;
    margin-bottom: 10px;
    max-width: 150px;
}

.filter .field-name {
    display: none;
    opacity: 0.5;
    padding-bottom: 5px;
}

.select2-container .select2-selection--multiple {
    min-height: auto;
}

.shop-items-header {
    padding: 0px;
    margin-bottom: 20px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-items-header .count {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.shop-items-header .count::before {
    margin-right: 7px;
}

.shop-items-header .sort {
    display: flex;
    align-items: center;
}

.shop-items-header .sort::before {
    content: "Сортировать: ";
    margin-right: 10px;
}

.shop-items-header .count:before {
    content: "Товары: ";
}

.shop-items-header .count-collections:before {
    content: "Коллекции: ";
}

/* Cart */

.header-cart {
    display: block;
    position: relative;
    width: 32px;
    height: 32px;
    background-image: url("https://euromixceramica.ru/template/img/cart.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px;
    margin-left: 20px;
}

.header-cart>div {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    background-color: #000;
    color: #fff;
    font-size: 0.8em;
    text-align: center;
    border-radius: 50%;
    padding: 3px;
}

.header-cart>div:empty {
    display: none;
}

.cart-count {
    display: inline-grid;
    grid-template-columns: auto 1fr auto;
    gap: 5px;
    align-items: center;
    margin-top: 10px;
}

.cart-count input {
    width: 60px;
    padding: 5px;
    text-align: center;
}

.cart-count button {
    position: relative;
    margin: 0px;
    padding: 0px;
    display: block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.cart-count button::before {
    content: "-";
}

.cart-count button.inc::before {
    content: "+";
}

.cart .sum {
    font-size: 1.2em;
    margin: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cart .sum::before {
    content: "Сумма заказа:";
    margin-right: 10px;
}

.to-cart button.btn-add {
    padding: 6px 10px;
    margin: 10px 0px;
}

.cart .to-cart>div {
    display: flex;
    justify-content: flex-end;
}

.cart-order {
    padding-right: 10px;
}

/* Orders */

.orders:empty::before {
    content: "Заказов пока нет";
}

.orders {
    grid-template-columns: repeat(3, auto);
    display: inline-grid;
}

.orders>div {
    display: contents;
    cursor: pointer;
}

.orders>div:hover>div {
    background-color: #f8f8f8;
}

.orders>div>div {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.orders>div:last-child>div {
    border-bottom: none;
}

.order>div {
    padding: 5px 0px;
}

.order>div:before {
    opacity: 0.5;
    margin-right: 3px;
}

.order .id:before {
    content: "ID:";
}

.order .date:before {
    content: "Дата:";
}

.order .name:before {
    content: "Имя:";
}

.order .phone:before {
    content: "Телефон:";
}

.order .email:before {
    content: "Электронная почта:";
}

.order .delivery-info:before {
    content: "Доставка:";
}

.order .comment:before {
    content: "Комментарий:";
}

.order .status:before {
    content: "Статус:";
}

.order .items {
    margin: 10px 0px;
    display: inline-grid;
    width: auto;
    grid-template-columns: repeat(4, auto);
}

.order .items>div {
    display: contents;
}

.order .items>div>div {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
}

.order .items>div>div:nth-child(5n) {
    border-left: 1px solid #ddd;
}

.order .items>div:first-child>div {
    border-top: 1px solid #ddd;
}

.order .items>div>div:first-child {
    border-left: 1px solid #ddd;
    text-align: left;
}

.order .sum {
    font-size: 1.2em;
}

.order .sum:before {
    content: "Сумма заказа:";
    margin-right: 5px;
}

/* Custom */

.katalogi img {
    width: 80px;
}

.katalogi {
    display: grid;
    width: auto;
    row-gap: 40px;
    column-gap: 30px;
    align-items: center;
    justify-content: flex-start;
    grid-template-columns: repeat(3, auto);
    font-size: 1.2em;
}

.katalogi+.katalogi {
    margin-top: 30px;
}

.katalogi .item {
    display: contents;
}

.katalogi .item .file a {
    display: block;
    cursor: pointer;
    font-size: 0px;
    width: 32px;
    height: 32px;
    background-image: url("https://euromixceramica.ru/template/img/pdf.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.katalogi .item.xls .file a {
    background-image: url("https://euromixceramica.ru/template/img/xls.svg");
}

@media (max-width: 1024px) {

    .header .menu-button {
        display: block;
    }

    .content {
        grid-template-columns: 1fr;
    }

    .content>div:last-child {
        padding: 10px;
    }

    .content>.left {
        background-color: #f8f8f8;
        position: fixed;
        top: 55px;
        left: 0px;
        bottom: 0px;
        z-index: 1;
        overflow-y: auto;
        max-width: 100%;
        display: none;
    }

    .header .logo {
        flex-grow: 1;
    }

    .header .logo img {
        width: 120px;
    }

    .header .cont {
        display: none;
    }

    .content .left .cont,
    .content .left .user,
    .content .left .logout,
    .content .left .menu {
        display: block;
        margin: 10px;
    }

    .content .left .menu {
        margin-top: 0px;
    }

    .content .left .user {
        font-weight: bold;
    }

}

@media (max-width: 768px) {

    .header .user,
    .header .menu,
    .header .logout {
        display: none;
    }

    .factorys,
    .collections {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .shop-item>h1+div {
        grid-template-columns: 1fr;
    }

    .shop-item .data {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-auto-flow: row;
    }

    .shop-item .image img {
        max-width: 100%;
        max-height: 400px;
    }

    .items {
        grid-template-columns: auto auto;
    }

    .items .item>div:nth-child(1),
    .items .item>div:nth-child(2) {
        border-bottom: none;
    }
}