/* =========================================================
   Product Catalog Module — styles built on top of the
   existing theme variables defined in css/style.css (:root)
   ========================================================= */

.catalog-section {
	padding: 60px 0 100px;
}

/* ---------- Category grid (product-categories.php) ---------- */

.catalog-cat-grid {
	margin-top: 20px;
}

/* Margin lives on the grid column, not the card itself: a card that also
   has height:100% (equal-height cards) would have its own margin-bottom
   clipped by the row's flex stretch, leaving no visible gap between rows. */
.catalog-cat-grid > div,
.catalog-grid > div,
.catalog-related > div {
	margin-bottom: 30px;
}

.catalog-cat-card {
	display: block;
	background: var(--white-color);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(22, 51, 0, 0.08);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	text-decoration: none;
}

.catalog-cat-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 16px 40px rgba(22, 51, 0, 0.16);
}

.catalog-cat-img {
	width: 100%;
	height: 220px;
	overflow: hidden;
}

.catalog-cat-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.catalog-cat-card:hover .catalog-cat-img img {
	transform: scale(1.08);
}

.catalog-cat-body {
	padding: 22px 24px 26px;
}

.catalog-cat-body h3 {
	font-family: var(--accent-font);
	font-size: 22px;
	margin-bottom: 10px;
	color: var(--primary-color);
}

.catalog-cat-body p {
	font-size: 14px;
	color: var(--text-color);
	margin-bottom: 14px;
}

.catalog-cat-count {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--primary-color);
	background: var(--accent-color);
	padding: 5px 14px;
	border-radius: 30px;
}

/* ---------- Sidebar (product-list.php) ---------- */

.catalog-sidebar {
	background: var(--white-color);
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 6px 24px rgba(22, 51, 0, 0.08);
	margin-bottom: 30px;
	position: sticky;
	top: 100px;
}

.catalog-search-box {
	display: flex;
	margin-bottom: 24px;
	border: 1px solid var(--divider-color);
	border-radius: 8px;
	overflow: hidden;
}

.catalog-search-box input {
	flex: 1;
	border: none;
	padding: 10px 14px;
	font-size: 14px;
	outline: none;
}

.catalog-search-box button {
	border: none;
	background: var(--primary-color);
	color: #fff;
	padding: 0 16px;
	cursor: pointer;
}

.catalog-sidebar h4 {
	font-size: 16px;
	margin-bottom: 12px;
	color: var(--primary-color);
}

.catalog-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.catalog-cat-list li {
	border-bottom: 1px solid var(--divider-color);
}

.catalog-cat-list a {
	display: flex;
	justify-content: space-between;
	padding: 10px 4px;
	font-size: 14px;
	color: var(--text-color);
	text-decoration: none;
	transition: color 0.25s ease, padding-left 0.25s ease;
}

.catalog-cat-list a span {
	color: var(--text-color);
	opacity: 0.7;
}

.catalog-cat-list a:hover,
.catalog-cat-list a.active {
	color: var(--primary-color);
	padding-left: 8px;
	font-weight: 600;
}

/* ---------- Product cards (grid) ---------- */

.catalog-grid {
	margin-top: 4px;
}

.catalog-card {
	background: var(--white-color);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(22, 51, 0, 0.08);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.catalog-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 34px rgba(22, 51, 0, 0.14);
}

.catalog-card-img {
	display: block;
	position: relative;
	height: 210px;
	overflow: hidden;
}

.catalog-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.catalog-card:hover .catalog-card-img img {
	transform: scale(1.08);
}

.catalog-card-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 30px;
	color: #fff;
	background: #6c757d;
}

.catalog-badge-in-stock {
	background: #2e9e46 !important;
}

.catalog-badge-pre-order {
	background: #d98c00 !important;
}

.catalog-badge-out-of-stock {
	background: #c0392b !important;
}

.catalog-card-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.catalog-card-body h3 {
	font-size: 17px;
	margin-bottom: 8px;
	font-family: var(--accent-font);
}

.catalog-card-body h3 a {
	color: var(--primary-color);
	text-decoration: none;
}

.catalog-card-body p {
	font-size: 13px;
	color: var(--text-color);
	margin-bottom: 16px;
	flex: 1;
}

.catalog-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.catalog-price {
	font-weight: 700;
	color: var(--primary-color);
	font-size: 16px;
}

.catalog-price-large {
	font-size: 28px;
	font-weight: 700;
	color: var(--primary-color);
	margin: 10px 0 16px;
}

.catalog-btn-sm {
	padding: 8px 16px !important;
	font-size: 12px !important;
}

.catalog-empty {
	text-align: center;
	padding: 60px 20px;
	background: var(--white-color);
	border-radius: 14px;
}

/* ---------- Pagination ---------- */

.catalog-pagination {
	margin-top: 20px;
}

.catalog-pagination ul {
	display: flex;
	list-style: none;
	gap: 8px;
	padding: 0;
	justify-content: center;
}

.catalog-pagination a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: var(--white-color);
	color: var(--text-color);
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(22, 51, 0, 0.08);
}

.catalog-pagination li.active a {
	background: var(--primary-color);
	color: #fff;
}

/* ---------- Product detail page ---------- */

.catalog-detail {
	padding-top: 40px;
}

.catalog-gallery {
	background: var(--white-color);
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 6px 24px rgba(22, 51, 0, 0.08);
}

.catalog-main-swiper {
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 16px;
}

.catalog-main-swiper .swiper-slide {
	height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f4f4;
}

.catalog-zoom {
	width: 100%;
	height: 100%;
	overflow: hidden;
	cursor: zoom-in;
	position: relative;
}

.catalog-zoom img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
	transform-origin: center center;
}

.catalog-zoom.is-zoomed img {
	transform: scale(1.9);
	cursor: zoom-out;
}

.catalog-thumb-swiper {
	height: 90px;
}

.catalog-thumb-swiper .swiper-slide {
	height: 90px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.6;
	border: 2px solid transparent;
	transition: opacity 0.25s ease, border-color 0.25s ease;
}

.catalog-thumb-swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.catalog-thumb-swiper .swiper-slide-thumb-active {
	opacity: 1;
	border-color: var(--primary-color);
}

.catalog-info {
	padding: 10px 0 0 10px;
}

.catalog-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 30px;
	color: #fff;
	background: #6c757d;
	margin-bottom: 14px;
}

.catalog-info h2 {
	font-family: var(--accent-font);
	font-size: 30px;
	color: var(--primary-color);
	margin-bottom: 6px;
}

.catalog-short-desc {
	color: var(--text-color);
	margin-bottom: 20px;
}

.catalog-features h4 {
	font-size: 16px;
	margin-bottom: 12px;
	color: var(--primary-color);
}

.catalog-features ul {
	list-style: none;
	padding: 0;
	margin-bottom: 24px;
}

.catalog-features li {
	padding: 6px 0;
	font-size: 14px;
	color: var(--text-color);
}

.catalog-features li i {
	color: var(--primary-color);
	margin-right: 8px;
}

.catalog-cta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.btn-outline {
	background: transparent !important;
	border: 2px solid var(--primary-color) !important;
	color: var(--primary-color) !important;
}

/* ---------- Description + specs ---------- */

.catalog-tabs-row {
	margin-top: 60px;
}

.catalog-description,
.catalog-specs {
	background: var(--white-color);
	border-radius: 14px;
	padding: 26px 28px;
	box-shadow: 0 6px 24px rgba(22, 51, 0, 0.08);
	height: 100%;
}

.catalog-description h3,
.catalog-specs h3 {
	font-family: var(--accent-font);
	color: var(--primary-color);
	margin-bottom: 16px;
	font-size: 20px;
}

.catalog-specs table {
	width: 100%;
	border-collapse: collapse;
}

.catalog-specs td {
	padding: 10px 8px;
	font-size: 14px;
	border-bottom: 1px solid var(--divider-color);
}

.catalog-specs td:first-child {
	font-weight: 600;
	color: var(--primary-color);
	width: 45%;
}

/* ---------- Enquiry form ---------- */

.catalog-enquiry-box {
	background: var(--white-color);
	border-radius: 16px;
	padding: 36px;
	margin-top: 60px;
	box-shadow: 0 6px 24px rgba(22, 51, 0, 0.08);
}

.catalog-enquiry-box h3 {
	font-family: var(--accent-font);
	color: var(--primary-color);
	text-align: center;
	margin-bottom: 24px;
}

.catalog-enquiry-box .form-control {
	width: 100%;
	border: 1px solid var(--divider-color);
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 14px;
}

#catalogEnquiryMsg {
	margin-top: 14px;
	font-size: 14px;
	font-weight: 600;
}

#catalogEnquiryMsg.success {
	color: #2e9e46;
}

#catalogEnquiryMsg.error {
	color: #c0392b;
}

/* ---------- Related products ---------- */

.catalog-related {
	margin-top: 70px;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
	.catalog-sidebar {
		position: static;
		margin-bottom: 24px;
	}

	.catalog-main-swiper .swiper-slide {
		height: 320px;
	}

	.catalog-info {
		padding: 30px 0 0 0;
	}
}

@media (max-width: 575px) {
	.catalog-cta {
		flex-direction: column;
	}

	.catalog-cta a {
		text-align: center;
	}
}
