/* showcatBody11Center.css - start
   Category page. Restyled to match the home page / header nav / sober
   side panel:
     - teal (#1b7d9c) for interactive chrome (links hover, sort, paging)
     - orange (#ff8500) for the primary call to action only
     - white cards with a hairline #dde8ec border, 8px radius, and the
       home page's orange-alt (#e58434) border + lift on hover
   Every #id/.class that showcatBody11Center.php and js/showcat.js use is
   preserved (#divcenter, #columncats, #column4, #filters, #divmain,
   #subnav, #abc, #abcsub, .column, .productboxwrap, .gallery, .namespan,
   .pricespan, .viewspan, .cartspan, .openbtn/.closebtn, .filter-group,
   .filter-toggle); showcat.js rebuilds the grid from inline templates, so
   this file is a visual rewrite only. */

#divcenter {
	--cat-teal: #1b7d9c;
	--cat-teal-dark: #166a86;
	--cat-teal-soft: #eef6f9;
	--cat-slate: #22323b;
	--cat-muted: #7a8a93;
	--cat-border: #dde8ec;
	--cat-divider: #edf2f4;
	--cat-surface-alt: #fafcfd;
}

#divcenter, #divcenter * {
	box-sizing: border-box;
}

#divcenter {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	column-gap: var(--space-5, 20px);
	row-gap: var(--space-3, 12px);
	padding-top: var(--space-4, 16px);
	padding-bottom: var(--space-8, 32px);
	font-family: var(--font-body, 'Open Sans', sans-serif);
	color: var(--cat-slate);
}

/* ---------- Breadcrumb (full-width row above sidebar + results) ---------- */
#divcatheader {
	flex: 0 0 100%;
	display: block;
	float: none;
	margin: 0;
	padding: 0 2px 10px;
	background: transparent;
	border-bottom: 1px solid var(--cat-border);
	font-size: 13px;
	color: var(--cat-muted);
	line-height: 1.4;
}
#divcatheader a {
	color: var(--cat-teal);
	text-decoration: none;
	font-weight: 600;
}
#divcatheader a:hover {
	color: var(--cat-teal-dark);
	text-decoration: underline;
}
#divcatheader a:last-of-type {
	color: var(--cat-slate);
}

/* ---------- Sidebar (sibling categories + filters) ---------- */
#columncats {
	flex: 0 0 var(--sidebar-width, 240px);
	width: var(--sidebar-width, 240px);
	float: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid var(--cat-border);
	border-radius: var(--radius-md, 8px);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
	overflow: hidden;
}

/* Section headings: quiet caps bar, same as the home side panel */
#columncats h1,
.Downloadscontainer > h1 {
	position: relative;
	margin: 0;
	padding: 13px 16px 11px;
	font-family: var(--font-body, 'Open Sans', sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	text-align: left;
	color: var(--cat-muted);
	background: var(--cat-surface-alt);
	border: 0;
	border-bottom: 1px solid var(--cat-border);
}
.Downloadscontainer > h1 {
	border-top: 1px solid var(--cat-border);
}

#columncats ul,
#columncats li {
	list-style: none;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}

/* Sibling category links: flat rows with a teal accent on hover */
#columncats > ul:first-of-type {
	display: block;
	margin: 0;
}
#columncats > ul:first-of-type > li > a {
	display: block;
	padding: 9px 16px 9px 13px;
	border: 0;
	border-left: 3px solid transparent;
	border-bottom: 1px solid var(--cat-divider);
	border-radius: 0;
	background: none;
	color: var(--cat-slate);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color var(--transition, 0.25s ease), color var(--transition, 0.25s ease), border-color var(--transition, 0.25s ease);
}
#columncats > ul:first-of-type > li:last-child > a {
	border-bottom: 0;
}
#columncats > ul:first-of-type > li > a:hover,
#columncats > ul:first-of-type > li > a:focus-visible {
	background: var(--cat-teal-soft);
	color: var(--cat-teal);
	border-left-color: var(--cat-teal);
	outline: none;
	filter: none;
}

/* ---------- Filter panel ---------- */
.Downloadscontainer {
	border: 0;
	padding: 0;
}
#filters {
	padding: 0 16px;
}
#filtmessage {
	display: block;
	font-size: 12px;
	color: var(--cat-muted);
	margin: 8px 0 0;
}
#filtmessage:empty {
	display: none;
}
.Downloadscontainer > ul {
	margin: 0;
	padding: 0;
}

.filter-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding: 0 16px;
	margin: 0;
	border: 0;
	border-bottom: 1px solid var(--cat-divider);
}
.filter-group:last-child {
	border-bottom: 0;
}
.filter-group h2 {
	flex: 1 1 auto;
	margin: 0;
	padding: 11px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--cat-slate);
	text-transform: none;
	letter-spacing: 0;
	background: none;
	border: 0;
	cursor: pointer;
}
.filter-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--cat-teal-soft);
	color: var(--cat-teal);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background-color var(--transition, 0.25s ease), color var(--transition, 0.25s ease);
}
.filter-group:hover .filter-toggle,
.filter-group.is-open .filter-toggle {
	background: var(--cat-teal);
	color: #fff;
}
.filter-group > ul {
	flex: 0 0 100%;
	overflow: hidden;
	max-height: 0;
	transition: max-height var(--transition, 0.25s ease);
}
#columncats .filter-group.is-open > ul {
	max-height: 900px;
	padding: 0 0 10px;
}
#columncats .filter-group ul li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
	font-size: 13px;
	color: #595959;
	list-style: none;
}
.filter-group ul li:hover {
	color: var(--cat-slate);
}
.filter-group input[type="checkbox"] {
	accent-color: var(--cat-teal);
	width: 15px;
	height: 15px;
	margin: 0;
	flex: 0 0 auto;
}

/* ---------- Mobile drawer controls ---------- */
.openbtn {
	display: none;
	background: #fff;
	border: 1px solid var(--cat-border);
	cursor: pointer;
	padding: 9px 11px;
	border-radius: var(--radius-sm, 6px);
	margin: 0;
}
.openbtn span {
	display: block;
	margin: 5px 0;
	width: 22px;
	height: 2px;
	background: var(--cat-slate);
	border-radius: 2px;
}
.closebtn {
	display: none;
}

/* ---------- Results column ---------- */
#divmain {
	flex: 1 1 0%;
	min-width: 0;
}

.cat-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-3, 12px);
	margin: 0 0 var(--space-3, 12px);
}
.cat-heading h1 {
	margin: 0;
	font-family: var(--font-heading, 'Lobster', helvetica, arial);
	font-size: 1.7rem;
	font-weight: normal;
	color: var(--color-brand-brown, #6b4a27);
	text-align: left;
	line-height: 1.2;
}
.cat-heading span {
	font-size: 13px;
	color: var(--cat-muted);
}

/* Sort bar */
#subnav.row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2, 8px);
	margin: 0 0 var(--space-4, 16px);
	padding: 10px 12px;
	width: auto;
	background: #fff;
	border: 1px solid var(--cat-border);
	border-radius: var(--radius-md, 8px);
}
#subnav > ul > li:first-child {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cat-muted);
	margin-right: 2px;
}
#subnav > ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2, 8px);
	list-style: none;
	margin: 0;
	padding: 0;
}
#subnav > ul > li {
	float: none;
	list-style: none;
}
#subnav button {
	border: 1px solid var(--cat-border);
	background: #fff;
	color: var(--cat-slate);
	padding: 6px 14px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 13px;
	cursor: pointer;
	transition: background-color var(--transition, 0.25s ease), color var(--transition, 0.25s ease), border-color var(--transition, 0.25s ease);
}
#subnav button:hover,
#subnav button:focus-visible {
	background: var(--cat-teal);
	color: #fff;
	border-color: var(--cat-teal);
	outline: none;
}

/* ---------- Product grid ---------- */
#abc.row,
#abc {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: var(--space-4, 16px);
	width: 100%;
	margin: 0;
	padding: 0;
}

.column,
.productboxwrap,
div.gallery {
	/* Cancels commonBody11Center.css's flex 4-across ".column {max-width:25%}"
	   which would otherwise cap each grid card at a quarter of its own cell. */
	max-width: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--cat-border);
	border-radius: var(--radius-md, 8px);
	overflow: hidden;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	text-align: center;
	transition: box-shadow var(--transition, 0.25s ease), border-color var(--transition, 0.25s ease), transform var(--transition, 0.25s ease);
}
.column:hover,
.productboxwrap:hover,
div.gallery:hover {
	box-shadow: var(--shadow-md, 0 2px 10px rgba(0,0,0,0.12));
	border-color: var(--color-accent-alt, #e58434);
	transform: translateY(-2px);
}
.column > a,
.productboxwrap > a {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	color: inherit;
	text-decoration: none;
	padding: 0 0 var(--space-3, 12px);
}
.column img,
.productboxwrap img,
div.gallery img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 var(--space-2, 8px);
	padding: var(--space-3, 12px);
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
	border-bottom: 1px solid var(--cat-divider);
}
.column > a > img,
.productboxwrap > a > img { order: 1; }
.column > a > h2 { order: 2; }
.column > a > p { order: 3; }
.column > a > button { order: 4; }
.column > a h2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 var(--space-3, 12px) 6px;
	min-height: 2.7em;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--cat-slate);
	text-align: center;
}
.column:hover > a h2 {
	color: var(--cat-teal);
}
.namespan {
	display: block;
	margin: 0 var(--space-3, 12px) 6px;
	min-height: 2.7em;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--cat-slate);
}
.column > a p,
.pricespan {
	display: block;
	margin: 0 var(--space-3, 12px) 10px;
	font-size: 17px;
	font-weight: 700;
	color: var(--color-brand-brown, #6b4a27);
}
.column > a p strike {
	font-size: 13px;
	font-weight: 400;
	color: var(--cat-muted);
	margin-right: 6px;
}
.viewspan,
.column button {
	display: block;
	margin: auto var(--space-3, 12px) 0;
	padding: 8px 14px;
	background: var(--color-accent, #ff8500);
	color: #fff;
	border: 0;
	border-radius: var(--radius-sm, 6px);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: none;
	transition: background-color var(--transition, 0.25s ease);
}
.viewspan:hover,
.column button:hover,
.column:hover button {
	background: var(--color-accent-hover, #e06f00);
}
.cartspan {
	display: none;
}

div.desc {
	padding: var(--space-3, 12px);
	text-align: center;
}

/* ---------- Pagination ---------- */
#abcsub {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: var(--space-6, 24px);
	padding-top: var(--space-4, 16px);
	border-top: 1px solid var(--cat-border);
}
#abcsub span {
	font-size: 13px;
	color: var(--cat-muted);
	margin-right: 4px;
}
#abcsub button {
	border: 1px solid var(--cat-border);
	background: #fff;
	color: var(--cat-slate);
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border-radius: var(--radius-sm, 6px);
	font-family: inherit;
	font-size: 13px;
	cursor: pointer;
	transition: background-color var(--transition, 0.25s ease), color var(--transition, 0.25s ease), border-color var(--transition, 0.25s ease);
}
#abcsub button:hover,
#abcsub button:focus-visible {
	background: var(--cat-teal);
	color: #fff;
	border-color: var(--cat-teal);
	outline: none;
}

/* =========================================================
   RESPONSIVE - off-canvas sidebar drawer below 1120px
   ========================================================= */
@media screen and (max-width: 1120px) {
	#divcenter {
		display: block;
	}
	#divcatheader {
		margin: 10px 0 var(--space-3, 12px);
	}
	.openbtn {
		display: inline-flex;
		flex-direction: column;
	}
	#columncats {
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		width: min(82vw, var(--sidebar-width, 240px));
		max-width: 300px;
		border-radius: 0;
		transform: translateX(-100%);
		transition: transform var(--transition, 0.25s ease);
		z-index: 200;
		overflow-y: auto;
		padding-top: 0;
		box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
	}
	#columncats.is-open {
		transform: translateX(0);
	}
	.closebtn {
		display: block;
		position: absolute;
		top: 6px;
		right: 12px;
		font-size: 26px;
		line-height: 1;
		background: none;
		border: none;
		color: var(--cat-muted);
		cursor: pointer;
		z-index: 2;
	}
	#columncats-backdrop {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.35);
		z-index: 150;
	}
	#columncats-backdrop.is-open {
		display: block;
	}
}

@media screen and (max-width: 604px) {
	#abc.row,
	#abc {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-2, 8px);
	}
	.cat-heading h1 {
		font-size: 1.4rem;
	}
	.column h2, .namespan {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#columncats, .filter-group > ul, .column, .productboxwrap, div.gallery {
		transition: none !important;
	}
}
/* showcatBody11Center.css - end */
