/* =====================================================================
   10 – TARTALMI OLDALAK: Rólunk (blokkszerkesztő), saját sablonos oldalak (lent)
   ===================================================================== */

/* Blokkok térköze a WordPress alapértékeivel. A WordPress ezeket :where() szelektorral adja, amit az iOS 14 előtti
   Safari nem ismer; itt egyszerű osztállyal állnak (a blokkszerkesztőben egyedileg beállított térköz továbbra is felülírja). */
.wp-block-columns { gap: 2em; margin-bottom: 1.75em; }
.wp-block-buttons { gap: .5em; }

/* Képes fejléccel (Borító blokk) induló oldalon a téma címsávja rejtve */
.bv-has-cover-hero .hero-section,
.bv-has-cover-hero .entry-header { display: none; }

.bv-page-hero { border-radius: 0 0 var(--bv-radius) var(--bv-radius); }
.bv-page-hero h1 { font-size: max(28px, min(3.4vw, 44px)); color: var(--bv-white); }
.bv-eyebrow-light { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bv-cream); }
.bv-page-section { padding-top: 48px; padding-bottom: 8px; }
.bv-lead { font-size: 19px; line-height: 1.6; color: var(--bv-brown); }
.bv-page-split { max-width: var(--bv-content); margin: 48px auto; overflow: hidden; border-radius: var(--bv-radius); background: var(--bv-cream-light); }
.bv-page-split .wp-block-media-text__content { padding: max(24px, min(4vw, 56px)); }
.bv-page-values { padding-top: 56px; padding-bottom: 56px; }
.bv-page-values .wp-block-column { padding: 28px 24px; border-radius: var(--bv-radius); background: var(--bv-white); }
.bv-page-values h3 { font-size: 16px; letter-spacing: .06em; }
.bv-page-stats { padding-top: 16px; padding-bottom: 24px; }
.bv-stat { text-align: center; font-size: 14px; }
.bv-stat strong { display: block; font-family: var(--bv-font-title); font-feature-settings: "ss01" 1; font-size: max(32px, min(4vw, 48px)); font-weight: 400; line-height: 1.2; color: var(--bv-brown); }
.bv-page-hu { margin-top: 32px; margin-bottom: 32px; padding-top: 40px; padding-bottom: 40px; border-radius: var(--bv-radius); background: var(--bv-cream); }
.bv-script-quote { padding-top: 40px; padding-bottom: 56px; font-family: var(--bv-font-script); font-size: max(22px, min(2.6vw, 32px)); color: var(--bv-brown); }
/* Telefon, tablet: a krém dobozban a szöveg ne érjen a széléhez; a blokkszerkesztőben nagyra állított címek
   kisebbek, hogy a hosszú szavak (pl. „Magyarországon”) kiférjenek, és ne törjenek el a szó közepén.
   !important: a blokkszerkesztő betűméret-osztályai (has-…-font-size) is !important-tal adják a méretet. */
/* Tableten (álló és fekvő) az „Amit fontosnak tartunk” oszlopai 2-esével – négy egymás mellett túl keskeny lenne */
@media (min-width: 600px) and (max-width: 1199px) {
	.bv-page-values .wp-block-columns { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bv-page-values .wp-block-column { flex-basis: auto !important; }
}
@media (max-width: 999px) {
	.bv-page-hu { padding: 36px max(20px, min(5vw, 40px)); }
	.bv-page-hu > * { max-width: 100%; }
	.entry-content h2 { font-size: max(24px, min(4.2vw, 34px)) !important; line-height: 1.25; }
}
@media (max-width: 689px) {
	.bv-page-hu { margin-left: 0; margin-right: 0; padding: 32px 20px; }
	.entry-content h1 { font-size: max(26px, min(7.4vw, 32px)) !important; line-height: 1.2; }
	.entry-content h2 { font-size: max(21px, min(5.8vw, 26px)) !important; }
	.entry-content h3 { font-size: max(17px, min(4.8vw, 20px)) !important; }
	.bv-page-hu .wp-block-buttons { gap: 12px; }
	.bv-page-hu .wp-block-button, .bv-page-hu .wp-block-button__link { width: 100%; text-align: center; }
}

/* =====================================================================
   Saját sablonos tartalmi oldalak (inc/pages.php, page-*.php):
   Kapcsolat, Szállítási információk, GYIK, Viszonteladóknak, Partnereink, 404, üres kosár
   ===================================================================== */
.bv-content { padding-bottom: 56px; }
.bv-block { margin: 0 0 48px; }
.bv-content .bv-h { margin-bottom: 18px; text-align: left; }   /* tartalmi oldalakon a szakaszcím balra igazodik */
/* Szerkesztőben írt oldalszöveg (bv_content_extra): címsor, pipás lista, két oszlop */
.bv-prose { margin: 0 0 48px; line-height: 1.7; }
.bv-prose > p { max-width: 820px; }
.bv-content .bv-prose h2 {
	margin: 0 0 18px; font-family: var(--bv-font-body); font-feature-settings: normal;
	font-size: max(18px, min(1.6vw, 22px)); font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: var(--bv-text);
}
.bv-content .bv-prose .wp-block-columns { gap: 24px 48px; margin: 0 0 40px; }
.bv-content .bv-prose ul { display: grid; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.bv-content .bv-prose li { position: relative; padding-left: 30px; line-height: 1.55; }
.bv-content .bv-prose li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--bv-cream-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238D3F2B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.bv-content .bv-prose a { color: var(--bv-text); text-decoration: underline; text-underline-offset: 3px; }

/* Kártya (közös) */
.bv-card { padding: max(20px, min(2.4vw, 32px)); background: var(--bv-white); border: 1px solid var(--bv-line); border-radius: var(--bv-radius); }
.bv-card h3 { margin: 0 0 6px; font-family: var(--bv-font-body); font-feature-settings: normal; font-size: 17px; font-weight: 700; color: var(--bv-text); }
.bv-card p { margin: 0; font-size: 14px; line-height: 1.55; }
.bv-card__title { margin: 0 0 6px; font-family: var(--bv-font-body); font-feature-settings: normal; font-size: 20px; font-weight: 700; color: var(--bv-text); }
.bv-card__lead { margin: 0 0 18px !important; color: var(--bv-muted); }
.bv-tiles-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bv-tiles-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }

/* Segítség-sáv az oldalak alján */
.bv-help {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
	margin-top: 48px; padding: max(22px, min(3vw, 36px)); border-radius: var(--bv-radius); background: var(--bv-cream);
}
.bv-help h2 { margin: 0 0 4px; font-family: var(--bv-font-body); font-feature-settings: normal; font-size: 20px; font-weight: 700; color: var(--bv-text); }
.bv-help p { margin: 0; font-size: 15px; }
.bv-help__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Kapcsolat ---------- */
.bv-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; margin-bottom: 48px; }
.bv-contact__info { display: grid; gap: 12px; }
.bv-info-card {
	display: flex; align-items: flex-start; gap: 16px; padding: 20px;
	background: var(--bv-white); border: 1px solid var(--bv-line); border-radius: var(--bv-radius);
	color: var(--bv-text); text-decoration: none;
}
a.bv-info-card:hover { border-color: var(--bv-text); color: var(--bv-text); }
.bv-info-card__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bv-cream-light); color: var(--bv-brown); }
.bv-info-card > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 16px; font-weight: 600; }
.bv-info-card strong { font-size: 13px; font-weight: 500; color: var(--bv-muted); }
.bv-info-card small { font-size: 13px; font-weight: 400; color: var(--bv-muted); }
.bv-contact__note { margin: 6px 0 0; font-size: 14px; }

/* ---------- Űrlapok (inc/forms.php) ---------- */
.bv-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.bv-form__row { display: grid; gap: 6px; margin: 0; }
.bv-form__row.is-wide { grid-column: 1 / -1; }
.bv-form label { font-size: 13px; font-weight: 600; color: var(--bv-text); }
.bv-form .required { color: var(--bv-rust); }
.bv-form input[type="text"], .bv-form input[type="email"], .bv-form input[type="tel"], .bv-form input[type="number"], .bv-form select, .bv-form textarea {
	width: 100%; padding: 12px 16px; border: 1px solid var(--bv-cream); border-radius: 10px; background: var(--bv-white);
	font-family: var(--bv-font-body); font-size: 15px; color: var(--bv-text);
}
.bv-form input, .bv-form select { height: 48px; }
.bv-form textarea { min-height: 140px; resize: vertical; }
.bv-form input:focus, .bv-form select:focus, .bv-form textarea:focus { outline: none; border-color: var(--bv-brown); box-shadow: 0 0 0 3px rgba(141,63,43,.12); }
.bv-form__row.has-error input, .bv-form__row.has-error select, .bv-form__row.has-error textarea { border-color: var(--bv-rust); }
.bv-form__err { font-size: 12px; color: var(--bv-rust); }
.bv-form__consent label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.5; cursor: pointer; }
.bv-form__consent input { flex: none; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--bv-brown); }
.bv-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bv-form__submit { grid-column: 1 / -1; justify-self: start; min-width: 220px; min-height: 50px; }
.bv-form-error { margin-top: 12px; padding: 12px 16px; border-radius: 10px; background: #FBEDE8; color: var(--bv-rust); font-size: 14px; }
.bv-form-done { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 18px 20px; border-radius: 12px; background: var(--bv-cream-light); }
.bv-form-done__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bv-brown); color: var(--bv-white); }
.bv-form-done p { margin: 0; font-size: 15px; font-weight: 500; }
.bv-form-card { max-width: 860px; margin: 0 auto; }
.bv-form__statement { margin: 4px 0 0; padding: 14px 16px; border-left: 3px solid var(--bv-brown); border-radius: 0 10px 10px 0; background: var(--bv-cream-light); font-size: 15px; font-weight: 500; line-height: 1.55; }
.bv-form__note { display: block; margin: 0; font-size: 13px; color: var(--bv-muted); }   /* egy sor, nem rács */
.bv-content__note { max-width: 860px; margin: 24px auto 0; font-size: 14px; line-height: 1.6; text-align: center; }

/* ---------- Szállítási információk ---------- */
.bv-free-band { display: flex; align-items: center; gap: 14px; margin: 0 0 40px; padding: 18px 22px; border-radius: var(--bv-radius); background: var(--bv-brown); color: var(--bv-white); }
.bv-free-band .bv-icon { color: var(--bv-white); }
.bv-free-band p { margin: 0; font-size: 16px; }
.bv-ship-card { display: flex; flex-direction: column; gap: 6px; }
.bv-ship-card__icon, .bv-perk__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; background: var(--bv-cream-light); }
.bv-ship-card__price { font-size: 20px !important; font-weight: 700; color: var(--bv-brown); }

/* ---------- GYIK ---------- */
.bv-faq { display: grid; gap: 36px; max-width: 900px; }
.bv-faq__group { scroll-margin-top: 24px; }
.bv-faq__item { border-bottom: 1px solid var(--bv-line); }
.bv-faq__item:first-of-type { border-top: 1px solid var(--bv-line); }
.bv-faq__item summary {
	position: relative; padding: 18px 44px 18px 0; list-style: none; cursor: pointer;
	font-size: 16px; font-weight: 600; color: var(--bv-text);
}
.bv-faq__item summary::-webkit-details-marker { display: none; }
.bv-faq__item summary::after {
	content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
	border-right: 1.6px solid var(--bv-text); border-bottom: 1.6px solid var(--bv-text); transform: rotate(45deg); transition: transform .2s;
}
.bv-faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.bv-faq__item summary:hover { color: var(--bv-brown); }
.bv-faq__answer { padding: 0 44px 20px 0; }
.bv-faq__answer p { margin: 0 0 10px; line-height: 1.7; }
.bv-faq__answer ul { display: grid; gap: 6px; margin: 0 0 12px; padding-left: 20px; line-height: 1.6; }

/* ---------- Viszonteladóknak ---------- */
.bv-perk { display: flex; flex-direction: column; gap: 4px; }
.bv-steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.bv-steps-row li { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--bv-radius); background: var(--bv-cream-light); font-size: 14px; line-height: 1.55; }
.bv-steps-row strong { font-size: 16px; color: var(--bv-text); }
.bv-steps-row__num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: 50%; background: var(--bv-brown); color: var(--bv-white); font-weight: 700; }

/* ---------- Partnereink: térkép + lista (page-partnereink.php, js/partners.js) ---------- */
.bv-pmap-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; margin-bottom: 8px; }
.bv-pmap-layout.is-empty { grid-template-columns: 1fr; }
.bv-pmap { position: relative; overflow: hidden; border: 1px solid var(--bv-line); border-radius: var(--bv-radius); background: var(--bv-cream-light); }
.bv-pmap__map { height: 560px; z-index: 0; }
.bv-pmap-layout.is-empty .bv-pmap__map { height: 460px; }
.bv-pmap .leaflet-tile-pane { filter: saturate(.55) sepia(.12); }   /* a térkép a márka meleg tónusához igazodik */
.bv-pmap__empty {
	position: absolute; left: 50%; top: 50%; z-index: 500; transform: translate(-50%, -50%);
	display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(440px, calc(100% - 32px));
	padding: 28px 24px; text-align: center; background: var(--bv-white); border-radius: var(--bv-radius);
	box-shadow: 0 18px 40px -18px rgba(61,43,36,.4);
}
.bv-pmap__empty p { margin: 0; font-size: 14px; }
.bv-pmap__empty .button { margin-top: 10px; }

/* jelölő: márkaszínű csepp */
.bv-pin span {
	display: block; width: 30px; height: 30px; margin: 0 auto; border: 3px solid var(--bv-white); border-radius: 50% 50% 50% 0;
	background: var(--bv-brown); transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(61,43,36,.35);
}
.bv-pin-popup .leaflet-popup-content-wrapper { border-radius: 12px; }
.bv-pin-popup .leaflet-popup-content { display: flex; flex-direction: column; gap: 3px; margin: 14px 16px; font-family: var(--bv-font-body); font-size: 13px; line-height: 1.45; color: var(--bv-text); }
.bv-pin-popup a { color: var(--bv-brown); }
.bv-pin__name { font-size: 15px; }
.bv-pin__type { font-size: 12px; font-weight: 600; color: var(--bv-brown); }
.bv-pin__links { margin-top: 4px; font-weight: 600; }

/* lista */
.bv-plist { display: flex; flex-direction: column; gap: 10px; min-height: 0; max-height: 560px; }
.bv-partners-search { position: relative; display: flex; align-items: center; color: var(--bv-brown); }
.bv-partners-search svg { position: absolute; left: 16px; }
.bv-partners-search input { width: 100%; height: 46px; padding: 0 18px 0 42px; border: 1px solid var(--bv-cream); border-radius: var(--bv-pill); background: var(--bv-white); font-family: var(--bv-font-body); font-size: 15px; color: var(--bv-text); }
.bv-partners-search input:focus { outline: none; border-color: var(--bv-brown); }
.bv-partners-count { margin: 0; font-size: 13px; color: var(--bv-muted); }
.bv-plist__scroll { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 18px; padding-right: 4px; }
.bv-plist__city { display: grid; gap: 8px; }
.bv-plist__title { margin: 0; font-family: var(--bv-font-body); font-feature-settings: normal; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bv-muted); }
.bv-partner {
	display: flex; flex-direction: column; gap: 3px; padding: 14px 16px;
	background: var(--bv-white); border: 1px solid var(--bv-line); border-radius: 12px; font-size: 14px;
}
.bv-partner[data-id][tabindex] { cursor: pointer; }
.bv-partner[data-id][tabindex]:hover, .bv-partner.is-active { border-color: var(--bv-brown); }
.bv-partner h3 { margin: 0; font-family: var(--bv-font-body); font-feature-settings: normal; font-size: 15px; font-weight: 700; color: var(--bv-text); }
.bv-partner p { margin: 0; line-height: 1.45; }
.bv-partner__type { align-self: flex-start; margin-bottom: 2px; padding: 2px 9px; border-radius: var(--bv-pill); background: var(--bv-cream-light); font-size: 11px; font-weight: 600; color: var(--bv-brown); }
.bv-partner a { color: var(--bv-text); }
.bv-plist__none { margin: 0; color: var(--bv-muted); }

/* ---------- Jogi oldalak (legal.php) – a Fogyasztóbarát beágyazott szövege olvasható sávban ---------- */
.bv-legal__doc { max-width: 880px; font-size: 15px; }
.bv-legal__doc h2, .bv-legal__doc h3 { margin: 32px 0 10px; font-family: var(--bv-font-body); font-feature-settings: normal; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--bv-text); }
.bv-legal__doc h2 { font-size: 20px; }
.bv-legal__doc h3 { font-size: 17px; }
.bv-legal__doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bv-legal__doc th, .bv-legal__doc td { padding: 8px 10px; border: 1px solid var(--bv-line); text-align: left; vertical-align: top; }
.bv-legal__doc iframe { width: 100%; min-height: 70vh; border: 0; }

/* ---------- 404 ---------- */
.bv-404 { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 640px; margin: 24px auto 56px; text-align: center; }
.bv-404__code { margin: 0; font-family: var(--bv-font-title); font-feature-settings: "ss01" 1; font-size: max(72px, min(12vw, 140px)); font-weight: 300; line-height: 1; color: var(--bv-cream); }
.bv-404__title { margin: 0; font-family: var(--bv-font-body); font-feature-settings: normal; font-size: max(24px, min(2.6vw, 32px)); font-weight: 700; color: var(--bv-text); }
.bv-404__text { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.bv-404 .bv-search, .bv-empty .bv-search { width: min(420px, 100%); margin: 8px 0; }
.bv-404__actions, .bv-cart-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

/* ---------- Üres kosár (woocommerce/cart/cart-empty.php) ---------- */
.bv-cart-empty::before { display: none; }   /* a téma "cart-empty" ikonja helyett a saját ikonunk */
.bv-cart-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 8px auto 56px; padding: max(32px, min(5vw, 56px)) 24px; text-align: center; background: var(--bv-white); border-radius: var(--bv-radius); }
.bv-cart-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 92px; height: 92px; margin-bottom: 8px; border-radius: 50%; background: var(--bv-cream-light); color: var(--bv-brown); }
.bv-cart-empty__title { margin: 0; font-family: var(--bv-font-body); font-feature-settings: normal; font-size: 24px; font-weight: 700; color: var(--bv-text); }
.bv-cart-empty p { margin: 0; max-width: 520px; }

/* ---------- Kívánságlista (wishlist.php) ---------- */
.bv-wishlist { margin-bottom: 48px; }
.bv-wishlist__loading { padding: 40px 0; text-align: center; color: var(--bv-muted); }

/* Ajánlott termékek (üres keresés, 404, üres kosár, kívánságlista) */
.bv-suggest { margin: 8px 0 24px; }
.bv-suggest .bv-h { margin-bottom: 18px; }

/* ---------- Reszponzív ---------- */
@media (max-width: 999px) {
	.bv-tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bv-contact { grid-template-columns: 1fr; }
	.bv-pmap-layout { grid-template-columns: 1fr; }
	.bv-pmap__map, .bv-pmap-layout.is-empty .bv-pmap__map { height: 380px; }
	.bv-plist { max-height: none; }
	.bv-plist__scroll { overflow: visible; }
}
@media (max-width: 760px) {
	.bv-tiles-3, .bv-steps-row { grid-template-columns: 1fr; }
	.bv-form { grid-template-columns: 1fr; }
	.bv-form__submit { width: 100%; }
	.bv-help__actions, .bv-help__actions .button { width: 100%; }
	.bv-free-band p { font-size: 14px; }
}
@media (max-width: 480px) {
	.bv-tiles-4 { grid-template-columns: 1fr; }
}

/* Hírlevél-megerősítés visszajelző oldala (newsletter-confirm.php, a köszönőkártya stílusával) */
.bv-nl-done { max-width: 720px; margin-left: auto; margin-right: auto; }
.bv-nl-done .bv-thanks__actions { margin-top: 18px; }
