/*
 * NTS Sprint 4 - Flatsome visual removal layer.
 * Scope: custom Woo archive/card surfaces, stronger legacy visual suppression.
 */

.nts-s4-shell {
	width: min(1180px, calc(100vw - 48px));
	margin: 0 auto;
}

.nts-s4-shop {
	background: #f8f8f6;
	color: var(--nts-ink, #232a33);
}

.nts-s4-archive-hero {
	padding: 72px 0 34px;
	background:
		radial-gradient(circle at 84% 16%, rgba(207, 186, 141, .28), transparent 28%),
		linear-gradient(135deg, #fff 0%, #f7f0e4 54%, #eaf0f8 100%);
	border-bottom: 1px solid rgba(30, 52, 112, .12);
}

.nts-s4-archive-hero h1 {
	max-width: 760px;
	margin: 0 0 14px;
	color: var(--nts-blue-900, #14264c);
	font-family: "Montserrat", "Be Vietnam Pro", Arial, sans-serif;
	font-size: clamp(36px, 5vw, 58px);
	line-height: 1.05;
	letter-spacing: 0;
}

.nts-s4-archive-desc {
	max-width: 760px;
	color: rgba(35, 42, 51, .78);
	font-size: 17px;
	line-height: 1.75;
}

.nts-s4-shop-tools {
	padding: 28px 0 18px;
}

.nts-s4-shop-tools__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
	border: 1px solid rgba(30, 52, 112, .12);
	border-radius: 12px;
	background: #fff;
}

.nts-s4-result-count,
.nts-s4-ordering,
.nts-s4-ordering select {
	color: var(--nts-blue-900, #14264c);
	font-family: "Be Vietnam Pro", Arial, sans-serif;
	font-size: 14px;
}

.nts-s4-ordering form,
.nts-s4-ordering .woocommerce-ordering {
	margin: 0 !important;
}

.nts-s4-products-section {
	padding: 12px 0 64px;
}

.nts-s4-shop ul.products,
.nts-s4-shop .products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 24px !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.nts-s4-card.product,
.nts-s4-shop ul.products .nts-s4-card.product {
	display: flex !important;
	flex-direction: column !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	border: 1px solid rgba(30, 52, 112, .12) !important;
	border-radius: 14px !important;
	background: #fff !important;
	overflow: hidden !important;
	box-shadow: 0 16px 36px rgba(20, 38, 76, .07) !important;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.nts-s4-card:hover {
	transform: translateY(-3px);
	border-color: rgba(168, 136, 78, .55) !important;
	box-shadow: 0 22px 48px rgba(20, 38, 76, .12) !important;
}

.nts-s4-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: #f4f6f9;
	overflow: hidden;
}

.nts-s4-card__image {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

.nts-s4-card__sale {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--nts-gold-ink, #a8884e);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
}

.nts-s4-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px;
}

.nts-s4-card__category {
	margin: 0 0 8px;
	color: var(--nts-gold-ink, #a8884e);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.nts-s4-card__title {
	margin: 0 0 12px;
	font-family: "Montserrat", "Be Vietnam Pro", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.25;
	letter-spacing: 0;
}

.nts-s4-card__title a {
	color: var(--nts-blue-900, #14264c);
	text-decoration: none;
}

.nts-s4-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
}

.nts-s4-card__badges span {
	padding: 5px 8px;
	border: 1px solid rgba(30, 52, 112, .14);
	border-radius: 6px;
	background: #f7f8fb;
	color: rgba(20, 38, 76, .72);
	font-size: 11px;
	font-weight: 700;
}

.nts-s4-card__price {
	margin-top: auto;
	color: var(--nts-blue, #1e3470);
	font-family: "Inter", Arial, sans-serif;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.35;
}

.nts-s4-card__price .mh-prefix {
	display: none;
}

.nts-s4-card__cta {
	display: block;
	margin-top: 16px;
	padding: 11px 14px;
	border-radius: 10px;
	background: var(--nts-blue, #1e3470);
	color: #fff !important;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
}

.nts-s4-pagination {
	margin-top: 34px;
}

.nts-s4-empty {
	position: relative;
	z-index: 3;
	max-width: 720px;
	margin-bottom: 64px;
	padding: 36px;
	border: 1px solid rgba(30, 52, 112, .12);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 16px 36px rgba(20, 38, 76, .07);
}

.nts-s4-empty h2 {
	margin: 0 0 10px;
	color: var(--nts-blue-900, #14264c);
	font-family: "Montserrat", "Be Vietnam Pro", Arial, sans-serif;
	font-size: 30px;
	line-height: 1.15;
}

/* Suppress residual Flatsome shop surfaces when custom archive is active. */
.nts-s4-shop .shop-page-title,
.nts-s4-shop .category-page-title,
.nts-s4-shop #shop-sidebar,
.nts-s4-shop .woocommerce-sidebar,
.nts-s4-shop .sidebar {
	display: none !important;
}

.nts-s4-shop .woocommerce-no-products-found,
.nts-s4-shop .woocommerce-info {
	display: none !important;
}

/* Remove old decorative/footer assets that visually leak into custom empty states. */
.footer-wrapper::before,
.footer-wrapper::after,
#footer::before,
#footer::after,
.absolute-footer::before,
.absolute-footer::after {
	display: none !important;
	content: none !important;
}

.footer-wrapper img[src*="bg-bottom"],
#footer img[src*="bg-bottom"],
.footer-wrapper img[src*="all-icon"] {
	display: none !important;
}

body.archive.woocommerce main#main::before,
body.archive.woocommerce main#main::after,
body.archive.woocommerce main#main > .category-page-row::before,
body.archive.woocommerce main#main > .category-page-row::after,
body.single-product main#main::before,
body.single-product main#main::after,
body.single-product main#main .shop-container::before,
body.single-product main#main .shop-container::after,
.mh-bg-bottom-left > .bg,
.mh-bg-bottom-right > .bg {
	display: none !important;
	content: none !important;
	background-image: none !important;
}

@media only screen and (max-width: 1100px) {
	.nts-s4-shop ul.products,
	.nts-s4-shop .products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media only screen and (max-width: 760px) {
	.nts-s4-shell {
		width: min(100vw - 56px, 520px);
		max-width: min(100vw - 56px, 520px);
	}

	.nts-s4-archive-hero {
		padding: 48px 0 28px;
	}

	.nts-s4-archive-hero h1 {
		font-size: 34px;
		max-width: 100%;
		overflow-wrap: break-word;
	}

	.nts-s4-archive-desc {
		max-width: 100%;
		overflow-wrap: break-word;
	}

	.nts-s4-shop-tools__row {
		align-items: stretch;
		flex-direction: column;
	}

	.nts-s4-shop ul.products,
	.nts-s4-shop .products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 14px !important;
	}

	.nts-s4-card__body {
		padding: 14px;
	}

	.nts-s4-card__title {
		font-size: 15px;
	}

	.nts-s4-card__badges {
		display: none;
	}

	.nts-s4-card__price {
		font-size: 14px;
	}
}

@media only screen and (max-width: 430px) {
	.nts-s4-shell {
		width: min(300px, calc(100vw - 56px));
		max-width: min(300px, calc(100vw - 56px));
	}

	.nts-s4-shop ul.products,
	.nts-s4-shop .products {
		grid-template-columns: 1fr !important;
	}
}
