/**
 * Archive / taxonomy CPT sản phẩm (`san_pham`) — hero + lưới 3 cột + phân trang.
 */

.fc-sp-archive {
	padding-top: 0;
}

/* —— Hero —— */
.fc-sp-hero {
	position: relative;
	background-color: #1a1f2e;
	background-size: cover;
	background-position: center;
	padding: clamp(2.5rem, 8vw, 4.5rem) 0;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
	box-sizing: border-box;
}

.fc-sp-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(8, 12, 28, 0.78) 0%, rgba(25, 35, 55, 0.5) 55%, rgba(8, 12, 28, 0.75) 100%);
}

.fc-sp-hero__inner {
	position: relative;
	z-index: 1;
	text-align: center;
}

.fc-sp-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 3.5vw, 2.1rem);
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #fff;
}

/* Gạch trắng (trái) + đỏ (phải) */
.fc-sp-hero__rule.fc-sp-hero__rule--split {
	width: 64px;
	height: 4px;
	margin: 0.65rem auto 1.1rem;
	border-radius: 1px;
	background: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #e31b23 50%, #e31b23 100%);
}

.fc-sp-hero__crumb {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.95);
}

.fc-sp-hero__crumb a {
	color: #fff;
	text-decoration: none;
}

.fc-sp-hero__crumb a:hover {
	text-decoration: underline;
}

.fc-sp-hero__sep {
	margin: 0 0.4rem;
	opacity: 0.9;
}

.fc-sp-hero__current {
	font-weight: 500;
}

/* —— Trang lưới danh mục (Page template) —— */
.fc-sp-cat-index .fc-sp-term-card__count {
	margin: 0 0 0.75rem;
	font-size: 0.88rem;
	color: #6b7280;
}

.fc-sp-cat-index__content {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* —— Grid —— */
.fc-sp-archive .category-page-row {
	padding-top: 2rem;
	padding-bottom: 2.5rem;
}

.fc-sp-archive .fc-sp-grid {
	row-gap: 1.5rem;
}

.fc-sp-grid-item {
	margin-bottom: 0 !important;
}

.fc-sp-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.fc-sp-grid-item:hover .fc-sp-card {
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.11);
	transform: translateY(-2px);
}

.fc-sp-card__media {
	position: relative;
	background: #fff;
	padding: 1rem 1rem 0.5rem;
	text-align: center;
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fc-sp-card__media > a {
	display: block;
	width: 100%;
}

.fc-sp-card__img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

.fc-sp-card__placeholder {
	display: block;
	width: 100%;
	min-height: 140px;
	background: linear-gradient(135deg, #e8eaef 0%, #f5f6f8 100%);
	border-radius: 8px;
}

.fc-sp-card__body {
	flex: 1 1 auto;
	background: #f2f4f7;
	padding: 1.1rem 1rem 1.35rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.fc-sp-card__title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.3;
	color: #111;
}

.fc-sp-card__price-line {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #111;
}

.fc-sp-card__price-label {
	font-weight: 500;
	margin-right: 0.25rem;
}

.fc-sp-card__price-value {
	font-weight: 800;
	color: #e30613;
}

.fc-sp-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 10rem;
	padding: 0.55rem 1.5rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	color: #fff !important;
	background: #003399;
	border: none;
	box-shadow: 0 2px 10px rgba(0, 51, 153, 0.25);
	transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.fc-sp-card__btn:hover,
.fc-sp-card__btn:focus {
	filter: brightness(1.06);
	color: #fff !important;
}

.fc-sp-empty {
	text-align: center;
	padding: 2rem 1rem;
	color: #555;
}

/* —— Pagination —— */
.fc-sp-archive .navigation.pagination {
	margin-top: 2rem;
	text-align: center;
}

.fc-sp-archive .navigation.pagination .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.35rem;
}

.fc-sp-archive .navigation.pagination a.page-numbers,
.fc-sp-archive .navigation.pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 38px;
	padding: 0 0.5rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	border: 1px solid #e5e7eb;
	background: #f3f4f6;
	color: #374151;
}

.fc-sp-archive .navigation.pagination span.page-numbers.current {
	background: #e31b23;
	border-color: #e31b23;
	color: #fff;
}

.fc-sp-archive .navigation.pagination a.page-numbers:hover {
	background: #e5e7eb;
	color: #111;
}

.fc-sp-archive .navigation.pagination a.next.page-numbers,
.fc-sp-archive .navigation.pagination a.prev.page-numbers {
	background: #f3f4f6;
}
