/* ==========================================================
   New Sections — shared styles for Bestsellers & Latest Items
   Brand tokens match The Edit Rooms site system.
   ========================================================== */

.ns-section-container {
	--ns-bg: #F4F4F4;
	--ns-text: #1A1A1A;
	--ns-accent: #8A9A8B;
	--ns-accent-deep: #6B7D6C;
	--ns-cream: #EDEBE4;
	--ns-font-heading: 'Syne', sans-serif;
	--ns-font-sub: 'Montserrat', sans-serif;
	--ns-font-body: 'Inter', sans-serif;

	max-width: 1300px;
	margin: 0 auto;
	padding: 60px 20px;
	text-align: center;
	box-sizing: border-box;
	font-family: var(--ns-font-body);
	color: var(--ns-text);
}

.ns-section-container * {
	box-sizing: border-box;
}

.ns-section-title {
	font-family: var(--ns-font-heading);
	font-weight: 800;
	font-size: 26px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0 0 40px;
	color: var(--ns-text);
}

.ns-bestsellers .ns-section-title {
	margin-bottom: 8px;
}

.ns-section-subtitle {
	font-family: var(--ns-font-sub);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--ns-accent-deep);
	margin-bottom: 30px;
	font-weight: 600;
}

/* ---------- Tabs (Bestsellers widget only) ---------- */

.ns-tabs-container {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 40px;
}

.ns-tab-btn {
	background-color: transparent;
	border: 1px solid var(--ns-text);
	padding: 10px 24px;
	font-family: var(--ns-font-sub);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	cursor: pointer;
	color: var(--ns-text);
	border-radius: 2px;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.ns-tab-btn.active {
	background-color: var(--ns-text);
	border-color: var(--ns-text);
	color: var(--ns-cream);
}

.ns-tab-btn:hover:not(.active) {
	background-color: var(--ns-accent);
	border-color: var(--ns-accent);
	color: var(--ns-cream);
}

.ns-tab-pane {
	display: none;
}

.ns-tab-pane.active {
	display: block;
}

/* ---------- Slider ---------- */

.ns-slider-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 10px 0 30px;
}

.ns-slider-track {
	display: flex;
	gap: 25px;
	transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
	will-change: transform;
}

.ns-slider-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	background: var(--ns-bg);
	border: 1px solid var(--ns-text);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
	color: var(--ns-text);
	z-index: 10;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.ns-slider-arrow:hover {
	background: var(--ns-text);
	color: var(--ns-cream);
}

.ns-arrow-prev {
	left: -15px;
}

.ns-arrow-next {
	right: -15px;
}

/* ---------- Product card ---------- */

.ns-product-card {
	flex: 0 0 calc(25% - 19px);
	max-width: calc(25% - 19px);
	background: transparent;
	display: flex;
	flex-direction: column;
	text-align: left;
	position: relative;
}

.ns-product-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

@media (max-width: 1024px) {
	.ns-product-card {
		flex: 0 0 calc(50% - 13px);
		max-width: calc(50% - 13px);
	}
}

@media (max-width: 600px) {
	.ns-product-card {
		flex: 0 0 85%;
		max-width: 85%;
	}
}

.ns-product-image-box {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	background-color: var(--ns-cream);
	overflow: hidden;
	margin-bottom: 14px;
}

.ns-product-image-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.ns-product-link:hover .ns-product-image-box img {
	transform: scale(1.04);
}

.ns-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	color: var(--ns-cream);
	font-family: var(--ns-font-sub);
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 5px 10px;
	letter-spacing: 0.1em;
	border-radius: 2px;
	z-index: 2;
}

.ns-badge-sale {
	background-color: var(--ns-accent-deep);
}

.ns-badge-soldout {
	background-color: var(--ns-text);
}

.ns-product-title {
	font-family: var(--ns-font-sub);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ns-text);
	margin-bottom: 6px;
}

.ns-product-price {
	font-family: var(--ns-font-body);
	font-size: 13px;
	font-weight: 400;
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	color: var(--ns-text);
}

.ns-product-price ins {
	text-decoration: none;
	color: var(--ns-accent-deep);
	font-weight: 500;
}

.ns-product-price del {
	color: #999;
	font-weight: 400;
	opacity: 1;
}

.ns-empty {
	padding: 30px;
	color: #888;
	font-family: var(--ns-font-body);
	font-size: 13px;
	width: 100%;
}

