/* Enderun — Modern products catalog (additive; theme vars preserved) */

.page-products {
	padding: 80px 0 100px;
}

.products-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
	padding: 24px 28px;
	background: var(--secondary-color);
	border: 1px solid var(--divider-color);
}

.products-search {
	position: relative;
	flex: 1 1 280px;
	max-width: 360px;
}

.products-search input {
	width: 100%;
	height: 52px;
	padding: 0 48px 0 18px;
	border: 1px solid var(--divider-color);
	background: var(--bg-color);
	font-family: var(--default-font);
	font-size: 15px;
	color: var(--primary-color);
	outline: none;
	transition: border-color 0.3s ease;
}

.products-search input:focus {
	border-color: var(--accent-color);
}

.products-search i {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-color);
	pointer-events: none;
}

.products-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex: 2 1 420px;
	justify-content: flex-end;
}

.products-filters .filter-btn {
	display: inline-flex;
	align-items: center;
	height: 42px;
	padding: 0 18px;
	border: 1px solid var(--divider-color);
	background: transparent;
	color: var(--primary-color);
	font-family: var(--default-font);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: all 0.3s ease;
}

.products-filters .filter-btn:hover,
.products-filters .filter-btn.active {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: var(--secondary-color);
}

.products-meta {
	margin-bottom: 28px;
	font-size: 14px;
	color: var(--text-color);
}

.products-meta strong {
	color: var(--primary-color);
}

.product-card {
	height: 100%;
	background: var(--secondary-color);
	border: 1px solid var(--divider-color);
	overflow: hidden;
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
	position: relative;
	margin-bottom: 0;
}

.product-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 3px;
	height: 0;
	background: var(--accent-color);
	transition: height 0.35s ease;
	z-index: 2;
}

.product-card:hover {
	transform: translateY(-6px);
	border-color: transparent;
	box-shadow: 0 20px 40px rgba(5, 5, 5, 0.08);
}

.product-card:hover::before {
	height: 100%;
}

.product-card-image {
	position: relative;
	aspect-ratio: 1 / 1.05;
	overflow: hidden;
	background: #ececec;
}

.product-card-image a,
.product-card-image figure {
	display: block;
	height: 100%;
	margin: 0;
}

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

.product-card:hover .product-card-image img {
	transform: scale(1.06);
}

.product-card-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 1;
	padding: 7px 12px;
	background: var(--primary-color);
	color: var(--secondary-color);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.product-card-body {
	padding: 22px 22px 26px;
}

.product-card-body h3 {
	font-size: 18px;
	line-height: 1.35em;
	margin: 0 0 14px;
	min-height: 2.7em;
}

.product-card-body h3 a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

.product-card-body h3 a:hover {
	color: var(--accent-color);
}

.product-card-price {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 18px;
}

.product-card-price .price {
	font-size: 22px;
	font-weight: 600;
	color: var(--primary-color);
	line-height: 1.2em;
}

.product-card-price .price-note {
	font-size: 11px;
	color: var(--text-color);
	line-height: 1.4em;
}

.product-grid-item {
	margin-bottom: 32px;
	padding-left: 12px;
	padding-right: 12px;
}

#productGrid.row {
	margin-left: -12px;
	margin-right: -12px;
}

.product-card-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: stretch;
}

.product-card-actions .btn-default {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 40px 14px 16px !important;
	font-size: 13px !important;
	line-height: 1.2em !important;
	min-height: 44px;
	overflow: hidden;
	white-space: nowrap;
}

.product-card-actions .btn-default::before {
	right: 14px !important;
	width: 12px !important;
	height: 12px !important;
	background-size: contain !important;
}

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

.product-card-actions .btn-outline::before {
	filter: brightness(0) saturate(100%);
	background-image: url('../images/arrow-white.svg') !important;
	/* use dark arrow via invert of white svg for outline btn */
	filter: invert(1) brightness(0.2);
}

.product-card-actions .btn-outline:hover {
	background: var(--primary-color) !important;
	color: var(--secondary-color) !important;
}

.product-card-actions .btn-outline:hover::before {
	filter: none !important;
}

.product-actions .btn-default {
	padding: 17px 44px 17px 20px !important;
}

.products-empty {
	display: none;
	text-align: center;
	padding: 60px 20px;
	border: 1px dashed var(--divider-color);
	background: var(--secondary-color);
}

.products-empty.is-visible {
	display: block;
}

.products-cta-band {
	margin-top: 70px;
	padding: 40px;
	background: var(--primary-color);
	color: var(--secondary-color);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.products-cta-band h3 {
	color: var(--secondary-color);
	font-size: 28px;
	margin: 0 0 8px;
	line-height: 1.3em;
}

.products-cta-band p {
	margin: 0;
	opacity: 0.8;
	line-height: 1.6em;
}

/* Product detail */
.page-product-single {
	padding: 80px 0 100px;
}

.product-gallery {
	display: grid;
	gap: 14px;
}

.product-gallery-main {
	aspect-ratio: 1 / 1.05;
	overflow: hidden;
	background: #ececec;
	border: 1px solid var(--divider-color);
}

.product-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.product-gallery-thumbs button {
	border: 1px solid var(--divider-color);
	padding: 0;
	background: #ececec;
	cursor: pointer;
	aspect-ratio: 1;
	overflow: hidden;
	opacity: 0.7;
	transition: opacity 0.3s ease, border-color 0.3s ease;
}

.product-gallery-thumbs button.active,
.product-gallery-thumbs button:hover {
	opacity: 1;
	border-color: var(--accent-color);
}

.product-gallery-thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.product-summary .product-category {
	display: inline-block;
	margin-bottom: 14px;
	padding: 7px 12px;
	background: var(--primary-color);
	color: var(--secondary-color);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.product-summary h1 {
	font-size: 36px;
	line-height: 1.25em;
	margin-bottom: 18px;
	color: var(--primary-color);
}

.product-summary .product-price-block {
	padding: 22px 0;
	margin-bottom: 22px;
	border-top: 1px solid var(--divider-color);
	border-bottom: 1px solid var(--divider-color);
}

.product-summary .product-price-block .price {
	font-size: 34px;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 6px;
	display: block;
}

.product-summary .product-price-block .price-note {
	font-size: 13px;
	color: var(--text-color);
	line-height: 1.5em;
}

.product-summary .product-desc {
	margin-bottom: 28px;
	line-height: 1.7em;
}

.product-summary .product-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 30px;
}

.product-specs {
	list-style: none;
	padding: 0;
	margin: 0;
}

.product-specs li {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--divider-color);
	line-height: 1.5em;
	font-size: 14px;
}

.product-specs li i {
	color: var(--accent-color);
	margin-top: 3px;
}

.related-products {
	padding: 0 0 100px;
}

.related-products .section-title {
	margin-bottom: 40px;
}

@media (max-width: 991px) {
	.products-toolbar { padding: 18px; }
	.products-filters { justify-content: flex-start; }
	.product-summary h1 { font-size: 28px; margin-top: 30px; }
	.products-cta-band { padding: 28px; }
	.products-cta-band h3 { font-size: 22px; }
}

@media (max-width: 575px) {
	.product-card-body h3 { min-height: 0; font-size: 16px; }
	.product-gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
}


/* Homepage program photos (Enderun) — keep theme height, show as filled photo tiles */
.our-programs .program-item-image figure img{
	width: 100% !important;
	max-height: 180px !important;
	height: 180px !important;
	object-fit: cover !important;
	border-radius: 14px;
}

/* Homepage: space between how-it-work and footer (no middle sections) */
.how-it-work + .main-footer{
	margin-top: 100px;
}

@media (max-width: 991px) {
	.how-it-work + .main-footer{
		margin-top: 70px;
	}
}

@media (max-width: 575px) {
	.how-it-work + .main-footer{
		margin-top: 50px;
	}
}
