/* Weboldal.shop – a WordPress-blokkokhoz igazított szabályok. */
:root { --ikon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); --ikon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }

/* Sávok egymás alatt, hézag nélkül */
.wp-site-blocks > * { margin-block: 0; }
.wp-block-post-content > .ws-section, .wp-block-post-content > .ws-hero, .ws-fooldal > .wp-block-post-content { margin-block: 0; }
.ws-section, .ws-hero, .ws-oldal { padding-inline: var(--gutter); }
.ws-section.ws-szukebb > * { max-width: 820px; }
.ws-oldal { padding-block: var(--space-8); }

/* Szekciófej */
.wp-block-group.ws-szekciofej { margin-bottom: var(--space-6); }
.wp-block-group.ws-szekciofej > * { margin: 0; }
.wp-block-group.ws-szekciofej > * + * { margin-top: var(--space-2); }
.ws-szekciofej__szoveg { color: var(--muted); }

/* Gombok (a szerkesztőben beszúrt alap gombok is így néznek ki) */
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-5); border: var(--bw) solid transparent; border-radius: var(--r-btn); background: var(--primary); color: var(--onprimary); font-weight: 600; font-size: var(--fs-body); line-height: 1.2; text-decoration: none; }
.wp-block-button .wp-block-button__link:hover { background: var(--ink); color: var(--bg); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--ink); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--alt); }
.wp-block-button.ws-gomb-kiemelt .wp-block-button__link { background: var(--accent); color: var(--onaccent); }
.ws-gombsor { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* Nyitókép */
.ws-hero-cols { align-items: center; gap: var(--space-7); }
.ws-hero-cols > .wp-block-column:first-child { flex-basis: 55%; }
.ws-hero .ws-hero__actions { margin-block: var(--space-2); }
.wp-block-group.ws-trust { gap: var(--space-2) var(--space-5); font-size: var(--fs-small); color: var(--muted); }
.wp-block-group.ws-trust > p { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; }
.wp-block-group.ws-trust > p::before { content: ""; width: 18px; height: 18px; flex: none; background: var(--success); -webkit-mask: var(--ikon-check) center / contain no-repeat; mask: var(--ikon-check) center / contain no-repeat; }
.ws-hero--cover .wp-block-group.ws-trust { color: var(--bg); }
.ws-hero--cover .wp-block-group.ws-trust > p::before { background: var(--bg); }

/* Fotóhely */
.wp-block-group.ws-ph > * { margin: 0; }
.ws-ph > p { padding: var(--space-1) var(--space-3); background: var(--surface); color: var(--muted); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; font-weight: var(--w-label); border-radius: var(--r-btn); }

/* Kártyák, csempék, képrács */
.wp-block-group.ws-cards, .wp-block-group.ws-tiles, .wp-block-group.ws-gal { gap: var(--space-4); }
.wp-block-group.ws-cards > *, .wp-block-group.ws-tiles > *, .wp-block-group.ws-gal > * { margin: 0; }
.wp-block-group.ws-card > *, .wp-block-group.ws-tile > * { margin: 0; }
[class*="ws-i-"].ws-card::before, [class*="ws-i-"].ws-tile::before { content: ""; display: block; width: 32px; height: 32px; background: var(--primary); -webkit-mask: var(--ikon) center / contain no-repeat; mask: var(--ikon) center / contain no-repeat; }
.ws-card > .ws-card__price { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.ws-tile { position: relative; }
.ws-tile a::after { content: ""; position: absolute; inset: 0; }
.ws-tile--urgent::before { background: var(--onaccent) !important; }
:is(.ws, .editor-styles-wrapper) .ws-tile--urgent a, :is(.ws, .editor-styles-wrapper) .ws-tile--urgent h3 { color: var(--onaccent); }
.ws-gal .ws-ph { aspect-ratio: 4 / 3; }

/* Árlista (táblázat blokk) */
.wp-block-table.ws-price { margin: 0; }
.wp-block-table.ws-price table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wp-block-table.ws-price thead { border-bottom: var(--bw) solid var(--ink); }
.wp-block-table.ws-price th, .wp-block-table.ws-price td { border: 0; border-bottom: 1px solid var(--line); padding: var(--space-3) 0; text-align: left; vertical-align: baseline; }
.wp-block-table.ws-price thead th { font-size: var(--fs-label); font-weight: var(--w-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--muted); }
.wp-block-table.ws-price td:nth-child(2), .wp-block-table.ws-price th:nth-child(2) { color: var(--muted); padding-inline: var(--space-4); white-space: nowrap; }
.wp-block-table.ws-price td:last-child, .wp-block-table.ws-price th:last-child { text-align: right; white-space: nowrap; padding-left: var(--space-3); }
@media (max-width: 600px) { .wp-block-table.ws-price td:last-child { white-space: normal; } .wp-block-table.ws-price td:nth-child(2), .wp-block-table.ws-price th:nth-child(2) { padding-inline: var(--space-2); font-size: var(--fs-small); } }

/* GYIK (részletek blokk) */
.ws-faq .wp-block-details { border-bottom: 1px solid var(--line); margin: 0; }
.ws-faq .wp-block-details > summary::after { content: ""; width: 24px; height: 24px; flex: none; background: var(--primary); -webkit-mask: var(--ikon-plus) center / contain no-repeat; mask: var(--ikon-plus) center / contain no-repeat; transition: transform .2s ease; }
.ws-faq .wp-block-details[open] > summary::after { transform: rotate(45deg); }
.ws-faq .wp-block-details > :not(summary) { margin: 0; padding-bottom: var(--space-5); color: var(--muted); }
.wp-block-group.ws-faq > * { margin: 0; }

/* Előtte–utána: valódi képek a rétegekben */
.ws-ba__layer img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Fejléc: mobil menü */
.ws-header .custom-logo-link img { max-height: 48px; width: auto; }
.ws-mobilmenu { display: none; position: relative; margin-left: auto; }
.ws-mobilmenu > summary { list-style: none; cursor: pointer; }
.ws-mobilmenu > summary::-webkit-details-marker { display: none; }
.ws-mobilmenu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 220px; display: grid; padding: var(--space-2); background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-card); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
:is(.ws, .editor-styles-wrapper) .ws-mobilmenu nav a { padding: var(--space-3); color: var(--ink); text-decoration: none; font-weight: 600; }
@media (max-width: 760px) { .ws-mobilmenu { display: block; } body.ws { padding-bottom: 76px; } }

/* Lebegő gombok (2. csomagtól) */
.ws-fabok { position: fixed; z-index: 30; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
@media (max-width: 760px) { .ws-fabok { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
.ws-fab { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-4); border-radius: 999px; border: var(--bw) solid var(--line); background: var(--surface); font-weight: 600; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
:is(.ws, .editor-styles-wrapper) .ws-fab { color: var(--ink); text-decoration: none; }
.ws-fab .ws-icon { width: 20px; height: 20px; }

/* Kapcsolat, térkép, nyitvatartás */
.ws-kapcsolat { gap: var(--space-7); }
.ws-map { position: relative; min-height: 260px; border-radius: var(--r-card); border: var(--bw) solid var(--line); background-color: var(--alt); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; display: grid; place-items: center; }
.ws-map > .ws-icon { width: 40px; height: 40px; color: var(--primary); }
.ws-map__btn { position: absolute; left: var(--space-3); bottom: var(--space-3); }
.ws-hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ws-hours th, .ws-hours td { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.ws-hours td { text-align: right; }

/* Űrlap */
.ws-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ws-notice { margin-bottom: var(--space-4); }
.ws-notice--hiba { border-color: var(--danger); }
.ws-notice--hiba .ws-icon { color: var(--danger); }

/* Felső sáv: a link a sáv színét veszi át */
:is(.ws, .editor-styles-wrapper) .ws-topbar a { color: inherit; }
@media (max-width: 600px) { .ws-topbar span:not(:first-child) { display: none; } }

/* Előtte–utána ne legyen túl magas széles képernyőn */
.ws-ba { max-width: 900px; }

/* A blokkszerkesztő által adott hézagok a nyitóképben */
.ws-hero .ws-display { margin-top: var(--space-2); }
.ws-hero .ws-lead { margin-top: var(--space-3); }

/* Balra igazítás a középre tett tartalomoszlopon belül (WordPress „constrained” elrendezés) */
.ws-hero.is-layout-constrained > p,
.ws-section.is-layout-constrained > p,
.ws-section.ws-szukebb.is-layout-constrained > * { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 1160px)) / 2)) !important; margin-right: auto !important; }

/* Rejtett mezők az űrlapban */
.ws-field[hidden] { display: none; }

/* ---------- Bolt ---------- */
.ws-bolt-hero .ws-kollazs { position: relative; aspect-ratio: 4 / 3.4; max-width: 100%; }
.ws-kollazs img { position: absolute; width: 74%; height: auto; border-radius: var(--r-card); border: var(--bw) solid var(--line); box-shadow: 0 18px 40px rgba(10, 14, 20, .18); }
.ws-kollazs img:nth-child(1) { left: 0; top: 0; }
.ws-kollazs img:nth-child(2) { right: 0; top: 18%; z-index: 2; }
.ws-kollazs img:nth-child(3) { left: 10%; bottom: 0; z-index: 3; }

/* Katalógus */
.ws-szurok { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.ws-chip { min-height: 44px; padding: 0 var(--space-4); border: 1.5px solid var(--muted); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.ws-chip:hover { border-color: var(--ink); }
.ws-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ws-sablonok { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: var(--space-5); }
.ws-sablon { display: flex; flex-direction: column; background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-card); overflow: hidden; min-width: 0; }
.ws-sablon[hidden] { display: none; }
.ws-sablon__kep { display: block; aspect-ratio: 4 / 3; background: var(--alt); border-bottom: var(--bw) solid var(--line); }
.ws-sablon__kep img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.ws-sablon__kep:hover img { transform: scale(1.03); }
.ws-sablon__test { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) var(--space-5) var(--space-5); flex: 1; }
.ws-sablon__test h3 { font-size: var(--fs-h3); }
.ws-sablon__test p { margin: 0; }
.ws-sablon__ar { font-weight: 700; font-variant-numeric: tabular-nums; }
.ws-sablon__ar span { font-weight: 400; color: var(--muted); font-size: var(--fs-small); }
.ws-sablon .ws-gombsor { margin-top: auto; padding-top: var(--space-2); }
.ws-sablon .ws-btn { min-height: 44px; padding-inline: var(--space-4); }

/* Csomagok */
.ws-csomagok { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: var(--space-5); align-items: stretch; }
.ws-csomag { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6) var(--space-5); background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-card); }
.ws-csomag--ajanlott { border: 2px solid var(--primary); }
.ws-csomag .ws-badge { position: absolute; top: calc(-1 * var(--space-3)); left: var(--space-5); }
.ws-csomag h3, .ws-csomag p { margin: 0; }
.ws-csomag__ar strong { display: block; font-family: var(--f-display); font-weight: var(--w-display); font-size: calc(var(--fs-h2) * var(--display-scale)); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ws-csomag__ar span { color: var(--muted); font-size: var(--fs-small); }
.ws-csomag__havi { font-weight: 600; font-variant-numeric: tabular-nums; padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.ws-csomag ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.ws-csomag li { display: flex; gap: var(--space-2); }
.ws-csomag li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; flex: none; background: var(--success); -webkit-mask: var(--ikon-check) center / contain no-repeat; mask: var(--ikon-check) center / contain no-repeat; }
.ws-csomag .ws-btn { margin-top: auto; }
.ws-csomagok__megj { margin-top: var(--space-4); }

/* Így működik */
.ws-lepesek { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: var(--space-5); }
.ws-lepesek li { display: flex; gap: var(--space-4); align-items: flex-start; }
.ws-lepesek__szam { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--onprimary); font-family: var(--f-display); font-weight: var(--w-display); font-size: var(--fs-lead); }
.ws-lepesek h3 { font-size: var(--fs-lead); margin-bottom: var(--space-1); }
.ws-lepesek p { color: var(--muted); }

/* Élő demó sáv (saját, palettától független színekkel) */
.ws-mintasav { --ms-bg: #14171c; --ms-fg: #f2f4f7; --ms-mut: #b7bdc8; --ms-acc: #ffd166; --ms-onacc: #14171c; background: var(--ms-bg); color: var(--ms-fg); font: 500 14px/1.4 system-ui, "Segoe UI", sans-serif; position: relative; z-index: 35; }
.ws-mintasav__in { max-width: var(--content-max); margin-inline: auto; padding: 8px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.ws-mintasav__cim span { color: var(--ms-mut); }
.ws-mintasav__urlap { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.ws-mintasav label { display: inline-flex; align-items: center; gap: 6px; color: var(--ms-mut); }
.ws-mintasav select { min-height: 34px; border-radius: 6px; border: 1px solid #3a404b; background: #1f242c; color: var(--ms-fg); font: inherit; padding: 0 6px; }
.ws-mintasav__gombok { margin-left: auto; display: flex; gap: 12px; align-items: center; }
:is(.ws, .editor-styles-wrapper) .ws-mintasav a { color: var(--ms-fg); }
:is(.ws, .editor-styles-wrapper) .ws-mintasav a.ws-mintasav__fo { background: var(--ms-acc); color: var(--ms-onacc); text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 6px; }
.ws-mintasav :focus-visible { outline: 3px solid var(--ms-acc); outline-offset: 2px; }

/* Kosár a fejlécben */
.ws-header__cta { display: inline-flex; gap: var(--space-2); }
.ws-kosar__db { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: var(--onprimary); font-size: var(--fs-label); }

/* WooCommerce oldalak */
body:is(.woocommerce, .woocommerce-page) .wp-site-blocks main { padding: var(--space-7) var(--gutter); }
.ws-demogomb { margin: var(--space-3) 0 var(--space-4); }
.wp-element-button, .wc-block-components-button:not(.is-link), .single_add_to_cart_button { background: var(--primary) !important; color: var(--onprimary) !important; border-radius: var(--r-btn) !important; border: 0; font-weight: 600; min-height: 48px; }
.wp-element-button:hover, .wc-block-components-button:not(.is-link):hover, .single_add_to_cart_button:hover { background: var(--ink) !important; color: var(--bg) !important; }
.woocommerce-product-details__short-description .ws-btn { margin-top: var(--space-2); }
.ws-termekmezok { display: grid; gap: var(--space-3); margin: var(--space-4) 0; }
.ws-termekmezo { display: grid; gap: var(--space-1); margin: 0; }
.ws-termekmezo label { font-weight: 600; font-size: var(--fs-small); }
.ws-termekmezo select, .ws-termekmezo input, .ws-termekmezo textarea { min-height: 44px; padding: var(--space-2) var(--space-3); border: 1.5px solid var(--muted); border-radius: var(--r-field); background: var(--surface); color: var(--ink); font: inherit; max-width: 100%; }
.woocommerce-variation-description { color: var(--muted); }
.ws-tervezet { padding: var(--space-3) var(--space-4); border: 2px dashed var(--warning); border-radius: var(--r-card); color: var(--ink); }
