/* Category archive is loaded after legacy template.css/woocommerce.css. */
/* A category heading is not the site header targeted by legacy mobile rules. */
body.tax-product_cat .gambit-category-wrap header.gambit-category-header {
	position: static;
	inset: auto;
	width: auto;
	z-index: auto;
	transform: none;
	transition: none;
}
html.gambit-filter-js body.tax-product_cat #gambit-filter-panel .gambit-filter-content:not([hidden]) {
	display: block;
}

html.gambit-filter-js body.tax-product_cat #gambit-filter-panel .gambit-filter-content[hidden] {
	display: none;
}

body.tax-product_cat .gambit-filter-group {
	margin-bottom: 20px;
}

body.tax-product_cat .gambit-filter-content {
	padding-bottom: 2px;
}

body.tax-product_cat .gambit-filter-prefix {
	position: absolute;
	top: 50%;
	left: 16px;
	z-index: 1;
	color: #868686;
	font: 400 15px/24px Roboto, sans-serif;
	pointer-events: none;
	transform: translateY(-50%);
}

body.tax-product_cat .price-values label {
	position: relative;
}

body.tax-product_cat .price-values input {
	padding-left: 44px;
	padding-right: 30px;
	text-align: left;
}

body.tax-product_cat .gambit-product-item-img {
	position: relative;
}

body.tax-product_cat .gambit-products-view.list-view .gambit-card-compare {
	position: static;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	color: #29282d;
	font: 400 15px/24px Roboto, sans-serif;
	cursor: pointer;
}

body.tax-product_cat .gambit-products-view.list-view .gambit-card-compare > span {
	width: 20px;
	height: 20px;
	box-sizing: border-box;
	flex: 0 0 20px;
	border: 2px solid #d9d9d9;
	border-radius: 5px;
}

/* Task 22: one late owner for the exact Figma list/grid card geometry. */
body.tax-product_cat .gambit-sort-bar {
	padding-bottom: 20px;
	border-bottom: 0;
	margin-bottom: 20px;
}
body.tax-product_cat .gambit-view-switch { width: 72px; height: 40px; box-sizing: border-box; }
body.tax-product_cat .gambit-view-switch a { width: 32px; height: 32px; border: 0; border-radius: 5px; }
body.tax-product_cat .gambit-view-switch a.active { border: 0; background: #fff; }
body.tax-product_cat .gambit-view-switch a:not(.active) { opacity: .58; }
body.tax-product_cat .gambit-view-switch img { width: 20px; height: 20px; }
body.tax-product_cat .gambit-view-switch a.active img { filter: brightness(.2); opacity: 1; }

/* Grid keeps the Figma typography/actions and uses the client-requested uncropped 3:4 media. */
body.tax-product_cat .gambit-products-view.grid-view ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
body.tax-product_cat .gambit-products-view.grid-view ul.products li.product {
	display: flex;
	width: 100%;
	min-height: 401px;
	box-sizing: border-box;
	flex-direction: column;
	padding: 0;
	border: 0;
}
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-img { width: 100%; height: auto; aspect-ratio: 3 / 4; margin: 0; overflow: hidden; border: 0; border-radius: 10px; background: #fff; }
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-img a,
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-img img { display: block; width: 100%; height: 100%; }
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-img img { border-radius: 10px; object-fit: contain; }
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-data-wrap { display: flex; min-height: 131px; flex: 1 1 auto; flex-direction: column; }
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-data { min-width: 0; }
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-title {
	margin: 20px 0 5px;
	color: var(--Black, #232323);
	font: 600 18px/24px Roboto, sans-serif;
}
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-title a {
	display: -webkit-box;
	overflow: hidden;
	color: inherit;
	font: inherit;
	font-style: normal;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-reviews { height: 18px; margin: 0 0 6px; }
body.tax-product_cat .gambit-product-item-reviews .rating { display: inline-flex; align-items: center; gap: 2px; }
body.tax-product_cat .gambit-product-item-reviews .rating img { width: 14px; height: 14px; }
body.tax-product_cat .gambit-product-item-reviews .reviews-block {
	color: #868686;
	font: 400 13px/18px Roboto, sans-serif;
	text-decoration: none;
}
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-specs,
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-availability,
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-buttons .oneclick,
body.tax-product_cat .gambit-products-view.grid-view .gambit-card-compare { display: none !important; }
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-info {
	display: grid;
	min-height: 58px;
	grid-template-columns: minmax(0, 1fr) 130px;
	gap: 10px;
	align-items: end;
	margin: auto 0 0;
}
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-prices { display: flex; min-height: 44px; flex-direction: column; justify-content: flex-end; }
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-oldprice { display: flex; min-height: 18px; align-items: center; gap: 10px; margin: 0 0 2px; font: 400 13px/18px Roboto, sans-serif; }
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-newprice { color: #232323; font: 600 20px/24px Roboto, sans-serif; white-space: nowrap; }
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-buttons { margin: 0; }
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-buttons .addtocart {
	display: inline-flex;
	width: 130px;
	height: 44px;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 7px 15px;
	border: 1px solid #cdd5cf;
	border-radius: 8px;
	background: #fff;
	color: #303b33;
	font: 500 14px/24px Roboto, sans-serif;
	white-space: nowrap;
}
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-buttons .addtocart img { width: 24px; height: 24px; flex: 0 0 24px; }
body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-buttons .addtocart span { display: inline; font: inherit; white-space: nowrap; }

/* List keeps the Figma content columns and uses the same uncropped 3:4 media owner. */
body.tax-product_cat .gambit-products-view.list-view ul.products { gap: 80px; }
body.tax-product_cat .gambit-products-view.list-view ul.products li.product {
	position: relative;
	display: grid;
	width: 100%;
	max-width: 890px;
	min-height: 307px;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 40px;
	margin: 0;
	padding: 0;
	border: 0;
}
/* Figma products-row 1096:13055: 1px divider, 40px clear space on either side. */
body.tax-product_cat .gambit-products-view.list-view ul.products li.product + li.product::before {
	content: '';
	position: absolute;
	top: -40px;
	left: 0;
	width: 100%;
	height: 1px;
	background: #dbdbdb;
}
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-img { width: 230px; height: auto; aspect-ratio: 3 / 4; overflow: hidden; margin: 0; border-radius: 10px; background: #fff; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-img a,
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-img img { display: block; width: 100%; height: 100%; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-img img { object-fit: contain; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-data-wrap { display: grid; width: 100%; min-height: 307px; grid-template-columns: minmax(0, 1fr) 200px; gap: 40px; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-title { margin: 0 0 5px; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-title a { color: #232323; font: 600 18px/24px Roboto, sans-serif; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-reviews { margin-bottom: 15px; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-specs li { margin-bottom: 5px; color: #868686; font: 400 15px/24px Roboto, sans-serif; white-space: normal; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-specs li span { font: inherit; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-specs li:last-child { margin-bottom: 0; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-spec-value { color: #232323; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-info { display: flex; min-width: 200px; flex-direction: column; align-items: flex-start; margin: 0; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-availability { margin: 0; color: #04af53; font: 400 15px/24px Roboto, sans-serif; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-prices { margin-top: 15px; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-oldprice { display: flex; min-height: 18px; align-items: center; gap: 10px; margin: 0 0 2px; font: 400 13px/18px Roboto, sans-serif; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-newprice { color: #232323; font: 600 20px/24px Roboto, sans-serif; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-buttons { display: flex; gap: 10px; margin: 10px 0 0; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-buttons .oneclick { display: flex; align-items: center; justify-content: center; text-align: center; box-sizing: border-box; flex-shrink: 0; width: 145px; height: 44px; border-radius: 8px; background: #04af53; color: #fff; padding: 10px 15px; font: 500 14px/24px Roboto, sans-serif; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-buttons .addtocart { display: grid; width: 45px; height: 44px; box-sizing: border-box; place-items: center; margin: 0; padding: 9px 10px; border: 1px solid #cdd5cf; border-radius: 8px; background: #fff; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-buttons .addtocart img { width: 24px; height: 24px; }
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-buttons .addtocart span { display: none; }
body.tax-product_cat .gambit-products-view.list-view .gambit-card-compare { gap: 8px; margin-top: 20px; font-weight: 400; }

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.tax-product_cat .gambit-products-view.list-view ul.products li.product {
		width: 100%;
		grid-template-columns: minmax(100px, 26%) minmax(0, 1fr);
		gap: 18px;
	}
	body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-img { width: 100%; }
	body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-data-wrap { display: block; width: auto; }
	body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-info { min-width: 0; }
	body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-specs li { overflow-wrap: anywhere; }
	body.tax-product_cat .gambit-products-view.grid-view ul.products { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
	body.tax-product_cat .gambit-products-view.grid-view ul.products li.product,
	body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-img { width: 100%; }
}

@media screen and (max-width: 767px) {
	body.tax-product_cat .gambit-products-view.grid-view ul.products,
	body.tax-product_cat .gambit-products-view.list-view ul.products {
		display: grid;
		grid-template-columns: 1fr;
		gap: 24px;
	}

	body.tax-product_cat .gambit-products-view.grid-view ul.products li.product,
	body.tax-product_cat .gambit-products-view.list-view ul.products li.product {
		display: grid;
		width: 100%;
		min-height: 0;
		grid-template-columns: 100px minmax(0, 1fr);
		gap: 18px;
		padding: 24px 0;
	}
	body.tax-product_cat .gambit-products-view.list-view ul.products { gap: 80px; }
	body.tax-product_cat .gambit-products-view.list-view ul.products li.product { padding: 0; }

	body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-img,
	body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-img {
		width: 100px;
		height: auto;
		aspect-ratio: 3 / 4;
	}

	body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-data-wrap,
	body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-data-wrap {
		display: block;
		width: auto;
		min-height: 0;
	}

	body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-title,
	body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-title {
		margin-top: 0;
	}

	body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-specs { display: block; }

	body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-info {
		min-width: 0;
	}

	body.tax-product_cat .gambit-products-view.list-view .gambit-card-compare {
		margin-top: 12px;
	}
	body.tax-product_cat .price-values input {
		padding-left: 42px;
	}

	body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-title a {
		min-height: 0;
		-webkit-line-clamp: 3;
	}

	body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-info {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
	}

	body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-buttons .addtocart {
		min-width: 44px;
		width: 44px;
		padding: 9px;
	}

	body.tax-product_cat .gambit-products-view.grid-view .gambit-product-item-buttons .addtocart span {
		display: none;
	}
}

/* Client PNG4: action states must win over this file's scoped base rules. */
body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-buttons .oneclick:is(:hover,:focus-visible) { background: #087d3c; }
body.tax-product_cat .gambit-products-view .gambit-product-item-buttons .addtocart:is(:hover,:focus-visible) { border-color: #91b59b; background: #f1f7f3; color: #2d6943; }
body.tax-product_cat .gambit-products-view.list-view .gambit-card-compare:is(:hover,:focus-within) > span { border-color: #04af53; }

body.tax-product_cat .toggle-view:is(:hover,:focus-visible) { background-color: #e9f7ef; outline: 1px solid #04af53; border-radius: 6px; }
body.tax-product_cat .gambit-checkbox input[type="checkbox"] { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; }
body.tax-product_cat .gambit-checkbox > span { position: relative; flex: 0 0 20px; box-sizing: border-box; border: 2px solid #d9d9d9; border-radius: 4px; background: #fff; }
body.tax-product_cat .gambit-checkbox:is(:hover,:focus-within) > span { border-color: #04af53; }
body.tax-product_cat .gambit-checkbox input[type="checkbox"]:checked + span,
body.tax-product_cat .gambit-products-view.list-view .gambit-card-compare input[type="checkbox"]:checked + span { border-color: #04af53; background: #04af53; }
body.tax-product_cat .gambit-card-compare input:focus-visible + span { outline: 2px solid #087d3c; outline-offset: 3px; }
body.tax-product_cat .gambit-checkbox input:checked + span::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
body.tax-product_cat .gambit-checkbox input:focus-visible + span { outline: 2px solid #087d3c; outline-offset: 3px; }

/* v5 mobile category: same list hierarchy as Figma, uncropped 3:4 photo. */
body.tax-product_cat .gambit-category-copy { margin-top: 70px; }
@media (max-width: 767px) {
 body.tax-product_cat .gambit-category-wrap .container { padding: 0; }
 body.tax-product_cat .gambit-category-wrap { padding-top: 0; }
 body.tax-product_cat .breadcrumbs-block-wrapper { margin-bottom: 16px; }
 body.tax-product_cat .gambit-category-title { font-size: 25px; line-height: 32px; }
 body.tax-product_cat .gambit-mobile-controls { padding: 0 0 20px; margin: 20px 0 30px; border-bottom: 1px solid #dbdbdb; gap: 12px; }
 body.tax-product_cat [data-gambit-mobile-sort] { min-width: 0; flex: 1; }
 body.tax-product_cat #gambit-mobile-sort { width: auto; max-width: 100%; border: 0 !important; border-radius: 0; box-shadow: none; background: transparent url('../img/chevron-down.svg') right center / 16px no-repeat; padding: 4px 24px 4px 0; appearance: none; font: 400 15px/24px Roboto,sans-serif; color: #232323; }
 body.tax-product_cat .gambit-category-banner { margin: 20px 0; }
 body.tax-product_cat .gambit-category-banner img { width: 100%; height: auto; object-fit: contain; }
 body.tax-product_cat .gambit-products-view.list-view ul.products { gap: 60px; }
 body.tax-product_cat .gambit-products-view.list-view ul.products li.product { grid-template-columns: 100px minmax(0,1fr); gap: 20px; }
 body.tax-product_cat .gambit-products-view.list-view ul.products li.product + li.product::before { top: -30px; }
 body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-img { display: flex; flex-direction: column; height: auto; aspect-ratio: auto; overflow: visible; align-self: start; background: none; }
 body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-img > a { order: 0; display: block; height: auto; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; }
 body.tax-product_cat .gambit-products-view.list-view .gambit-product-card-badges { position: static; order: 1; gap: 5px; margin-top: 10px; }
 body.tax-product_cat .gambit-product-card-badges span { white-space: normal; font-size: 11px; line-height: 16px; padding: 2px 5px; }
 body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-title a { font: 600 16px/24px Roboto,sans-serif; }
 body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-specs li { font: 400 13px/18px Roboto,sans-serif; margin-bottom: 5px; }
 body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-availability { font-size: 13px; line-height: 18px; margin-top: 15px; }
 body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-prices { margin-top: 10px; }
 body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-newprice { font-size: 18px; line-height: 24px; }
 body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-buttons { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) 45px; gap: 10px; }
 body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-buttons .oneclick { display: flex; width: 100%; padding: 10px 4px; font-size: 14px; white-space: nowrap; }
 body.tax-product_cat .gambit-products-view.list-view .gambit-card-compare { margin-top: 20px; }
 body.tax-product_cat .gambit-category-copy { margin-top: 40px; }
}
@media (max-width: 350px) {
 body.tax-product_cat .gambit-products-view.list-view ul.products li.product { grid-template-columns: 80px minmax(0,1fr); gap: 12px; }
 body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-img { width: 80px; }
 body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-buttons { gap: 6px; grid-template-columns: minmax(0,1fr) 40px; }
 body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-buttons .oneclick { font-size: 13px; }
 body.tax-product_cat .gambit-products-view.list-view .gambit-product-item-buttons .addtocart { width: 40px; padding: 8px; }
}
