/**
 * Category grid — 6 ô: sub (viền) + hero (full bleed).
 */

.shop-category-grid-section {
	width: 100% !important;
	box-sizing: border-box !important;
}

.shop-category-grid__heading {
	margin: 0 0 clamp(1rem, 2.5vw, 1.75rem) !important;
	padding: 0 !important;
	font-family: var(
		--e-global-typography-primary-font-family,
		"Be Vietnam Pro",
		system-ui,
		sans-serif
	) !important;
	font-size: var(--e-global-typography-primary-font-size, 24px) !important;
	font-weight: 400 !important;
	line-height: 1.25 !important;
	text-align: left !important;
	color: var(--e-global-color-primary, #d91111) !important;
}

.shop-category-grid {
	display: grid !important;
	grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
	gap: clamp(0.75rem, 2vw, 1.25rem) !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

@media (max-width: 1200px) {
	.shop-category-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

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

/* ---------- Card chung ---------- */
.shop-category-card {
	display: flex !important;
	flex-direction: column !important;
	min-height: 0 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	text-decoration: none !important;
	color: var(--e-global-color-primary, #1a1a1a) !important;
	transition: opacity 0.2s ease, box-shadow 0.2s ease !important;
	box-sizing: border-box !important;
}

.shop-category-card:hover {
	opacity: 0.92 !important;
}

.shop-category-card__title {
	font-family: var(--e-global-typography-text-font-family, system-ui, sans-serif) !important;
	font-size: clamp(13px, 1.2vw, 16px) !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
}

.shop-category-card__chev {
	font-size: 1rem !important;
	line-height: 1 !important;
	opacity: 0.45 !important;
}

/* ---------- Subcategory (trắng + viền) ---------- */
/* List danh mục: ocean (đậm hóa cho đọc trên trắng); hover → gold warm đậm */
.shop-category-card--sub {
	background: #ffffff !important;
	border: 1px solid rgba(0, 0, 0, 0.08) !important;
	aspect-ratio: 1 / 1.05 !important;
	color: #1f7aad !important;
	color: color-mix(
		in srgb,
		var(--color-ocean-blue, var(--e-global-color-accent, #4cb5f5)) 68%,
		#06344a
	) !important;
}

.shop-category-card--sub .shop-category-card__head {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 0.65rem 0.75rem 0.35rem !important;
	flex-shrink: 0 !important;
}

.shop-category-card--sub .shop-category-card__title {
	color: inherit !important;
}

.shop-category-card--sub .shop-category-card__chev {
	color: inherit !important;
	opacity: 0.55 !important;
}

.shop-category-card--sub:hover {
	color: #b8830d !important;
	color: color-mix(
		in srgb,
		var(--color-gold-warm, #f5c46b) 68%,
		#3d2e00
	) !important;
}

.shop-category-card--sub:hover .shop-category-card__chev {
	opacity: 0.9 !important;
}

.shop-category-card--sub .shop-category-card__media {
	flex: 1 1 auto !important;
	width: 100% !important;
	min-height: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	display: block !important;
}

.shop-category-card--sub .shop-category-card__img {
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
}

.shop-category-card--sub .shop-category-card__media img {
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
}

/* ---------- Hero (ảnh nền + thanh) ---------- */
.shop-category-card--hero {
	position: relative !important;
	min-height: 0 !important;
	aspect-ratio: 1 / 1.05 !important;
	color: #ffffff !important;
}

.shop-category-card--hero .shop-category-card__title,
.shop-category-card--hero .shop-category-card__chev {
	color: #ffffff !important;
	opacity: 1 !important;
}

.shop-category-card--hero .shop-category-card__chev {
	opacity: 0.9 !important;
}

.shop-category-card__bar {
	position: relative !important;
	z-index: 2 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 0.65rem 0.75rem !important;
	flex-shrink: 0 !important;
}

.shop-category-card--tone-olive .shop-category-card__bar {
	background: #6b7a4a !important;
}

.shop-category-card--tone-dark .shop-category-card__bar {
	background: #3d3530 !important;
}

.shop-category-card__bg {
	position: absolute !important;
	inset: 0 !important;
	z-index: 0 !important;
	background-color: #e8e4df !important;
	background-image: var(--shop-category-hero-bg, none) !important;
	background-size: cover !important;
	background-position: center !important;
}

.shop-category-card--hero .shop-category-card__bar {
	position: relative !important;
	z-index: 2 !important;
}
