.pcf-catalog {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.pcf-results {
  flex: 1 1 auto;
  min-width: 0;
}

/* Shop/category archive layout: sidebar is printed as a sibling before
   whatever wrapper markup the theme uses for the main content, so target
   children generically instead of a fixed id/class. */
.pcf-shop-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.pcf-shop-layout > *:not(.pcf-sidebar) {
  flex: 1 1 auto;
  min-width: 0;
}

.pcf-sidebar {
  flex: 0 0 260px;
  max-width: 260px;
}

.pcf-facet {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e2e2;
}

.pcf-facet h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pcf-facet__terms {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

.pcf-facet__terms li {
  margin: 0.25rem 0;
}

.pcf-facet__count {
  color: #767676;
  font-size: 0.85em;
}

.pcf-range-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pcf-range-inputs input {
  width: 5.5rem;
}

.pcf-clear-filters {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.pcf-results__count {
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Fallback grid for [plan_filters] pages whose theme doesn't style
   ul.products on its own; on the shop archive the theme's own WooCommerce
   grid CSS applies to this same ul.products element. */
.pcf-results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.pcf-results__grid[aria-busy='true'],
ul.products[aria-busy='true'] {
  opacity: 0.5;
}

@media (max-width: 782px) {
  .pcf-catalog,
  .pcf-shop-layout {
    flex-direction: column;
  }

  .pcf-sidebar {
    max-width: none;
    width: 100%;
  }
}
/* CC House Plan Filter */

.cc-house-plan-filter-wrapper {
	width: 100%;
	box-sizing: border-box;
}

.cc-house-plan-filter {
	width: 100%;
}

.cc-house-plan-filter-inner {
	background: #f1f1f1;
	border-radius: 28px;
	padding: 42px 32px;
	display: flex;
	align-items: stretch;
	gap: 0;
	box-sizing: border-box;
	position: relative;
}

.cc-filter-field {
	background: #fff;
	min-height: 148px;
	display: flex;
	align-items: center;
	padding: 0 30px;
	box-sizing: border-box;
	position: relative;
}

.cc-filter-field:first-child {
	border-radius: 20px 0 0 20px;
}

.cc-filter-field:nth-last-child(2) {
	border-radius: 0 20px 20px 0;
}

.cc-filter-sqft,
.cc-filter-select {
	flex: 1 1 0;
}

.cc-filter-icon {
	width: 42px;
	min-width: 42px;
	margin-right: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.cc-ruler-icon,
.cc-bed-icon,
.cc-bath-icon,
.cc-generic-icon {
	font-size: 34px;
	line-height: 1;
	color: #414b48;
}

.cc-filter-content {
	width: 100%;
}

.cc-filter-content label {
	display: block;
	margin: 0 0 8px;
	font-size: 27px;
	line-height: 1.2;
	font-weight: 400;
	color: #4a514f;
}

.cc-filter-content input,
.cc-filter-content select {
	width: 100%;
	height: 35px;
	padding: 0;
	margin: 0;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	font-size: 23px;
	line-height: 1.2;
	color: #999;
	font-weight: 400;
}

.cc-filter-content input::placeholder {
	color: #999;
	opacity: 1;
}

.cc-filter-content select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	padding-right: 30px;
}

.cc-select-arrow {
	position: absolute;
	right: 28px;
	top: 50%;
	width: 14px;
	height: 14px;
	border-right: 4px solid #303735;
	border-bottom: 4px solid #303735;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.cc-filter-submit {
	padding-left: 28px;
	flex: 0 0 210px;
}

.cc-filter-submit button {
	width: 100%;
	height: 100%;
	min-height: 148px;
	border: 0;
	border-radius: 20px;
	background: #bd542f;
	color: #fff;
	font-size: 34px;
	font-weight: 400;
	cursor: pointer;
	transition: all 0.2s ease;
}

.cc-filter-submit button:hover {
	opacity: .9;
	transform: translateY(-1px);
}

@media (max-width: 1100px) {
	.cc-house-plan-filter-inner {
		flex-wrap: wrap;
		gap: 15px;
	}

	.cc-filter-field {
		flex: 1 1 calc(50% - 15px);
		border-radius: 15px !important;
	}

	.cc-filter-submit {
		flex: 1 1 100%;
		padding-left: 0;
	}

	.cc-filter-submit button {
		min-height: 80px;
	}
}

@media (max-width: 767px) {
	.cc-house-plan-filter-inner {
		padding: 20px;
		border-radius: 18px;
		gap: 10px;
	}

	.cc-filter-field {
		flex: 1 1 100%;
		min-height: 90px;
		padding: 0 20px;
		border-radius: 12px !important;
	}

	.cc-filter-content label {
		font-size: 19px;
	}

	.cc-filter-content input,
	.cc-filter-content select {
		font-size: 17px;
	}

	.cc-filter-icon {
		width: 35px;
		min-width: 35px;
	}

	.cc-ruler-icon,
	.cc-bed-icon,
	.cc-bath-icon,
	.cc-generic-icon {
		font-size: 26px;
	}

	.cc-filter-submit {
		flex: 1 1 100%;
		padding-left: 0;
	}

	.cc-filter-submit button {
		min-height: 70px;
		font-size: 25px;
		border-radius: 12px;
	}
}
