/*
 * Stránka Obchod jako rozcestník (inc/shop-landing.php). Načítá se jen na shop page.
 * Design systém: Montserrat (z tématu), červená #d81e1f, bílé karty na pozadí webu.
 */

.rv-landing {
	padding-top: 8px;
}

/* Úvod: na mobilu sbalený na 2 řádky */
.rv-intro {
	margin-bottom: 16px;
}
.rv-intro__text {
	max-width: 880px;
}
.rv-intro__text p {
	margin: 0 0 8px;
}
.rv-intro__more {
	display: none;
	background: none;
	border: 0;
	padding: 4px 0;
	color: #d81e1f;
	font-weight: 600;
	cursor: pointer;
}

/* Lišta výhod */
.rv-benefits {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	background: #d81e1f;
	color: #fff;
	border-radius: 6px;
	overflow: hidden;
}
.rv-benefits li {
	margin: 0;
	padding: 12px 14px;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	text-align: center;
}
.rv-benefits li + li {
	border-left: 1px solid rgba(255, 255, 255, 0.35);
}

/* Dlaždice kategorií */
.rv-tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 32px;
}
.rv-tile {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	overflow: hidden;
}
.rv-tile__main {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}
.rv-tile__img {
	display: block;
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
}
.rv-tile__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rv-tile__name {
	display: block;
	padding: 10px 12px 0;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.25;
}
.rv-tile__count {
	display: block;
	padding: 2px 12px 8px;
	font-size: 13px;
	color: #666;
}
.rv-tile__main:hover .rv-tile__name {
	color: #d81e1f;
}
.rv-tile__sub {
	margin: 0;
	padding: 0 12px 12px;
	list-style: none;
	font-size: 13px;
	line-height: 1.6;
}
.rv-tile__sub a {
	display: block;
	padding: 3px 0;
	color: #333;
}
.rv-tile__sub a:hover {
	color: #d81e1f;
}
.rv-tile--firmy {
	justify-content: center;
	background: #fff;
	border: 2px solid #d81e1f;
}
.rv-tile--firmy .rv-tile__main {
	padding: 16px 0;
	min-height: 100%;
	justify-content: center;
}
.rv-tile__cta {
	display: block;
	padding: 6px 12px 0;
	font-weight: 700;
	color: #d81e1f;
}

/* Pruh „Právě doporučujeme“ */
.rv-promo {
	margin-bottom: 32px;
}
.rv-promo__title,
.rv-all {
	margin: 0 0 4px;
	font-size: 24px;
	font-weight: 700;
}
.rv-promo__sub {
	margin: 0 0 16px;
	color: #666;
}
.rv-all {
	margin-bottom: 16px;
}

/* Tlačítko „Filtrovat a řadit“ (jen mobil) */
.rv-filter-btn {
	display: none;
	width: 100%;
	margin: 0 0 12px;
	padding: 12px;
	background: #fff;
	border: 1px solid #d81e1f;
	border-radius: 6px;
	color: #d81e1f;
	font-weight: 700;
	cursor: pointer;
}

/* SEO text + FAQ pod výpisem, celou šířkou */
.rv-seo {
	padding: 24px 0 8px;
}
.rv-seo .container {
	max-width: 1000px;
}
.rv-seo h2 {
	margin: 24px 0 12px;
	font-size: 22px;
	font-weight: 700;
}
.rv-faq {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	margin-bottom: 8px;
}
.rv-faq summary {
	padding: 12px 14px;
	font-weight: 700;
	cursor: default;
	list-style: none;
}
.rv-faq summary::-webkit-details-marker {
	display: none;
}
.rv-faq__a {
	padding: 0 14px 12px;
}
.rv-faq__a p:last-child {
	margin-bottom: 0;
}

/* 768–991 px: zůstávají 4 sloupce (8 dlaždic = 2 plné řady, názvy se vejdou); 2 sloupce až do 767 px. */

@media (max-width: 767px) {
	.rv-intro__text {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		overflow: hidden;
	}
	.rv-intro.is-open .rv-intro__text {
		display: block;
		overflow: visible;
	}
	.rv-intro__more {
		display: inline-block;
	}
	.rv-benefits {
		grid-template-columns: repeat(2, 1fr);
	}
	.rv-benefits li:nth-child(odd) {
		border-left: 0;
	}
	.rv-benefits li:nth-child(n + 3) {
		border-top: 1px solid rgba(255, 255, 255, 0.35);
	}
	.rv-tiles {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.rv-tile__name {
		font-size: 14px;
	}
	.rv-tile__sub {
		font-size: 12px;
	}
	.rv-promo__title,
	.rv-all {
		font-size: 20px;
	}
	/* pruh doporučených: 2 produkty na šířku */
	.rv-promo .products,
	.rv-promo ul.products {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		margin: 0;
	}
	/* karty mají od Kapee třídy col-6 (50 % šířky) – v gridu by byly poloviční */
	.rv-promo .products > .product {
		width: 100%;
		max-width: 100%;
		flex: none;
		padding: 0;
	}
	/* na mobilu jen 4 produkty (2x2); obrázky mají loading=lazy, skryté se nestahují */
	.rv-promo .products > .product:nth-child(n + 5) {
		display: none;
	}
	.rv-filter-btn {
		display: block;
	}
	.rv-faq summary {
		cursor: pointer;
		position: relative;
		padding-right: 36px;
	}
	.rv-faq summary::after {
		content: "+";
		position: absolute;
		right: 14px;
		top: 10px;
		color: #d81e1f;
		font-size: 20px;
		line-height: 1;
	}
	.rv-faq[open] summary::after {
		content: "\2212";
	}
}
