/* NELVAYA – nowy wygląd: karty produktów (body.nvnw-cards) i pierwszy ekran strony głównej (body.nvnw-home). */

.nvnw-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* -------------------------------------------------------------------------
 * Karty produktów
 * ---------------------------------------------------------------------- */

/* Krótka nazwa + rodzaj i gramatura; linia z kategorią nie jest już potrzebna */
body.nvnw-cards .product .product-brand { display: none; }
body.nvnw-cards .products .product .product-title {
	height: auto;
	min-height: 0;
}
body.nvnw-cards .product .product-title a[data-nvnw="1"] {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}
body.nvnw-cards .product .product-title .nvnw-name {
	display: block;
	font-size: 15px;
	line-height: 1.25;
	font-weight: 600;
}
body.nvnw-cards .product .product-title .nvnw-sub {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	line-height: 1.35;
	font-weight: 400;
	color: #5f5a54;
}

/* Cena: aktualna na górze, stara mniejsza pod spodem */
body.nvnw-cards .product .product-content-wrapper .price { flex-direction: column-reverse !important; }
body.nvnw-cards .product .product-content-wrapper .price ins { text-decoration: none; }
body.nvnw-cards .product .product-content-wrapper .price ins .amount {
	font-size: 16px;
	font-weight: 700;
	color: #111111;
}
body.nvnw-cards .product .product-content-wrapper .price del .amount {
	font-size: 12px;
	color: #5f5a54;
}

/* Ocena widoczna na zdjęciu, w lewym dolnym rogu */
body.nvnw-cards .product .product-thumbnail-wrapper .product-rating.simple {
	display: flex;
	top: auto;
	right: auto;
	left: 10px;
	bottom: 10px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #ffffff;
	font-size: 12px;
	line-height: 1.4;
	color: #111111;
}

/* Telefon i tablet: okrągły przycisk „+" (dodaj do koszyka) na zdjęciu */
@media (hover: none), (max-width: 991px) {
	body.nvnw-cards .products .product .product-thumbnail-wrapper .product-cart-button {
		display: block !important;
		left: auto;
		right: 10px;
		bottom: 10px;
		width: auto;
		transform: none;
		opacity: 1;
		visibility: visible;
	}
	body.nvnw-cards .product .product-cart-button a.add_to_cart_button {
		position: relative;
		width: 44px;
		min-width: 44px;
		height: 44px;
		padding: 0;
		gap: 0;
		font-size: 0;
		justify-content: center;
		align-items: center;
	}
	/* Plus rysowany z dwóch kresek i ustawiony dokładnie na środku kółka */
	body.nvnw-cards .product .product-cart-button a.add_to_cart_button::before {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 16px;
		height: 16px;
		transform: translate(-50%, -50%);
		background:
			linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
			linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
	}
	body.nvnw-cards .product .product-cart-button a.add_to_cart_button.loading::before { opacity: 0; }
	body.nvnw-cards .product .product-cart-button a.added_to_cart { display: none; }
}

/* Telefon: kategorie w jednym przewijanym rzędzie, produkty w siatce 2 kolumn zamiast karuzeli */
@media (max-width: 767px) {
	body.nvnw-cards .klb-module .site-module-header {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	body.nvnw-cards .klb-module .site-module-header > .column {
		min-width: 0;
		max-width: 100%;
	}
	body.nvnw-cards .site-module-tabs {
		min-width: 0;
		max-width: 100%;
	}
	body.nvnw-cards .site-module-tabs ul {
		max-width: 100%;
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	body.nvnw-cards .site-module-tabs ul::-webkit-scrollbar { display: none; }
	body.nvnw-cards .site-module-tabs li { flex: 0 0 auto; }
	body.nvnw-cards .site-module-tabs li a { white-space: nowrap; }

	body.nvnw-cards .klb-products-tab .site-slider.carousel-style.products {
		width: 100%;
		max-width: 100%;
	}
	body.nvnw-cards .klb-products-tab .site-slider.products .slick-list {
		overflow: visible;
		margin: 0;
	}
	body.nvnw-cards .klb-products-tab .site-slider.products .slick-track {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		width: auto !important;
		transform: none !important;
	}
	body.nvnw-cards .klb-products-tab .site-slider.products .slick-track::before,
	body.nvnw-cards .klb-products-tab .site-slider.products .slick-track::after { display: none; }
	body.nvnw-cards .klb-products-tab .site-slider.products .slick-slide {
		width: auto !important;
		height: auto;
		float: none;
		margin: 0;
		padding: 0;
	}
	body.nvnw-cards .klb-products-tab .site-slider.products .slick-cloned,
	body.nvnw-cards .klb-products-tab .site-slider.products .slick-arrow,
	body.nvnw-cards .klb-products-tab .site-slider.products .slick-dots { display: none !important; }
	body.nvnw-cards .klb-products-tab .product .product-content-wrapper { padding: 10px 12px 12px; }
}

/* -------------------------------------------------------------------------
 * Strona główna: pierwszy ekran
 * ---------------------------------------------------------------------- */

/* Przyciemnienie dołu zdjęcia, tekst w lewym dolnym rogu */
body.nvnw-home .nlv-static-hero .site-banner-media.image-overlay::before {
	background: linear-gradient(to bottom, rgba(20, 16, 12, 0.05) 20%, rgba(20, 16, 12, 0.74) 78%);
}
body.nvnw-home .nlv-static-hero .site-banner-content {
	align-items: flex-end;
	justify-content: flex-start;
	padding: 22px 20px;
	text-align: left;
}
body.nvnw-home .nlv-static-hero .site-banner-inner {
	max-width: 560px;
	margin: auto auto 0 0 !important;
	text-align: left;
}
body.nvnw-home .nlv-static-hero h1.entry-title {
	margin: 0 0 12px;
	font-size: clamp(32px, 4.2vw, 56px);
	line-height: 1.16;
	letter-spacing: -0.005em;
}
body.nvnw-home .nlv-static-hero .entry-description {
	opacity: 1;
	font-size: 15px;
	line-height: 1.45;
	font-weight: 400;
	color: #f3eee7;
}
body.nvnw-home .nlv-static-hero .entry-description p { margin: 0; }

/* Ocena nad nagłówkiem */
body.nvnw-home .nlv-static-hero .nvnw-hero-rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 500;
	color: #ffffff;
	text-decoration: none;
}
body.nvnw-home .nlv-static-hero .nvnw-hero-rating .nvnw-stars { letter-spacing: 2px; }
body.nvnw-home .nlv-static-hero .nvnw-hero-rating .nvnw-rt {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Dwa przyciski */
body.nvnw-home .nlv-static-hero .site-banner-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}
body.nvnw-home .nlv-static-hero .site-banner-footer .btn {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	font-size: 14px;
	font-weight: 600;
}
body.nvnw-home .nlv-static-hero .site-banner-footer .nvnw-cta2 {
	border: 1.5px solid #ffffff;
	background: transparent;
	color: #ffffff;
}
body.nvnw-home .nlv-static-hero .site-banner-footer .nvnw-cta2:hover,
body.nvnw-home .nlv-static-hero .site-banner-footer .nvnw-cta2:focus-visible {
	background: #ffffff;
	color: #111111;
}

/* Pasek: dostawa, InPost, zwroty */
body.nvnw-home .nvnw-usp {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 12px 0 0;
	padding: 14px 12px;
	border-radius: 12px;
	background: #f6f2ec;
}
body.nvnw-home .nvnw-usp div {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	line-height: 1.3;
	font-weight: 500;
	color: #111111;
	text-align: center;
}
body.nvnw-home .nvnw-usp svg {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	stroke: #111111;
}

@media (min-width: 768px) {
	body.nvnw-home .nlv-static-hero .site-banner-content { padding: 40px; }
	body.nvnw-home .nlv-static-hero .site-banner-footer .btn {
		flex: 0 0 auto;
		padding: 0 28px;
		font-size: 15px;
	}
	body.nvnw-home .nvnw-usp div {
		flex-direction: row;
		justify-content: center;
		gap: 10px;
		font-size: 14px;
	}
}

/* -------------------------------------------------------------------------
 * Zielony komunikat po dodaniu do koszyka (body.nvnw-notoast)
 * ---------------------------------------------------------------------- */

body.nvnw-notoast .klb-notice-ajax .woocommerce-message { display: none !important; }

/* -------------------------------------------------------------------------
 * Strona główna: dalsze sekcje (body.nvnw-home2)
 * ---------------------------------------------------------------------- */

/* Krótsza strona: w sekcji „Głębia kryje się w małych gestach" zostaje pierwszy akapit,
   trzy kafelki pod nią są ukryte (treść zostaje w Elementorze, nic nie jest kasowane). */
body.nvnw-home2 .elementor-element-2678221,
body.nvnw-home2 .elementor-element-ab42403,
body.nvnw-home2 .elementor-element-10c9673 { display: none !important; }

/* Opinie: karty równej wysokości */
body.nvnw-home2 .cr-reviews-slider .slick-list { height: auto !important; }
body.nvnw-home2 .cr-reviews-slider .slick-track {
	display: flex !important;
	align-items: stretch !important;
}
body.nvnw-home2 .cr-reviews-slider .slick-slide {
	display: flex !important;
	flex-direction: column;
	float: none !important;
	height: auto !important;
}
body.nvnw-home2 .cr-reviews-slider .slick-slide > div {
	display: flex;
	flex: 1 1 auto;
	height: auto;
}
body.nvnw-home2 .cr-reviews-slider .cr-review-card {
	display: flex !important;
	flex: 1 1 auto;
	height: auto;
}
body.nvnw-home2 .cr-reviews-slider .cr-review-card-inner {
	flex: 1 1 auto;
	height: auto;
}

/* Średnia ocena nad opiniami */
body.nvnw-home2 .nvnw-rev-summary {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0 10px;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 600;
	color: #111111;
}
body.nvnw-home2 .nvnw-rev-summary .nvnw-stars {
	letter-spacing: 2px;
	color: #e0a100;
}
