.shop-page .mg-shop-landing {
    --mg-red: #c90f16;
    --mg-red-dark: #a9080e;
    --mg-ink: #171717;
    --mg-muted: #6a6a6a;
    --mg-line: #dedede;
    --mg-soft: #f7f7f7;
    color: var(--mg-ink);
    margin: 0;
    max-width: none;
    width: 100%;
}



.shop-page .mg-shop-landing *,
.shop-page .mg-shop-landing *::before,
.shop-page .mg-shop-landing *::after {
    box-sizing: border-box;
}

.mg-shop-landing__header h1 {
    color: var(--mg-ink);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 16px 0 24px;
    text-align: center;
    padding: 0;
}

.mg-shop-main-categories {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 48px;
}

.mg-shop-main-category {
    align-items: center;
    background: var(--mg-soft);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--mg-ink);
    display: flex;
    min-height: 82px;
    padding: 8px 10px;
    text-decoration: none;
    padding: 8px 12px;
}

.mg-shop-main-category:hover,
.mg-shop-main-category:focus-visible,
.mg-shop-main-category.is-active {
    border-color: var(--mg-red);
    color: var(--mg-ink);
}

.mg-shop-main-category__image {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex: 0 0 80px;
    height: 80px;
    justify-content: center;
    margin-right: 10px;
    overflow: hidden;
    position: relative;
}

.mg-shop-main-category__image img {
    height: 100%;
    object-fit: contain;
    padding: 3px;
    width: 100%;
}

.mg-shop-main-category__new {
    background: var(--mg-red);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    left: 0;
    line-height: 1;
    padding: 3px 12px;
    position: absolute;
    text-transform: uppercase;
    top: 5px;
    transform: rotate(-28deg) translateX(-5px);
}

.mg-shop-main-category__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Roboto", sans-serif;
}

.mg-shop-featured__intro {
    align-items: center;
    display: flex;
    margin: 0 auto 24px;
    max-width: 1400px;
    width: calc(100% - 24px);
}

.mg-shop-featured__link {
    color: #BE1A1A;
    display: inline-block;
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
        border-bottom: 1px solid black;
        font-family: 'Inter';
}

.mg-shop-featured__link:hover,
.mg-shop-featured__link:focus-visible {
    color: #BE1A1A;
}

.mg-shop-category-status {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.mg-shop-category-empty {
    align-items: center;
    background: var(--mg-soft);
    border: 1px solid var(--mg-line);
    border-radius: 9px;
    color: var(--mg-muted);
    display: flex;
    justify-content: center;
    min-height: 180px;
    padding: 24px;
    text-align: center;
}

.mg-shop-featured__section {
    --mg-section-background: #F8F8F8;
    background: var(--mg-section-background);
    padding: 40px 0 0px;
}

.mg-shop-featured__section--products {
    padding: 38px 0 40px;
      background: #F8F8F8;
}

.mg-shop-section-heading {
    border-bottom: 1px solid var(--mg-line);
     margin-bottom: 40px;
    padding-bottom: 16px;
}

.mg-shop-section-heading h2 {
    color: var(--mg-ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    font-family: 'Inter';
}

.mg-category-subcategories-section{
    margin-bottom: 24px;
}

.mg-shop-section-heading--products {
    margin-top: 0;
}


.products.columns-5 .mg-shop-product__media{
   min-height: 276px;
   display: flex;
   align-items: center;
   justify-content: center;
}
.mg-shop-carousel {
    min-width: 0;
    position: relative;
}

.mg-shop-carousel__track {
    display: grid;
    gap: 18px;
    grid-auto-columns: calc((100% - 90px) / 6);
    grid-auto-flow: column;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 1px 10px;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.mg-shop-carousel__track::-webkit-scrollbar {
    display: none;
}

.mg-shop-category-card,
.mg-shop-product {
    scroll-snap-align: start;
}

.mg-shop-category-card {
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 16px;
    color: var(--mg-ink);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
}

.mg-shop-category-card:hover,
.mg-shop-category-card:focus-visible {
    border-color: #BE1A1A;
    color: var(--mg-ink);
}

.mg-shop-category-card__image {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.mg-shop-category-card__image img {
       height: 100%;
    object-fit: cover;
    /* padding: 8px; */
    transition: transform .25s ease;
    width: 100%;
    height: 207px;
}

/* Reserve a square before lazy-loaded related-category images arrive. */
.mg-related-categories .mg-shop-category-card__image {
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
}

.mg-related-categories .mg-shop-category-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mg-shop-description .mg-shop-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 60px;
    align-items: center;
}

.mg-category-description .term-description p{
    margin-bottom: 24px;

    font-family: Roboto;
font-weight: 400;
font-size: 16px;
line-height: 140%;
letter-spacing: 0%;

}

.mg-category-catalog-section__filter{
        position: sticky;
    top: 144px;
    z-index: 8;
    background: white;
}

.mg-category-page h1.page-title{
        font-family: Inter;
    font-weight: 700;
    font-size: 32px;
    line-height: 100%;
    letter-spacing: 0%;
    margin-bottom: 16px;
}

.mg-shop-description .mg-shop-description__content {
    min-width: 0;
}

.mg-shop-description .mg-shop-description__image {
    width: 100%;
}

.mg-shop-description .mg-shop-description__image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    border-radius: 12px;
}

.mg-shop-description__content p{
    font-family: Inter;
font-weight: 400;
font-size: 16px;
line-height: 100%;
letter-spacing: 0%;

}

/* Tablet */
@media (max-width: 991px) {
    .mg-shop-description .mg-shop-container {
        grid-template-columns: 1fr 380px;
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .mg-shop-description .mg-shop-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .mg-shop-description .mg-shop-description__image img {
        max-height: 300px;
    }
}
/* ========================================
   MAGISTER - STORE LOCATOR PLUS
======================================== */

.mg-local-shops .mg-local-shops__locator {
    width: 100%;
}

.mg-local-shops .mg-local-shops__locator #sl_div {
    width: 100% !important;
    max-width: none !important;
    min-height: auto;
}


.mg-local-shop-btn{
    margin-top: 24px;
}
.shop-page{
    margin-bottom: 24px;
}

/* ========================================
   SEARCH BOX
======================================== */

.mg-local-shops .mg-local-shops__locator #sl_top {
    width: 100%;
}

.mg-local-shops .mg-local-shops__locator #search_box {
    width: 100%;
}

.mg-local-shops .mg-local-shops__locator #search_box_form {
    width: 100%;
}

.mg-local-shops .mg-local-shops__locator .slp_search_container {
    width: 100%;
}


/* Вся строка поиска */
.mg-local-shops .mg-local-shops__locator .slp_search_container > .search_box {
    display: flex !important;
    align-items: center;
    gap: 10px;

    width: 100% !important;

    margin: 0 0 5px;
    padding: 10px;

    background: #f7f7f7;
    border-radius: 4px;
}


/* ========================================
   ADDRESS
======================================== */

.mg-local-shops .mg-local-shops__locator #addy_in_address {
    display: flex !important;
    align-items: center;

    flex: 1 1 auto !important;

    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mg-local-shops .mg-local-shops__locator #addy_in_address label {
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 12px 0 0 !important;
    padding: 0 !important;
    font-size: 16px;
    font-weight: 400;
    color: #222;
    white-space: nowrap;
    font-family: Roboto;
}


/* Поле */
.mg-local-shops .mg-local-shops__locator #addressInput {
    flex: 1 1 auto;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 8px 12px !important;

    border: 1px solid #d5d5d5 !important;
    border-radius: 8px !important;

    background: #fff !important;

    box-shadow: none !important;
    outline: none !important;
}


/* ========================================
   RADIUS
======================================== */

/* Убираем Within */
.mg-local-shops .mg-local-shops__locator #addy_in_radius {
    display: none !important;
}


/* ========================================
   BUTTON
======================================== */

.mg-local-shops .mg-local-shops__locator #radius_in_submit {
    flex: 0 0 auto;

    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;
}

.mg-local-shops .mg-local-shops__locator #addressSubmit {
       display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 120px !important;
    width: auto !important;
    /* height: 38px !important; */
    margin: 0 !important;
    padding: 12px 15px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #BE1A1A !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer;
    font-family: 'Roboto';
}

.mg-local-shops .mg-local-shops__locator #addressSubmit:hover {
    background: #a8191e !important;
}


/* ========================================
   BOTTOM AREA
======================================== */

.mg-local-shops .mg-local-shops__locator #sl_bottom {
    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}


/*
 * Скрываем список магазинов слева,
 * чтобы карта была как на первом скрине.
 */
.mg-local-shops .mg-local-shops__locator #sl_bottom_left {
    display: none !important;
}


/* Карта занимает всю ширину */
.mg-local-shops .mg-local-shops__locator #sl_bottom_right {
    float: none !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

#search_box #search_box_header{
    padding: 0 !important;
    background: ;
}

.mg-local-shops__title{
        border-top: 1px solid #AEAEAE;
    padding-top: 32px;
        font-size: 40px;
    font-weight: 400;
    font-family: 'Roboto';
    line-height: 100%;
    letter-spacing: 0%;
}

.mg-local-shop-btn a{
        padding: 14px 80px;
    background: #BE1A1A;
    font-family: Roboto;
    font-weight: 700;
    color: white;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    border-radius: 8px;
}
.mg-local-shop-btn{
    text-align: center;
}

/* ========================================
   MAP
======================================== */

.mg-local-shops .mg-local-shops__locator #map_box {
    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

.mg-local-shops .mg-local-shops__locator #map {
    float: none !important;

    width: 100% !important;
    max-width: none !important;

    height: 520px !important;

    margin: 0 !important;

    border: 0 !important;
    border-radius: 4px !important;

    overflow: hidden !important;

    background: #e8e8e8;
}


/* Убираем возможные ограничения темы SLP */
.mg-local-shops .mg-local-shops__locator .sl_rightcol {
    float: none !important;
    width: 100% !important;
}

.mg-local-shops .mg-local-shops__locator .slp_map {
    width: 100% !important;
}


/* ========================================
   STORE LOCATOR CREDIT
======================================== */

.mg-local-shops .mg-local-shops__locator .slp_info_bubble {
    font-size: 13px;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

    .mg-local-shops .mg-local-shops__locator
    .slp_search_container > .search_box {

        display: flex !important;
        flex-direction: column;
        align-items: stretch;

        gap: 10px;

        padding: 12px;
    }


    .mg-local-shops .mg-local-shops__locator #addy_in_address {
        display: block !important;
        width: 100% !important;
    }


    .mg-local-shops .mg-local-shops__locator #addy_in_address label {
        display: block;

        margin: 0 0 6px !important;
    }


    .mg-local-shops .mg-local-shops__locator #addressInput {
        width: 100% !important;
        height: 42px !important;
    }


    .mg-local-shops .mg-local-shops__locator #radius_in_submit {
        width: 100% !important;
    }


    .mg-local-shops .mg-local-shops__locator #addressSubmit {
        width: 100% !important;
        height: 42px !important;


        font-family: Roboto;
font-weight: 700;
font-size: 16px;
line-height: 100%;
letter-spacing: 0%;
        border-radius: 8px !important;

    }
    .mg-shop-badge--discount{
        font-size: 16px;
    }




    .mg-local-shops .mg-local-shops__locator #map {
        height: 400px !important;
    }
}



.mg-shop-category-card__title {
    align-items: center;
    background: #BE1A1A;
    color: #fff;
    display: flex;
    flex: 1 0 auto;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    min-height: 72px;
    padding: 6px 8px;
    display: flex;

        font-family: 'Inter';
}

.mg-shop-badge {
    color: #fff;
    font-size: 11px;
    font-style: italic;
    font-weight: 800;
    line-height: 1;
    position: absolute;
    text-transform: uppercase;
    z-index: 2;
}

.mg-shop-badge--new {
    background: #BE1A1A;
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
    left: 0;
    min-width: 68px;
    padding: 6px 16px 6px 9px;
    top: 0;
}

.mg-shop-badge--discount {
    color: #BE1A1A;


        font-weight: 900;
    font-style: Regular;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
    font-family: 'Roboto';
    position: absolute;
    right: 8px;
    top: 4px;
}

.mg-shop-product.mg-shop-product--new::after{
       content: '';
    background: url(../img/new-label-product.png);
    position: absolute;
    left: 0;
    top: 0;
    width: 117px;
    height: 24px;
    background-size: contain;
}


.mg-shop-featured__section.mg-shop-featured__section--products .mg-shop-carousel__track{
        grid-auto-columns: calc((100% - 54px) / 4);
}

.mg-shop-product {
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    position: relative;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mg-shop-product:hover {
    border-color: #BE1A1A;
}

.mg-shop-product__media {
    align-items: center;
       overflow: hidden;
    position: relative;
    min-height: 312px;
}

.mg-shop-product__media img {
       height: 100%;
    object-fit: contain;
    padding: 18px 12px 8px;
    /* transition: transform .25s ease; */
    width: 100%;
    object-position: top;
}


.mg-shop-product__body {
    border-top: 1px solid #ededed;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px;
    text-align: left;
}

.mg-shop-product__price del span{
        color: #8E8E8E !important;
    font-size: 16px !important;
    margin-bottom: 2px;
    font-weight: 400 !important;
}

.mg-shop-product__sku {
       align-self: flex-start;
    background: #F8F8F8;
    border: 1px solid #D1D1D1;
    border-radius: 8px;
    color: #1D1D1B;
    font-size: 14px;
    line-height: 1;
    margin-bottom: 8px;
    padding: 4px 8px;
    position: absolute;
    bottom: 6px;
    left: 16px;
    font-family: 'Inter';
    text-align: left;
}

.mg-shop-product__title {
       color: #242424;
    display: -webkit-box;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 12px;
    min-height: 52px;
    overflow: hidden;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-family: 'Inter';
}

.mg-shop-product__title:hover,
.mg-shop-product__title:focus-visible {
    color: #BE1A1A;
}

.mg-shop-product__footer {
    align-items: flex-end;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-top: auto;
        align-items: center;
}

.mg-shop-product__price {
    color: var(--mg-ink);
    display: flex;
    flex-direction: column;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}


.mg-shop-product__price del {
    color: #8a8a8a;
    font-size: 11px;
    font-weight: 500;
    opacity: 1;
}

.mg-shop-product__price ins {
    color: #BE1A1A;
    text-decoration: none;
}

.shop-page .mg-shop-product__button.button {
      background: #fff !important;
    border: 1px solid #BE1A1A !important;
    border-radius: 5px !important;
    color: var(--mg-ink) !important;
    display: inline-flex !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    height: auto !important;
    line-height: 1.1 !important;
    /* min-height: 34px; */
    padding: 16px 14px !important;
    position: static !important;
    text-align: center;
    width: auto !important;
        font-family: 'Roboto';
}

.shop-page .mg-shop-product a.mg-shop-product__button.button.add_to_cart_button.ajax_add_to_cart,
.shop-page .mg-shop-product a.mg-shop-product__button.button.added {
    display: inline-flex !important;
}

.shop-page .mg-shop-product a.added_to_cart.wc-forward {
    display: none !important;
}

.shop-page .mg-shop-product__button.button::after {
    display: none !important;
}

.shop-page .mg-shop-product__button.button:hover,
.shop-page .mg-shop-product__button.button:focus-visible,
.shop-page .mg-shop-product__button.button.added {
    background: #BE1A1A !important;
    color: #fff !important;
}

.shop-page .mg-shop-product__button.button.loading {
    opacity: .65;
    pointer-events: none;
}

.mg-shop-carousel__dots {
    align-items: center;
    display: flex;
    gap: 4px;
    justify-content: center;
       padding: 32px 0 24px;
}

.mg-shop-carousel__dots button {
           display: block;
        width: 8px;
        height: 8px;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 50%;
        background: #d2d2d2;
        cursor: pointer;
        transition: background-color 0.2s ease, transform 0.2s ease;
}

.mg-shop-carousel__dots button.is-active {
            background: #000;
        transform: scale(1.25);
}

.mg-shop-carousel__arrows {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 4px 0 2px;
}

.mg-shop-carousel__arrows button {
    align-items: center;
    background: #f0f0f0;
    border: 0;
    border-radius: 50%;
    color: #555;
    display: inline-flex;
    font-size: 24px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0 0 3px;
    transition: background .2s ease, color .2s ease;
    width: 34px;
}

.mg-shop-carousel__arrows button:hover,
.mg-shop-carousel__arrows button:focus-visible {
    background: #BE1A1A;
    color: #fff;
}

.mg-shop-carousel__arrows button:disabled {
    cursor: default;
    opacity: .35;
}

.products.columns-4 li{
    width: 22.05% !important;
}
.products.columns-4{
        flex-wrap: wrap;
}

.mg-shop-featured__all {
    display: flex;
    justify-content: center;
    padding: 16px 0 0;
}

.mg-shop-featured__all a {
   border: 1px solid #BE1A1A;
    border-radius: 8px;
    color: var(--mg-ink);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Roboto';
    letter-spacing: .03em;
    padding: 12px 24px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease;
}

.mg-shop-featured__all a:hover,
.mg-shop-featured__all a:focus-visible {
    background: #BE1A1A;
    color: #fff;
}

.mg-shop-description {
    --mg-section-background: #ffffff;
    background: #ffffff;
    border-top: 1px solid #ececec;
    margin-top: 0;
    padding: 36px 0;
}

.mg-shop-description h2 {
    color: var(--mg-ink);
    font-size: clamp(22px, 2vw, 40px);
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 14px;
}

.mg-shop-description p {
    color: #353535;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 12px;
}

.mg-shop-benefits {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.mg-shop-benefits li {
    color: var(--mg-ink);
    font-size: 16px;
    font-weight: 700;
    padding-left: 32px;
    position: relative;
}

.mg-shop-benefits li::before {
    background: #BE1A1A;
    content: '';
    height: 4px;
    left: 0;
    position: absolute;
    top: .65em;
       width: 20px;
    border-radius: 9999px 0 9999px;
}

.mg-shop-product__footer .mg-shop-product__price span{
    font-family: 'Inter' !important;
}

@media (max-width: 991px) {
    .mg-shop-featured__section {
        padding: 30px 0 34px;
    }

    .mg-shop-featured__section--products {
        padding: 32px 0 38px;
    }

    .mg-shop-main-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mg-shop-carousel__track {
        grid-auto-columns: calc((100% - 16px) / 2);
        gap: 16px;
    }

    .mg-shop-category-card{
        place-self: stretch;
        width: 100%;
    }

}

@media (max-width: 575px) {
    .mg-shop-featured__section {
        padding: 24px 0 0px;
    }

    .mg-shop-featured__section--products {
        padding: 26px 0 32px;
    }

    .mg-shop-section-heading {
        margin-bottom: 14px;
        padding-bottom: 11px;
    }

    .mg-shop-section-heading h2 {
        font-size: 20px;
    }

    .mg-shop-landing__header h1 {
        margin-top: 4px;
    }

    .mg-shop-main-categories {
        gap: 7px;
    }

    .mg-shop-main-category {
        min-height: 68px;
        padding: 6px;
    }

    .mg-shop-main-category__image {
        flex-basis: 50px;
        height: 50px;
        margin-right: 7px;
        width: 50px;
    }

    .mg-shop-main-category__title {
        font-size: 11px;
    }

    .mg-shop-carousel__track {
        grid-auto-columns: 44%;
        gap: 8px;
    }
    .mg-shop-featured__section.mg-shop-featured__section--products .mg-shop-carousel__track {
    grid-auto-columns: calc((100% - 40px) / 2);
}
.shop-page .mg-shop-product__button.button{
        padding: 12px 14px !important;
}

.shop-content-full.row .col-lg-12{
    padding: 0;
}

    .mg-shop-product__media{
        min-height: auto;
    }
    .mg-shop-product__footer{
        display: block;
    }
    .mg-shop-product.mg-shop-product--new::after{
            width: 78px;
    height: 16px;
    }
    .mg-shop-product__footer .woocommerce-Price-amount.amount{
        margin-bottom: 0px;
    }

    .mg-shop-category-card__title {
      font-size: 14px;
        padding: 8px;
                min-height: 72px;
    }
    .mg-shop-featured__arrow{
        top: 2px;
    }

    .mg-shop-product__title {
        font-size: 14px;
    }

    .mg-shop-description h2 {
              font-size: 24px;
        font-family: 'Roboto';
        font-weight: 400;
    }
    .mg-shop-featured__all a{
            width: 100%;
    text-align: center;
        font-size: 14px;


    }
    .mg-local-shops__title{
        font-family: Roboto;
font-weight: 400;
font-size: 24px;
line-height: 100%;
letter-spacing: 0%;

    }

    .mg-shop-featured__section.mg-shop-featured__section--products{
        padding: 28px 0 32px;
    }
    .mg-shop-description .container{
        flex-flow: wrap-reverse;
    }

}

@media (prefers-reduced-motion: reduce) {
    .mg-shop-carousel__track {
        scroll-behavior: auto;
    }

    .mg-shop-main-category,
    .mg-shop-category-card,
    .mg-shop-product,
    .mg-shop-category-card__image img,
    .mg-shop-product__media img {
        transition: none;
    }
}



@media (max-width: 767px) {

    .mg-shop-main-categories {
        display: grid !important;

        /* КРИТИЧНО: убираем старые 2 колонки */
        grid-template-columns: none !important;

        /* Два ряда */
        grid-template-rows: repeat(2, 54px) !important;

        /* Заполняем сверху вниз, затем вправо */
        grid-auto-flow: column !important;

        /* На экране примерно 2.2 карточки */
        grid-auto-columns: calc((100% - 8px) / 2.2) !important;

        column-gap: 8px !important;
        row-gap: 8px !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 0 40px !important;
        padding: 0 0 8px !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;

        scrollbar-width: none;

        scroll-snap-type: x proximity;
    }
    .mg-shop-featured__link{
        font-size: 16px;
    }

    .mg-shop-main-categories::-webkit-scrollbar {
        display: none;
    }

    .mg-shop-product__media img{
            height: 172px;
    }
    .mg-shop-product__sku{
        font-size: 12px;
    }
    .mg-shop-product__sku{
        bottom: 6px;
        right: 16px;
    }
    .shop-page .mg-shop-product__button.button{
        width: 100% !important;
    text-align: center !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    }


    /* =========================
       CARD
    ========================= */

    .mg-shop-main-categories .mg-shop-main-category {
        position: relative !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;

        padding: 5px 7px !important;
        margin: 0 !important;

        flex: none !important;

        background: var(--mg-soft);
        border-radius: 8px;

        box-sizing: border-box !important;

        overflow: hidden !important;

        scroll-snap-align: start;
    }


    /* =========================
       IMAGE WRAPPER
    ========================= */

    .mg-shop-main-categories .mg-shop-main-category__image {
        position: relative !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        flex: 0 0 38px !important;

        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;

        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;

        margin: 0 7px 0 0 !important;
        padding: 0 !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        transform: none !important;

        overflow: hidden !important;

        border-radius: 50%;
    }


    /* =========================
       IMAGE
    ========================= */
    p#breadcrumbs{
            margin: 0 0 0px;
    }
    .mg-shop-category-card__image img{
            height: 150px;
    }

    .mg-shop-main-categories .mg-shop-main-category__image img {
        position: static !important;

        display: block !important;

        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;

        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;

        margin: 0 !important;
        padding: 2px !important;

        object-fit: contain !important;

        transform: none !important;
    }


    /* =========================
       TITLE
    ========================= */

    .mg-shop-main-categories .mg-shop-main-category__title {
        display: block !important;

        flex: 1 1 auto !important;

        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        font-size: 14px !important;
        font-weight: 700;
        line-height: 1.15 !important;

        white-space: normal !important;
        overflow-wrap: normal;
        word-break: normal;

        overflow: hidden;
    }

    .mg-shop-landing__header h1{
        font-size: 24px;
    }

}



@media (max-width: 767px) {

    .mg-shop-product__price {
        display: flex;
        align-items: baseline;
        gap: 10px;
        flex-wrap: nowrap;
        white-space: nowrap;

        font-family: Inter;
font-weight: 700;
font-size: 16px;
line-height: 100%;
letter-spacing: 0%;
margin-bottom: 4px;

    }

    .mg-shop-carousel__arrows{
        display: none;
    }
    .mg-shop-product__price{
        flex-direction: row;
    }

    /* Новая цена */
    .mg-shop-product__price ins {
        order: 1;
        text-decoration: none;
        background: none;
    }

    .mg-shop-product__price ins .woocommerce-Price-amount {
        font-size: 26px;
        line-height: 1.2;
        font-weight: 700;
        color: #222;
    }

    /* Старая цена */
    .mg-shop-product__price del {
        order: 2;
        color: #999;
        opacity: 1;
        text-decoration: line-through;
        text-decoration-thickness: 1px;
    }

    .mg-shop-product__price del .woocommerce-Price-amount {
        font-size: 22px;
        line-height: 1.2;
        font-weight: 400;
        color: #999;
    }

    .mg-shop-product__price .woocommerce-Price-currencySymbol {
        font-size: inherit;
    }
}

/* Discount label on catalog and related-product cards; the main gallery sale label is separate. */
body.woocommerce-shop .mg-shop-product__media .mg-shop-badge--discount,
body.tax-product_cat .mg-shop-product__media .mg-shop-badge--discount,
body.single-product .related-product .mg-shop-product__media .mg-shop-badge--discount {
    color: #FF0000;
    font-weight: 900;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0;
    text-align: right;
    font-family: 'Roboto', sans-serif;
    position: absolute;
    right: 16px;
    top: 12px;
}
