/* Snuifbuis :: archive hero + shop polish (Nisarg only) */
/* home full-width restore: sbh html-blocks must not be boxed by the content constrain */
body.sb-nisarg .page .entry-content>.sbh,body.sb-nisarg .page .entry-content>.sbh-prodsec{max-width:none!important;width:auto!important;padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important}

/* hide default woo archive title (we render our own hero) */
body.sb-nisarg .woocommerce-products-header{display:none!important}

/* archive hero band (full width) */
body.sb-nisarg .sb-archive-hero{background:var(--sb-surface);border-bottom:1px solid var(--sb-line);padding:38px 0 32px;margin-bottom:8px}
body.sb-nisarg .sb-archive-hero .sb-wrap{max-width:var(--sb-wrap);margin-inline:auto;padding-inline:24px}
body.sb-nisarg .sb-arch-crumb{font-size:13px;color:var(--sb-muted);margin-bottom:12px}
body.sb-nisarg .sb-arch-crumb a{color:var(--sb-muted)}
body.sb-nisarg .sb-arch-crumb a:hover{color:var(--sb-accent)}
body.sb-nisarg .sb-arch-crumb .woocommerce-breadcrumb{margin:0;font-size:13px;color:var(--sb-muted)}
body.sb-nisarg .sb-archive-hero h1{font-size:clamp(28px,3.6vw,44px);margin:0;line-height:1.08}
body.sb-nisarg .sb-arch-count{color:var(--sb-muted);margin:8px 0 0;font-size:15px}
body.sb-nisarg .sb-arch-desc{color:var(--sb-muted);margin-top:12px;max-width:70ch}

/* toolbar row: result count + ordering */
body.sb-nisarg .woocommerce .sb-shopwrap{padding-top:22px}
body.sb-nisarg .woocommerce .woocommerce-result-count{color:var(--sb-muted);font-size:14px;margin:0 0 18px;line-height:2.4}
body.sb-nisarg .woocommerce .woocommerce-ordering{margin-bottom:18px}
body.sb-nisarg .woocommerce .woocommerce-ordering select{-webkit-appearance:auto;border:1px solid var(--sb-line);border-radius:var(--sb-r-sm);padding:10px 14px;font-family:inherit;background:#fff;color:var(--sb-ink)}

/* product cards: cleaner, full-width add button */
body.sb-nisarg .woocommerce ul.products li.product{display:flex;flex-direction:column}
body.sb-nisarg .woocommerce ul.products li.product a img{aspect-ratio:1;object-fit:cover;width:100%;background:#fff}
body.sb-nisarg .woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:2.6em}
body.sb-nisarg .woocommerce ul.products li.product .button,body.sb-nisarg .woocommerce ul.products li.product .added_to_cart{margin:12px 16px 16px!important;justify-content:center;text-align:center}
body.sb-nisarg .woocommerce ul.products li.product .price{margin-bottom:4px}

/* pagination */
body.sb-nisarg .woocommerce nav.woocommerce-pagination ul li a,body.sb-nisarg .woocommerce nav.woocommerce-pagination ul li span{border-color:var(--sb-line);color:var(--sb-ink)}
body.sb-nisarg .woocommerce nav.woocommerce-pagination ul li span.current{background:var(--sb-accent);color:#fff;border-color:var(--sb-accent)}

/* infinite scroll spinner */
body.sb-nisarg .sb-inf-spin{display:none;align-items:center;justify-content:center;gap:6px;padding:30px 0}
body.sb-nisarg .sb-inf-spin span{width:9px;height:9px;border-radius:50%;background:var(--sb-accent);opacity:.4;animation:sbInf 1s infinite ease-in-out}
body.sb-nisarg .sb-inf-spin span:nth-child(2){animation-delay:.15s}
body.sb-nisarg .sb-inf-spin span:nth-child(3){animation-delay:.3s}
@keyframes sbInf{0%,100%{opacity:.3;transform:translateY(0)}50%{opacity:1;transform:translateY(-5px)}}
body.sb-nisarg .sb-inf-sentinel{height:1px}

/* ===== redesigned shop / archive ===== */
/* category pills */
body.sb-nisarg .sb-catpills{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
body.sb-nisarg .sb-pill{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--sb-line);border-radius:999px;padding:8px 15px;font-size:13.5px;font-weight:500;color:var(--sb-ink);transition:.15s}
body.sb-nisarg .sb-pill span{color:var(--sb-muted);font-size:12px}
body.sb-nisarg .sb-pill:hover{border-color:var(--sb-ink)}
body.sb-nisarg .sb-pill.is-active{background:var(--sb-ink);border-color:var(--sb-ink);color:#fff}
body.sb-nisarg .sb-pill.is-active span{color:rgba(255,255,255,.65)}

/* toolbar row: result count left, ordering right, on one line */
body.sb-nisarg .woocommerce .sb-shopwrap{padding-top:26px}
body.sb-nisarg .woocommerce .woocommerce-result-count{float:none;margin:0;line-height:1.4;font-size:13.5px}
body.sb-nisarg .woocommerce .woocommerce-ordering{float:none;margin:0}
body.sb-nisarg .woocommerce .sb-shopwrap>.woocommerce-result-count,
body.sb-nisarg .woocommerce .sb-shopwrap>.woocommerce-ordering{display:inline-block;vertical-align:middle}
body.sb-nisarg .woocommerce .sb-shopwrap>form.woocommerce-ordering{float:right}
body.sb-nisarg .woocommerce .sb-shopwrap::after{content:"";display:table;clear:both}
body.sb-nisarg .woocommerce .woocommerce-ordering select{border-radius:9px;padding:11px 34px 11px 14px;font-size:13.5px;font-weight:500;cursor:pointer}
body.sb-nisarg .woocommerce ul.products{margin-top:22px!important;clear:both}

/* product cards: refined */
body.sb-nisarg .woocommerce ul.products li.product a img{background:#fff;transition:transform .45s ease}
body.sb-nisarg .woocommerce ul.products li.product:hover a img{transform:scale(1.035)}
body.sb-nisarg .woocommerce ul.products li.product>a:first-of-type{overflow:hidden;display:block;border-bottom:1px solid var(--sb-line)}
body.sb-nisarg .woocommerce ul.products li.product .woocommerce-loop-product__title{padding:14px 16px 3px!important;font-size:14.5px!important;line-height:1.35;min-height:0}
body.sb-nisarg .woocommerce ul.products li.product .price{padding:0 16px!important;font-size:15px!important;display:block}
body.sb-nisarg .woocommerce ul.products li.product .price del{font-size:13px;margin-right:5px}
body.sb-nisarg .woocommerce ul.products li.product .button,
body.sb-nisarg .woocommerce ul.products li.product .added_to_cart{margin:12px 16px 16px!important;padding:11px 16px!important;font-size:13.5px!important;justify-content:center;text-align:center;display:block}

@media(max-width:600px){
  body.sb-nisarg .sb-catpills{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px;margin-left:-2px}
  body.sb-nisarg .sb-pill{white-space:nowrap;flex:0 0 auto}
  body.sb-nisarg .woocommerce .woocommerce-result-count{display:block;margin-bottom:10px}
  body.sb-nisarg .woocommerce .sb-shopwrap>form.woocommerce-ordering{float:none;display:block}
  body.sb-nisarg .woocommerce .woocommerce-ordering select{width:100%}
}

/* toolbar: put result count and ordering on one row (flex on the wrapper) */
body.sb-nisarg .woocommerce .sb-shopwrap{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
body.sb-nisarg .woocommerce .sb-shopwrap>.woocommerce-notices-wrapper{flex:1 0 100%}
body.sb-nisarg .woocommerce .sb-shopwrap>.woocommerce-result-count{flex:1 1 auto;order:1;margin:0}
body.sb-nisarg .woocommerce .sb-shopwrap>form.woocommerce-ordering{order:2;margin:0;float:none}
body.sb-nisarg .woocommerce .sb-shopwrap>ul.products{flex:1 0 100%;order:3;margin-top:8px!important}
body.sb-nisarg .woocommerce .sb-shopwrap>nav.woocommerce-pagination,
body.sb-nisarg .woocommerce .sb-shopwrap>.sb-inf-spin,
body.sb-nisarg .woocommerce .sb-shopwrap>.sb-inf-sentinel{flex:1 0 100%;order:4}
