/* SC Favorites v24 */

/* ---- сердечко / копировать: голые иконки. Тема красит button серым и прячет svg внутри button — всё через !important ---- */
.sc-fav,.sc-copy{appearance:none !important;-webkit-appearance:none !important;background:none !important;background-color:transparent !important;border:0 !important;box-shadow:none !important;border-radius:50% !important;padding:0 !important;margin:0 !important;min-width:0 !important;min-height:0 !important;width:32px !important;height:32px !important;line-height:0 !important;cursor:pointer;display:inline-flex !important;align-items:center;justify-content:center;color:#1d2733 !important;transition:transform .15s,color .15s,background .15s !important;outline:none;vertical-align:middle;text-transform:none}
.sc-fav::before,.sc-fav::after,.sc-copy::before,.sc-copy::after{display:none !important;content:none !important}
.sc-fav svg,.sc-copy svg{display:block !important;visibility:visible !important;opacity:1 !important;width:21px !important;height:21px !important;max-width:none !important;fill:none;stroke:currentColor;transition:fill .15s,stroke .15s,transform .15s;pointer-events:none}
.sc-copy svg{width:19px !important;height:19px !important}
.sc-fav:hover{color:#ec4a4a !important;background:#fdeef3 !important}
.sc-copy:hover{color:#1a73e8 !important;background:#eaf3fe !important}
.sc-fav:active svg{transform:scale(.85)}
.sc-fav.is-on{color:#ec4a4a !important}
.sc-fav.is-on svg{fill:#ec4a4a !important;stroke:#ec4a4a !important}
.sc-fav.is-busy{pointer-events:none;opacity:.6}
.sc-fav.is-pop svg{animation:scfavPop .35s ease}
@keyframes scfavPop{0%{transform:scale(1)}40%{transform:scale(1.3)}100%{transform:scale(1)}}

/* ряд над виджетом оплаты на странице товара: иконки справа */
.sc-fav-row{display:flex;justify-content:flex-end;align-items:center;gap:2px;margin:2px 4px 0 0}
.sc-fav-row .sc-fav,.sc-fav-row .sc-copy{width:28px !important;height:28px !important;color:#6b7482 !important}
.sc-fav-row .sc-fav svg{width:18px !important;height:18px !important}
.sc-fav-row .sc-copy svg{width:16px !important;height:16px !important}
.sc-fav-row .sc-fav:hover,.sc-fav-row .sc-fav.is-on{color:#ec4a4a !important}
.sc-fav-row .sc-copy:hover{color:#1a73e8 !important}

/* в доках — между счётчиком/«Скачать» и «В корзину» */
.sc-pdock__actions .sc-fav,.sc-dock__actions .sc-fav,div#topprodown .sc-dock__actions .sc-fav{width:42px !important;height:42px !important;flex:0 0 auto;margin:0 !important}

/* на обложке (каталог, страница избранного): белая подложка-кружок, чтобы читалось на любой картинке */
.sc-fav--cover{background:none !important;box-shadow:none !important;width:36px !important;height:36px !important}
.sc-fav--cover svg{width:24px !important;height:24px !important}
.sc-fav--cover:hover{background:none !important}
.sc-fav--cover:hover svg{transform:scale(1.12)}

/* ---- попап email гостя ---- */
.sc-favm{position:fixed;inset:0;z-index:100000;background:rgba(150,195,245,.18);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:16px}
.sc-favm[hidden]{display:none}
.sc-favm__card{position:relative;width:100%;max-width:420px;background:#fff;border-radius:18px;padding:30px 28px 24px;box-shadow:0 20px 60px rgba(15,23,42,.18);font-family:inherit;text-align:center;animation:scfavIn .22s ease}
@keyframes scfavIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.sc-favm__x,button.sc-favm__x{position:absolute !important;top:14px !important;right:14px !important;left:auto !important;bottom:auto !important;width:32px !important;height:32px !important;max-width:32px !important;max-height:32px !important;min-width:0 !important;min-height:0 !important;flex:none !important;padding:0 !important;margin:0 !important;border:0 !important;outline:0 !important;border-radius:50% !important;background:#f3f5f8 !important;box-shadow:none !important;color:#6b7482 !important;font-size:0 !important;line-height:0 !important;letter-spacing:0 !important;text-indent:0 !important;cursor:pointer;display:flex !important;align-items:center;justify-content:center;box-sizing:border-box !important;overflow:hidden;transition:background .15s,color .15s;z-index:2}
.sc-favm__x::before,.sc-favm__x::after{display:none !important;content:none !important}
.sc-favm__x svg{display:block !important;width:14px !important;height:14px !important;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round}
.sc-favm__x:hover{background:#e9edf2 !important;color:#0f172a !important}
.sc-favm__icon{width:52px;height:52px;border-radius:50%;background:#fdeef3;color:#ec4a4a;display:flex;align-items:center;justify-content:center;margin:0 auto 14px}
.sc-favm__card h3{margin:0 0 8px;font-size:20px;font-weight:600;color:#0f172a;line-height:1.25}
.sc-favm__card p{margin:0 0 18px;font-size:14px;line-height:1.5;color:#64748b}
.sc-favm__card form{display:flex;flex-direction:column;gap:10px}
.sc-favm__card input[type=email]{width:100% !important;height:50px !important;border:1px solid #d5dae0 !important;border-radius:8px !important;padding:0 14px !important;margin:0 !important;font-size:15px !important;color:#0f172a !important;background:#fff !important;box-sizing:border-box;outline:none;box-shadow:none !important;transition:border-color .15s,box-shadow .15s}
.sc-favm__card input[type=email]:focus{border-color:#2f9bf4 !important;box-shadow:0 0 0 3px rgba(47,155,244,.15) !important}
.sc-favm__card input.is-bad{border-color:#e05252}
.sc-favm__btn{display:block !important;width:100% !important;height:50px !important;min-height:0 !important;padding:0 !important;margin:0 !important;border:0 !important;border-radius:8px !important;background:#1a73e8 !important;color:#fff !important;font-size:15px !important;font-weight:500 !important;letter-spacing:0 !important;text-transform:none !important;line-height:50px !important;box-shadow:none !important;cursor:pointer;transition:background .15s !important}
.sc-favm__btn:hover{background:#1667cc !important;color:#fff !important}
.sc-favm__btn:disabled{opacity:.6 !important;cursor:default}
.sc-favm__err{margin-top:10px;font-size:13px;color:#e05252}
.sc-favm__err[hidden]{display:none}
.sc-favm__note{margin-top:14px;font-size:12px;color:#94a3b8}

/* ---- тост ---- */
.sc-fav-toast{position:fixed;left:50%;bottom:var(--sc-toast-bottom,28px);transform:translateX(-50%) translateY(10px);z-index:100001;background:#0f172a;color:#fff;font-size:14px;line-height:1.3;padding:12px 18px;border-radius:12px;box-shadow:0 8px 24px rgba(15,23,42,.25);opacity:0;transition:opacity .2s,transform .2s;max-width:calc(100% - 32px);text-align:center;pointer-events:none}
.sc-fav-toast.is-on{opacity:1;transform:translateX(-50%) translateY(0)}
.sc-fav-toast.is-undo{display:inline-flex;align-items:center;gap:12px;padding:10px 16px 10px 12px;pointer-events:auto}
.sc-fav-toast.is-undo[hidden]{display:none}
.sc-fav-toast a[data-sc-undo]{color:#8ec5ff !important;font-weight:600 !important;text-decoration:none !important;white-space:nowrap}
.sc-fav-toast a[data-sc-undo]:hover{color:#fff !important}
.sc-fav-cd{position:relative;width:26px;height:26px;flex:0 0 26px}
.sc-fav-cd svg{width:26px;height:26px;transform:rotate(-90deg);display:block}
.sc-fav-cd__bg{fill:none;stroke:rgba(255,255,255,.2);stroke-width:2}
.sc-fav-cd__fg{fill:none;stroke:#8ec5ff;stroke-width:2;stroke-linecap:round}
.sc-fav-cd b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff}
.sc-fav-toast[hidden]{display:none}
.sc-fav-toast a{color:#8ec5ff !important;text-decoration:none !important;pointer-events:auto}
.sc-fav-toast a:hover,.sc-fav-toast a:focus{color:#fff !important;font-weight:700 !important}

/* ---- пункт «Избранное» в дропдауне шапки (пересобирается JS, см. menuIcon) ---- */
li.scm-fav-item{list-style:none !important;display:block !important}
li.scm-fav-item::before,li.scm-fav-item::after,a.scm-fav-a::before,a.scm-fav-a::after{display:none !important;content:none !important}
a.scm-fav-a{display:flex !important;align-items:center !important;text-decoration:none !important;background:none !important;white-space:nowrap;transition:color .15s}
a.scm-fav-a:hover{color:#1d2733 !important}
a.scm-fav-a svg.scm-fav-ico{display:block !important;flex:0 0 20px;width:20px !important;height:20px !important;margin-right:11px !important;fill:none !important;stroke:currentColor !important;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.scm-fav-txt{display:inline-block !important;position:relative !important}
/* счётчик избранного — как бейдж корзины в шапке */
.scm-fav-badge{position:absolute;top:-9px;right:-20px;min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:9px;background:#28c96f;color:#fff;font-size:10px;font-weight:700;line-height:14px;text-align:center;border:2px solid #fff;letter-spacing:0}
.scm-fav-badge[hidden]{display:none !important}

/* ---- страница /account/favorites/ ---- */
.sc-favp{width:100%}
.sc-favp__bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 20px}
.sc-favp__sort select{height:44px;border:1px solid #d5dae0;border-radius:10px;padding:0 36px 0 14px;font-size:14px;color:#0f172a;background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7482' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") right 12px center/16px no-repeat;appearance:none;-webkit-appearance:none;cursor:pointer;min-width:230px}
.sc-favp__chk{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:#0f172a;cursor:pointer;user-select:none}
.sc-favp__chk input{width:20px;height:20px;margin:0;accent-color:#1a73e8;cursor:pointer}
.sc-favp__search input{height:44px;border:1px solid #d5dae0;border-radius:10px;padding:0 14px;font-size:14px;min-width:240px;background:#fff;outline:none}
.sc-favp__search input:focus{border-color:#2f9bf4}
.sc-favp__clear,button.sc-favp__clear{margin-left:auto !important;background:none !important;border:0 !important;box-shadow:none !important;color:#6b7482 !important;font-size:13px !important;font-weight:400 !important;text-transform:none !important;letter-spacing:0 !important;cursor:pointer;padding:6px 0 !important;min-height:0 !important;height:auto !important;line-height:1.3 !important;text-decoration:underline !important;text-underline-offset:3px}
.sc-favp__clear:hover{color:#e05252 !important;background:none !important}
.sc-favp__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media(max-width:1100px){.sc-favp__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.sc-favp__grid{grid-template-columns:1fr}.sc-favp__clear{margin-left:0}}
.sc-favp__none{padding:40px 0;text-align:center;color:#6b7482}
.sc-favp__none[hidden]{display:none}

/* карточка — 1:1 с каталогом: белая, radius 16, обложка, название, цена, чипы, синяя кнопка */
/* карточки = разметка и стили каталога (category_product_child.css подключается на этой странице).
   Своё здесь только сердечко в правом верхнем углу карточки — и в каталоге, и в избранном */
.col_lg_6_grid_item{position:relative !important}
.col_lg_6_grid_item > .sc-fav.sc-fav--cover{position:absolute !important;top:12px !important;right:12px !important;left:auto !important;bottom:auto !important;margin:0 !important;z-index:5}
.col_lg_6_grid_item.is-leaving{opacity:0 !important;transform:scale(.96) !important;transition:opacity .25s,transform .25s !important}
.col_lg_6_grid_item[hidden]{display:none !important}
.sc-favp .sort-controls select{min-width:240px}
.sc-favp__bar{flex-wrap:nowrap !important}
.sc-favp__bar .search-box{flex:1 1 auto !important;min-width:0 !important;margin:0 !important}
.sc-favp__bar .search-box input{width:100% !important;box-sizing:border-box !important;margin:0 !important}
.sc-favp__bar .sc-favp__clear{flex:0 0 auto !important;margin-left:auto !important;white-space:nowrap}
@media(max-width:700px){.sc-favp__bar{flex-wrap:wrap !important}.sc-favp__bar .search-box{flex-basis:100% !important;order:3}}
.sc-favp{--brand-blue:#247de6}
.sc-favp #col_lg_6_grid div.add_to_cart_button,
.sc-favp #col_lg_6_grid div.add_to_cart_button:hover{background:#247de6 !important;background-color:#247de6 !important;background-image:none !important;border-color:#247de6 !important;color:#fff !important}

/* пусто */
.sc-favp__empty{text-align:center;padding:48px 20px;color:#64748b}
.sc-favp__empty svg{color:#cbd5e1;margin-bottom:12px}
.sc-favp__empty h2{font-size:22px;font-weight:600;color:#0f172a;margin:0 0 8px}
.sc-favp__empty p{max-width:460px;margin:0 auto 20px;font-size:14px;line-height:1.55}
.sc-favp__btn{display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 24px;border-radius:10px;background:#1a73e8;color:#fff;font-size:15px;font-weight:600;text-decoration:none}
.sc-favp__btn:hover{background:#1667cc;color:#fff}

/* сайдбар ЛК: отступ между пунктами */
#scm_account_navigation a#favorites{margin-top:10px !important;margin-bottom:10px !important}

/* сайдбар ЛК: активный пункт «Избранное» (как у «Мои заказы») */
body.sc-fav-page #scm_account_navigation a#favorites{background:#1a73e8;color:#fff}
/* «Мои заказы» на странице избранного — как неактивный «Профиль»; при наведении — обычный ховер темы */
body.sc-fav-page #scm_account_navigation a#orders:hover{background:#fff !important;background-image:none !important;box-shadow:none !important;border:1px solid #e2e8f0 !important;color:#1a73e8 !important}
body.sc-fav-page #scm_account_navigation a#orders:hover svg{stroke:#1a73e8 !important;color:#1a73e8 !important}
body.sc-fav-page #scm_account_navigation a#orders:not(:hover){background:transparent !important;background-image:none !important;box-shadow:none !important;border-color:transparent !important;color:var(--scm-nav-c, inherit) !important;font-weight:var(--scm-nav-fw, inherit) !important}

/* заголовок страницы избранного по центру (на мобильном тема прижимала влево) */
body.sc-fav-page .page-title .entry-title,body.sc-fav-page .page-title .title,body.sc-fav-page .woocommerce-MyAccount-content ~ h1,body.sc-fav-page .title-subtitle{text-align:center !important}
@media(max-width:1024px){body.sc-fav-page .page-title,body.sc-fav-page .page-title .container,body.sc-fav-page .page-title .entry-title,body.sc-fav-page .woocommerce > h1,body.sc-fav-page h1{text-align:center !important;justify-content:center !important;margin-left:auto !important;margin-right:auto !important}}

/* подзаголовок страницы избранного — как у «Заказов» */
body.sc-fav-page .title-subtitle{font-size:20px !important;font-weight:600 !important;opacity:1 !important;color:#1d2733 !important}
body.sc-fav-page .title-subtitle::after{content:"";display:inline-block;width:18px;height:18px;margin-left:8px;vertical-align:-3px;background:#ec4a4a;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/></svg>") center/contain no-repeat}

/* на страницах с нижним доком плашку поднимаем над ним */
body.sc-pdock-ready,body.sc-fav-has-dock{--sc-toast-bottom:120px}
@media(max-width:768px){body.sc-pdock-ready,body.sc-fav-has-dock{--sc-toast-bottom:140px}}

/* страница товара: иконки в строке рейтинга, справа от «N отзывов» */
.product-rating{display:flex !important;align-items:center !important;justify-content:space-between !important;gap:12px}
.product-rating .wpd-cf-value{display:flex !important;align-items:center;flex:1 1 auto;min-width:0}
.product-rating .sc-fav-row{margin:0;flex:0 0 auto;position:relative}
.product-rating{overflow:visible !important}
.product-rating--empty{justify-content:flex-end !important}
