/* Carroll Arms - Filters 1.0.3. Palette: green #58762e, olive/gold #8C760E, black #111,
   sage #59771b26 / #59771b66. No red. Server-rendered; works without JS. */

/* ---- Layout: sidebar + results ---- */
body.ca-flt-on .ca-flt-layout{
	display:grid;
	grid-template-columns:244px minmax(0,1fr);
	gap:0;
	align-items:stretch;
	width:100%;
	clear:both;
	margin:0;
}
body.ca-flt-on .ca-flt-layout > .ca-flt{grid-column:1;align-self:stretch;padding:8px 14px 0 0;border-right:1px solid #59771b66}
body.ca-flt-on .ca-flt-main{min-width:0;grid-column:2;padding:8px 0 0 14px}
/* Breadcrumb line (desktop and phone): thin sage rule under the crumb, full content width. */
body.ca-flt-on .woocommerce-breadcrumb{margin:0;padding:0 0 8px;border-bottom:1px solid #59771b66}
body.ca-flt-on .wc-block-breadcrumbs{margin-bottom:0}
body.ca-flt-on .wc-block-breadcrumbs .woocommerce-breadcrumb{margin:0}
/* Listing titles only (inside .ca-flt-main on body.ca-flt-on). Product page titles are not touched. */
body.ca-flt-on .ca-flt-main > h1,
body.ca-flt-on .ca-flt-main h1.wp-block-query-title,
body.ca-flt-on .ca-flt-main h1.woocommerce-products-header__title,
body.ca-flt-on .ca-flt-main .woocommerce-products-header .page-title{
	font-size:30px;line-height:1.2;font-weight:400;margin:0 0 6px;padding:0
}
body.ca-flt-on .ca-flt-main > .woocommerce-products-header{margin:0 0 8px}
body.ca-flt-on .ca-flt-main .ca-flt-intro{
	margin:0 0 12px;font-size:14px;line-height:1.4;color:#111;
	white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%
}
body.ca-flt-on .ca-flt-main > .ca-flt-desc, body.ca-flt-on .ca-flt-desc{margin:20px 0 8px;font-size:15px;line-height:1.55;color:#111;max-width:none;width:100%}
body.ca-flt-on .ca-flt-desc p{margin:0 0 10px}
body.ca-flt-on .ca-flt-desc p:last-child{margin-bottom:0}
body.ca-flt-on .ca-flt-desc a{color:#8C760E;text-decoration:underline;text-underline-offset:2px}
body.ca-flt-on .ca-flt-desc a:hover{color:#58762e}
body.ca-flt-on .ca-flt-main > .wp-block-group.alignwide{margin:0 0 8px}
body.ca-flt-on .ca-flt-main > .alignwide,
body.ca-flt-on .ca-flt-main > .wp-block-woocommerce-product-collection{max-width:none;margin-left:0;margin-right:0}
body.ca-flt-on .ca-flt-main > nav.ca-pag--top:first-child,
body.ca-flt-on .ca-flt-main > .wp-block-woocommerce-product-collection:first-child{margin-top:0}
body.ca-flt-on .ca-flt-main .wp-block-woocommerce-product-collection{margin-top:0}
body.ca-flt-on .ca-flt-main nav.ca-pag--top{margin-top:0}
.ca-flt-toggle{position:absolute !important;opacity:0 !important;width:1px !important;height:1px !important;pointer-events:none;margin:0 !important}
.ca-flt-dim,.ca-flt__dhead,.ca-flt__dfoot,.ca-flt-btn,.ca-flt-btnrow{display:none}

/* ---- Sidebar ---- */
.ca-flt{font-size:13px;line-height:1.35;color:#111}
.ca-flt *{box-sizing:border-box}
.ca-flt p{margin:0}
.ca-flt__top{display:flex;align-items:flex-start;justify-content:space-between;min-height:0;padding:0 0 6px;border-bottom:2px solid #58762e}
.ca-flt__title{font-size:14px;font-weight:700;letter-spacing:.2px;text-transform:uppercase}
.ca-flt__clear{color:#8C760E;font-size:12px;text-decoration:underline;text-underline-offset:2px}
.ca-flt__clear:hover{color:#58762e}
.ca-flt__chips{display:flex;flex-wrap:wrap;gap:4px;list-style:none;margin:8px 0 2px;padding:0}
.ca-flt__chips li{margin:0}
.ca-flt__chips a{display:inline-flex;align-items:center;gap:4px;background:#59771b26;border:1px solid #59771b66;color:#111;padding:1px 7px;font-size:12px;line-height:20px;text-decoration:none}
.ca-flt__chips a span{color:#58762e;font-weight:700}
.ca-flt__chips a:hover{border-color:#58762e}
.ca-flt__sec{border-bottom:1px solid #59771b66;margin:0}
.ca-flt__sec--stock{padding:6px 0}
.ca-flt__h{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;padding:8px 0;font-size:12px;font-weight:700;letter-spacing:.4px;text-transform:uppercase}
.ca-flt__h::-webkit-details-marker{display:none}
.ca-flt__h::after{content:"+";color:#8C760E;font-size:16px;font-weight:700;line-height:1}
details[open] > .ca-flt__h::after{content:"\2212"}
.ca-flt__body{padding:0 0 8px}
.ca-flt__list{list-style:none;margin:0;padding:0}
.ca-flt__list li{margin:0;padding:0}
.ca-flt__opt{display:flex;align-items:center;gap:7px;min-height:26px;padding:1px 0;color:#111;text-decoration:none}
a.ca-flt__opt:hover .ca-flt__lbl{color:#58762e;text-decoration:underline}
.ca-flt__opt.is-zero{color:#9a9a9a;cursor:default}
.ca-flt__opt--d1{padding-left:16px}
.ca-flt__opt--d2{padding-left:32px}
.ca-flt__lbl{flex:1 1 auto;min-width:0}
.ca-flt__opt.is-on .ca-flt__lbl{font-weight:700}
.ca-flt__n{flex:0 0 auto;color:#666;font-size:12px}
.ca-flt__box,.ca-flt__radio{flex:0 0 auto;width:15px;height:15px;border:1px solid #58762e;background:#fff}
.ca-flt__radio{border-radius:50%}
.ca-flt__opt.is-zero .ca-flt__box,.ca-flt__opt.is-zero .ca-flt__radio{border-color:#c8c8c8}
.ca-flt__opt.is-on .ca-flt__box{background:#58762e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M2.5 6.2l2.4 2.4 4.6-5'/%3E%3C/svg%3E") center/11px no-repeat}
.ca-flt__opt.is-on .ca-flt__radio{box-shadow:inset 0 0 0 3px #fff;background:#58762e}
.ca-flt__bsearch{width:100%;height:30px;padding:0 8px;margin:0 0 6px;border:1px solid #59771b66;border-radius:0;font:inherit;font-size:12px;background:#fff;color:#111}
.ca-flt__bsearch:focus,.ca-flt__price input:focus{outline:2px solid #8C760E;outline-offset:1px;border-color:#8C760E}
.ca-flt__more > summary{cursor:pointer;color:#8C760E;font-size:12px;text-decoration:underline;text-underline-offset:2px;list-style:none;padding:4px 0 0}
.ca-flt__more > summary::-webkit-details-marker{display:none}
.ca-flt__more[open] > summary{display:none}
.ca-flt__price{display:flex;align-items:center;gap:4px;margin:0 0 6px}
.ca-flt__price input{flex:1 1 0;min-width:0;width:auto;height:30px;padding:0 6px;border:1px solid #59771b66;border-radius:0;font:inherit;font-size:12px;color:#111;background:#fff}
.ca-flt form.ca-flt__price button[type="submit"]{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;height:30px;min-height:0;margin:0;padding:0 10px;line-height:1;border:0;border-radius:0;background:#58762e;color:#fff;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.ca-flt form.ca-flt__price button[type="submit"]:hover{background:#8C760E;color:#111}
.ca-flt__none{margin:0 0 12px;padding:8px 10px;background:#59771b26;border:1px solid #59771b66;font-size:13px}
.ca-flt__none a{color:#8C760E;text-decoration:underline}
.ca-flt .screen-reader-text{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
a.ca-flt__opt:focus-visible,.ca-flt__clear:focus-visible,.ca-flt__chips a:focus-visible{outline:2px solid #8C760E;outline-offset:1px}

/* ---- Phone: Filter button + slide-out drawer ---- */
@media (max-width:782px){
	body.ca-flt-on .ca-flt-layout{display:block}
	body.ca-flt-on .ca-flt-layout > .ca-flt{padding:0;border-right:0}
	body.ca-flt-on .ca-flt-main{padding:10px 0 0}
	body.ca-flt-on .ca-flt-main > h1,
	body.ca-flt-on .ca-flt-main h1.wp-block-query-title,
	body.ca-flt-on .ca-flt-main h1.woocommerce-products-header__title,
	body.ca-flt-on .ca-flt-main .woocommerce-products-header .page-title{font-size:24px;line-height:1.25}
	body.ca-flt-on .ca-flt-main .ca-flt-intro{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
	.ca-flt-btn{
		display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;height:32px;padding:0 12px;
		border:1px solid #58762e;background:#fff;color:#111;font-size:14px;font-weight:700;line-height:1;
		cursor:pointer;user-select:none;margin:0 auto 8px 0;float:left;
	}
	.ca-flt-btn:focus-visible{outline:2px solid #8C760E;outline-offset:2px}
	.ca-flt-btn__ico{width:14px;height:12px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath fill='none' stroke='%2358762e' stroke-width='1.6' stroke-linecap='round' d='M1 2h12M3.5 6h7M6 10h2'/%3E%3C/svg%3E") center/14px 12px no-repeat}
	.ca-flt-btn__n{display:inline-block;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#58762e;color:#fff;font-size:11px;line-height:18px;text-align:center}
	.ca-flt-btnrow{display:block;overflow:hidden}
	.ca-flt-btnrow--classic{display:inline-block;float:left;overflow:visible}
	/* Block pages: the button sits in the results-count/sort flex row, left of "Sort". */
	.wp-block-group:has(> .ca-flt-btn){align-items:center}
	.wp-block-group > .ca-flt-btn{float:none;margin:0 auto 8px 0;order:-1}

	.ca-flt{
		position:fixed;top:0;bottom:0;left:0;z-index:100001;
		width:86%;max-width:340px;background:#fff;
		display:flex;flex-direction:column;
		transform:translateX(-105%);transition:transform .2s ease;
		box-shadow:2px 0 12px rgba(0,0,0,.25);
		visibility:hidden;
	}
	.ca-flt-dim{display:block;position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.45);opacity:0;pointer-events:none;transition:opacity .2s ease}
	.ca-flt-toggle:checked ~ .ca-flt{transform:none;visibility:visible}
	.ca-flt-toggle:checked ~ .ca-flt-dim{opacity:1;pointer-events:auto}
	.ca-flt__dhead{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;height:48px;padding:0 16px;border-bottom:2px solid #58762e}
	.ca-flt__dtitle{font-size:16px;font-weight:700;text-transform:uppercase}
	.ca-flt__x{font-size:26px;line-height:1;color:#111;cursor:pointer;padding:4px}
	.ca-flt__scroll{flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:6px 16px 12px}
	.ca-flt__top{display:none}
	.ca-flt__opt{min-height:34px}
	.ca-flt__bsearch,.ca-flt__price input{font-size:16px;height:34px}
	.ca-flt form.ca-flt__price button[type="submit"]{height:34px;padding:0 14px}
	.ca-flt__dfoot{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;flex:0 0 auto;padding:10px 16px;border-top:1px solid #59771b66;background:#fff}
	.ca-flt__dclear,.ca-flt__show{display:flex;align-items:center;justify-content:center;height:40px;font-size:14px;font-weight:700;text-decoration:none;cursor:pointer}
	.ca-flt__dclear{border:1px solid #58762e;color:#111}
	.ca-flt__dclear.is-off{border-color:#c8c8c8;color:#9a9a9a}
	.ca-flt__show{background:#58762e;color:#fff}
	body.ca-flt-lock{overflow:hidden}
}
@media (prefers-reduced-motion:reduce){.ca-flt,.ca-flt-dim{transition:none}}

/* 1.0.6: one container for category, search, brand and shop (category is the reference:
   1032px wide, centered; breadcrumb, divider and H1 at the same y). */
body.ca-flt-on .is-layout-constrained > .wc-block-breadcrumbs.alignwide,
body.ca-flt-on .is-layout-constrained > .ca-flt-layout.alignwide{max-width:1032px}
/* Brand/shop: the template's main box is 1032px including its 16px side padding; widen it so the content is 1032px. */
body.ca-flt-on main.is-layout-constrained.has-global-padding:has(> .ca-flt-layout){max-width:1064px}
/* Search: the template group adds 8px above the breadcrumb that category/brand/shop do not have. */
body.ca-flt-on .wp-site-blocks > .wp-block-group.has-global-padding:has(> .ca-flt-layout){padding-top:0 !important}
/* 1.0.6 phone: Filter button without the box; icon + bold text, 44px tap area. */
@media (max-width:782px){
	body.ca-flt-on .ca-flt-btn{border:0;background:none;padding:0 8px 0 0;position:relative;color:#111}
	body.ca-flt-on .ca-flt-btn::after{content:"";position:absolute;inset:-6px -8px -6px -6px}
	body.ca-flt-on .ca-flt-btn:hover{color:#58762e}
}

/* 1.0.6: all listing breadcrumbs all-caps, matching category typography
   (12px, normal tracking, black). Covers search 'Home / Search results' and
   any mixed-case brand or shop crumbs. */
body.ca-flt-on .woocommerce-breadcrumb,
body.ca-flt-on .woocommerce-breadcrumb a{
	text-transform:uppercase;
	font-size:12px;
	letter-spacing:normal;
	color:#000;
}
