/**
 * Catalog Page Styles
 *
 * @package Plastpro
 * @since 1.0.0
 */

/* CSS Variables for catalog page */
:root {
	--catalog-gap: 2rem; /* Match grid gap */
}

/* Ensure site-main allows overflow for sticky positioning on catalog page */
body .site-main {
	overflow: visible;
}

/* ============================================
   Catalog Hero Section
   ============================================ */

.catalog-hero {
	position: relative;
	width: 100%;
	min-height: 375px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.catalog-hero .hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.catalog-hero .hero-overlay {
	position: relative;
	width: 100%;
	height: 100%;
	background: rgba(29, 37, 45, 0.3); /* #1D252D at 30% opacity */
	z-index: 1;
}

.catalog-hero .hero-text-wrapper {
	position: absolute;
	left: calc(20% - 50px);
	right: auto;
	width: 900px;
	max-width: 900px;
	height: 183px;
	display: flex;
	align-items: center;
	top: 50%;
	transform: translateY(-50%);
}

.catalog-hero .hero-text-background {
	position: absolute;
	width: 100%;
	height: 100%;
	background: #1D252D;
	opacity: 0.3;
	top: 0;
	left: 0;
	z-index: 0;
}

.catalog-hero .hero-text-content {
	position: relative;
	z-index: 1;
	padding: 20px 32px;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	text-align: left;
}

.catalog-hero .hero-text-content .hero-description,
.catalog-hero .hero-text-content .hero-title {
	text-align: left;
}

.catalog-hero .hero-text-content .hero-description {
	font-family: 'Montserrat', sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 22px !important;
	text-transform: uppercase !important;
	margin: 0 0 10px 0 !important;
	color: #FFFFFF !important;
	white-space: pre-wrap;
	letter-spacing: 0.5px;
}

.catalog-hero .hero-text-content .hero-title {
	font-family: 'Gilda Display', serif !important;
	font-size: 60px !important;
	font-weight: 400 !important;
	line-height: 1.1 !important;
	margin: 0 !important;
	color: #FFFFFF !important;
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* ============================================
   Catalog Listing Section
   ============================================ */

#catalog-listing.catalog-listing {
	scroll-margin-top: calc(var(--masthead-h, 80px) + 0.25rem); /* Slight gap when scrolling into view (e.g. after product type change) */
}

.catalog-listing {
	padding: 3rem 0;
	background: var(--plastpro-gray-6, #F5F5F5);
	overflow: visible; /* Allow sticky positioning to work */
}

.catalog-listing .site-container {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 2rem;
	overflow: visible; /* Override parent overflow-x: hidden to allow sticky positioning */
	align-items: start; /* Ensure grid items align to start */
}

/* ============================================
   Catalog Filters
   ============================================ */

.catalog-filters {
	background: #fff;
	padding: 1.5rem;
	border-radius: 4px;
	position: -webkit-sticky; /* Safari support */
	position: sticky;
	top: calc(var(--masthead-h) + 15px); /* Header height + spacing for shadow */
	align-self: start; /* Required for sticky to work in grid */
	z-index: 100; /* Ensure it stays above content when sticky */
	max-height: calc(100vh - var(--masthead-h) - 30px); /* Allow internal scrolling */
	overflow-y: auto; /* Enable scrolling within filter panel */
	overflow-x: hidden;
}

.catalog-filters-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #ddd;
}

.catalog-filters-header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* Close button for mobile filter panel (hidden on desktop) */
.catalog-filters-close {
	display: none;
}

/* Filter overlay (hidden on desktop) */
.catalog-filter-overlay {
	display: none;
}

.catalog-filters-title {
	font-size: 20px;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-weight: 700;
	color: #1D252D;
	margin: 0;
}

.catalog-filters-clear {
	background: #fff;
	border: 1px solid var(--plastpro-orange, #E87722);
	padding: 6px 16px;
	border-radius: 50px; /* Pill shape */
	cursor: pointer;
	font-size: 14px;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-weight: 700;
	color: #1D252D;
	text-transform: uppercase;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.catalog-filters-clear::after {
	content: '×';
	font-size: 18px;
	font-weight: 400;
	color: #1D252D;
	line-height: 1;
}

.catalog-filters-clear:hover {
	background: #fff;
	border-color: var(--plastpro-orange, #E87722);
	color: var(--plastpro-orange, #E87722);
}

.catalog-filters-clear:hover::after {
	color: var(--plastpro-orange, #E87722);
}

.catalog-filter-section {
	margin-bottom: 2rem;
}

.catalog-filter-section-title {
	font-size: 16px;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-weight: 600;
	color: #1D252D;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
}

.catalog-filter-radio-group {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #ddd;
	margin-bottom: 1.5rem;
}

.catalog-filter-radio {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	font-size: 14px;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	color: #1D252D;
}

.catalog-filter-radio input[type="radio"] {
	margin: 0;
	cursor: pointer;
	width: 18px;
	height: 18px;
	accent-color: var(--plastpro-orange, #E87722);
	-webkit-appearance: none;
	appearance: none;
	border: 2px solid #ddd;
	border-radius: 50%;
	background: transparent;
	position: relative;
	transition: all 0.3s ease;
}

.catalog-filter-radio input[type="radio"]:checked {
	border-color: var(--plastpro-orange, #E87722);
	background: transparent;
}

.catalog-filter-radio input[type="radio"]:checked::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--plastpro-orange, #E87722);
}

.catalog-filter-radio input[type="radio"]:hover {
	border-color: var(--plastpro-orange, #E87722);
}

.catalog-filter-group {
	margin-bottom: 1.5rem;
}

.catalog-filter-group-title {
	font-size: 14px;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-weight: 600;
	color: #1D252D;
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
}

.catalog-filter-chevron {
	width: 14px;
	height: 8px;
	transition: transform 0.3s ease;
}

.catalog-filter-group.collapsed .catalog-filter-chevron {
	transform: rotate(180deg);
}

.catalog-filter-group.collapsed .catalog-filter-checkboxes,
.catalog-filter-group.collapsed .catalog-filter-slider-wrapper,
.catalog-filter-group.collapsed .catalog-filter-panel-slider {
	display: none;
}

.catalog-filter-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* Add border after Performance, Style, and Texture checkboxes */
.catalog-filter-group:has(.catalog-filter-checkboxes):not(:has(.catalog-filter-panel-slider)) .catalog-filter-checkboxes {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #ddd;
	margin-bottom: 1.5rem;
}

/* Remove border from specific filter groups */
/* Glazed Glass Doors filter */
#catalog-filter-glazed-glass .catalog-filter-checkboxes {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}

/* Insert Size filter in Glass section (last filter group) */
.catalog-filter-section-glass .catalog-filter-group:last-of-type .catalog-filter-checkboxes {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}

/* Grains filter in Frames section (only filter group) */
.catalog-filter-section-frames .catalog-filter-group:has(.catalog-filter-checkboxes):not(:has(.catalog-filter-panel-slider)) .catalog-filter-checkboxes {
	border-bottom: none !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

.catalog-filter-checkbox {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	font-size: 14px;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	color: #1D252D;
}

.catalog-filter-checkbox input[type="checkbox"] {
	margin: 0;
	cursor: pointer;
	width: 18px;
	height: 18px;
	-webkit-appearance: none;
	appearance: none;
	border: 2px solid #ddd;
	border-radius: 2px;
	background: #fff;
	position: relative;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.catalog-filter-checkbox input[type="checkbox"]:checked {
	border-color: var(--plastpro-orange, #E87722);
	background: transparent;
}

.catalog-filter-checkbox input[type="checkbox"]:checked::after {
	content: '×';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 16px;
	font-weight: 700;
	color: #1D252D;
	line-height: 1;
}

.catalog-filter-checkbox input[type="checkbox"]:hover:not(:disabled) {
	border-color: var(--plastpro-orange, #E87722);
}

.catalog-filter-checkbox input[type="checkbox"]:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.catalog-filter-checkbox--disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.catalog-filter-checkbox--disabled span {
	color: #999;
}


/* ============================================
   Catalog Filter Sliders
   ============================================ */

.catalog-filter-slider-wrapper {
	padding: 1rem 0;
}

.catalog-filter-slider-values {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.5rem;
	font-size: 14px;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	color: #1D252D;
}

/* Single slider value (for panel count) */
.catalog-filter-slider-values:has(.catalog-filter-slider-value) {
	justify-content: center;
}

/* ============================================
   Panel Count Slider
   ============================================ */

/* Filter groups with sliders (Panels, Width, Height) */
.catalog-filter-group:has(.catalog-filter-panel-slider) {
	background: var(--plastpro-gray-6, #F5F5F5);
	border-radius: 4px;
	padding: 1.5rem 1rem 1rem 1rem; /* More space at top */
	margin-left: -1rem;
	margin-right: -1rem;
	margin-bottom: 1.5rem;
}

.catalog-filter-group:has(.catalog-filter-panel-slider) .catalog-filter-group-title {
	margin-left: -1rem;
	margin-right: -1rem;
	margin-top: -1.5rem; /* Match the extra top padding */
	padding-left: 1rem;
	padding-right: 1rem;
	padding-top: 1.5rem; /* Add padding to compensate */
	margin-bottom: 0.75rem;
}

.catalog-filter-group:has(.catalog-filter-panel-slider) .catalog-filter-panel-slider {
	margin-left: -1rem;
	margin-right: -1rem;
	padding-left: 1rem;
	padding-right: 1rem;
}

.catalog-filter-panel-slider {
	padding: 0;
	padding-bottom: 2.5rem; /* Space for labels */
}

.catalog-filter-panel-slider-track-wrapper {
	position: relative;
}

.catalog-filter-panel-slider-input {
	width: 100%;
	height: 6px;
	background: #e0e0e0;
	border-radius: 3px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	margin: 0;
	position: relative;
	z-index: 1;
}

.catalog-filter-panel-slider-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--plastpro-orange, #E87722);
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.catalog-filter-panel-slider-input::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--plastpro-orange, #E87722);
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.catalog-filter-panel-slider-labels {
	display: flex;
	justify-content: space-between;
	position: absolute;
	width: 100%;
	left: 0;
	box-sizing: border-box;
	margin-top: 0.5rem;
}


.catalog-filter-panel-label {
	font-size: 14px;
	font-weight: 700;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	color: #1D252D;
	cursor: pointer;
	user-select: none;
	transition: color 0.2s ease;
}

.catalog-filter-panel-label:hover {
	color: var(--plastpro-orange, #E87722);
}

.catalog-filter-panel-label.active {
	color: var(--plastpro-orange, #E87722);
}

.catalog-filter-slider-container {
	position: relative;
	height: 6px;
	background: #e0e0e0;
	border-radius: 3px;
	margin: 1rem 0;
}

.catalog-filter-slider-input {
	position: absolute;
	width: 100%;
	height: 6px;
	background: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: all;
	z-index: 2;
	cursor: pointer;
}

.catalog-filter-slider-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--plastpro-orange, #E87722);
	cursor: pointer;
	pointer-events: all;
	border: 2px solid #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.catalog-filter-slider-input::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--plastpro-orange, #E87722);
	cursor: pointer;
	pointer-events: all;
	border: 2px solid #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Single slider value display */
.catalog-filter-slider-value {
	font-size: 14px;
	font-weight: 500;
	color: var(--plastpro-orange, #E87722);
	text-align: center;
	display: block;
	margin-bottom: 0.5rem;
}

/* ============================================
   Catalog Products
   ============================================ */

.catalog-products {
	flex: 1;
}

.catalog-products-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 0.5rem;
}

.catalog-products-title {
	font-size: 32px;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-weight: 300;
	color: #1D252D;
	margin: 0;
}

.catalog-products-controls {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.catalog-products-count-wrapper {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.catalog-products-count {
	font-size: 14px;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-weight: 400;
	line-height: 18px;
	color: #1D252D;
}

/* Filter toggle button (hidden on desktop) */
.catalog-filter-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #ddd;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	padding: 0;
	flex-shrink: 0;
	transition: all 0.3s ease;
}

.catalog-filter-toggle:hover {
	background: var(--plastpro-gray-6, #F5F5F5);
	border-color: var(--plastpro-orange, #E87722);
}

.catalog-filter-toggle svg {
	width: 20px;
	height: 20px;
	color: #1D252D;
}

.catalog-products-sort {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.catalog-products-sort-label {
	font-size: 1rem;
	color: #7C878E;
	font-weight: 400;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
}

.catalog-products-sort-wrapper {
	position: relative;
	display: inline-block;
}

.catalog-products-sort-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.catalog-products-sort-value {
	font-size: 1.125rem;
	font-weight: 700;
	color: #000000;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
}

.catalog-products-sort-chevron {
	flex-shrink: 0;
	width: 10px;
	height: 6px;
}

.catalog-products-sort-select {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
	font-size: 1.125rem;
	font-weight: 700;
	color: #000000;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
}

.catalog-products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-bottom: 2rem;
}

.catalog-product-card {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease;
}

.catalog-product-card:hover {
	transform: translateY(-4px);
}

/* Door style cards on catalog page use existing styles from series-components.css */
.catalog-products-grid .door-style-card {
	display: block !important; /* Override default hidden state from series-components.css */
}

/* ============================================
   Glass Card
   ============================================ */

.glass-card {
	position: relative;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: block;
	height: 400px;
	width: 100%;
}

.glass-card-image {
	position: absolute;
	top: 17px;
	left: 50%;
	transform: translateX(-50%);
	width: auto;
	overflow: hidden;
	background: #FFFFFF;
}

.glass-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.3s ease;
	display: block;
}

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

.glass-card-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 45px 0 34px 0;
	background: transparent;
}

.glass-card-type {
	position: absolute;
	top: 5px;
	left: 15px;
	right: 116px;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: 14px;
	font-weight: 700;
	line-height: 14px;
	color: #7C878E;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	padding: 0;
}

.glass-card-title {
	position: absolute;
	top: 20px;
	left: 15px;
	right: 40px;
	margin: 0;
	padding: 0;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: 18px;
	font-weight: 700;
	line-height: 18px;
	white-space: normal;
	word-wrap: break-word;
}

.glass-card-title-link {
	color: #000000;
	text-decoration: none;
	transition: color 0.3s ease;
	display: block;
}

.glass-card:hover .glass-card-title-link {
	color: var(--plastpro-orange, #E87722);
}

/* Glass Card Responsive */
@media (max-width: 1024px) {
	.glass-card-image {
		top: 17px;
		left: 50%;
		transform: translateX(-50%);
		width: auto;
	}

	.glass-card-content {
		padding: 45px 0 25px 0;
	}

	.glass-card-type {
		top: 5px;
	}

	.glass-card-title {
		top: 20px;
	}
}

@media (max-width: 768px) {
	.glass-card {
		height: 350px;
		width: 300px;
		max-width: 300px;
		margin: 0 auto;
	}

	.glass-card-image {
		top: 15px;
		left: 50%;
		transform: translateX(-50%);
		width: auto;
	}

	.glass-card-content {
		padding: 45px 0 25px 0;
	}

	.glass-card-type {
		top: 5px;
		left: 13px;
		right: 102px;
		font-size: 12px;
		line-height: 12px;
	}

	.glass-card-title {
		top: 18px;
		left: 13px;
		right: 40px;
		font-size: 16px;
		line-height: 18px;
	}
}

@media (max-width: 480px) {
	.glass-card {
		height: 370px;
		width: 300px;
		max-width: 300px;
		margin: 0 auto;
	}

	.glass-card-image {
		top: 17px;
		left: 50%;
		transform: translateX(-50%);
		width: auto;
	}

	.glass-card-content {
		padding: 45px 0 25px 0;
	}

	.glass-card-type {
		top: 5px;
		left: 15px;
		right: 116px;
		font-size: 12px;
		line-height: 12px;
	}

	.glass-card-title {
		top: 20px;
		left: 15px;
		right: 40px;
		font-size: 16px;
		line-height: 18px;
	}
}

/* ============================================
   Frame Card
   ============================================ */

.frame-card {
	position: relative;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: block;
	height: 400px;
	width: 100%;
}

.frame-card-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 275px;
	overflow: hidden;
	background: #f5f5f5;
}

.frame-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.frame-card-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 45px 0 34px 0;
	background: transparent;
}

.frame-card-type {
	position: absolute;
	top: 5px;
	left: 15px;
	right: 116px;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: 14px;
	font-weight: 700;
	line-height: 14px;
	color: #7C878E;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	padding: 0;
}

.frame-card-title {
	position: absolute;
	top: 20px;
	left: 15px;
	right: 40px;
	margin: 0;
	padding: 0;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: 18px;
	font-weight: 700;
	line-height: 18px;
	white-space: normal;
	word-wrap: break-word;
}

.frame-card-title-link {
	color: #000000;
	text-decoration: none;
	transition: color 0.3s ease;
	display: block;
}

.frame-card:hover .frame-card-title-link {
	color: var(--plastpro-orange, #E87722);
}

/* ============================================
   Loading and Empty States
   ============================================ */

.catalog-products-loading,
.catalog-products-empty,
.catalog-products-error {
	grid-column: 1 / -1;
	text-align: center;
	padding: 3rem;
	font-size: 16px;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	color: #7C878E;
}

/* ============================================
   Skeleton Loading States
   ============================================ */

.catalog-product-skeleton {
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.6;
	}
}

.skeleton-image {
	width: 100%;
	height: 300px;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-content {
	padding: 1.5rem;
}

.skeleton-line {
	height: 16px;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: skeleton-shimmer 1.5s infinite;
	border-radius: 4px;
	margin-bottom: 0.75rem;
}

.skeleton-line-title {
	width: 80%;
	height: 20px;
	margin-bottom: 1rem;
}

.skeleton-line-subtitle {
	width: 60%;
	height: 14px;
}

@keyframes skeleton-shimmer {
	0% {
		background-position: -200% 0;
	}
	100% {
		background-position: 200% 0;
	}
}

/* ============================================
   Responsive
   ============================================ */

/* Medium screens: 821px to 1024px - 2 column products grid, keep filter panel side-by-side */
@media (min-width: 821px) and (max-width: 1024px) {
	.catalog-products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Tablet and below: single column layout, filters below products */
@media (max-width: 820px) {
	.catalog-listing .site-container {
		grid-template-columns: 1fr;
	}

	.catalog-filters {
		position: fixed;
		top: 0;
		left: -100%;
		width: 100%;
		max-width: 400px;
		height: 100vh;
		overflow-y: auto;
		z-index: 9999;
		background: #fff;
		box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
		transition: left 0.3s ease;
		order: 2;
		padding: 1.5rem;
	}

	.catalog-filters.active {
		left: 0;
	}

	/* Filter overlay */
	.catalog-filter-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: rgba(0, 0, 0, 0.5);
		z-index: 9998;
	}

	.catalog-filter-overlay.active {
		display: block;
	}

	.catalog-products {
		order: 1;
	}

	.catalog-products-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Show filter toggle button */
	.catalog-filter-toggle {
		display: flex;
	}

	/* Show close button in filter panel */
	.catalog-filters-close {
		display: flex;
		width: 32px;
		height: 32px;
		border-radius: 50%;
		background: transparent;
		border: 1px solid #ddd;
		cursor: pointer;
		align-items: center;
		justify-content: center;
		padding: 0;
		flex-shrink: 0;
		transition: all 0.3s ease;
	}

	.catalog-filters-close:hover {
		background: var(--plastpro-gray-6, #F5F5F5);
		border-color: var(--plastpro-orange, #E87722);
	}

	.catalog-filters-close svg {
		width: 16px;
		height: 16px;
		color: #1D252D;
	}
}

/* Catalog Hero Responsive */
@media (max-width: 1200px) {
	.catalog-hero .hero-text-wrapper {
		width: 900px;
		max-width: 900px;
		left: 0;
		right: auto;
	}

	.catalog-hero .hero-text-content {
		padding: 20px 28px;
	}

	.catalog-hero .hero-text-content .hero-title {
		font-size: 54px !important;
		line-height: 54px !important;
	}

	.catalog-hero .hero-text-content .hero-description {
		font-size: 13px !important;
		line-height: 20px !important;
	}
}

@media (max-width: 1024px) {
	.catalog-hero .hero-text-wrapper {
		left: 20px;
		right: auto;
		transform: translateY(-50%);
		width: calc(100% - 40px);
		max-width: 900px;
	}

	.catalog-hero .hero-text-content {
		padding: 18px 28px;
	}

	.catalog-hero .hero-text-content .hero-title {
		font-size: 48px !important;
		line-height: 48px !important;
	}

	.catalog-hero .hero-text-content .hero-description {
		font-size: 13px !important;
		line-height: 20px !important;
	}
}

@media (max-width: 820px) {
	.catalog-hero .hero-text-wrapper {
		left: 20px;
		right: auto;
		transform: translateY(-50%);
		width: calc(100% - 40px);
		max-width: calc(100% - 40px);
	}
}

@media (max-width: 768px) {
	.catalog-hero .hero-text-wrapper {
		left: 20px;
		right: auto;
		transform: translateY(-50%);
		width: calc(100% - 40px);
		max-width: calc(100% - 40px);
		height: auto;
		min-height: 150px;
	}
}

/* Small screens: below 430px - 1 column products grid */
@media (max-width: 430px) {
	.catalog-products-grid {
		grid-template-columns: 1fr;
	}

	.catalog-hero .hero-text-background {
		height: 100%;
	}

	.catalog-hero .hero-text-content {
		padding: 16px 20px;
	}

	.catalog-hero .hero-text-content .hero-title {
		font-size: 36px !important;
		line-height: 40px !important;
	}

	.catalog-hero .hero-text-content .hero-description {
		font-size: 12px !important;
		line-height: 18px !important;
	}

	/* Update CSS variable for mobile */
	:root {
		--masthead-h: 102px; /* 70px nav + 32px offer bar (if enabled) */
	}

	/* Ensure filter panel is hidden by default and slides in when activated */
	.catalog-filters {
		position: fixed;
		top: 0;
		left: -100%;
		width: 100%;
		max-width: 400px;
		height: 100vh;
		overflow-y: auto;
		z-index: 9999;
		background: #fff;
		box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
		transition: left 0.3s ease;
		order: 2;
		padding: 1.5rem;
	}

	.catalog-filters.active {
		left: 0;
	}

	/* Ensure filter overlay is available */
	.catalog-filter-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: rgba(0, 0, 0, 0.5);
		z-index: 9998;
	}

	.catalog-filter-overlay.active {
		display: block;
	}

	/* Ensure filter toggle button is visible */
	.catalog-filter-toggle {
		display: flex;
	}

	/* Ensure close button is visible */
	.catalog-filters-close {
		display: flex;
	}
}

