/* ============================================================
   products.css — Product List Page Styles
   Red-House WordPress Theme
   ============================================================ */

/* ---------- Page Wrapper ---------- */
.prod-page-wrap {
	background-color: #0a3d20;
	min-height: 60vh;
}

.prod-page-inner {
	background-color: #0a3d20;
}

/* ---------- Main Body Container ---------- */
.prod-main-body {
	padding-top: 40px;
	padding-bottom: 40px;
	background-color: #0a3d20;
}

.prod-content-row {
	display: flex;
	align-items: flex-start;
}

/* ============================================================
   LEFT SIDEBAR — Product Category Navigation
   ============================================================ */
.prod-sidebar {
	border: 1px solid #d6d6d6;
}

.prod-sidebar-inner {
	background-color: #fff;
}

.prod-sidebar-title h2 {
	font-family: Arial Black, Arial, sans-serif;
	font-size: 22px;
	color: #daecee;
	text-align: center;
	font-weight: bold;
	padding: 0;
	line-height: 2.4em;
	letter-spacing: 0;
	background-color: #216bb0;
	border-bottom: 1px solid #1a3a6b;
	position: relative;
}

.prod-sidebar-toggle {
	float: right;
	cursor: pointer;
	font-size: 14px;
	color: #c6d4ef;
}

/* ---------- Category List ---------- */
.prod-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.prod-cat-item {
	margin-bottom: 2px;
	border-top: 1px solid #e7e7e7;
	position: relative;
}

.prod-cat-link {
	display: block;
	padding-left: 16px;
	font-family: Verdana, Arial, sans-serif;
	font-size: 16px;
	line-height: 36px;
	color: #333;
	text-decoration: none;
	padding-right: 16px;
	transition: color 0.2s;
}

.prod-cat-link:hover {
	color: #2aa7ea;
	text-decoration: none;
}

.prod-cat-item.current > .prod-cat-link,
.prod-cat-item.current-parent > .prod-cat-link {
	color: #2aa7ea !important;
}

/* ---------- Expand/Collapse Button ---------- */
.prod-cat-expand {
	position: absolute;
	top: 0;
	right: 16px;
	display: block;
	width: 20px;
	height: 36px;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
	color: #999;
	font-size: 12px;
	transition: transform 0.3s;
}

.prod-cat-expand.opened {
	transform: rotate(180deg);
}

/* ---------- Sub-categories ---------- */
.prod-cat-sub {
	list-style: none;
	margin: 0;
	padding: 0 0 0 16px;
	display: none;
}

.prod-cat-sub-item {
	margin-bottom: 0;
}

.prod-cat-sub-item .prod-cat-link {
	font-size: 14px;
	line-height: 30px;
	color: #666;
}

.prod-cat-sub-item .prod-cat-link:hover {
	color: #2aa7ea;
}

.prod-cat-sub-item.current > .prod-cat-link {
	color: #2aa7ea !important;
}

/* ============================================================
   RIGHT SECTION — Product Grid
   ============================================================ */
.prod-list-section {
	padding: 0 0 0 10px;
}

.prod-list-title {
	margin-bottom: 10px;
}

.prod-list-title h2 {
	font-family: Arial Black, Arial, sans-serif;
	font-size: 22px;
	color: #daecee;
	font-weight: bold;
	margin: 0 0 8px 0;
	padding: 0;
	line-height: 1.3;
	border-bottom: 1px solid #1a3a6b;
	padding-bottom: 8px;
}

/* ---------- Product Grid ---------- */
.prod-grid-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}

/* ---------- Single Product Card ---------- */
.prod-grid-item {
	width: 25%;
	padding: 8px;
	box-sizing: border-box;
}

.prod-card {
	background-color: #0b3f21;
	border: 1px solid #dcdcdc;
	overflow: hidden;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.prod-card:hover {
	border-color: #0f592f;
	box-shadow: 0 4px 15px rgba(31, 105, 173, 0.3);
}

/* ---------- Product Image ---------- */
.prod-card-img {
	position: relative;
	padding-top: 100%;
	width: 100%;
	overflow: hidden;
	background-color: #f0f1f2;
}

.prod-card-img a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.prod-card-img img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.prod-card:hover .prod-card-img img {
	transform: scale(1.05);
}

/* ---------- Product Info ---------- */
.prod-card-info {
	padding: 10px 10px 0 10px;
}

.prod-card-name {
	display: block;
	font-family: Arial, sans-serif;
	font-size: 13px;
	color: #c6d4ef;
	text-decoration: none;
	font-weight: normal;
	line-height: 20px;
	height: 40px;
	overflow: hidden;
	word-break: break-word;
	transition: color 0.2s;
}

.prod-card-name:hover {
	color: #f6931b;
	text-decoration: none;
}

/* Blue button style (matching original prodlist-btn-blue) */

.prod-card-btn-blue .prod-btn-inquire {
	background-color: #1264a8;
}

.prod-card-btn-blue .prod-btn-inquire:hover {
	background-color: #0e4f88;
}

.prod-btn-icon.inquire {
	position: relative;
	cursor: pointer;
}

/* ---------- No Products ---------- */
.prod-no-products {
	font-family: Arial, sans-serif;
	font-size: 16px;
	color: #a0b4c8;
	padding: 40px 0;
	text-align: center;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.prod-pagination-wrap {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #1a3a6b;
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 15px;
	align-items: flex-start;
}

.prod-pagination {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	align-items: center;
}

.prod-pagination li a,
.prod-pagination li span {
	display: inline-block;
	min-width: 30px;
	height: 28px;
	line-height: 28px;
	text-align: center;
	padding: 0 8px;
	font-family: Verdana, Arial, sans-serif;
	font-size: 13px;
	color: #c6d4ef;
	background-color: #082050;
	border: 1px solid #1a3a6b;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
	border-radius: 2px;
}

.prod-pagination li.active span,
.prod-pagination li a:hover {
	background-color: #0f592f;
	color: #fff;
	border-color: #0f592f;
}

.prod-pagination li.prod-page-prev a,
.prod-pagination li.prod-page-next a {
	font-size: 15px;
	font-weight: bold;
	padding: 0 10px;
}

/* ---------- Jump To Page ---------- */
.prod-pagination-jump {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.prod-pagination-jump span {
	font-family: Verdana, Arial, sans-serif;
	font-size: 13px;
	color: #7a92b2;
}

.prod-jump-input {
	width: 40px;
	height: 26px;
	padding: 0 4px;
	font-family: Verdana, Arial, sans-serif;
	font-size: 13px;
	color: #c6d4ef;
	background-color: #082050;
	border: 1px solid #1a3a6b;
	border-radius: 2px;
	text-align: center;
	outline: none;
}

.prod-jump-input:focus {
	border-color: #0f592f;
}

.prod-jump-btn {
	display: inline-block;
	height: 26px;
	line-height: 26px;
	padding: 0 14px;
	font-family: Verdana, Arial, sans-serif;
	font-size: 13px;
	color: #fff;
	background-color: #0f592f;
	border-radius: 2px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s;
}

.prod-jump-btn:hover {
	background-color: #f6931b;
	color: #fff;
	text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
	.prod-grid-item {
		width: 33.333%;
	}
}

@media (max-width: 991px) {
	.prod-content-row {
		flex-direction: column;
	}

	.prod-sidebar,
	.prod-list-section {
		width: 100%;
		padding: 0 10px;
	}

	.prod-sidebar {
		margin-bottom: 20px;
	}
}

@media (max-width: 767px) {
	.prod-main-body {
		padding-top: 24px;
		padding-bottom: 24px;
	}

	.prod-grid-item {
		width: 50%;
	}

	.prod-pagination-wrap {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	.prod-pagination li a,
	.prod-pagination li span {
		min-width: 26px;
		height: 26px;
		line-height: 26px;
		font-size: 12px;
		padding: 0 6px;
	}

	.prod-sidebar-title h2,
	.prod-list-title h2 {
		font-size: 18px;
	}

	.prod-pagination-jump {
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.prod-grid-item {
		width: 50%;
		padding: 5px;
	}

	.prod-btn-text {
		font-size: 10px;
	}
}

/* ============================================================
   sr-only (accessibility)
   ============================================================ */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
