/* Winelovers 100 Toplista — mockup szerinti design
   Akcentszín állítása: :root --wl100-accent */

:root {
	--wl100-accent: #7B1E2B;       /* borpiros */
	--wl100-dark: #111111;
	--wl100-ink: #1a1a1a;
	--wl100-muted: #9a9a9a;
	--wl100-line: #e3e0db;
	--wl100-bg: #ffffff;
	--wl100-serif: 'Playfair Display', Georgia, serif;
	--wl100-sans: 'Barlow Semi Condensed', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- KERESŐ ---------- */
.wl100-searchbar {
	display: flex;
	align-items: stretch;
	max-width: 520px;
	margin: 8px auto 8px;
	font-family: var(--wl100-sans);
}
body .wl100-searchbar input {
	flex: 1;
	min-width: 0;
	margin: 0 !important;
	padding: 14px 16px;
	border: 1px solid var(--wl100-line) !important;
	border-right: 0 !important;
	border-radius: 0 !important;
	font-family: var(--wl100-sans);
	font-size: 14px;
	color: var(--wl100-ink);
	background: #fff !important;
	box-shadow: none !important;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
body .wl100-searchbar input:focus {
	border-color: var(--wl100-accent) !important;
}
/* A cmsmasters téma ::before/::after fedőrétegei a gombokon — kilőve */
body .wl100-searchbar button::before,
body .wl100-searchbar button::after,
body .wl100-chip::before,
body .wl100-chip::after,
body div.wl100-chips button.wl100-chip::before,
body div.wl100-chips button.wl100-chip::after {
	display: none !important;
	content: none !important;
	background: transparent !important;
	opacity: 0 !important;
}

body .wl100-searchbar button,
body div.wl100-searchbar button[type="button"] {
	margin: 0 !important;
	min-height: 0;
	padding: 14px 26px;
	border: 1px solid var(--wl100-accent) !important;
	border-radius: 0 !important;
	/* A hátteret inset box-shadow festi: ezt a téma nem tudja felülírni */
	background-color: var(--wl100-accent) !important;
	box-shadow: inset 0 0 0 100px var(--wl100-accent) !important;
	color: #fff !important;
	font-family: var(--wl100-sans);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .15em;
	text-transform: uppercase;
	line-height: 1.2;
	cursor: pointer;
	text-shadow: none;
	transition: box-shadow .15s ease, border-color .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
body .wl100-searchbar button:hover,
body .wl100-searchbar button:focus,
body div.wl100-searchbar button[type="button"]:hover,
body div.wl100-searchbar button[type="button"]:focus {
	background-color: var(--wl100-dark) !important;
	box-shadow: inset 0 0 0 100px var(--wl100-dark) !important;
	border-color: var(--wl100-dark) !important;
	color: #fff !important;
}

/* ---------- TOOLBAR / CHIPS ---------- */
.wl100-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 48px 24px 80px;
	font-family: var(--wl100-sans);
}
.wl100-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 32px;
}
.wl100-toolbar__label {
	font-family: var(--wl100-serif);
	font-size: 14px;
	letter-spacing: .3em;
	color: var(--wl100-ink);
	text-transform: uppercase;
}
.wl100-chips { display: flex; flex-wrap: wrap; gap: 10px; }
body .wl100-chip,
body div.wl100-chips button.wl100-chip {
	font-family: var(--wl100-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin: 0 !important;
	padding: 9px 20px;
	border: 1px solid #cfcac3 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--wl100-ink) !important;
	cursor: pointer;
	box-shadow: none !important;
	line-height: 1.2;
	transition: all .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
body .wl100-chip:hover,
body .wl100-chip.is-active,
body div.wl100-chips button.wl100-chip:hover,
body div.wl100-chips button.wl100-chip.is-active {
	/* A hátteret inset box-shadow festi: ezt a téma nem tudja felülírni */
	background-color: var(--wl100-accent) !important;
	box-shadow: inset 0 0 0 100px var(--wl100-accent) !important;
	border-color: var(--wl100-accent) !important;
	color: #fff !important;
}

/* ---------- GRID / KÁRTYÁK ---------- */
.wl100-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--wl100-line);
	border-left: 1px solid var(--wl100-line);
	grid-auto-rows: 1fr;
}
@media (max-width: 1024px) { .wl100-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .wl100-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .wl100-grid { grid-template-columns: 1fr; } }

.wl100-card {
	position: relative;
	border-right: 1px solid var(--wl100-line);
	border-bottom: 1px solid var(--wl100-line);
	padding: 28px 26px 24px;
	background: var(--wl100-bg);
}
.wl100-card.is-hidden { display: none; }
.wl100-card__body { transition: opacity .2s ease, filter .2s ease; }

/* Csak a megvásárolható kártya interaktív */
.wl100-card--buyable:hover .wl100-card__body,
.wl100-card--buyable:focus-within .wl100-card__body {
	opacity: .12;
	filter: grayscale(1);
}

/* A gomb overlay: nem foglal helyet a layoutban, ezért minden kártya egyforma magas */
.wl100-card__buy {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
	z-index: 2;
}
.wl100-card__buy span {
	display: inline-block;
	font-family: var(--wl100-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wl100-accent);
	border: 1px solid var(--wl100-accent);
	background: #fff;
	padding: 14px 22px;
	transition: background .15s ease, color .15s ease;
}
.wl100-card--buyable:hover .wl100-card__buy,
.wl100-card--buyable:focus-within .wl100-card__buy {
	opacity: 1;
	pointer-events: auto;
}
.wl100-card__buy:hover span { background: var(--wl100-accent); color: #fff; }

/* Érintőképernyőn nincs hover: ott egy kompakt gomb mindig látszik a kártya alján */
@media (hover: none) {
	.wl100-card--buyable .wl100-card__body { opacity: 1 !important; filter: none !important; }
	.wl100-card__buy {
		opacity: 1;
		pointer-events: auto;
		align-items: flex-end;
		justify-content: flex-start;
		padding: 0 26px 16px;
	}
	.wl100-card__buy span { font-size: 10px; padding: 8px 12px; }
	.wl100-card--buyable { padding-bottom: 64px; }
}

.wl100-card__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 6px;
}

/* Helyezés-szám a kategórialistákban (magazin stílus) */
.wl100-card__rank {
	font-family: var(--wl100-serif, 'Playfair Display', serif);
	font-weight: 800;
	font-size: 26px;
	line-height: 1;
	color: var(--wl100-accent);
	margin-right: 10px;
}

.wl100-card__score {
	font-family: var(--wl100-serif);
	font-weight: 800;
	font-size: 52px;
	line-height: 1;
	color: var(--wl100-accent);
}
.wl100-card__medal {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #a87c2a;
	border: 1px solid #d8c08a;
	padding: 3px 8px;
	border-radius: 999px;
	white-space: nowrap;
}
.wl100-card__medal--gold { color: #a87c2a; border-color: #d8c08a; }
.wl100-card__medal--grand-gold { color: #8a5a00; border-color: #c9a24b; background: #faf3e3; }

.wl100-card__title {
	font-family: var(--wl100-serif);
	font-weight: 700;
	font-size: 19px;
	line-height: 1.25;
	color: var(--wl100-ink);
	margin: 4px 0 6px;
}
.wl100-card__winery {
	font-size: 14px;
	color: #6f6f6f;
	margin: 0 0 4px;
}
.wl100-card__meta {
	font-size: 11px;
	letter-spacing: .18em;
	color: var(--wl100-muted);
	text-transform: uppercase;
	margin: 0;
}

.wl100-empty {
	text-align: center;
	color: var(--wl100-muted);
	padding: 48px 0;
	font-family: var(--wl100-sans);
}

/* ---------- SINGLE (magazin layout) ---------- */
.wl100-single {
	max-width: 980px;
	margin: 0 auto;
	padding: 64px 24px 96px;
	font-family: var(--wl100-sans);
}
.wl100-single__top {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 32px;
	align-items: start;
}
.wl100-single__rank {
	font-family: var(--wl100-serif);
	font-weight: 800;
	font-size: clamp(96px, 16vw, 180px);
	line-height: .85;
	color: var(--wl100-ink);
}
.wl100-single__head { text-align: right; padding-top: 14px; }
.wl100-single__winery {
	font-size: 16px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #555;
	margin: 0 0 6px;
}
.wl100-single__title {
	font-size: clamp(22px, 3.4vw, 34px);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--wl100-ink);
	margin: 0;
	line-height: 1.2;
}
.wl100-single__vintage {
	font-size: clamp(20px, 3vw, 30px);
	font-weight: 700;
	margin: 2px 0 0;
}
.wl100-single__rule { border: 0; border-top: 2px solid var(--wl100-ink); margin: 22px 0 14px; }
.wl100-single__row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
}
.wl100-single__score { font-size: 30px; font-weight: 700; white-space: nowrap; }
.wl100-single__info { font-style: italic; text-align: right; font-size: 16px; color: #333; max-width: 60%; }
.wl100-single__info span { display: block; }
.wl100-single__img { text-align: center; margin: 40px 0; }
.wl100-single__img img { max-width: 100%; height: auto; }
.wl100-single__buy {
	display: inline-block;
	background: var(--wl100-accent);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .14em;
	padding: 14px 28px;
	text-decoration: none;
}
.wl100-single__buy:hover { opacity: .9; color: #fff; }
.wl100-single__content { margin-top: 36px; font-size: 17px; line-height: 1.7; }
@media (max-width: 640px) {
	.wl100-single__top { grid-template-columns: 1fr; }
	.wl100-single__head { text-align: left; }
	.wl100-single__info { text-align: left; max-width: 100%; }
}

/* Kosár-jelölő a webshopban kapható borokon — a borvidék-évjárat sor végén */
body .wl100-card__cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	min-width: 20px;
	margin-left: 10px;
	vertical-align: middle;
	position: relative;
	top: -1px;
	border-radius: 50%;
	background: var(--wl100-accent) !important;
	box-shadow: inset 0 0 0 100px var(--wl100-accent) !important;
	color: #fff !important;
}
body .wl100-card__cart svg {
	width: 10px;
	height: 10px;
	display: block;
	stroke: #fff;
}
