:root{--bmk-green:#08a63b;--bmk-text:#1f2937;--bmk-muted:#8a94a6;--bmk-line:#e7eaf0;--bmk-bg:#fff}
.bmk-sf-wrap{position:relative;width:100%;font-family:inherit}
.bmk-sf-wrap [hidden],.bmk-sf-overlay[hidden],.bmk-sf-sheet[hidden]{display:none!important}
.bmk-sf-search{height:46px;display:flex;align-items:center;background:#fff;border:1px solid #e2e6eb;border-radius:23px;box-shadow:0 3px 12px rgba(31,41,55,.055);overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease}
.bmk-sf-search:focus-within{border-color:rgba(8,166,59,.42);box-shadow:0 4px 16px rgba(8,166,59,.10)}
.bmk-sf-search-submit,.bmk-sf-filter-btn{width:44px;height:38px;display:grid;place-items:center;border:0!important;background:transparent!important;color:#788291;padding:0!important;box-shadow:none!important;cursor:pointer;flex:0 0 auto;transition:color .18s ease,transform .18s ease}
.bmk-sf-search-submit:hover,.bmk-sf-filter-btn:hover{color:#4f5968}.bmk-sf-search-submit:active,.bmk-sf-filter-btn:active{transform:scale(.92)}
.bmk-sf-search-submit svg,.bmk-sf-filter-btn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bmk-sf-filter-btn{position:relative}.bmk-sf-input{height:100%;min-width:0;flex:1;border:0!important;outline:0!important;background:transparent!important;padding:0 8px 0 2px!important;font-size:13px!important;font-weight:400;color:var(--bmk-text);box-shadow:none!important}
.bmk-sf-input::placeholder{color:#9da4ae;opacity:1}.bmk-sf-divider{width:1px;height:24px;background:#e7e9ed;flex:0 0 auto}.bmk-sf-filter-dot{position:absolute;right:7px;top:7px;width:7px;height:7px;border-radius:50%;background:var(--bmk-green);box-shadow:0 0 0 2px #fff}
.bmk-sf-dropdown{position:absolute;z-index:9995;top:53px;left:0;right:0;background:#fff;border:1px solid var(--bmk-line);border-radius:16px;box-shadow:0 18px 45px rgba(31,41,55,.14);padding:8px;max-height:420px;overflow:auto}.bmk-sf-drop-item{display:flex;gap:8px;align-items:center;padding:8px;border-radius:12px}.bmk-sf-drop-item:hover{background:#f7f9fa}.bmk-sf-drop-link{display:flex;gap:11px;align-items:center;flex:1;min-width:0;text-decoration:none!important;color:var(--bmk-text)!important}.bmk-sf-drop-item img{width:50px;height:50px;object-fit:contain;border-radius:10px;background:#f3f4f6}.bmk-sf-drop-info{min-width:0;flex:1}.bmk-sf-drop-title{font-size:13.5px;line-height:1.3;font-weight:600}.bmk-sf-price{font-size:13px;font-weight:700;margin-top:4px}.bmk-sf-show-all{width:100%;height:40px;border:0;border-radius:11px;background:#f1f8f3;color:var(--bmk-green);font-weight:700;cursor:pointer}
.bmk-sf-cart-btn{flex:0 0 auto;width:40px;height:40px;border-radius:12px;border:1px solid #dfe3e8!important;background:#fff!important;display:grid;place-items:center;color:#1A793B;cursor:pointer;box-shadow:none!important;text-decoration:none!important;transition:transform .15s ease,background-color .15s ease,border-color .15s ease,color .15s ease}
.bmk-sf-cart-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bmk-sf-cart-btn:hover{background:#f1f8f3!important;border-color:#1A793B!important}
.bmk-sf-cart-btn:active{transform:scale(.92)}
.bmk-sf-cart-btn.is-busy{opacity:.65;cursor:wait}
.bmk-sf-cart-btn.is-added{background:#1A793B!important;border-color:#1A793B!important;color:#fff!important}
.bmk-sf-cart-btn.is-error{background:#fdecec!important;border-color:#e5484d!important;color:#e5484d!important}
.bmk-sf-cart-btn--sm{width:32px;height:32px;border-radius:10px}
.bmk-sf-cart-btn--sm svg{width:15px;height:15px}
.bmk-sf-overlay{position:fixed;inset:0;z-index:99997;background:rgba(17,24,39,.44);backdrop-filter:blur(2px);opacity:0;transition:opacity .28s ease}
.bmk-sf-overlay.is-open{opacity:1}
.bmk-sf-sheet{position:fixed;z-index:99998;left:50%;bottom:0;transform:translate(-50%,105%);width:min(100%,560px);height:min(60vh,560px);background:#fff;border-radius:24px 24px 0 0;box-shadow:0 -18px 50px rgba(17,24,39,.2);overflow:hidden;opacity:.98;transition:transform .32s cubic-bezier(.22,.61,.36,1),opacity .22s ease;will-change:transform}
.bmk-sf-sheet.is-open{transform:translate(-50%,0);opacity:1}.bmk-sf-sheet.is-dragging{transition:none}
.bmk-sf-handle{width:42px;height:4px;border-radius:4px;background:#d5d8dd;margin:10px auto 5px;touch-action:none}
.bmk-sf-header{height:68px;display:flex;align-items:center;gap:11px;padding:0 18px;border-bottom:1px solid var(--bmk-line)}.bmk-sf-header>div{min-width:0;flex:1}.bmk-sf-header h3{font-size:18px;line-height:1.2;margin:0;color:var(--bmk-text)}.bmk-sf-header p{margin:3px 0 0;font-size:12px;color:var(--bmk-muted)}
.bmk-sf-close,.bmk-sf-back{width:38px;height:38px;border:0!important;background:transparent!important;color:#4b5563;display:grid;place-items:center;padding:0!important;cursor:pointer;box-shadow:none!important}.bmk-sf-close svg,.bmk-sf-back svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.bmk-sf-close:active,.bmk-sf-back:active{transform:scale(.92)}
.bmk-sf-viewport{height:calc(100% - 87px);overflow:hidden}.bmk-sf-pages{width:200%;height:100%;display:flex;transform:translateX(0);transition:transform .34s cubic-bezier(.22,.61,.36,1)}.bmk-sf-pages.is-results{transform:translateX(-50%)}.bmk-sf-page{width:50%;height:100%;display:flex;flex-direction:column;min-width:0}.bmk-sf-results-page{opacity:.25;transition:opacity .25s ease}.bmk-sf-pages.is-results .bmk-sf-results-page{opacity:1}.bmk-sf-pages.is-results .bmk-sf-filter-page{opacity:.4}
.bmk-sf-body{flex:1;overflow:auto;padding:5px 18px 20px;-webkit-overflow-scrolling:touch}.bmk-sf-section{padding:18px 0;border-bottom:1px solid #eef0f3}.bmk-sf-label{display:block;font-size:13px;font-weight:700;color:var(--bmk-text);margin-bottom:12px}.bmk-sf-field{height:38px;border:1px solid #dfe3e8;border-radius:13px;display:flex;align-items:center;padding:0 13px;gap:9px}.bmk-sf-field:focus-within{border-color:rgba(8,166,59,.55);box-shadow:0 0 0 3px rgba(8,166,59,.08)}.bmk-sf-field svg{width:18px;height:18px;fill:none;stroke:#8a94a6;stroke-width:2}.bmk-sf-field input{flex:1;min-width:0;border:0!important;background:transparent!important;outline:0!important;box-shadow:none!important;padding:0!important;font-size:13px!important}
.bmk-sf-categories{display:flex;flex-direction:column;gap:3px}.bmk-sf-category{min-height:43px;display:flex;align-items:center;gap:10px;padding-left:calc(var(--depth)*15px);cursor:pointer;border-radius:10px;transition:background .18s ease,transform .18s ease}.bmk-sf-category:hover{background:#f8faf9}.bmk-sf-category:active{transform:scale(.995)}.bmk-sf-category input{position:absolute;opacity:0;pointer-events:none}.bmk-sf-check{width:21px;height:21px;border:1.5px solid #cfd5dd;border-radius:7px;position:relative;flex:0 0 auto;transition:background .2s ease,border-color .2s ease,transform .2s ease}.bmk-sf-category input:checked+.bmk-sf-check{background:var(--bmk-green);border-color:var(--bmk-green);transform:scale(1.05)}.bmk-sf-category input:checked+.bmk-sf-check:after{content:"";position:absolute;left:6px;top:3px;width:6px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.bmk-sf-category-name{font-size:13px;color:var(--bmk-text);flex:1}.bmk-sf-count{font-size:12px;color:#7e8794;background:#f2f4f6;border-radius:999px;padding:3px 8px}
.bmk-sf-prices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.bmk-sf-prices label{height:52px;border:1px solid #dfe3e8;border-radius:13px;padding:6px 12px;display:flex;flex-direction:column}.bmk-sf-prices span{font-size:11px;color:var(--bmk-muted)}.bmk-sf-prices input{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;font-size:13px!important;height:24px!important;outline:0!important}
.bmk-sf-footer,.bmk-sf-results-actions{display:grid;grid-template-columns:auto 1fr;gap:10px;padding:13px 18px max(13px,env(safe-area-inset-bottom));border-top:1px solid var(--bmk-line);background:#fff}.bmk-sf-reset,.bmk-sf-apply,.bmk-sf-edit,.bmk-sf-all{height:50px!important;border-radius:14px!important;padding:0 18px!important;font-size:14px!important;font-weight:600!important;cursor:pointer;transition:transform .18s ease,opacity .18s ease;box-shadow:none!important}.bmk-sf-reset:active,.bmk-sf-apply:active,.bmk-sf-edit:active,.bmk-sf-all:active{transform:scale(.98)}.bmk-sf-reset,.bmk-sf-edit{border:1px solid #E5E7EB!important;background:#fff!important;color:#1A793B!important}.bmk-sf-apply,.bmk-sf-all{border:1px solid #1A793B!important;background:#1A793B!important;color:#fff!important}.bmk-sf-apply:disabled{opacity:.65;cursor:wait}
.bmk-sf-results{flex:1;overflow:auto;padding:10px 16px;-webkit-overflow-scrolling:touch}.bmk-sf-product{display:flex;align-items:center;gap:10px;padding:11px 2px;border-bottom:1px solid #eef0f3;opacity:0;transform:translateY(8px);animation:bmkItemIn .28s ease forwards}.bmk-sf-product:nth-child(2){animation-delay:.035s}.bmk-sf-product:nth-child(3){animation-delay:.07s}.bmk-sf-product:nth-child(4){animation-delay:.105s}.bmk-sf-product:nth-child(5){animation-delay:.14s}.bmk-sf-product-link{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-decoration:none!important;color:var(--bmk-text)!important}.bmk-sf-product img{width:70px;height:70px;border-radius:14px;object-fit:contain;background:#f5f6f7}.bmk-sf-product-info{min-width:0;flex:1}.bmk-sf-product-title{font-size:13px;font-weight:600;line-height:1.35}.bmk-sf-product-price{margin-top:7px;font-size:13px;font-weight:800}.bmk-sf-empty{height:100%;min-height:350px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px}.bmk-sf-empty-icon{width:88px;height:88px;border-radius:50%;background:#f3f7f4;display:grid;place-items:center;color:var(--bmk-green)}.bmk-sf-empty-icon svg{width:46px;height:46px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.bmk-sf-empty h4{font-size:19px;margin:18px 0 7px}.bmk-sf-empty p{font-size:13px;line-height:1.5;color:var(--bmk-muted);margin:0}.bmk-sf-skeleton{height:94px;border-radius:14px;margin:8px 0;background:linear-gradient(90deg,#f3f4f6 25%,#e8eaed 37%,#f3f4f6 63%);background-size:400% 100%;animation:bmkShimmer 1.2s infinite}
@keyframes bmkShimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}@keyframes bmkItemIn{to{opacity:1;transform:translateY(0)}}body.bmk-sf-lock{overflow:hidden}
@media(min-width:768px){.bmk-sf-sheet{bottom:50%;transform:translate(-50%,calc(50% + 30px)) scale(.98);border-radius:24px;height:min(84vh,760px);opacity:0}.bmk-sf-sheet.is-open{transform:translate(-50%,50%) scale(1);opacity:1}}
@media(max-width:480px){.bmk-sf-search{height:38px;border-radius:22px}.bmk-sf-search-submit,.bmk-sf-filter-btn{width:42px;height:42px}.bmk-sf-input{font-size:13.5px!important}.bmk-sf-sheet{height:min(91vh,760px)}}

/* BMK 3.1 compact overrides */
.bmk-filter-sheet,.bmk-filter-modal,.bmk-bottom-sheet{max-height:60vh!important;height:60vh!important;border-radius:22px 22px 0 0;}
.bmk-filter-actions .button,
.bmk-filter-actions button,
.bmk-btn,
.bmk-show-results,
.bmk-reset,
.bmk-back-filters,
.bmk-all-results{
height:38px!important;
min-height:38px!important;
padding:0 14px!important;
font-size:13px!important;
font-weight:600!important;
border-radius:12px!important;
letter-spacing:.1px;
}
.bmk-reset,.bmk-back-filters{
background:#fff!important;
border:1px solid #E5E7EB!important;
color:#374151!important;
box-shadow:none!important;
}
.bmk-show-results,.bmk-all-results{
background:linear-gradient(180deg,#22c55e,#16a34a)!important;
box-shadow:0 4px 12px rgba(22,163,74,.18)!important;
}

.bmk-sf-footer{padding:12px 16px;border-top:1px solid #eef1f4;background:#fff}
.bmk-sf-footer .bmk-btn,
.bmk-sf-footer button,
.bmk-sf-show-all{
height:36px!important;
min-height:36px!important;
padding:0 14px!important;
border-radius:10px!important;
font-size:12.5px!important;
font-weight:600!important;
letter-spacing:.1px;
box-shadow:none!important;
}
.bmk-sf-footer .bmk-btn-primary{
background:linear-gradient(180deg,#18b84d,#0ea53d)!important;
}
.bmk-sf-footer .bmk-btn-secondary{
background:#fff!important;
border:1px solid #dfe5ea!important;
color:#55606f!important;
}


/* BMK v3.1.3 button overrides */
.bmk-filter-actions .button,
.bmk-filter-actions button,
.bmk-filter-footer .button,
.bmk-filter-footer button,
.bmk-btn,
.bmk-button,
.bmk-search-btn,
.bmk-filter-btn{
    height:50px !important;
    min-height:50px !important;
    line-height:50px !important;
    padding:0 18px !important;
    border-radius:12px !important;
}
.bmk-btn-primary,
.bmk-button-primary,
.bmk-filter-actions .primary,
.bmk-filter-footer .primary,
.bmk-show-products,
.bmk-all-results{
    background:#1a793b !important;
    border-color:#1a793b !important;
    color:#fff !important;
}
.bmk-btn-secondary,
.bmk-button-secondary,
.bmk-reset,
.bmk-change-filter,
.bmk-filter-actions .secondary,
.bmk-filter-footer .secondary{
    background:#ffffff !important;
    border:1px solid #dfe5e1 !important;
    color:#1a793b !important;
}


/* BMK v3.1.4 button refinement */
.bmk-filter-footer,
.bmk-results-footer{
  gap:8px;
}
.bmk-filter-footer .button,
.bmk-filter-footer button,
.bmk-results-footer .button,
.bmk-results-footer button,
.bmk-btn,
.bmk-button{
  height:50px !important;
  min-height:50px !important;
  border-radius:14px !important;
  font-size:14px !important;
  font-weight:600 !important;
  box-shadow:none !important;
  transition:transform .18s ease, background-color .18s ease;
}
.bmk-filter-footer .button:active,
.bmk-filter-footer button:active,
.bmk-results-footer .button:active,
.bmk-results-footer button:active,
.bmk-btn:active,
.bmk-button:active{
 transform:scale(.98);
}
.bmk-btn-primary,
.bmk-filter-footer .apply,
.bmk-results-footer .results{
 background:#1A793B !important;
 color:#fff !important;
 border:1px solid #1A793B !important;
}
.bmk-btn-secondary,
.bmk-filter-footer .reset,
.bmk-results-footer .back{
 background:#fff !important;
 color:#1A793B !important;
 border:1px solid #E5E7EB !important;
}

/* BMK v3.1.7 — стабильная AJAX-корзина с локальным счетчиком */
.bmk-sf-wrap .bmk-sf-drop-item,
.bmk-sf-sheet .bmk-sf-product{
    min-width:0;
}
.bmk-sf-wrap .bmk-sf-cart-btn,
.bmk-sf-sheet .bmk-sf-cart-btn{
    position:relative !important;
    z-index:3 !important;
    flex:0 0 40px !important;
    width:40px !important;
    min-width:40px !important;
    max-width:40px !important;
    height:40px !important;
    min-height:40px !important;
    max-height:40px !important;
    margin:0 !important;
    padding:0 !important;
    line-height:1 !important;
    box-sizing:border-box !important;
    overflow:visible !important;
    vertical-align:middle !important;
    opacity:1 !important;
    visibility:visible !important;
    transform:none;
    isolation:isolate;
}
.bmk-sf-wrap .bmk-sf-cart-btn::before,
.bmk-sf-wrap .bmk-sf-cart-btn::after,
.bmk-sf-sheet .bmk-sf-cart-btn::before,
.bmk-sf-sheet .bmk-sf-cart-btn::after{
    content:none !important;
    display:none !important;
}
.bmk-sf-wrap .bmk-sf-cart-btn--sm,
.bmk-sf-sheet .bmk-sf-cart-btn--sm{
    flex-basis:34px !important;
    width:34px !important;
    min-width:34px !important;
    max-width:34px !important;
    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;
    border-radius:10px !important;
}
.bmk-sf-cart-icon{
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    pointer-events:none;
}
.bmk-sf-cart-icon svg{
    display:block !important;
    width:19px !important;
    height:19px !important;
    margin:0 !important;
    opacity:1 !important;
    visibility:visible !important;
}
.bmk-sf-cart-btn--sm .bmk-sf-cart-icon svg{
    width:16px !important;
    height:16px !important;
}
.bmk-sf-cart-count{
    position:absolute;
    z-index:5;
    top:-6px;
    right:-6px;
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:19px;
    height:19px;
    padding:0 5px;
    border:2px solid #fff;
    border-radius:999px;
    background:#e53935;
    color:#fff;
    font-size:10px;
    font-weight:800;
    line-height:1;
    font-family:Arial,sans-serif;
    box-sizing:border-box;
    box-shadow:0 2px 7px rgba(229,57,53,.28);
    pointer-events:none;
}
.bmk-sf-cart-count[hidden]{display:none !important;}
.bmk-sf-cart-btn.has-items{
    background:#1A793B !important;
    border-color:#1A793B !important;
    color:#fff !important;
}
.bmk-sf-cart-btn.is-busy{
    opacity:.72 !important;
    pointer-events:none !important;
    cursor:wait !important;
}
.bmk-sf-cart-btn.is-busy .bmk-sf-cart-icon{
    animation:bmkCartBusy .75s linear infinite;
}
.bmk-sf-cart-btn.is-pulsing{
    animation:bmkCartPulse .4s cubic-bezier(.2,.85,.35,1);
}
.bmk-sf-cart-btn.is-error{
    background:#fff0f0 !important;
    border-color:#e5484d !important;
    color:#e5484d !important;
}
@keyframes bmkCartBusy{to{transform:rotate(360deg)}}
@keyframes bmkCartPulse{0%{transform:scale(1)}45%{transform:scale(1.12)}100%{transform:scale(1)}}


/* BMK v3.1.8 — тихое AJAX-добавление без боковой корзины и ссылки «Просмотр корзины» */
.bmk-sf-wrap a.added_to_cart,
.bmk-sf-wrap a.wc-forward,
.bmk-sf-sheet a.added_to_cart,
.bmk-sf-sheet a.wc-forward,
.bmk-sf-drop-item > a.added_to_cart,
.bmk-sf-product > a.added_to_cart{
    display:none !important;
    position:absolute !important;
    width:0 !important;
    height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
}
.bmk-sf-drop-item{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 34px;
    align-items:center;
    column-gap:8px;
    position:relative;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    overflow:visible;
}
.bmk-sf-product{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 40px;
    align-items:center;
    column-gap:10px;
    position:relative;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    overflow:visible;
}
.bmk-sf-drop-link,
.bmk-sf-product-link{
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    overflow:hidden;
}
.bmk-sf-drop-info,
.bmk-sf-product-info,
.bmk-sf-drop-title,
.bmk-sf-product-title{
    min-width:0;
    overflow-wrap:anywhere;
}
.bmk-sf-cart-btn{
    align-self:center;
    justify-self:end;
}


/* BMK v3.1.10 — белый фон кнопки закрытия поиска */
.bmk-sf-search-close{
    position:relative;
    flex:0 0 34px;
    width:34px;
    min-width:34px;
    height:34px;
    margin:0 2px 0 0;
    padding:0 !important;
    border:0 !important;
    border-radius:50% !important;
    display:grid;
    place-items:center;
    background:#fff !important;
    color:#6b7280 !important;
    box-shadow:none !important;
    cursor:pointer;
    transition:background-color .18s ease,color .18s ease,transform .18s ease;
}
.bmk-sf-search-close:hover{background:#fff !important;color:#1f2937 !important;}
.bmk-sf-search-close:active{transform:scale(.9);}
.bmk-sf-search-close[hidden]{display:none !important;}
.bmk-sf-search-close::before,.bmk-sf-search-close::after{content:none !important;display:none !important;}
.bmk-sf-search-close svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;}
@media(max-width:480px){
    .bmk-sf-search-close{flex-basis:30px;width:30px;min-width:30px;height:30px;margin-right:1px;}
    .bmk-sf-search-close svg{width:15px;height:15px;}
}
