/* CRG Catalog: shop filter layout, chips, labels. Brand green #009b64, dark grey #3c3c3c. */
.crg-shop{--crg-green:#009b64;--crg-green-dark:#007a4f;--crg-ink:#3c3c3c;--crg-line:#e3e3dc;--crg-soft:#f4f4ef;--crg-radius:10px;max-width:1240px;margin:0 auto;padding:28px 16px 48px;color:var(--crg-ink);box-sizing:border-box}
.crg-shop *,.crg-shop *::before,.crg-shop *::after{box-sizing:border-box}
.crg-shop__head{text-align:center;margin:0 0 20px}
.crg-shop__title{margin:0 0 8px;font-size:clamp(26px,3.4vw,40px);line-height:1.15}
.crg-shop__intro{margin:0 auto;max-width:720px;font-size:16px;line-height:1.5;opacity:.85}
.crg-shop__layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:32px;align-items:start}

/* sidebar */
.crg-sidebar{position:sticky;top:16px;background:#fff;border:1px solid var(--crg-line);border-radius:var(--crg-radius);padding:16px 18px 8px}
.crg-sidebar__head{display:none}
.crg-sidebar__hint{margin:0 0 12px;font-size:14px;line-height:1.45;opacity:.85}
.crg-sidebar__apply{display:none}
.crg-search{display:flex;gap:6px;margin:0 0 14px}
.crg-search input[type=search]{flex:1;min-width:0;height:40px;border:1px solid #cfcfc6;border-radius:8px;padding:0 12px;font-size:14px;background:#fff}
.crg-search input[type=search]:focus{outline:2px solid var(--crg-green);outline-offset:1px;border-color:var(--crg-green)}
.crg-search button{width:40px;height:40px;border:0;border-radius:8px;background:var(--crg-green);color:#fff;cursor:pointer;display:grid;place-items:center}
.crg-search button:hover{background:var(--crg-green-dark)}
.crg-group{border-top:1px solid var(--crg-line);padding:4px 0}
.crg-group__title{margin:0;font-size:15px;font-weight:700}
.crg-group__toggle{width:100%;display:flex;align-items:center;gap:8px;background:none;border:0;padding:10px 0;font:inherit;font-weight:700;color:inherit;cursor:pointer;text-align:left}
.crg-group__chev{margin-left:auto;transition:transform .2s}
.crg-group.is-open .crg-group__chev{transform:rotate(180deg)}
.crg-group__body{display:none;padding:0 0 10px}
.crg-group.is-open .crg-group__body{display:block}
.crg-group__badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--crg-green);color:#fff;font-size:12px;font-weight:700}
.crg-terms{list-style:none;margin:0;padding:0}
.crg-terms--children{padding-left:22px}
.crg-term__link{display:flex;align-items:center;gap:9px;padding:6px 2px;color:inherit;text-decoration:none;font-size:14px;line-height:1.3;border-radius:6px}
.crg-term__link:hover{background:var(--crg-soft);text-decoration:none}
.crg-term__box{flex:0 0 18px;width:18px;height:18px;border:2px solid #b9b9b0;border-radius:4px;background:#fff;position:relative}
.crg-term__link.is-active .crg-term__box{background:var(--crg-green);border-color:var(--crg-green)}
.crg-term__link.is-active .crg-term__box::after{content:"";position:absolute;left:5px;top:1px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.crg-term__name{flex:1}
.crg-term--parent>.crg-term__link .crg-term__name{font-weight:600}
.crg-term__count{font-size:12px;opacity:.6}

/* main */
.crg-main{min-width:0}
.crg-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px}
.crg-chips:empty{display:none}
.crg-chips__label{font-size:14px;opacity:.7}
.crg-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:var(--crg-green);color:#fff;font-size:14px;text-decoration:none;line-height:1}
.crg-chip:hover{background:var(--crg-green-dark);color:#fff;text-decoration:none}
.crg-chip--search{background:var(--crg-ink)}
.crg-chips__clear{font-size:14px;margin-left:4px;text-decoration:underline;color:inherit}
.crg-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:0 0 12px;border-bottom:1px solid var(--crg-line)}
.crg-summary__count{margin:0;font-size:15px}
.crg-summary .woocommerce-ordering{margin:0}
.crg-summary .woocommerce-ordering select{height:40px;border:1px solid #cfcfc6;border-radius:8px;padding:0 10px;font-size:14px;background:#fff}
.crg-results{position:relative;min-height:200px}
.crg-results.is-loading{opacity:.45;pointer-events:none;transition:opacity .15s}
.crg-results ul.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px;margin:0;padding:0;list-style:none}
.crg-results ul.products li.product{width:auto;margin:0;float:none;text-align:left}
.crg-results ul.products li.product img{width:100%;height:auto;border-radius:8px}
.crg-results ul.products li.product .woocommerce-loop-product__title{font-size:16px;line-height:1.35;margin:10px 0 6px}
.crg-results ul.products li.product .price{font-weight:700;color:var(--crg-ink)}
.crg-results ul.products li.product .button{margin-top:8px}
.crg-pagination{margin:28px 0 0}
.crg-pagination .woocommerce-pagination ul.page-numbers{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;border:0;margin:0;padding:0;list-style:none}
.crg-pagination .page-numbers li{border:0}
.crg-pagination .page-numbers a,.crg-pagination .page-numbers span{display:inline-grid;place-items:center;min-width:40px;height:40px;padding:0 10px;border:1px solid var(--crg-line);border-radius:8px;text-decoration:none;color:inherit;font-size:14px}
.crg-pagination .page-numbers span.current{background:var(--crg-green);border-color:var(--crg-green);color:#fff}
.crg-empty{padding:40px 20px;text-align:center;background:var(--crg-soft);border-radius:var(--crg-radius)}
.crg-empty__title{font-size:18px;font-weight:700;margin:0 0 6px}
.crg-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border-radius:8px;border:1px solid var(--crg-line);background:#fff;font:inherit;font-weight:600;color:inherit;cursor:pointer}
.crg-btn--primary{background:var(--crg-green);border-color:var(--crg-green);color:#fff}
.crg-btn--primary:hover{background:var(--crg-green-dark)}

/* filter button: phone and tablet only */
.crg-shop__bar{display:none;margin:0 0 14px}
.crg-filter-open{display:inline-flex;align-items:center;gap:8px;width:100%;height:46px;padding:0 16px;border:2px solid var(--crg-green);border-radius:8px;background:#fff;color:var(--crg-green);font:inherit;font-weight:700;cursor:pointer}
.crg-filter-open__count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--crg-green);color:#fff;font-size:12px}
.crg-filter-open__count[hidden]{display:none}
.crg-sidebar__backdrop{display:none}

@media (max-width:1023px){
	.crg-shop__layout{display:block}
	.crg-shop__bar{display:block}
	.crg-sidebar{position:fixed;inset:0 auto 0 0;z-index:100000;width:min(92vw,380px);max-width:100%;overflow:auto;border-radius:0;border:0;padding:0 18px 90px;transform:translateX(-105%);transition:transform .25s;box-shadow:0 0 40px rgba(0,0,0,.25)}
	body.crg-drawer-open .crg-sidebar{transform:none}
	.crg-sidebar__head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#fff;padding:14px 0 10px;margin:0 0 6px;border-bottom:1px solid var(--crg-line);font-weight:700;font-size:18px;z-index:1}
	.crg-sidebar__close{width:40px;height:40px;border:0;background:none;font-size:30px;line-height:1;cursor:pointer;color:inherit}
	.crg-sidebar__apply{display:block;position:fixed;left:0;bottom:0;width:min(92vw,380px);padding:12px 18px;background:#fff;border-top:1px solid var(--crg-line);transform:translateX(-105%);transition:transform .25s}
	body.crg-drawer-open .crg-sidebar__apply{transform:none}
	.crg-sidebar__apply .crg-btn{width:100%}
	.crg-sidebar__backdrop{display:block;position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:opacity .25s}
	body.crg-drawer-open .crg-sidebar__backdrop{opacity:1;pointer-events:auto}
	body.crg-drawer-open{overflow:hidden}
	body.crg-drawer-open .ht-ctc,body.crg-drawer-open .ht-ctc-chat{display:none!important}
	.crg-results ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}
	.crg-term__link{padding:9px 2px}
}
@media (max-width:480px){
	.crg-shop{padding:18px 16px 40px}
	.crg-summary{flex-direction:column;align-items:flex-start}
	.crg-results ul.products{gap:16px 12px}
	.crg-results ul.products li.product .woocommerce-loop-product__title{font-size:14px}
}

/* labels (product pages, posts, pages) */
.crg-labels{display:grid;gap:6px;margin:16px 0 8px;font-size:14px}
.crg-labels__row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.crg-labels__key{font-weight:700;margin-right:4px;min-width:96px}
.crg-labels__values{display:flex;flex-wrap:wrap;gap:6px}
.crg-label{display:inline-block;padding:4px 10px;border-radius:999px;background:#f0f0e6;color:#3c3c3c;text-decoration:none;line-height:1.3;border:1px solid #e3e3dc}
.crg-label:hover{background:#009b64;border-color:#009b64;color:#fff;text-decoration:none}
.crg-labels-section{margin:32px 0 0;padding:20px;border-radius:10px;background:#f7f7f2}
.crg-labels-section__title{margin:0 0 10px;font-size:20px}
