/* Mall chooser — mirrors home "제품 카테고리" section */

body.eg-mall-chooser-page .entry-header,
body.eg-mall-chooser-page .wp-block-post-title,
body.eg-mall-chooser-page .page-header {
	display: none !important;
}

body.eg-mall-chooser-page {
	background-color: #f9f7f2 !important;
}

body.eg-mall-chooser-page .site-main,
body.eg-mall-chooser-page .entry-content {
	background-color: #f9f7f2 !important;
	max-width: none !important;
	width: 100% !important;
}

body.eg-mall-chooser-page #primary,
body.eg-mall-chooser-page .content-area {
	padding-top: 0;
}

.eg-mall-chooser {
	max-width: 1240px;
	margin: 0 auto;
	/* PC: 고정 헤더(~90~110px) 아래 여유 간격 확보 */
	padding: 180px 10px 72px;
}

.eg-mall-chooser__header {
	text-align: center;
	margin-bottom: 28px;
}

.eg-mall-chooser__eyebrow {
	margin: 0 0 8px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #f97316;
}

.eg-mall-chooser__title {
	margin: 0 0 10px;
	font-size: 2.25rem;
	line-height: 1.11;
	font-weight: 700;
	color: #111827;
}

.eg-mall-chooser__lead {
	margin: 0;
	font-size: 1rem;
	color: #6b7280;
}

.eg-mall-chooser__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(16px, 2.7vw, 28px);
	align-items: stretch;
}

a.eg-mall-card {
	position: relative;
	display: block;
	width: 100%;
	min-height: 44vh;
	border-radius: 16px;
	overflow: hidden;
	border: 0;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	background-color: #111827;
	box-shadow: 0 4px 18px rgba(17, 24, 39, 0.08);
	transform: translateY(0);
	transition:
		transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

a.eg-mall-card:hover,
a.eg-mall-card:focus-visible {
	transform: translateY(-8px);
	box-shadow: 0 20px 44px rgba(17, 24, 39, 0.22);
	outline: none;
}

a.eg-mall-card:active {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(17, 24, 39, 0.16);
}

.eg-mall-card__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	transform: scale(1);
	transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

a.eg-mall-card:hover .eg-mall-card__media,
a.eg-mall-card:focus-visible .eg-mall-card__media {
	transform: scale(1.08);
}

.eg-mall-card__gradient {
	position: relative;
	z-index: 1;
	min-height: 44vh;
	display: flex;
	flex-direction: column;
	transition: opacity 0.28s ease;
}

.eg-mall-card--signage .eg-mall-card__gradient {
	background-image: linear-gradient(180deg, rgba(234, 88, 12, 0.8) 0%, rgba(124, 45, 18, 0.6) 100%);
}

.eg-mall-card--awning .eg-mall-card__gradient {
	background-image: linear-gradient(180deg, rgba(68, 64, 60, 0.8) 0%, rgba(28, 25, 23, 0.6) 100%);
}

a.eg-mall-card:hover .eg-mall-card__gradient,
a.eg-mall-card:focus-visible .eg-mall-card__gradient {
	opacity: 0.92;
}

.eg-mall-card__inner {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	min-height: 44vh;
	padding: 32px 16px 28px;
	background-color: rgba(0, 0, 0, 0.2);
	transition: background-color 0.28s ease;
}

a.eg-mall-card:hover .eg-mall-card__inner,
a.eg-mall-card:focus-visible .eg-mall-card__inner {
	background-color: rgba(0, 0, 0, 0.12);
}

.eg-mall-card__eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	padding: 6px 14px 5px 16px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #fff;
	border-radius: 9999px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.eg-mall-card--signage .eg-mall-card__eyebrow {
	background-image: linear-gradient(135deg, #f97316 0%, #f2295b 100%);
}

.eg-mall-card--awning .eg-mall-card__eyebrow {
	background-image: linear-gradient(135deg, #1e3a5c 0%, #2a7a8e 100%);
	box-shadow: none;
}

a.eg-mall-card:hover .eg-mall-card__eyebrow,
a.eg-mall-card:focus-visible .eg-mall-card__eyebrow {
	transform: translateY(-2px);
}

.eg-mall-card__title {
	display: block;
	margin: 0 0 8px;
	font-size: 3rem;
	line-height: 1;
	font-weight: 700;
	color: #fff;
	transition: color 0.2s ease, transform 0.28s ease;
}

a.eg-mall-card:hover .eg-mall-card__title,
a.eg-mall-card:focus-visible .eg-mall-card__title {
	color: #fde68a;
	transform: translateX(4px);
}

.eg-mall-card__desc {
	display: block;
	margin: 0 0 16px;
	max-width: 92%;
	font-size: 1rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.8);
}

.eg-mall-card__pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding-right: 10px;
	margin-bottom: 8px;
}

.eg-mall-card__pill {
	text-align: center;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.33;
	padding: 7px 12px;
	background-color: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 9999px;
	color: #fff;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

a.eg-mall-card:hover .eg-mall-card__pill,
a.eg-mall-card:focus-visible .eg-mall-card__pill {
	background-color: rgba(255, 255, 255, 0.92);
	border-color: rgba(255, 255, 255, 0.95);
	color: #c2410c;
}

.eg-mall-card__pill span {
	display: block;
	pointer-events: none;
}

.eg-mall-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.43;
	color: #fff;
	transition: color 0.2s ease, transform 0.28s ease;
}

.eg-mall-card__cta-arrow {
	display: inline-block;
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

a.eg-mall-card:hover .eg-mall-card__cta,
a.eg-mall-card:focus-visible .eg-mall-card__cta {
	color: #fde68a;
	transform: translateX(4px);
}

a.eg-mall-card:hover .eg-mall-card__cta-arrow,
a.eg-mall-card:focus-visible .eg-mall-card__cta-arrow {
	transform: translateX(6px);
}

@media (prefers-reduced-motion: reduce) {
	a.eg-mall-card,
	a.eg-mall-card__media,
	.eg-mall-card__gradient,
	.eg-mall-card__inner,
	.eg-mall-card__eyebrow,
	.eg-mall-card__title,
	.eg-mall-card__pill,
	.eg-mall-card__cta,
	.eg-mall-card__cta-arrow {
		transition: none !important;
	}

	a.eg-mall-card:hover,
	a.eg-mall-card:focus-visible {
		transform: none;
	}

	a.eg-mall-card:hover .eg-mall-card__media,
	a.eg-mall-card:focus-visible .eg-mall-card__media {
		transform: none;
	}
}

@media (max-width: 1024px) {
	a.eg-mall-card,
	.eg-mall-card__gradient,
	.eg-mall-card__inner {
		min-height: 38vh;
	}

	.eg-mall-card__title {
		font-size: 2.25rem;
	}
}

@media (max-width: 767px) {
	.eg-mall-chooser {
		padding-top: 40px;
		padding-bottom: 48px;
	}

	.eg-mall-chooser__title {
		font-size: 1.75rem;
	}

	.eg-mall-chooser__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	a.eg-mall-card,
	.eg-mall-card__gradient,
	.eg-mall-card__inner {
		min-height: auto;
	}

	a.eg-mall-card:hover,
	a.eg-mall-card:focus-visible {
		transform: translateY(-4px);
	}
}
