/* 02.12.2026 (Claude): тестовый режим доработок юзабилити cosmodrome.games, пункты 1-9. Подключается только при куке COSMO_UX_PREVIEW=1 */
:root{--ux-y:#ffcb06;--ux-y2:#ffd84a;--ux-t:#333;--ux-ok:#2e9e4f;--ux-line:#ececec}

/* 6. Полоса над шапкой */
.ux_strip{background:#222;color:#fff;font:500 13px/18px Rubik,sans-serif;overflow:hidden}
.ux_strip_in{max-width:1400px;margin:0 auto;padding:9px 16px;display:flex;justify-content:center;gap:12px 48px;flex-wrap:wrap}
.ux_strip_msg{color:#fff!important;text-decoration:none!important;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.ux_strip_msg i{color:var(--ux-y)}
a.ux_strip_msg:hover{color:var(--ux-y)!important}
.ux_strip_arrow{margin-left:6px;color:var(--ux-y)}
@media (max-width:760px){
 .ux_strip_in{display:block;position:relative;height:18px;padding:8px 12px}
 .ux_strip_msg{position:absolute;left:0;right:0;top:8px;justify-content:center;font-size:12px;opacity:0;animation:uxStrip 9s infinite}
 .ux_strip_msg:nth-child(2){animation-delay:4.5s}
 .ux_strip[data-n="1"] .ux_strip_msg{opacity:1;animation:none}
}
@keyframes uxStrip{0%{opacity:0;transform:translateY(6px)}4%,46%{opacity:1;transform:none}50%,100%{opacity:0;transform:translateY(-6px)}}

/* Прогресс-полосы (пункты 1 и 2) */
.ux_ico{width:16px;height:16px;flex:0 0 16px;display:inline-block;vertical-align:-3px}
.ux_free_text .ux_ico{color:#9a9a9a;margin-top:2px}
.ux_strip_msg .ux_ico{color:var(--ux-y)}
.ux_deliv_head .ux_ico{color:#9a9a9a;align-self:center}
.ux_bar{position:relative;height:6px;border-radius:3px;background:var(--ux-line);margin-top:8px}
.ux_bar>i{position:absolute;left:0;top:0;bottom:0;border-radius:3px;background:var(--ux-y);transition:width .4s}
.ux_free{font:14px/20px Rubik,sans-serif;color:var(--ux-t);text-align:left}
.ux_free_text{display:flex;gap:10px;align-items:flex-start}
.ux_free_text i{color:#9a9a9a;margin-top:3px;flex:0 0 auto}
.ux_free_done .ux_free_text i{color:var(--ux-ok)}
.ux_free_done .ux_bar>i{background:var(--ux-ok)}
.ux_free_product{margin-top:16px}

/* Корзина: вместо красной строки прогресс до бесплатной доставки и скидки за набор */
#cart_discount_notify{text-align:left}
#cart_discount_notify>.capitals_notify,#cart_discount_notify>.not_capitals_notify{display:none!important}
.ux_class{font:14px/20px Rubik,sans-serif;color:var(--ux-t);padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--ux-line)}
.ux_class_text{display:flex;gap:10px;align-items:flex-start}
.ux_class_text i{color:#e0a800;margin-top:3px;flex:0 0 auto}
.ux_bar_class{margin:12px 0 40px}
.ux_bar_class>span{position:absolute;top:-4px;width:2px;height:14px;background:#cfcfcf;transform:translateX(-1px)}
.ux_bar_class>span.on{background:#c99700}
.ux_bar_class>span em{position:absolute;top:18px;left:0;transform:translateX(-50%);font:500 11px/13px Rubik,sans-serif;color:#9a9a9a;white-space:nowrap;font-style:normal;text-align:center}
.ux_bar_class>span.on em{color:var(--ux-t)}
.ux_bar_class>span:last-child em{transform:translateX(-100%);text-align:right}
.ux_class_link{color:var(--ux-t)!important;text-decoration:underline!important;font-size:14px}

/* 3. Окно «Товар добавлен в корзину» */
.popupSuccesProduct{display:none!important}
.ux_toast{position:fixed;z-index:100050;top:20px;right:20px;width:380px;max-width:calc(100vw - 24px);box-sizing:border-box;background:#fff;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.18);padding:18px;font:14px/20px Rubik,sans-serif;color:var(--ux-t);opacity:0;transform:translateY(-10px);transition:opacity .25s,transform .25s}
.ux_toast.ux_show{opacity:1;transform:none}
.ux_toast_close{position:absolute;top:6px;right:8px;border:0;background:none;font-size:24px;line-height:24px;color:#9a9a9a;cursor:pointer;padding:4px 6px}
.ux_toast_head{font-weight:500;display:flex;align-items:center;gap:8px;margin-bottom:12px;padding-right:24px}
.ux_toast_head i{color:var(--ux-ok)}
.ux_toast_item{display:flex;gap:12px;align-items:center;margin-bottom:14px}
.ux_toast_item img{width:64px;height:64px;object-fit:contain;flex:0 0 64px}
.ux_toast_name{font-size:14px;line-height:18px;margin-bottom:4px}
.ux_toast_price{font-weight:700;font-size:15px}
.ux_toast_price s{font-weight:400;color:#9a9a9a;margin-left:8px;font-size:13px}
.ux_toast_qty{font-weight:400;color:#666;margin-left:8px;font-size:13px}
.ux_toast .ux_free{margin-bottom:12px}
.ux_toast_class{font-size:13px;line-height:18px;background:#fff8d6;border-radius:6px;padding:8px 10px;margin-bottom:12px}
.ux_toast_class i{color:#c99700;margin-right:4px}
.ux_toast_btns{display:flex;gap:8px}
.ux_btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 16px;border-radius:8px;font:600 15px/1 Rubik,sans-serif;cursor:pointer;text-decoration:none!important;box-sizing:border-box;border:0;white-space:nowrap}
.ux_btn_yellow{background:var(--ux-y);color:var(--ux-t)!important}
.ux_btn_yellow:hover{background:var(--ux-y2)}
.ux_btn_ghost{background:#f2f2f2;color:var(--ux-t)}
.ux_btn_ghost:hover{background:#e9e9e9}
.ux_toast_btns .ux_btn{flex:1 1 0;padding:0 10px;font-size:14px}
@media (max-width:760px){.ux_toast{top:auto;bottom:12px;right:12px;left:12px;width:auto;max-width:none;transform:translateY(10px)}}

/* 4. Счетчик количества */
.ux_hidden{display:none!important}
.ux_stepper{display:flex;align-items:center;justify-content:space-between;height:44px;border-radius:8px;background:var(--ux-y);width:100%;box-sizing:border-box;padding:0 4px;user-select:none}
.ux_stepper button{width:40px;height:36px;border:0;border-radius:6px;background:transparent;font:500 22px/1 Rubik,sans-serif;color:var(--ux-t);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.ux_stepper button:hover{background:rgba(0,0,0,.08)}
.ux_qty{width:56px;height:36px;border:0;background:transparent;text-align:center;font:600 16px/1 Rubik,sans-serif;color:var(--ux-t);outline:none;padding:0;margin:0;box-shadow:none}
.ux_qty:focus{background:rgba(255,255,255,.55);border-radius:6px}
.ux_stepper.ux_busy{opacity:.6;pointer-events:none}
.product_buttons .ux_stepper{width:240px;max-width:100%}

/* 5. Второе фото при наведении на плитку (метки «Новинка», «Хит» и др. поверх фото) */
.catalog___item .catalog_tags_links ul{z-index:3}
@media (hover:hover) and (pointer:fine){
 .ux_hover_wrap{position:relative!important;display:block}
 .ux_hover_img{position:absolute;left:0;top:0;width:100%!important;height:100%!important;object-fit:cover;border-radius:4px;opacity:0;transition:opacity .25s;pointer-events:none;background:#fff}
 .catalog___item:hover .ux_hover_img{opacity:1}
}

/* 7. Кнопка покупки при прокрутке карточки */
.ux_buybar{position:fixed;left:0;right:0;bottom:0;z-index:100040;background:#fff;box-shadow:0 -6px 24px rgba(0,0,0,.12);transform:translateY(110%);transition:transform .25s}
.ux_buybar.ux_show{transform:none}
.ux_buybar_in{max-width:1200px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;gap:14px;box-sizing:border-box}
.ux_buybar_in img{width:48px;height:48px;object-fit:contain;flex:0 0 48px}
.ux_buybar_info{flex:1 1 auto;min-width:0}
.ux_buybar_name{font:500 15px/20px Rubik,sans-serif;color:var(--ux-t);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ux_buybar_price{font:700 16px/22px Rubik,sans-serif;color:var(--ux-t)}
.ux_buybar_price s{font-weight:400;color:#9a9a9a;font-size:13px;margin-left:8px}
.ux_buybar_act{flex:0 0 auto;width:220px}
.ux_buybar_act .ux_btn{width:100%}
#button-up{transition:bottom .25s}
html.ux_buybar_on #button-up{bottom:84px!important}
@media (max-width:760px){html.ux_buybar_on #button-up{bottom:70px!important}}
@media (max-width:760px){.ux_buybar_in{padding:8px 12px;gap:10px}.ux_buybar_in img{width:40px;height:40px;flex-basis:40px}.ux_buybar_act{width:150px}.ux_buybar_name{font-size:13px;line-height:17px}.ux_buybar_price{font-size:15px;line-height:20px}}

/* 8. Вы недавно смотрели */
.ux_viewed{padding:40px 0 48px;background:#f5f5f5}
.ux_viewed_in{max-width:1200px;margin:0 auto;padding:0 16px;box-sizing:border-box}
.ux_viewed_title{font:700 28px/34px Rubik,sans-serif;margin:0 0 20px;color:var(--ux-t)}
.ux_viewed_list{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px}
.ux_vcard{display:flex;flex-direction:column;background:#fff;border-radius:6px;padding:14px;text-decoration:none!important;color:var(--ux-t)!important;transition:box-shadow .2s}
.ux_vcard:hover{box-shadow:0 6px 20px rgba(0,0,0,.08)}
.ux_vcard_img{display:flex;align-items:center;justify-content:center;height:140px;margin-bottom:10px}
.ux_vcard_img img{max-width:100%;max-height:140px;object-fit:contain}
.ux_vcard_name{font:14px/18px Rubik,sans-serif;margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px}
.ux_vcard_price{font:700 15px/20px Rubik,sans-serif}
.ux_vcard_price s{font-weight:400;color:#9a9a9a;font-size:13px;margin-left:6px}
.ux_vcard_na{font-size:12px;color:#c00;margin-top:4px}
@media (max-width:760px){.ux_viewed{padding:28px 0 32px}.ux_viewed_title{font-size:22px;line-height:28px;margin-bottom:14px}.ux_viewed_list{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding-bottom:6px}.ux_vcard{flex:0 0 150px;scroll-snap-align:start}}

/* 9. Доставка СДЭК в карточке */
.ux_deliv{margin-top:16px;border:1px solid var(--ux-line);border-radius:8px;padding:12px 16px;font:14px/20px Rubik,sans-serif;color:var(--ux-t);box-sizing:border-box;background:#fff}
.ux_deliv_head{display:flex;align-items:baseline;gap:8px;font-weight:500;margin-bottom:4px}
.ux_deliv_head i{color:#9a9a9a}
.ux_deliv_change{margin-left:auto;font-weight:400;color:var(--ux-t)!important;text-decoration:none!important;border-bottom:1px dashed #9a9a9a;cursor:pointer}
.ux_deliv_row{display:grid;grid-template-columns:1fr auto auto;gap:12px;padding:8px 0;border-top:1px solid #f2f2f2;align-items:baseline}
.ux_deliv_rows>.ux_deliv_row:first-child{border-top:0}
.ux_deliv_date{color:#666;white-space:nowrap}
.ux_deliv_price{font-weight:500;white-space:nowrap;min-width:60px;text-align:right}
.ux_deliv_free{color:var(--ux-ok)}
.ux_deliv_note{font-size:12px;line-height:16px;color:#9a9a9a;margin-top:6px}
.ux_skel{height:20px;margin:10px 0;border-radius:4px;background:linear-gradient(90deg,#f2f2f2 25%,#e8e8e8 50%,#f2f2f2 75%);background-size:200% 100%;animation:uxSkel 1.2s infinite}
@keyframes uxSkel{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* 05.12.2026 (Claude): когда внизу экрана кнопка покупки (пункт 7), окно про cookies и другие временные окна поднимаются над ней */
html.ux_buybar_on #temp_popup{bottom:86px;transition:bottom .2s}
