/*
Theme Name: Moto-Xata Migration
Author: Codex
Version: 0.2.0
Text Domain: motoxata
*/
:root {
    --mx-red: #f02222;
    --mx-footer: #4e4b53;
    --mx-text: #333;
    --mx-link: #bd921b;
    --mx-border: #ddd;
}
* { box-sizing: border-box; }
body.site {
    margin: 0;
    color: var(--mx-text);
    background: #fff url("assets/page_gl.jpg") 0 0 / contain no-repeat;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
a { color: var(--mx-link); text-decoration: none; }
a:hover { color: #222; text-decoration: underline; }
img { max-width: 100%; height: auto; }
.body-innerwrapper {
    max-width: 1170px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 5px rgba(0,0,0,.08);
}
.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
[class*="col-"] { padding: 0 15px; width: 100%; }
.col-sm-3 { width: 25%; }
.col-sm-4 { width: 33.3333%; }
.col-sm-8 { width: 66.6667%; }
.col-sm-9 { width: 75%; }
.col-sm-12 { width: 100%; }
.hidden-md.hidden-lg, .hidden-sm, .hidden-xs { display: block; }
#sp-logo { padding: 13px 0 8px; background: #fff; }
.logo { display: inline-block; }
.logo img { width: 310px; height: auto; display: block; }
#sp-top2 { text-align: center; }
.sp-module.tel .full-width { width: 100%; clear: both; }
.sp-module.tel .floatright {
    float: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 0;
    color: #333;
}
.sp-module.tel span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 600;
    margin-left: 6px;
}
.sp-module.tel img {
    width: auto;
    height: 20px;
    margin-right: 10px;
    margin-left: 10px;
}
.top-tools {
    clear: both;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding-top: 9px;
}
#virtuemart_currency_id,
.inputbox.advancedSelect {
    min-width: 112px;
    height: 34px;
    padding: 6px 12px;
    text-align: center;
    border: 1px solid #aaa;
    background: linear-gradient(to bottom, #fff 20%, #f6f6f6 50%, #eee 52%, #f4f4f4 100%);
}
.mx-top-label {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid #aaa;
    background: linear-gradient(to bottom, #fff 20%, #f6f6f6 50%, #eee 52%, #f4f4f4 100%);
    color: #333;
    font-size: 14px;
}
#sp-top-bar {
    color: #fff;
    background: var(--mx-red) url("assets/nav.png") 50% 50% / cover no-repeat;
}
.nav.menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
#sp-top-bar .nav.menu li a {
    display: block;
    padding: 13px 20px;
    color: #fff;
    font-weight: 600;
    line-height: 20px;
}
#sp-top-bar .nav.menu li.current-menu-item a,
#sp-top-bar .nav.menu li a:hover {
    background: rgba(0,0,0,.16);
    color: #fff;
    text-decoration: none;
}
#sp-menu-category {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.cat .nav.menu {
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
}
.cat .nav.menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 173px;
    color: #333;
    padding: 6px 8px;
    border: 1px solid transparent;
}
.cat .nav.menu li a:hover {
    border-color: #f1b5b5;
    color: #000;
    text-decoration: none;
}
.cat img { max-height: 48px; max-width: 64px; object-fit: contain; }
.image-title { display: inline-block; width: 173px; font-size: 13px; }
#sp-image { padding: 10px 0; }
#sp-image .custom p { margin: 0; text-align: center; }
#sp-image .custom img { display: block; margin: 0 auto; }
#sp-breadcrumbs { padding: 20px 20px 0; }
.breadcrumb {
    margin: 0 0 10px;
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 4px;
    list-style: none;
    color: #777;
}
.breadcrumb li { display: inline; }
#sp-main-body {
    padding: 0 15px 25px;
}
#sp-left .sp-module,
#sp-user4 .sp-module {
    margin-bottom: 22px;
}
.sp-module-title {
    margin: 0 0 12px;
    padding: 9px 12px;
    color: #fff;
    background: var(--mx-red);
    font-size: 18px;
    font-weight: 600;
}
.category-module {
    margin: 0;
    padding: 0;
    list-style: none;
}
.category-module li {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.mod-articles-category-title {
    color: #333;
    font-weight: 700;
}
.mod-articles-category-introtext {
    margin: 6px 0;
    color: #666;
}
.mod-articles-category-readmore { margin: 0; }
.mx-search-module form,
.woocommerce-product-search {
    display: flex;
    width: 100%;
}
.mx-search-module input[type="search"],
.woocommerce-product-search input[type="search"] {
    min-width: 0;
    flex: 1;
    height: 34px;
    border: 1px solid #ccc;
    padding: 6px 10px;
}
.mx-search-module button,
.woocommerce-product-search button {
    border: 0;
    background: var(--mx-red);
    color: #fff;
    padding: 0 12px;
    cursor: pointer;
}
#sp-component h1,
.mx-page-content h1,
.woocommerce-products-header__title {
    margin: 0 0 18px;
    color: #333;
    font-size: 26px;
    font-weight: 800;
}
.sppb-addon-content {
    color: #333;
    font-size: 19px;
    line-height: 1.55;
}
.block-btn {
    padding: 18px 0 25px;
    border-top: 1px solid #eee;
    margin-top: 18px;
}
.mx-storefront {
    margin: 0 0 18px;
}
.mx-storefront-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    padding: 0 0 16px;
    border-bottom: 3px solid var(--mx-red);
}
.mx-storefront-head h1 {
    margin: 0 0 6px;
    color: #222;
    font-size: 30px;
    line-height: 1.16;
    font-weight: 800;
}
.mx-storefront-head p {
    margin: 0;
    max-width: 660px;
    color: #555;
    font-size: 16px;
}
.mx-storefront-link {
    flex: 0 0 auto;
    display: inline-block;
    background: var(--mx-red);
    color: #fff;
    padding: 10px 16px;
    font-weight: 700;
    text-transform: uppercase;
}
.mx-storefront-link:hover {
    background: #c91515;
    color: #fff;
    text-decoration: none;
}
.mx-storefront .cat .nav.menu {
    justify-content: flex-start;
    padding: 16px 0 12px;
    gap: 10px;
}
.mx-storefront .cat .nav.menu li {
    width: calc(33.333% - 7px);
}
.mx-storefront .cat .nav.menu li a {
    width: 100%;
    min-height: 76px;
    border: 1px solid #e6e6e6;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.mx-storefront .cat .nav.menu li a:hover {
    border-color: var(--mx-red);
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
}
.mx-home-products h2 {
    margin: 10px 0 14px;
    font-size: 24px;
    font-weight: 700;
    color: #222;
}
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce ul.products:before,
.woocommerce ul.products:after { display: none !important; }
.woocommerce ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 12px 12px 14px !important;
    border: 1px solid #ddd;
    background: #fff;
    text-align: center;
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.mx-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-block;
    padding: 5px 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}
.mx-stock-badge.is-out-stock { background: #b80000; }
.mx-stock-badge.is-in-stock { background: #168a32; }
.woocommerce ul.products li.product:hover {
    border-color: #c9c9c9;
    box-shadow: 0 5px 18px rgba(0,0,0,.12);
    transform: translateY(-1px);
}
.woocommerce ul.products li.product a img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    margin: 0 auto 12px !important;
    background: #fff;
}
.woocommerce-loop-product__title {
    min-height: 58px;
    padding: 0 !important;
    color: #333;
    font-size: 16px !important;
    line-height: 1.35;
    font-weight: 700;
}
.woocommerce ul.products li.product .price {
    display: block;
    color: #222 !important;
    font-size: 21px !important;
    font-weight: 700;
    margin: 8px 0 10px !important;
}
.woocommerce ul.products li.product .price:before {
    content: "Цена: ";
    color: #777;
    font-size: 14px;
    font-weight: 400;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--mx-red) !important;
    color: #fff !important;
    border-radius: 0 !important;
    border: 0 !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    width: 100%;
    margin-top: auto !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: #c91515 !important;
    color: #fff !important;
}
.woocommerce div.product div.images img {
    border: 1px solid #eee;
}
.woocommerce div.product .product_title {
    font-size: 26px;
    font-weight: 800;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #222;
    font-size: 22px;
    font-weight: 700;
}
.woocommerce div.product p.price:before {
    content: "Цена: ";
    color: #777;
    font-size: 16px;
    font-weight: 400;
}
.mx-catalog-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.mx-catalog-filter {
    border: 1px solid #ddd;
    background: #f9f9f9;
    padding: 12px;
}
.mx-filter h3 {
    margin: -12px -12px 12px;
    padding: 9px 12px;
    background: var(--mx-red);
    color: #fff;
    font-size: 18px;
}
.mx-filter label {
    display: block;
    margin-bottom: 10px;
    color: #444;
    font-weight: 700;
}
.mx-filter select,
.mx-filter input {
    display: block;
    width: 100%;
    min-height: 34px;
    margin-top: 4px;
    border: 1px solid #bbb;
    background: #fff;
    padding: 6px 8px;
    font-weight: 400;
}
.mx-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.mx-filter button {
    width: 100%;
    border: 0;
    background: var(--mx-red);
    color: #fff;
    padding: 10px 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}
.mx-filter-reset {
    display: block;
    margin-top: 9px;
    text-align: center;
}
.mx-catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
    margin-bottom: 14px;
    padding: 8px 10px;
    border: 1px solid #e2e2e2;
    background: #f7f7f7;
}
#sp-footer {
    color: #ddd;
    background: var(--mx-footer);
    padding: 18px 0;
}
.mx-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}
.mx-footer-inner a {
    color: #fff;
    margin-left: 16px;
}
@media (min-width: 992px) {
    #sp-menu-category { display: none; }
}
@media (max-width: 900px) {
    .row { display: block; }
    [class*="col-"] { width: 100%; }
    #sp-top2,
    .sp-module.tel .floatright,
    .top-tools { text-align: center; justify-content: center; float: none; }
    .logo img { margin: 0 auto; }
    #sp-top-bar .nav.menu { justify-content: center; }
    #sp-main-body { padding: 0 15px 20px; }
    #sp-left { display: none; }
    .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mx-catalog-layout { grid-template-columns: 1fr; }
    .mx-storefront-head { display: block; }
    .mx-storefront-link { margin-top: 12px; }
    .mx-storefront .cat .nav.menu li { width: calc(50% - 5px); }
}
@media (max-width: 560px) {
    body.site { background-size: auto 160px; }
    .sp-module.tel .floatright { display: block; }
    .sp-module.tel span { justify-content: center; margin-bottom: 4px; }
    #sp-top-bar .nav.menu li { width: 50%; text-align: center; }
    #sp-top-bar .nav.menu li a { padding: 10px 6px; }
    .cat .nav.menu li a { min-width: 0; width: 100%; }
    .woocommerce ul.products { grid-template-columns: 1fr; }
    .mx-storefront .cat .nav.menu li { width: 100%; }
    .mx-storefront-head h1 { font-size: 25px; }
    .sppb-addon-content { font-size: 16px; }
    .mx-footer-inner { display: block; text-align: center; }
    .mx-footer-inner a { display: inline-block; margin: 8px 8px 0; }
}
