/* Weboldal.shop – komponensek (a dizájnrendszer bundle.css-éből). */
/* Weboldal.shop – közös komponensstílusok. Minden érték a tokens.json-ból jön (var(--…)). */

/* Alap */
.ws, .editor-styles-wrapper { font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
:is(.ws, .editor-styles-wrapper) *, :is(.ws, .editor-styles-wrapper) *::before, :is(.ws, .editor-styles-wrapper) *::after { box-sizing: border-box; }
:is(.ws, .editor-styles-wrapper) h1, :is(.ws, .editor-styles-wrapper) h2, :is(.ws, .editor-styles-wrapper) h3, :is(.ws, .editor-styles-wrapper) .ws-display { margin: 0; font-family: var(--f-display); font-weight: var(--w-display); text-transform: var(--tt-display); letter-spacing: var(--ls-display); color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
:is(.ws, .editor-styles-wrapper) .ws-display { font-size: calc(var(--fs-display) * var(--display-scale)); line-height: 1.0; }
:is(.ws, .editor-styles-wrapper) h1 { font-size: calc(var(--fs-h1) * var(--display-scale)); line-height: 1.1; }
:is(.ws, .editor-styles-wrapper) h2 { font-size: calc(var(--fs-h2) * var(--display-scale)); line-height: 1.15; }
:is(.ws, .editor-styles-wrapper) h3 { font-size: calc(var(--fs-h3) * var(--display-scale)); line-height: 1.25; }
:is(.ws, .editor-styles-wrapper) p { margin: 0; max-width: var(--text-max); }
:is(.ws, .editor-styles-wrapper) .ws-lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); }
:is(.ws, .editor-styles-wrapper) .ws-label { display: block; font-size: var(--fs-label); line-height: 1.3; font-weight: var(--w-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--muted); }
:is(.ws, .editor-styles-wrapper) .ws-small { font-size: var(--fs-small); color: var(--muted); }
:is(.ws, .editor-styles-wrapper) a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:is(.ws, .editor-styles-wrapper) a:hover { text-decoration-thickness: 2px; }
:is(.ws, .editor-styles-wrapper) :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
:is(.ws, .editor-styles-wrapper) .ws-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-wrap { max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.ws-section { padding-block: var(--space-8); }
.ws-section--alt { background: var(--alt); }
@media (min-width: 900px) { .ws-section { padding-block: var(--space-9); } }
.ws-icon { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Gomb */
.ws-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-5); border: var(--bw) solid transparent; border-radius: var(--r-btn); font: inherit; font-size: var(--fs-body); font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
:is(.ws, .editor-styles-wrapper) .ws-btn { text-decoration: none; }
:is(.ws, .editor-styles-wrapper) .ws-btn--primary { background: var(--primary); color: var(--onprimary); }
:is(.ws, .editor-styles-wrapper) .ws-btn--primary:hover { background: var(--ink); color: var(--bg); }
:is(.ws, .editor-styles-wrapper) .ws-btn--accent { background: var(--accent); color: var(--onaccent); }
:is(.ws, .editor-styles-wrapper) .ws-btn--accent:hover { background: var(--ink); color: var(--bg); }
:is(.ws, .editor-styles-wrapper) .ws-btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
:is(.ws, .editor-styles-wrapper) .ws-btn--secondary:hover { background: var(--alt); }
:is(.ws, .editor-styles-wrapper) .ws-btn--quiet { background: transparent; color: var(--link); padding-inline: var(--space-2); text-decoration: underline; text-underline-offset: 0.2em; }
:is(.ws, .editor-styles-wrapper) .ws-btn--quiet:hover { text-decoration-thickness: 2px; }
:is(.ws, .editor-styles-wrapper) .ws-btn:disabled, :is(.ws, .editor-styles-wrapper) .ws-btn[aria-disabled="true"] { background: var(--alt); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.ws-btn--block { width: 100%; }
.ws-btn .ws-icon { width: 20px; height: 20px; }

/* Fejléc */
.ws-topbar { background: var(--ink); color: var(--bg); font-size: var(--fs-small); }
.ws-topbar .ws-wrap { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); padding-block: var(--space-2); }
.ws-topbar span { display: inline-flex; align-items: center; gap: var(--space-2); }
.ws-topbar .ws-icon { width: 16px; height: 16px; }
.ws-header { background: var(--surface); border-bottom: var(--bw) solid var(--line); }
.ws-header .ws-wrap { display: flex; align-items: center; gap: var(--space-5); padding-block: var(--space-4); }
.ws-logo { display: inline-flex; align-items: center; gap: var(--space-3); font-family: var(--f-display); font-weight: var(--w-display); text-transform: var(--tt-display); letter-spacing: var(--ls-display); font-size: calc(1.5rem * var(--display-scale)); line-height: 1; color: var(--ink); text-decoration: none; }
:is(.ws, .editor-styles-wrapper) .ws-logo { color: var(--ink); text-decoration: none; }
.ws-logo__mark { width: 32px; height: 32px; border-radius: var(--r-card); background: var(--primary); flex: none; }
.ws-nav { display: flex; gap: var(--space-5); margin-left: auto; }
:is(.ws, .editor-styles-wrapper) .ws-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding-block: var(--space-2); border-bottom: 2px solid transparent; }
:is(.ws, .editor-styles-wrapper) .ws-nav a:hover, :is(.ws, .editor-styles-wrapper) .ws-nav a[aria-current="page"] { border-bottom-color: var(--primary); }
.ws-menu { display: none; margin-left: auto; }
@media (max-width: 760px) { .ws-nav, .ws-header .ws-header__cta { display: none; } .ws-menu { display: inline-flex; } }

/* Nyitókép */
.ws-hero { padding-block: var(--space-8); }
.ws-hero__text { display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; min-width: 0; }
.ws-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.ws-trust { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); color: var(--muted); }
.ws-trust li { display: inline-flex; align-items: center; gap: var(--space-2); }
.ws-trust .ws-icon { width: 18px; height: 18px; color: var(--success); }
.ws-hero--split .ws-display { font-size: calc(var(--fs-h1) * var(--display-scale) * 1.1); }
.ws-hero--split .ws-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-7); align-items: center; }
.ws-hero--cover { background: var(--ink); color: var(--bg); padding-block: var(--space-9); }
.ws-hero--cover .ws-display, .ws-hero--cover h1 { color: var(--bg); }
.ws-hero--cover .ws-lead, .ws-hero--cover .ws-label, .ws-hero--cover .ws-trust { color: var(--bg); }
.ws-hero--cover .ws-trust .ws-icon { color: var(--bg); }
:is(.ws, .editor-styles-wrapper) .ws-hero--cover .ws-btn--secondary { color: var(--bg); border-color: var(--bg); }
:is(.ws, .editor-styles-wrapper) .ws-hero--cover .ws-btn--secondary:hover { background: var(--bg); color: var(--ink); }
.ws-hero--tiles .ws-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.ws-tile { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-card); color: var(--ink); text-decoration: none; }
:is(.ws, .editor-styles-wrapper) .ws-tile { color: var(--ink); text-decoration: none; }
.ws-tile .ws-icon { color: var(--primary); width: 28px; height: 28px; }
.ws-tile strong { font-family: var(--f-display); font-weight: var(--w-display); text-transform: var(--tt-display); font-size: calc(var(--fs-h3) * var(--display-scale)); line-height: 1.2; }
.ws-tile:hover { border-color: var(--ink); }
.ws-tile--urgent { background: var(--accent); color: var(--onaccent); border-color: var(--accent); }
:is(.ws, .editor-styles-wrapper) .ws-tile--urgent, .ws-tile--urgent .ws-icon, .ws-tile--urgent .ws-small { color: var(--onaccent); }
@media (max-width: 760px) { .ws-hero--split .ws-wrap { grid-template-columns: 1fr; } .ws-hero--tiles .ws-tiles { grid-template-columns: 1fr; } }

/* Fotóhely */
.ws-ph { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--r-card); border: var(--bw) solid var(--line); background-color: var(--alt); background-image: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 14px); overflow: hidden; }
.ws-ph span { 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); }

/* Szolgáltatáskártya */
.ws-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); }
.ws-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-card); min-width: 0; }
.ws-card .ws-icon { color: var(--primary); width: 32px; height: 32px; }
.ws-card h3 { hyphens: auto; }
.ws-card p { color: var(--muted); }
.ws-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.ws-card__price { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ws-card--featured { border-color: var(--primary); }
.ws-badge { display: inline-block; align-self: flex-start; padding: 2px var(--space-2); background: var(--accent); color: var(--onaccent); font-size: var(--fs-label); font-weight: var(--w-label); letter-spacing: var(--ls-label); text-transform: uppercase; border-radius: var(--r-btn); }

/* Árlista */
.ws-price { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ws-price caption { text-align: left; padding-bottom: var(--space-3); }
.ws-price th, .ws-price td { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.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); border-bottom: var(--bw) solid var(--ink); }
.ws-price td:last-child, .ws-price th:last-child { text-align: right; white-space: nowrap; padding-left: var(--space-4); }
.ws-price .ws-price__unit { color: var(--muted); padding-inline: var(--space-4); white-space: nowrap; }
.ws-price tbody th { font-weight: 500; }
.ws-price__u2 { display: none; color: var(--muted); font-size: var(--fs-label); font-weight: 400; }
@media (max-width: 600px) { .ws-price .ws-price__unit { display: none; } .ws-price__u2 { display: block; } .ws-price td:last-child, .ws-price th:last-child { padding-left: var(--space-3); } }
.ws-price__note { margin-top: var(--space-3); font-size: var(--fs-small); color: var(--muted); }

/* Előtte–utána */
.ws-ba { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border-radius: var(--r-card); overflow: hidden; border: var(--bw) solid var(--line); --pos: 50%; }
.ws-ba__layer { position: absolute; inset: 0; display: grid; place-items: center; background-color: var(--alt); background-image: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 14px); }
.ws-ba__after { background-color: var(--surface); background-image: repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 10px); clip-path: inset(0 0 0 var(--pos)); }
.ws-ba__tag { position: absolute; top: var(--space-3); padding: var(--space-1) var(--space-3); background: var(--ink); color: var(--bg); font-size: var(--fs-label); font-weight: var(--w-label); letter-spacing: var(--ls-label); text-transform: uppercase; border-radius: var(--r-btn); }
.ws-ba__before .ws-ba__tag { left: var(--space-3); }
.ws-ba__after .ws-ba__tag { right: var(--space-3); }
.ws-ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--ink); pointer-events: none; }
.ws-ba__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); }
.ws-ba__ph { position: absolute; bottom: var(--space-3); 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); }
.ws-ba__before .ws-ba__ph { left: var(--space-3); }
.ws-ba__after .ws-ba__ph { right: var(--space-3); }
.ws-ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ws-ba:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Értékelés */
.ws-review { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-card); min-width: 0; }
.ws-stars { display: inline-flex; align-items: center; gap: 2px; color: var(--primary); }
.ws-stars svg { width: 18px; height: 18px; fill: currentColor; }
.ws-stars b { margin-left: var(--space-2); color: var(--ink); font-variant-numeric: tabular-nums; }
.ws-review blockquote { margin: 0; font-size: var(--fs-body); }
.ws-review footer { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-small); color: var(--muted); }

/* Ajánlatkérő űrlap */
.ws-form { display: grid; gap: var(--space-4); }
.ws-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.ws-field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.ws-field label, .ws-field .ws-field__label { font-weight: 600; font-size: var(--fs-small); color: var(--ink); }
.ws-field .ws-opt { font-weight: 400; color: var(--muted); }
.ws-input { width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--muted); border-radius: var(--r-field); }
textarea.ws-input { min-height: 120px; resize: vertical; }
.ws-input::placeholder { color: var(--muted); opacity: 1; }
.ws-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ws-input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.ws-field__error { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--danger); font-size: var(--fs-small); font-weight: 600; }
.ws-field__error .ws-icon { width: 18px; height: 18px; margin-top: 2px; }
.ws-check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-small); color: var(--ink); }
.ws-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.ws-notice { display: flex; gap: var(--space-3); padding: var(--space-4); border: var(--bw) solid var(--success); border-radius: var(--r-card); color: var(--ink); background: var(--surface); }
.ws-notice .ws-icon { color: var(--success); }
@media (max-width: 600px) { .ws-form__row { grid-template-columns: 1fr; } }

/* Mobil hívássáv */
.ws-callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: var(--bw) solid var(--line); }
.ws-callbar .ws-btn { min-height: 52px; padding-inline: var(--space-3); }
@media (min-width: 761px) { .ws-callbar { display: none; } }

/* GYIK */
.ws-faq { border-top: var(--bw) solid var(--ink); }
.ws-faq details { border-bottom: 1px solid var(--line); }
.ws-faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; cursor: pointer; list-style: none; font-weight: 600; font-size: var(--fs-lead); }
.ws-faq summary::-webkit-details-marker { display: none; }
.ws-faq summary .ws-icon { color: var(--primary); transition: transform .2s ease; }
.ws-faq details[open] summary .ws-icon { transform: rotate(45deg); }
.ws-faq details p { padding-bottom: var(--space-5); color: var(--muted); }

/* Lábléc */
.ws-footer { background: var(--alt); color: var(--ink); padding-block: var(--space-8) var(--space-5); font-size: var(--fs-small); }
.ws-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); }
.ws-footer h3 { font-size: var(--fs-body); margin-bottom: var(--space-3); }
.ws-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.ws-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-7); padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 760px) { .ws-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { :is(.ws, .editor-styles-wrapper) *, :is(.ws, .editor-styles-wrapper) *::before, :is(.ws, .editor-styles-wrapper) *::after { transition: none !important; } }
