/* ============================================================
   SD PRODUCTS STATIC BORDER V116

   НОВОЕ + ПОПУЛЯРНЫЕ:
   border вообще не меняется при hover.
   ============================================================ */

body.site-home-modern
.home-popular-card-v7{
    box-sizing:border-box !important;
}


/* ============================================================
   DARK
   ============================================================ */

html[data-site-theme="dark"]
body.site-home-modern
.home-popular-card-v7,

html[data-site-theme="dark"]
body.site-home-modern
.home-popular-card-v7:hover,

html[data-site-theme="dark"]
body.site-home-modern
.home-popular-card-v7:focus,

html[data-site-theme="dark"]
body.site-home-modern
.home-popular-card-v7:focus-visible{

    border-width:1px !important;
    border-style:solid !important;

    border-color:
        rgba(255,255,255,.18) !important;

    border-radius:18px !important;
}


/* ============================================================
   LIGHT
   ============================================================ */

html[data-site-theme="light"]
body.site-home-modern
.home-popular-card-v7,

html[data-site-theme="light"]
body.site-home-modern
.home-popular-card-v7:hover,

html[data-site-theme="light"]
body.site-home-modern
.home-popular-card-v7:focus,

html[data-site-theme="light"]
body.site-home-modern
.home-popular-card-v7:focus-visible{

    border-width:1px !important;
    border-style:solid !important;

    border-color:
        rgba(20,20,20,.18) !important;

    border-radius:18px !important;
}


/* ============================================================
   Во время восстановления позиции запрещаем smooth страницы.
   ============================================================ */

html.sd-product-restore-v116,
html.sd-product-restore-v116 body{

    scroll-behavior:auto !important;
}


/*
 * Пока модалка товара открыта,
 * browser snap остаётся,
 * но наши принудительные восстановления мгновенные.
 */

body.sd-product-freeze-v116
.home-popular-viewport-v7{

    scroll-behavior:auto !important;
}
