/* Кнопки размера скидки рядом с сортировкой (discount-chips.php) */
.cat_top_left{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.disc_chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.disc_chips:empty{display:none}
.disc_chip{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 14px;border:1.5px solid #f1c9cf;border-radius:20px;background:#fff;color:#b4152c;font-size:14px;line-height:1;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.disc_chip b{font-weight:700}
.disc_chip span{font-size:12px;color:#9a6a71;font-weight:500}
.disc_chip:hover{border-color:#b4152c;background:#fff6f7}
.disc_chip.is-active{background:#b4152c;border-color:#b4152c;color:#fff}
.disc_chip.is-active span{color:#ffd7dd}
.disc_chip_all{color:#555;border-color:#ddd}
.disc_chip_all:hover{border-color:#999;background:#f6f6f6}
/* крестик на выбранной кнопке - снять фильтр */
.disc_chip_x{position:relative;display:inline-block;width:18px;height:18px;margin:0 -4px 0 2px;border-radius:50%;background:rgba(255,255,255,.22);flex:0 0 auto}
.disc_chip_x:before,.disc_chip_x:after{content:"";position:absolute;left:50%;top:50%;width:9px;height:1.6px;border-radius:1px;background:#fff;transform:translate(-50%,-50%) rotate(45deg)}
.disc_chip_x:after{transform:translate(-50%,-50%) rotate(-45deg)}
.disc_chip.is-active:hover .disc_chip_x{background:rgba(255,255,255,.38)}

/* Телефон и планшет: [Фильтры][Сортировка][вид] в одну строку, под ними кнопки скидок с прокруткой вбок */
@media (max-width:850px){
	.cat_top{flex-wrap:wrap;gap:10px 8px;padding:0 16px}
	.cat_top_left{display:contents}
	.cat_top .mob_cat_left{order:1;flex:1 1 0;min-width:0;height:42px;margin:0;padding:0 12px;justify-content:center;gap:8px;border:1px solid #e2e2e2;border-radius:10px;background:#fff;font-size:15px;white-space:nowrap}
	.cat_top .mob_cat_left .btn-icon{display:inline-flex}
	.cat_top .mob_cat_left .icon-svg{width:20px;height:20px}
	.cat_top .sort_select{order:2;flex:1 1 0;min-width:0;width:auto;height:42px;margin:0;padding:0 28px 0 12px;border:1px solid #e2e2e2;border-radius:10px;background-color:#fff;font-size:14px;color:#222}
	.cat_top .filters_left_left_right{order:3;flex:0 0 auto;margin:0;align-self:center}
	.disc_chips{order:4;flex:0 0 calc(100% + 16px);margin-right:-16px;padding:0 16px 2px 0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
	.disc_chips::-webkit-scrollbar{display:none}
	.disc_chip{height:36px;padding:0 13px;font-size:14px;flex:0 0 auto}
}
/* Окно загрузки по центру экрана при выборе скидки */
#lp_disc_loader{position:fixed;inset:0;font-family:Hauss,"Segoe UI",-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;line-height:1.3;z-index:100000;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.55);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}
#lp_disc_loader.is-on{opacity:1;visibility:visible}
#lp_disc_loader .lpdl_box{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:220px;max-width:calc(100% - 32px);padding:26px 30px 22px;background:#fff;border-radius:16px;box-shadow:0 12px 40px rgba(40,10,15,.16);text-align:center;transform:translateY(8px) scale(.97);transition:transform .2s}
#lp_disc_loader.is-on .lpdl_box{transform:none}
#lp_disc_loader .lpdl_spin{width:42px;height:42px;margin-bottom:6px;border-radius:50%;border:3px solid #f6dde1;border-top-color:#b4152c;animation:lpdl_rot .8s linear infinite}
#lp_disc_loader .lpdl_t{font-size:16px;font-weight:600;color:#222}
#lp_disc_loader .lpdl_s{font-size:14px;color:#b4152c;font-weight:600}
@keyframes lpdl_rot{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){#lp_disc_loader .lpdl_spin{animation-duration:2s}}

/* Варианты фильтров без товаров при текущем выборе (cat-facets.php) */
.lp-fz{display:none!important}

/* Страница «Акции и скидки»: кнопки справа от заголовка */
.akc_title_row{display:flex;align-items:center;flex-wrap:wrap;gap:12px 28px}
.akc_title_row h1{margin-right:auto}
.akc_title_row .disc_chips{flex:0 1 auto;justify-content:flex-end}
@media (max-width:850px){
	.akc_title_row{display:block}
	.akc_title_row .disc_chips{margin:12px -16px 4px 0;padding:0 16px 2px 0;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
	.akc_title_row .disc_chips::-webkit-scrollbar{display:none}
	.akc_title_row .disc_chip{height:36px;padding:0 13px;font-size:14px;flex:0 0 auto}
}

/* Пагинация категории: «Показать ещё» и номера страниц (cat-pager.php) */
.pagination:has(> .lp_pages){flex-direction:column;align-items:center;gap:14px}   /* только новая пагинация категорий, старая (акции, бренды...) остаётся строкой */
.lp_more{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%}
.lp_more_btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:260px;height:50px;padding:0 28px;border:1.5px solid #222;border-radius:25px;background:#fff;color:#222;font-size:16px;font-weight:500;text-decoration:none;cursor:pointer;transition:background .15s,color .15s}
.lp_more_btn:hover{background:#222;color:#fff}
.lp_more_spin{display:none;width:18px;height:18px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:lpdl_rot .7s linear infinite}
.lp_more_btn.is-loading{pointer-events:none;opacity:.75}
.lp_more_btn.is-loading .lp_more_spin{display:inline-block}
.lp_more_info{font-size:13px;color:#888}
.lp_pages{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px}
.lp_pages .paging{margin:0;min-width:36px;height:36px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;color:#222;text-decoration:none}
.lp_pg_dots{padding:0 4px;color:#999}
@media (max-width:767px){.lp_more_btn{width:100%;min-width:0}}
