/* [pb_termekek] — Webshop-sablon rács. Font: Nunito Sans + Playfair Display. Csak px; mobil 767px. */

.pb-termek-grid {
	display: grid;
	gap: 26px;
}

.pb-termek-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

.pb-termek-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.pb-termek-grid--4 {
	grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   Termékkártya — kattintható (a cím-link nyúlik az egész kártyára)
   ========================================================================== */

.pb-termek-item {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border: 1px solid #EED7DE;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(77, 36, 76, 0.06);
	transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pb-termek-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 40px rgba(77, 36, 76, 0.10);
}

.pb-termek-item-kep {
	position: relative;
	width: 100%;
	background: #F8EBE9;
	padding: 20px;
	overflow: hidden;
	display: flex;
	justify-content: center;
}

.pb-termek-item-kep img {
	width: 100%;
	max-width: 172px;
	height: auto;
	display: block;
	filter: drop-shadow(0 14px 26px rgba(77, 36, 76, 0.20));
}

.pb-termek-item-plakett {
	position: absolute;
	top: 14px;
	left: 14px;
	white-space: nowrap;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #FFFFFF;
	background: #5D2C56;
	padding: 6px 13px;
	border-radius: 999px;
}

.pb-termek-item-torzs {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 22px 24px 24px;
}

/* Cím — a link ::after-e fedi a kártyát, így az egész kattintható.
   text-wrap: pretty: kerüli a magányos utolsó szavakat, szebb sortörést ad. */
.pb-termek-item-cim {
	font-family: "Playfair Display", "Times New Roman", serif;
	font-weight: 600;
	font-size: 21px;
	line-height: 1.25;
	color: #5D2C56;
	margin: 0;
	text-wrap: pretty;
}

.pb-termek-cim-link {
	color: inherit;
	text-decoration: none;
}

.pb-termek-cim-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Címkék (termék-címke, üresen kategória) */
.pb-termek-item-cimkek {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.pb-termek-cimke {
    font-family: "Nunito Sans", system-ui, sans-serif;
    padding: 5px 10px;
    border-radius: 999px;
    background: #F3E6EE;
    color: #5D2C56;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

/* ==========================================================================
   Ár — az akciós erősen kiemelve
   ========================================================================== */

.pb-termek-item-ar {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	margin-top: auto;
	padding-top: 18px;
}

.pb-termek-ar-most {
	font-family: "Playfair Display", "Times New Roman", serif;
	font-size: 24px;
	font-weight: 600;
	color: #5D2C56;
}

.pb-termek-ar-regi {
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 14px;
	color: #6B5A5E;
	text-decoration: line-through;
	text-decoration-color: rgba(107, 90, 94, 0.6);
}

/* Akciós: a most-ár csak színben kap kiemelést, a sorrend: most → régi. */
.pb-termek-ar-akcios .pb-termek-ar-most {
	color: #8D4F7D;
}

/* ==========================================================================
   Kosárba teszem gomb
   ========================================================================== */

.pb-termek-item-gombok {
	/* Alsó rögzítés: minden kártyán ugyanott áll a gombsor (min. 16px rés a felette lévő blokk után). */
	margin-top: auto;
	padding-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pb-termek-item .pb-termek-kosar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	position: relative;
	z-index: 2;
	background: linear-gradient(135deg, #8D4F7D 0%, #7A3B6D 73%);
	color: #FFFFFF;
	box-shadow: 0 10px 30px rgba(77, 36, 76, 0.10);
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: -0.05em;
	border: none;
	border-radius: 5px;
	padding: 13px 28px;
	text-shadow: none;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: background 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Kettős osztály: a téma / WooCommerce gomb-állapotai ellen. */
.pb-termek-item .pb-termek-kosar.pb-termek-kosar:hover,
.pb-termek-item .pb-termek-kosar.pb-termek-kosar:focus {
	background: linear-gradient(135deg, #7A3B6D 0%, #6A3260 73%);
	color: #FFFFFF;
	transform: translateY(-1px);
}

.pb-termek-item .pb-termek-kosar.loading {
	opacity: 0.6;
}

/* A "Kosár" link a gombok után itt nem kell — helyette a lebegő jelzés megy. */
.pb-termek-item .added_to_cart {
	display: none;
}

.pb-termek-info-link {
    display: inline-block;
    font-family: "Nunito Sans", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #5D2C56;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-align: center;
    font-weight: 600;
    margin-top: 14px;
}

.pb-termek-info-link:hover,
.pb-termek-info-link:focus {
	color: #8D4F7D;
}

/* ==========================================================================
   Lebegő kosár-jelzés (bal alul)
   ========================================================================== */

.pb-termek-toast {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	background: #FFFFFF;
	border: 1px solid #EED7DE;
	border-left: 4px solid #8D4F7D;
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(77, 36, 76, 0.18);
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #383135;
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pb-termek-toast.lathato {
	opacity: 1;
	transform: translateY(0);
}

.pb-termek-toast-ikon {
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border-radius: 999px;
	background: #F3E6EE;
	color: #8D4F7D;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pb-termek-toast-ikon svg {
	display: block;
	width: 17px;
	height: 17px;
}

.pb-termek-toast-szoveg strong {
	color: #5D2C56;
}

@media (max-width: 767px) {
	.pb-termek-grid {
	grid-template-columns: repeat(1, 1fr);
	gap: 15px;
	}
	.pb-termek-item-torzs {
    padding: 15px;
}
.pb-termek-item {
    border-radius: 15px;
}

	.pb-termek-item-cim {
		font-size: 20px;
	}

.pb-termek-item .pb-termek-kosar {
    font-size: 13px;
    padding: 10px;
}

	.pb-termek-toast {
		left: 16px;
		right: 16px;
		bottom: 16px;
	}
}

/* ==========================================================================
   „Hamarosan" jelvény + értesítés-gomb + modál (0929 sablon port)
   ========================================================================== */

.pb-termek-hamarosan {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 1;
	padding: 5px 11px;
	border-radius: 999px;
	background: #C79A62;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: #FFFFFF;
}

/* „Hamarosan" értesítés — nem gomb, hangsúlytalan plum szöveglink (a kártyalink fölött marad).
   Az aláhúzás border-bottom: így az ikont és a szöveget is egyetlen, megszakítás nélküli vonal köti alul. */
.pb-termek-ertesites {
	position: relative;
	z-index: 2;
	align-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	width: auto;
	padding: 0 2px 6px;
	border: 0;
	border-bottom: 1.5px solid #8D4F7D;
	background: transparent;
	color: #8D4F7D;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: -0.05em;
	text-decoration: none;
	cursor: pointer;
	transition: color 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pb-termek-ertesites.pb-termek-ertesites:hover,
.pb-termek-ertesites.pb-termek-ertesites:focus {
	background: transparent;
	color: #7A3B6D;
	border-bottom-color: #7A3B6D;
}

/* Modál */
.pb-hm-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 90;
	padding: 24px;
	background: rgba(77, 36, 76, 0.42);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.pb-hm-modal.is-open,
.pb-hm-modal:not([hidden]) {
	display: grid;
	place-items: center;
}

.pb-hm-hatter {
	position: absolute;
	inset: 0;
}

.pb-hm-dialog {
	position: relative;
	box-sizing: border-box;
	width: 520px;
	max-width: 100%;
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 36px 40px 32px;
	background: #FFFFFF;
	border: 1px solid #EED7DE;
	border-radius: 22px;
	box-shadow: 0 28px 70px rgba(77, 36, 76, 0.28);
}

.pb-hm-zar {
	position: absolute;
	top: 18px;
	right: 18px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	cursor: pointer;
	transition: background 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* A sablon button:hover/button:focus (#3f4047 + fehér) szabálya ellen. */
.pb-hm-zar:hover,
.pb-hm-zar:focus {
	background: #F3E6EE;
	color: #383135;
}

.pb-hm-zar:focus-visible {
	outline: 2px solid #8D4F7D;
	outline-offset: 2px;
}

.pb-hm-kor {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 14px;
	border-radius: 999px;
	background: #F3E6EE;
}

.pb-hm-cim {
	margin: 0;
	font-family: "Playfair Display", "Times New Roman", serif;
	font-size: 24px;
	line-height: 1.3;
	font-weight: 600;
	color: #5D2C56;
}

.pb-hm-szoveg {
	margin: 8px 0 0;
	font-family: "Nunito", sans-serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.7em;
	letter-spacing: -0.02em;
	color: #391B3B;
}

.pb-hm-urlap {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 20px;
}

.pb-hm-mezo {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pb-hm-mezo-cimke {
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #6B5A5E;
}

/* Hármas osztály-specificitás: a sablon/kit input-szabályai ne írják felül a modál mezőit. */
.pb-hm-urlap .pb-hm-mezo-input.pb-hm-mezo-input {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid #D2B4C1;
	border-radius: 8px;
	background: #FFFFFF;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.2;
	color: #383135;
	outline: none;
	box-shadow: none;
}

.pb-hm-urlap .pb-hm-mezo-input.pb-hm-mezo-input:focus {
	border-color: #8D4F7D;
	outline: 2px solid rgba(141, 79, 125, 0.35);
}

.pb-hm-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.pb-hm-gdpr {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.55;
	color: #6B5A5E;
}

.pb-hm-gdpr input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	flex: 0 0 auto;
	accent-color: #8D4F7D;
	cursor: pointer;
}

.pb-hm-gdpr a {
	color: #8D4F7D;
	font-weight: 600;
}

.pb-hm-kuld {
	height: 52px;
	border: 0;
	border-radius: 999px;
	background: #8D4F7D;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.56px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pb-hm-kuld.pb-hm-kuld:hover,
.pb-hm-kuld.pb-hm-kuld:focus {
	background: #7A3B6D;
	color: #FFFFFF;
}

@media (max-width: 767px) {
	.pb-hm-dialog {
		padding: 26px 22px 24px;
	}
}
