/* ============================================================
   Zetu Commerce – Gemstone Categories Premium Cards
   ============================================================ */

/* ── Section ──────────────────────────────────────────────── */
.zc-gemstone-section {
	width: 100%;
}

.zc-gemstone-section {
	--zc-btn-primary: #003229;
	--zc-btn-secondary: #f8be5c;
	--zc-btn-text: #ffffff;
	--zc-btn-text-hover: #000000;
}

.zc-gemstone-section__header {
	text-align: center;
	margin-bottom: 48px;
}

.zc-gemstone-section__title {
	font-size: 36px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.zc-gemstone-section__subtitle {
	font-size: 17px;
	color: #64748b;
	margin: 0 auto;
	max-width: 560px;
	line-height: 1.6;
}

/* ── Grid ─────────────────────────────────────────────────── */
.zc-gemstone-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 24px;
}

/* ── Card ─────────────────────────────────────────────────── */
.zc-gemstone-card {
	position: relative;
	display: block;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	min-height: 280px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #0b1220;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            background-size 0.45s ease;
}

.zc-gemstone-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.zc-gemstone-card:focus {
	outline: none;
}

/* ── Overlay ──────────────────────────────────────────────── */
.zc-gemstone-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.70) 100%);
	transition: opacity 0.4s ease;
}

.zc-gemstone-card:hover .zc-gemstone-card__overlay {
	opacity: 0.9;
}

/* ── Content ──────────────────────────────────────────────── */
.zc-gemstone-card__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 28px 24px;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.zc-gemstone-card__title {
	font-size: 22px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 6px;
	letter-spacing: -0.01em;
	line-height: 1.3;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.zc-gemstone-card__count {
	font-size: 13px;
	font-weight: 500;
	color: #c9a96e;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 6px;
}

/* ── Button – Color Swipe Effect ──────────────────────────── */
.zc-gemstone-card__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding: 10px 22px;
	background-color: var(--zc-btn-primary, #003229);
	color: var(--zc-btn-text, #ffffff);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 4px;
	width: fit-content;
	overflow: hidden;
	z-index: 1;
	transition: color 0.4s ease;
	text-decoration: none;
}

.zc-gemstone-card__btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--zc-btn-secondary, #f8be5c);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	z-index: -1;
}

.zc-gemstone-card:hover .zc-gemstone-card__btn::before {
	transform: scaleX(1);
}

.zc-gemstone-card:hover .zc-gemstone-card__btn {
	color: var(--zc-btn-text-hover, #000000);
}

.zc-gemstone-card__btn-text,
.zc-gemstone-card__btn-icon {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
}

.zc-gemstone-card__btn-icon svg {
	transition: transform 0.3s ease;
}

.zc-gemstone-card:hover .zc-gemstone-card__btn-icon svg {
	transform: rotate(-22.5deg);
}

/* ── Optional: black-initial (parent class) ───────────────── */
.black-initial .zc-gemstone-section {
	--zc-btn-primary: #000000;
}

/* ── Optional: translate-icon (parent class) ─────────────── */
.translate-icon .zc-gemstone-card:hover .zc-gemstone-card__btn-icon svg {
	transform: translateX(4px);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
	.zc-gemstone-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.zc-gemstone-section__title {
		font-size: 30px;
	}

	.zc-gemstone-card {
		min-height: 240px;
	}
}

@media (max-width: 767px) {
	.zc-gemstone-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.zc-gemstone-section__header {
		margin-bottom: 32px;
	}

	.zc-gemstone-section__title {
		font-size: 26px;
	}

	.zc-gemstone-section__subtitle {
		font-size: 15px;
	}

	.zc-gemstone-card {
		min-height: 220px;
	}

	.zc-gemstone-card__title {
		font-size: 20px;
	}

	.zc-gemstone-card__content {
		padding: 22px 20px;
	}
}
