/* Product Directory front-end styles */

.pd-hero {
	background: linear-gradient( 135deg, #1e1e2d 0%, #34344a 100% );
	color: #fff;
	padding: 80px 24px;
	text-align: center;
}

.pd-hero-inner {
	max-width: 720px;
	margin: 0 auto;
}

.pd-hero-title {
	font-size: clamp( 32px, 5vw, 48px );
	margin: 0 0 16px;
}

.pd-hero-subtitle {
	font-size: 18px;
	color: #d7d7e0;
	line-height: 1.6;
}

.pd-hero-subtitle p {
	margin: 0;
}

.pd-landing-main {
	padding: 48px 24px 80px;
}

.pd-landing-container {
	max-width: 1200px;
	margin: 0 auto;
}

.pd-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
}

.pd-filter-btn {
	background: #f1f1f3;
	border: 1px solid #e0e0e3;
	color: #333;
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.pd-filter-btn:hover {
	background: #e6e6ea;
}

.pd-filter-btn.active {
	background: #1e1e2d;
	border-color: #1e1e2d;
	color: #fff;
}

.pd-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat( 3, 1fr );
}

.pd-grid-cols-1 { grid-template-columns: repeat( 1, 1fr ); }
.pd-grid-cols-2 { grid-template-columns: repeat( 2, 1fr ); }
.pd-grid-cols-3 { grid-template-columns: repeat( 3, 1fr ); }
.pd-grid-cols-4 { grid-template-columns: repeat( 4, 1fr ); }

@media ( max-width: 900px ) {
	.pd-grid-cols-3, .pd-grid-cols-4 { grid-template-columns: repeat( 2, 1fr ); }
}

@media ( max-width: 560px ) {
	.pd-grid-cols-2, .pd-grid-cols-3, .pd-grid-cols-4 { grid-template-columns: 1fr; }
}

.pd-card {
	background: #fff;
	border: 1px solid #eaeaee;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pd-card:hover {
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.08 );
	transform: translateY( -2px );
}

.pd-media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #f4f4f6;
	overflow: hidden;
}

.pd-media img,
.pd-media-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pd-media-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9a9aa5;
	font-size: 14px;
	background: repeating-linear-gradient( 45deg, #f4f4f6, #f4f4f6 10px, #efeff2 10px, #efeff2 20px );
}

.pd-media-video {
	cursor: pointer;
}

.pd-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% );
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba( 0, 0, 0, 0.6 );
	color: #fff;
	border: none;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.pd-media-embed {
	aspect-ratio: auto;
	min-height: 200px;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pd-embed-wrapper {
	width: 100%;
}

.pd-embed-wrapper iframe {
	width: 100%;
	max-width: 100%;
}

.pd-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.pd-card-title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.3;
}

.pd-card-excerpt {
	margin: 0 0 16px;
	color: #666;
	font-size: 14px;
	line-height: 1.5;
	flex-grow: 1;
}

.pd-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

.pd-card-price {
	font-weight: 600;
	font-size: 16px;
	color: #1e1e2d;
}

.pd-card-btn {
	background: #1e1e2d;
	color: #fff !important;
	text-decoration: none !important;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 14px;
	transition: background 0.15s ease;
}

.pd-card-btn:hover {
	background: #34344a;
}

.pd-no-products {
	text-align: center;
	color: #888;
	padding: 40px 0;
}

.pd-pagination {
	margin-top: 32px;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.pd-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border-radius: 6px;
	background: #f1f1f3;
	color: #333;
	text-decoration: none;
}

.pd-pagination .page-numbers.current {
	background: #1e1e2d;
	color: #fff;
}

/* Modal / lightbox */
.pd-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}

.pd-modal.pd-modal-open {
	display: flex;
}

.pd-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.75 );
}

.pd-modal-content {
	position: relative;
	width: min( 900px, 92vw );
	max-height: 90vh;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
}

.pd-modal-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba( 0, 0, 0, 0.6 );
	color: #fff;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.pd-modal-body {
	width: 100%;
}

.pd-video-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.pd-video-embed iframe,
.pd-video-embed video {
	width: 100%;
	height: 100%;
	border: 0;
}
