/* Nersi Store — WooCommerce product loop cards (shop + homepage) */

.ns-product-loop .product {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0;
	padding: 0;
	border-radius: calc(var(--af-radius) + 2px);
	background: var(--af-white);
	border: 1px solid var(--af-border);
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ns-product-loop .product:hover {
	transform: translateY(-4px);
	border-color: rgba(245, 184, 0, 0.45);
	box-shadow: 0 16px 36px rgba(26, 26, 26, 0.1);
}

.ns-product-loop .woocommerce-loop-product__link {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 12px 12px 10px;
	text-decoration: none;
	color: inherit;
}

.ns-product-loop .product .onsale {
	position: absolute;
	inset-inline-end: 12px;
	top: 12px;
	z-index: 2;
	min-height: auto;
	min-width: 2.1rem;
	margin: 0;
	padding: 5px 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 900;
	line-height: 1.2;
	text-align: center;
	box-shadow: 0 6px 14px rgba(220, 38, 38, 0.35);
}

.ns-product-loop .product img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	border-radius: 12px;
	background: #f8f8f7;
	padding: 0;
}

.ns-product-loop .woocommerce-loop-product__title {
	margin: 12px 0 8px;
	padding: 0;
	font-size: 0.88rem;
	font-weight: 800;
	line-height: 1.55;
	color: var(--ns-black);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.ns-product-loop .product .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: start;
	gap: 6px;
	margin: 0;
	padding: 0 12px 12px;
	font-size: 0.95rem;
	font-weight: 900;
	color: var(--ns-brand-deep);
	text-align: start;
}

.ns-product-loop .product .price del {
	color: #a8a29e;
	font-size: 0.76rem;
	font-weight: 600;
	opacity: 1;
}

.ns-product-loop .product .price ins {
	text-decoration: none;
	color: #dc2626;
}

.ns-product-loop .product .price .amount {
	color: inherit;
}

.ns-product-loop .product .star-rating {
	margin: 0 12px 8px;
	font-size: 0.72rem;
}

.ns-product-loop .product .button,
.ns-product-loop .product .ns-shop-product__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(100% - 24px);
	margin: 0 12px 12px;
	padding: 11px 14px;
	border: none !important;
	border-radius: 10px !important;
	background: var(--ns-black) !important;
	color: var(--ns-brand-bright) !important;
	box-shadow: none !important;
	font-family: var(--af-font) !important;
	font-size: 0.8rem;
	font-weight: 800 !important;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ns-product-loop .product .button:hover,
.ns-product-loop .product .ns-shop-product__btn:hover {
	background: var(--ns-brand-deep) !important;
	color: var(--ns-black) !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px var(--ns-brand-glow) !important;
}

.ns-product-loop .product .added_to_cart {
	display: inline-block;
	margin: 0 12px 12px;
	font-size: 0.76rem;
	font-weight: 700;
	color: var(--ns-brand-deep);
	text-decoration: none;
}

/* Homepage + single-product related sliders */
.ns-home-deals__swiper .swiper-slide,
.ns-home-mens__swiper .swiper-slide,
.ns-home-womens__swiper .swiper-slide,
.ns-home-accessories__swiper .swiper-slide,
.ns-related-products__swiper .swiper-slide {
	height: auto;
}

.ns-home-deals__swiper .product,
.ns-home-mens__swiper .product,
.ns-home-womens__swiper .product,
.ns-home-accessories__swiper .product,
.ns-related-products__swiper .product,
.ns-related-products__swiper li.product {
	height: 100%;
}
