:root {
	--ep-navy: #072f4d;
	--ep-blue: #1f69d5;
	--ep-blue-soft: #eaf3ff;
	--ep-ink: #102a3b;
	--ep-muted: #667887;
	--ep-lime: #c8f000;
	--ep-line: #dbe6ef;
	--ep-page: #f3f7fb;
	--ep-sold: #d92d20;
}

/* The preview supplies its own category hero directly below the site header. */
body.post-type-archive-product .wd-page-title.page-title,
body.woocommerce-shop .wd-page-title.page-title {
	display: none !important;
}

/* WoodMart's Shop header is absolute/over-content. Reserve its real height so
   the catalogue begins below the menu at every responsive breakpoint. */
body.woocommerce-shop .wd-page-content.main-page-wrapper {
	padding-top: calc(var(--wd-header-h, 80px) + 42px) !important;
}

body.tax-product_cat .wd-page-content.main-page-wrapper {
	padding-top: calc(var(--wd-header-h, 80px) + 42px) !important;
}

.ep-category-catalogue {
	width: 100%;
	padding-bottom: 64px;
	color: var(--ep-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ep-category-catalogue * { box-sizing: border-box; }

.ep-category-hero {
	overflow: hidden;
	position: relative;
	padding: clamp(30px, 5vw, 66px);
	border-radius: 26px;
	color: #fff;
	background-image: linear-gradient(90deg, rgba(3, 32, 58, .82) 0%, rgba(4, 43, 77, .62) 48%, rgba(3, 46, 82, .38) 100%), url("https://emirates-peptides.com/wp-content/themes/woodmart-child/assets/images/ep-shop-dubai-hero.webp");
	background-position: center;
	background-size: cover;
	box-shadow: 0 24px 60px rgba(7, 47, 77, .14);
}

.ep-category-hero::after {
	content: "";
	position: absolute;
	right: -70px;
	bottom: -120px;
	width: 360px;
	height: 360px;
	border: 1px solid rgba(255, 255, 255, .13);
	border-radius: 50%;
	box-shadow: 0 0 0 42px rgba(255, 255, 255, .04), 0 0 0 84px rgba(255, 255, 255, .03);
}

.ep-category-hero__eyebrow {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	color: var(--ep-lime);
	font-size: 12px;
	font-weight: 850;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.ep-category-hero__eyebrow::before {
	content: "";
	width: 24px;
	height: 2px;
	background: currentColor;
}

.ep-category-hero h1 {
	position: relative;
	z-index: 1;
	max-width: 820px;
	margin: 0;
	color: #fff;
	font-size: clamp(36px, 6vw, 70px);
	line-height: .98;
	letter-spacing: -.055em;
}

.ep-category-hero p {
	position: relative;
	z-index: 1;
	max-width: 680px;
	margin: 22px 0 0;
	color: #d8e8f4;
	font-size: clamp(15px, 2vw, 18px);
	line-height: 1.6;
}

.ep-category-nav {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	margin: 22px 0 30px;
	padding: 4px 2px 10px;
	scrollbar-width: thin;
}

.ep-category-nav a {
	flex: 0 0 auto;
	padding: 10px 15px;
	border: 1px solid var(--ep-line);
	border-radius: 999px;
	color: var(--ep-navy);
	background: #fff;
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
	transition: transform .18s ease, border-color .18s ease, color .18s ease;
}

.ep-category-nav a:hover {
	transform: translateY(-1px);
	border-color: #96bfea;
	color: var(--ep-blue);
}

.ep-category-nav__count {
	display: inline-flex;
	align-items: center;
	padding: 10px 15px;
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--ep-muted);
	background: transparent;
	font-size: 13px;
	font-weight: 750;
}

.ep-category-section {
	margin-top: 24px;
	padding: clamp(20px, 3vw, 34px);
	scroll-margin-top: 62px;
	border: 1px solid var(--ep-line);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 12px 36px rgba(7, 47, 77, .055);
}

.ep-category-section--archive {
	margin-top: 0;
}

.ep-category-catalogue--archive .ep-category-hero p {
	max-width: 900px;
}

.ep-category-section__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ep-line);
}

.ep-category-section__header > div:first-child { max-width: 820px; }

.ep-category-section__header h2 {
	margin: 0;
	color: var(--ep-navy);
	font-size: clamp(25px, 3.2vw, 38px);
	line-height: 1.08;
	letter-spacing: -.035em;
}

.ep-category-section__header p {
	margin: 9px 0 0;
	color: var(--ep-muted);
	font-size: 15px;
	line-height: 1.55;
}

.ep-category-section__count {
	flex: 0 0 auto;
	display: grid;
	min-width: 62px;
	min-height: 62px;
	place-items: center;
	padding: 8px;
	border-radius: 18px;
	color: var(--ep-navy);
	background: var(--ep-blue-soft);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.05;
	text-align: center;
}

.ep-category-section__count strong,
.ep-category-section__count span { display: block; }
.ep-category-section__count strong { font-size: 20px; }

.ep-category-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	align-items: stretch;
	gap: 22px;
}

.ep-category-card {
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	border: 1px solid #dce6ef;
	border-radius: 24px;
	color: inherit;
	background: #fff;
	text-decoration: none;
	transition: none;
}

.ep-category-card:hover {
	border-color: #c3d4e3;
	color: inherit;
}

.ep-category-card:focus-visible {
	border-color: var(--ep-blue);
	outline: 3px solid rgba(12, 105, 219, .28);
	outline-offset: 3px;
}

.ep-category-card__image {
	overflow: hidden;
	position: relative;
	display: grid;
	height: 220px;
	place-items: center;
	padding: 18px;
	background: #fff;
}

.ep-category-card__image img {
	position: absolute;
	inset: 18px;
	width: calc(100% - 36px);
	height: calc(100% - 36px);
	max-width: none;
	max-height: none;
	object-fit: contain;
	transition: none;
}

.ep-category-card.is-unavailable .ep-category-card__image img {
	filter: saturate(.74);
	opacity: .86;
}

.ep-category-card__body {
	container-type: inline-size;
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
	border-top: 1px solid #edf2f6;
}

.ep-category-card__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.ep-category-card__title-row h3 {
	margin: 0;
	color: var(--ep-navy);
	font-size: 18px;
	line-height: 1.25;
}

.ep-category-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	color: #1d5100;
	background: #dcf9c7;
	font-size: 10px;
	font-weight: 750;
	text-transform: uppercase;
}

html[dir="rtl"] .ep-category-card__badge {
	right: 14px;
	left: auto;
}

.ep-category-card.is-unavailable .ep-category-card__badge {
	color: #fff;
	background: var(--ep-sold);
}

.ep-category-card.is-unavailable .ep-category-card__badge.is-coming-soon {
	background: var(--ep-blue);
}

.ep-category-card__benefits {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 9px;
}

.ep-category-card__benefits span {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	min-width: 0;
	padding: 5px 9px;
	border-radius: 999px;
	color: var(--ep-navy);
	background: #edf3f8;
	font-size: 10px;
	font-weight: 750;
	line-height: 1.1;
	white-space: nowrap;
}

.ep-category-card__price-summary {
	margin-top: 18px;
	font-variant-numeric: tabular-nums;
}

.ep-category-card__price-summary span,
.ep-category-card__price-summary strong {
	display: block;
}

.ep-category-card__price-summary span {
	margin-bottom: 4px;
	color: #6e7781;
	font-size: 11px;
	line-height: 1.2;
}

.ep-category-card__price-summary strong {
	color: var(--ep-blue);
	font-size: 24px;
	font-weight: 650;
	line-height: 1.05;
}

.ep-category-card__options {
	display: block;
	margin-top: 20px;
	margin-bottom: 18px;
}

.ep-category-card__options-heading {
	margin-bottom: 8px;
	color: #6e7781;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}

.ep-category-card__options-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.ep-category-card__option {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 4px;
	min-width: 0;
	padding: 10px 11px;
	border: 1px solid #dfe3e8;
	border-radius: 12px;
	color: var(--ep-navy);
	background: #f5f5f7;
	font-size: 11px;
	line-height: 1.2;
	text-align: start;
}

html[dir="rtl"] .ep-category-card__option {
	text-align: end;
}

.ep-category-card__option strong {
	color: var(--ep-blue);
	font-size: 12px;
	font-weight: 850;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ep-category-card__single-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: min(180px, 100%);
	margin-top: 20px;
	margin-bottom: 18px;
	padding: 10px 12px;
	border-radius: 12px;
	color: var(--ep-navy);
	background: #f5f5f7;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.ep-category-card__single-option span { color: #6e7781; }
.ep-category-card__single-option strong { font-weight: 700; }

.ep-category-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	min-height: 44px;
	padding: 0 17px;
	border-radius: 300px;
	background: var(--ep-blue);
}

.ep-category-card__footer strong {
	order: 2;
	color: #fff;
	font-size: 13px;
	font-weight: 850;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ep-category-card__footer span {
	order: 1;
	color: #fff;
	font-size: 13px;
	font-weight: 650;
	white-space: nowrap;
}

.ep-category-card__footer .ep-category-card__footer-arrow {
	order: 2;
	margin-inline-start: auto;
	font-size: 17px;
	line-height: 1;
}

@media (max-width: 1080px) {
	.ep-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	body.woocommerce-shop .wd-content-area,
	body.tax-product_cat .wd-content-area {
		min-width: 0 !important;
	}

	.ep-category-hero {
		padding: 30px 22px;
		border-radius: 20px;
	}

	.ep-category-hero h1 { font-size: clamp(36px, 11vw, 52px); }
	.ep-category-section {
		padding: 18px 14px;
		border-radius: 18px;
	}

	.ep-category-section__header { gap: 12px; }

	.ep-category-section__count {
		min-width: 52px;
		min-height: 52px;
		border-radius: 15px;
	}

	.ep-category-section__count strong { font-size: 17px; }
	.ep-category-grid { gap: 10px; }
	.ep-category-card__image {
		height: 200px;
		padding: 12px;
	}
	.ep-category-card__image img {
		inset: 12px;
		width: calc(100% - 24px);
		height: calc(100% - 24px);
	}
	.ep-category-card__body { padding: 14px; }
	.ep-category-card__title-row h3 { font-size: 15px; }
	.ep-category-card__badge {
		top: 10px;
		left: 10px;
	}
	html[dir="rtl"] .ep-category-card__badge {
		right: 10px;
		left: auto;
	}
}

@media (max-width: 520px) {
	.ep-category-section { padding: 14px 10px; }
	.ep-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}
	.ep-category-card { border-radius: 16px; }
	.ep-category-card__image {
		height: clamp(128px, 38vw, 150px);
		padding: 6px;
	}
	.ep-category-card__image img {
		inset: 6px;
		width: calc(100% - 12px);
		height: calc(100% - 12px);
	}
	.ep-category-card__body { padding: 9px; }
	.ep-category-card__title-row { align-items: flex-start; }
	.ep-category-card__title-row h3 {
		font-size: 12px;
		line-height: 1.2;
	}
	.ep-category-card__badge {
		top: 8px;
		left: 8px;
		font-size: 7px;
	}
	html[dir="rtl"] .ep-category-card__badge {
		right: 8px;
		left: auto;
	}
	.ep-category-card__benefits {
		gap: 3px;
		margin-top: 6px;
	}
	.ep-category-card__benefits span {
		padding: 3px 5px;
		font-size: 7.5px;
	}
	.ep-category-card__price-summary { margin-top: 12px; }
	.ep-category-card__price-summary span {
		margin-bottom: 3px;
		font-size: 9px;
	}
	.ep-category-card__price-summary strong { font-size: 20px; }
	.ep-category-card__options {
		margin-top: 12px;
		margin-bottom: 12px;
	}
	.ep-category-card__options-heading {
		margin-bottom: 4px;
		font-size: 8px;
	}
	.ep-category-card__options-list {
		grid-template-columns: 1fr;
		gap: 6px;
	}
	.ep-category-card__option {
		flex-direction: row;
		justify-content: space-between;
		gap: 4px;
		padding: 7px 8px;
		border-radius: 9px;
		font-size: 9px;
		text-align: start;
	}
	html[dir="rtl"] .ep-category-card__option {
		text-align: end;
	}
	.ep-category-card__option strong { font-size: 9px; }
	.ep-category-card__single-option {
		gap: 8px;
		width: 100%;
		margin-top: 12px;
		margin-bottom: 12px;
		padding: 8px;
		border-radius: 9px;
		font-size: 9px;
	}
	.ep-category-card__footer {
		gap: 5px;
		min-height: 38px;
		margin-top: 11px;
		padding: 8px;
		border-radius: 300px;
	}
	.ep-category-card__footer strong { font-size: 9.5px; }
	.ep-category-card__footer span { font-size: 9px; }
}

/* Shop and product-category archives: keep two-column mobile cards comfortably readable. */
@media (max-width: 520px) {
	body.tax-product_cat .ep-category-card__title-row h3,
	body.woocommerce-shop .ep-category-card__title-row h3 {
		font-size: 15px;
		line-height: 1.3;
	}

	body.tax-product_cat .ep-category-card__badge,
	body.woocommerce-shop .ep-category-card__badge {
		font-size: 10px;
		line-height: 1.2;
	}

	body.tax-product_cat .ep-category-card__benefits span,
	body.woocommerce-shop .ep-category-card__benefits span {
		padding: 4px 6px;
		font-size: 10px;
		line-height: 1.2;
	}

	body.tax-product_cat .ep-category-card__options-heading,
	body.woocommerce-shop .ep-category-card__options-heading {
		font-size: 10px;
		line-height: 1.25;
	}

	body.tax-product_cat .ep-category-card__option,
	body.tax-product_cat .ep-category-card__option strong,
	body.woocommerce-shop .ep-category-card__option,
	body.woocommerce-shop .ep-category-card__option strong {
		font-size: 12px;
		line-height: 1.3;
	}

	body.tax-product_cat .ep-category-card__footer,
	body.woocommerce-shop .ep-category-card__footer {
		align-items: center;
		justify-content: space-between;
		flex-direction: row;
		gap: 10px;
		min-height: 44px;
		margin-top: auto;
		padding: 0 14px;
		text-align: center;
	}

	body.tax-product_cat .ep-category-card__footer span,
	body.woocommerce-shop .ep-category-card__footer span {
		font-size: 13px;
		line-height: 1.25;
	}

	body.tax-product_cat .ep-category-card__price-summary strong,
	body.woocommerce-shop .ep-category-card__price-summary strong {
		font-size: 20px;
	}
}
