/* ==========================================================================
   futespro theme — base styles
   Mirrors the Kadence-era look (Inter, terracotta brand, cream surfaces) but
   keyed off our own selectors. Block content classes (.has-theme-palette-*)
   are auto-published from theme.json by core.
   ========================================================================== */

/* CSS custom properties (also re-export Kadence-compatible aliases for any
   stragglers that referenced --global-palette-N). */
:root {
    --fp-c-brand:        #C2410C;
    --fp-c-brand-dark:   #7C2D12;
    --fp-c-text-strong:  #1C1917;  /* body text only -- not used as bg anymore */
    --fp-c-text:         #292524;
    --fp-c-text-muted:   #57534E;
    --fp-c-text-subtle:  #A8A29E;
    --fp-c-bg-soft:      #FAF7F2;
    --fp-c-bg-light:     #F8FAFC;
    --fp-c-white:        #FFFFFF;
    --fp-c-navy:         #0B1A2E;
    --fp-c-dark:         #0B1A2E;  /* unified dark accent: hero, CTA, footer */

    --fp-shadow-card: 0 12px 32px rgba(28,25,23,.10), 0 2px 8px rgba(28,25,23,.06);
    --fp-shadow-soft: 0 1px 2px rgba(28,25,23,.06), 0 4px 12px rgba(28,25,23,.04);

    --fp-radius:    8px;
    --fp-radius-lg: 10px;

    --fp-container: 1100px;
    --fp-container-wide: 1280px;

    --global-palette1: var(--fp-c-brand);
    --global-palette2: var(--fp-c-brand-dark);
    --global-palette3: var(--fp-c-text-strong);
    --global-palette4: var(--fp-c-text);
    --global-palette5: var(--fp-c-text-muted);
    --global-palette7: var(--fp-c-bg-soft);
    --global-palette9: var(--fp-c-white);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
/* Universal honor of [hidden] — many of our display:flex/grid elements would
   otherwise override the UA default `display:none`. */
[hidden] { display: none !important; }
body.admin-bar { scroll-padding-top: 116px; }
@media (max-width: 782px) { body.admin-bar { scroll-padding-top: 130px; } }
body {
    margin: 0;
    color: var(--fp-c-text);
    background: var(--fp-c-white);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--fp-c-brand); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus-visible { color: var(--fp-c-brand-dark); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--fp-c-brand); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
    color: var(--fp-c-text-strong);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1em; }

.fp-skip-link {
    position: absolute; left: -9999px; top: -9999px;
    background: var(--fp-c-text-strong); color: #fff;
    padding: .75rem 1rem; border-radius: 0 0 6px 0; z-index: 9999;
}
.fp-skip-link:focus { left: 0; top: 0; color: #fff; }

/* ---------- container helper ---------- */
.fp-container { max-width: var(--fp-container); margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.fp-content   { padding-top: 2rem; padding-bottom: 4rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.fp-header {
    background: var(--fp-c-white);
    border-bottom: 1px solid rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* WP admin bar (32px desktop, 46px mobile <=782px) sits above sticky header.
   Push our header below it when body.admin-bar is present. */
body.admin-bar .fp-header { top: 32px; }
body.admin-bar .fp-drawer__panel { top: 32px; height: calc(100% - 32px); }
@media (max-width: 782px) {
    body.admin-bar .fp-header { top: 46px; }
    body.admin-bar .fp-drawer__panel { top: 46px; height: calc(100% - 46px); }
}

/* Default cursor for non-link text. Without this, headings/paragraphs show the
   text-selection I-beam on hover -- looks like a "blinking cursor" to users. */
h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.fp-page-title { cursor: default; }
/* Prevent caret display on focused non-input elements (defensive against any
   plugin that toggles contenteditable). Inputs/textareas/[contenteditable] still
   show caret normally because we don't target them. */
:not(input):not(textarea):not([contenteditable="true"]):not([contenteditable=""]):not(select):focus { caret-color: transparent; }
.fp-header__inner {
    max-width: var(--fp-container-wide);
    margin: 0 auto;
    padding: .75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.fp-brand {
    flex: 0 0 auto;
}
.fp-brand .custom-logo,
.fp-brand img.custom-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
}
.fp-brand .custom-logo-link { display: block; line-height: 0; }
.fp-brand__text {
    color: var(--fp-c-text-strong);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

/* ==========================================================================
   Primary nav (desktop)
   ========================================================================== */
.fp-nav {
    flex: 1 1 auto;
}
.fp-nav--primary {
    display: flex;
    justify-content: flex-end;
}
.fp-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: .25rem;
}
.fp-menu > li {
    position: relative;
}
.fp-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .85rem;
    color: var(--fp-c-text);
    font-weight: 500;
    border-radius: 6px;
    line-height: 1.2;
    transition: color .12s ease, background .12s ease;
}
.fp-menu > li > a:hover,
.fp-menu > li > a:focus-visible {
    color: var(--fp-c-brand);
    background: var(--fp-c-bg-soft);
}
.fp-menu .current-menu-item > a,
.fp-menu .current-menu-ancestor > a {
    color: var(--fp-c-brand);
}

/* dropdown panels */
.fp-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px;
    background: var(--fp-c-white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--fp-radius-lg);
    box-shadow: var(--fp-shadow-card);
    min-width: 240px;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.fp-menu > li.fp-has-children:hover > .sub-menu,
.fp-menu > li.fp-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.fp-menu .sub-menu li { display: block; }
.fp-menu .sub-menu a {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--fp-c-text);
    font-size: .95rem;
    line-height: 1.3;
}
.fp-menu .sub-menu a:hover,
.fp-menu .sub-menu a:focus-visible {
    background: var(--fp-c-bg-soft);
    color: var(--fp-c-brand);
}

/* menu icons (injected by mu-plugin) */
.fp-mi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fp-c-brand);
    flex-shrink: 0;
}
.fp-menu > li > a > .fp-mi svg { width: 18px; height: 18px; }
.fp-menu .sub-menu .fp-mi svg  { width: 20px; height: 20px; }

/* Homepage stat-row icons (injected via inline wp:html blocks).
   Inline `text-align:center` on the wrapper does not center block SVGs;
   flex centering does. */
.fp-stat-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   Mobile menu toggle
   ========================================================================== */
.fp-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0,0,0,.1);
    background: var(--fp-c-white);
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.fp-menu-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fp-c-text-strong);
    border-radius: 2px;
}

@media (max-width: 900px) {
    .fp-nav--primary { display: none; }
    .fp-menu-toggle { display: inline-flex; }
    .fp-header__inner { justify-content: space-between; }
}

/* ==========================================================================
   Mobile drawer
   ========================================================================== */
.fp-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
}
.fp-drawer:not([hidden]) { pointer-events: auto; }
.fp-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(28,25,23,.55);
    opacity: 0;
    transition: opacity .2s ease;
}
.fp-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 90vw);
    background: var(--fp-c-white);
    box-shadow: -8px 0 30px rgba(0,0,0,.18);
    transform: translateX(100%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
body.fp-drawer-open .fp-drawer__overlay { opacity: 1; }
body.fp-drawer-open .fp-drawer__panel { transform: translateX(0); }
body.fp-drawer-open { overflow: hidden; }

.fp-drawer__head {
    padding: .75rem;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.fp-drawer__close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--fp-c-text-strong);
    cursor: pointer;
    border-radius: 6px;
}
.fp-drawer__close:hover { background: var(--fp-c-bg-soft); }

.fp-menu--drawer {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem;
}
.fp-menu--drawer > li {
    width: 100%;
}
.fp-menu--drawer > li > a {
    display: flex;
    width: 100%;
    padding: .8rem .9rem;
    font-size: 1.05rem;
    border-radius: 8px;
}
.fp-menu--drawer .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--fp-c-bg-soft);
    border-radius: 0;
    padding: .25rem 0 .25rem 1rem;
    margin: 0 .5rem .5rem;
    background: transparent;
}
.fp-menu--drawer .sub-menu a {
    padding: .55rem .75rem;
    font-size: .98rem;
}
.fp-menu--drawer .fp-mi svg { width: 22px; height: 22px; }

/* ==========================================================================
   Page chrome
   ========================================================================== */
.fp-page__content { /* block content renders inside; theme.json layout handles widths */ }

.fp-page-header {
    text-align: center;
    margin: 0 auto 2rem;
    max-width: 720px;
}
.fp-page-title { margin: 0 0 .5rem; }
.fp-page-desc  { color: var(--fp-c-text-muted); }

.fp-post-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}
.fp-post-list__item {
    background: var(--fp-c-white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--fp-radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--fp-shadow-soft);
}
.fp-post-list__title { margin: 0 0 .5rem; font-size: 1.25rem; }
.fp-post-list__title a { color: var(--fp-c-text-strong); }
.fp-post-list__title a:hover { color: var(--fp-c-brand); }
.fp-post-list__excerpt p { margin: 0; color: var(--fp-c-text-muted); }

/* archive grid (termek listing) */
.fp-archive-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    margin: 2rem 0;
}
.fp-archive-card {
    background: var(--fp-c-white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--fp-radius-lg);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.fp-archive-card:hover { transform: translateY(-2px); box-shadow: var(--fp-shadow-card); }
.fp-archive-card__link {
    display: block;
    color: inherit;
    padding: 1rem;
}
.fp-archive-card__thumb { margin-bottom: .75rem; border-radius: 6px; overflow: hidden; aspect-ratio: 1; background: var(--fp-c-bg-soft); }
.fp-archive-card__thumb img { width: 100%; height: 100%; object-fit: contain; }
.fp-archive-card__title { font-size: 1rem; margin: 0 0 .25rem; line-height: 1.3; color: var(--fp-c-text-strong); }
.fp-archive-card__excerpt { margin: 0; font-size: .9rem; color: var(--fp-c-text-muted); }

/* ==========================================================================
   /termek/ archive — filter rail + product grid
   ========================================================================== */

.fp-termek-archive { max-width: var(--fp-container-wide); }

.fp-termek-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

/* ---------- Filter rail ---------- */
.fp-filter-rail {
    position: sticky;
    top: 84px;                  /* clears the sticky header */
    align-self: start;
    padding: 1.25rem;
    background: var(--fp-c-bg-soft);
    border: 1px solid rgba(0,0,0,.05);
    border-radius: var(--fp-radius-lg);
    font-size: .9rem;
    box-shadow: var(--fp-shadow-soft);
    /* Scroll inside the rail when it's taller than the viewport (single
       scrollbar — brand list flows inline, no nested scroll). */
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.18) transparent;
}
.fp-filter-rail::-webkit-scrollbar { width: 8px; }
.fp-filter-rail::-webkit-scrollbar-track { background: transparent; }
.fp-filter-rail::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 4px;
    border: 2px solid var(--fp-c-bg-soft);
}
.fp-filter-rail::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.25); }

body.admin-bar .fp-filter-rail {
    top: 116px;
    max-height: calc(100vh - 132px);
}
@media (max-width: 782px) {
    body.admin-bar .fp-filter-rail {
        top: 130px;
        max-height: calc(100vh - 146px);
    }
}

.fp-filter-rail__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid rgba(0,0,0,.07);
    color: var(--fp-c-text-strong);
}

.fp-filter-rail__close {
    display: none;              /* desktop hides it (set inline by .fp-filter-rail HTML) */
}

.fp-filter {
    border: 0;
    margin: 0 0 1.5rem;
    padding: 0;
}
.fp-filter__label {
    display: block;
    font-weight: 700;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--fp-c-text-muted);
    margin: 0 0 .55rem;
    padding: 0;
}

.fp-filter__opt {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .35rem .5rem;
    margin: 0 -.5rem;
    border-radius: 5px;
    cursor: pointer;
    line-height: 1.4;
    transition: background .12s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.fp-filter__opt:hover { background: rgba(0,0,0,.045); }
.fp-filter__opt:has(input:checked) {
    background: rgba(194,65,12,.08);
    color: var(--fp-c-text-strong);
    font-weight: 500;
}
.fp-filter__opt em {
    color: var(--fp-c-text-subtle);
    font-style: normal;
    font-size: .82em;
    margin-left: auto;
    padding-left: .5rem;
}

/* Custom checkbox — paint with brand color when checked */
.fp-filter__opt input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    border: 1.5px solid rgba(0,0,0,.25);
    border-radius: 4px;
    background: var(--fp-c-white);
    cursor: pointer;
    position: relative;
    transition: border-color .12s ease, background .12s ease;
}
.fp-filter__opt:hover input[type="checkbox"]:not(:checked) {
    border-color: var(--fp-c-brand);
}
.fp-filter__opt input[type="checkbox"]:checked {
    background: var(--fp-c-brand);
    border-color: var(--fp-c-brand);
}
.fp-filter__opt input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px; left: 5px;
    width: 4px; height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.fp-filter__opt input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--fp-c-brand);
    outline-offset: 2px;
}

/* Brand list flows naturally inside the rail's scroll (no inner scrollbar). */
.fp-filter--brand { max-height: none; overflow: visible; padding-right: 0; }

/* Reset button */
.fp-filter-reset {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: .7rem 1rem;
    background: var(--fp-c-white);
    color: var(--fp-c-text);
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 6px;
    font: inherit;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, color .15s ease,
                border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.fp-filter-reset:hover {
    background: var(--fp-c-brand);
    color: var(--fp-c-white);
    border-color: var(--fp-c-brand);
    box-shadow: var(--fp-shadow-soft);
}
.fp-filter-reset:active { transform: translateY(1px); }
.fp-filter-reset--inline {
    display: inline-block;
    width: auto;
    margin-left: .5rem;
}

/* ---------- Result count + grid ---------- */
.fp-termek-grid { /* inherits .fp-archive-grid; this exists for selector scoping */ }
.fp-archive-card[hidden] { display: none; }

.fp-empty-state {
    grid-column: 1 / -1;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--fp-c-text-muted);
}

/* ==========================================================================
   /termekkereso/ — wizard pages (egyszerű + teljes variants)
   ========================================================================== */

.fp-tk { padding: 0 0 4rem; }
.fp-tk-hero {
    background: linear-gradient(180deg, var(--fp-c-bg-soft) 0%, var(--fp-c-white) 100%);
    padding: 2rem 0 3rem;
    text-align: center;
    margin-bottom: 2rem;
}
.fp-tk-breadcrumb {
    font-size: .85rem;
    color: var(--fp-c-text-muted);
    margin: 0 0 1rem;
}
.fp-tk-breadcrumb a { color: var(--fp-c-text-muted); }
.fp-tk-breadcrumb a:hover { color: var(--fp-c-brand); }
.fp-tk-hero__title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    margin: 0 0 .75rem;
}
.fp-tk-hero__lead {
    font-size: 1.1rem;
    color: var(--fp-c-text-muted);
    max-width: 600px;
    margin: 0 auto .75rem;
    line-height: 1.55;
}
.fp-tk-hero__meta {
    font-size: .85rem;
    color: var(--fp-c-text-subtle);
    margin: 0;
}

.fp-tk-prose {
    max-width: 720px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.fp-tk-prose h2 {
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    margin-top: 2rem;
}
.fp-tk-prose h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
}
.fp-tk-prose p { line-height: 1.7; }

.fp-tk-section { padding: 2rem 0; }
.fp-tk-section__head { text-align: center; margin: 0 0 1.5rem; }
.fp-tk-section__head h2 { margin: 0 0 .5rem; }
.fp-tk-section__head p { color: var(--fp-c-text-muted); margin: 0; }

/* ---------- Calculator ---------- */

.fp-calc {
    background: var(--fp-c-bg-soft);
    border: 1px solid rgba(0,0,0,.05);
    border-radius: var(--fp-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--fp-shadow-soft);
    max-width: 760px;
    margin: 0 auto;
}
.fp-calc__title { margin: 0 0 .25rem; font-size: 1.35rem; }
.fp-calc__sub { color: var(--fp-c-text-muted); margin: 0 0 1.5rem; font-size: .95rem; }

.fp-calc__inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.fp-calc__field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.fp-calc__field > span {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--fp-c-text-muted);
}
.fp-calc__field input,
.fp-calc__field select {
    padding: .55rem .75rem;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 6px;
    background: var(--fp-c-white);
    font: inherit;
    color: var(--fp-c-text);
}
.fp-calc__field input:focus,
.fp-calc__field select:focus {
    outline: 2px solid var(--fp-c-brand);
    outline-offset: 1px;
    border-color: var(--fp-c-brand);
}

.fp-calc__output {
    border-top: 1px solid rgba(0,0,0,.07);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}
.fp-calc__result {
    font-size: 1.05rem;
    color: var(--fp-c-text-strong);
}
.fp-calc__result strong {
    color: var(--fp-c-brand);
    font-size: 1.3em;
    margin: 0 .25em;
}
.fp-calc__bucket { color: var(--fp-c-text-muted); font-size: .92em; }

/* ---------- CTA buttons (used in wizard + calculator) ---------- */

.fp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .75rem 1.5rem;
    font: inherit;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, color .15s ease,
                border-color .15s ease, transform .1s ease, box-shadow .15s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}
.fp-cta--primary {
    background: var(--fp-c-brand);
    color: var(--fp-c-white);
}
.fp-cta--primary:hover {
    background: var(--fp-c-brand-dark);
    color: var(--fp-c-white);
    box-shadow: var(--fp-shadow-card);
}
.fp-cta--primary:active { transform: translateY(1px); }

.fp-cta--ghost {
    background: var(--fp-c-white);
    color: var(--fp-c-text);
    border-color: rgba(0,0,0,.15);
}
.fp-cta--ghost:hover {
    background: var(--fp-c-brand);
    color: var(--fp-c-white);
    border-color: var(--fp-c-brand);
}

/* ---------- Wizard form ---------- */

.fp-wizard {
    max-width: 880px;
    margin: 0 auto;
    background: var(--fp-c-white);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--fp-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--fp-shadow-soft);
}
.fp-wizard__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem 2rem;
}
.fp-wizard__group { border: 0; margin: 0; padding: 0; }
.fp-wizard__group legend {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--fp-c-text-muted);
    margin: 0 0 .6rem;
    padding: 0;
}
.fp-wizard__group--brand {
    grid-column: 1 / -1;
}
.fp-wizard__group--brand .fp-wizard__opts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .2rem .75rem;
    max-height: 200px;
    overflow-y: auto;
}
.fp-wizard__opts {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.fp-wizard__opt {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .35rem .5rem;
    margin: 0 -.5rem;
    border-radius: 5px;
    cursor: pointer;
    line-height: 1.4;
    transition: background .12s ease;
}
.fp-wizard__opt:hover { background: rgba(0,0,0,.045); }
.fp-wizard__opt:has(input:checked) {
    background: rgba(194,65,12,.08);
    color: var(--fp-c-text-strong);
    font-weight: 500;
}
.fp-wizard__opt em {
    color: var(--fp-c-text-subtle);
    font-style: normal;
    font-size: .82em;
    margin-left: auto;
}
.fp-wizard__opt input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    border: 1.5px solid rgba(0,0,0,.25);
    border-radius: 4px;
    background: var(--fp-c-white);
    cursor: pointer;
    position: relative;
    transition: border-color .12s ease, background .12s ease;
}
.fp-wizard__opt:hover input[type="checkbox"]:not(:checked) {
    border-color: var(--fp-c-brand);
}
.fp-wizard__opt input[type="checkbox"]:checked {
    background: var(--fp-c-brand);
    border-color: var(--fp-c-brand);
}
.fp-wizard__opt input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px; left: 5px;
    width: 4px; height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.fp-wizard__opt input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--fp-c-brand);
    outline-offset: 2px;
}

.fp-wizard__actions {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,.07);
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Cross-link CTA ---------- */

.fp-tk-crosslink {
    margin: 2rem auto;
    max-width: 880px;
}
.fp-tk-crosslink__inner {
    background: var(--fp-c-bg-soft);
    border-radius: var(--fp-radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: space-between;
    flex-wrap: wrap;
}
.fp-tk-crosslink__inner strong {
    display: block;
    color: var(--fp-c-text-strong);
    font-size: 1.05rem;
}
.fp-tk-crosslink__inner p {
    margin: .25rem 0 0;
    color: var(--fp-c-text-muted);
    font-size: .95rem;
}

/* ---------- FAQ ---------- */

.fp-faq { max-width: 760px; margin: 0 auto; }
.fp-faq__item {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--fp-radius);
    margin-bottom: .75rem;
    background: var(--fp-c-white);
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.fp-faq__item[open] {
    border-color: rgba(194,65,12,.25);
    box-shadow: var(--fp-shadow-soft);
}
.fp-faq__q {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
}
.fp-faq__q::-webkit-details-marker { display: none; }
.fp-faq__q::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--fp-c-brand);
    font-weight: 400;
    transition: transform .15s ease;
}
.fp-faq__item[open] .fp-faq__q::after {
    content: "−";
}
.fp-faq__a {
    padding: 0 1.25rem 1.25rem;
}
.fp-faq__a p { margin: 0; color: var(--fp-c-text-muted); line-height: 1.6; }

/* ---------- Internal links block ---------- */

.fp-tk-links {
    max-width: 760px;
    padding-top: 1rem;
}
.fp-tk-links h2 {
    font-size: 1.15rem;
    margin: 0 0 1rem;
}
.fp-tk-links__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .25rem .75rem;
}
.fp-tk-links__list li {
    padding: .35rem 0;
}

/* ==========================================================================
   /termek/ archive (continued) — mobile drawer
   ========================================================================== */

/* ---------- Mobile drawer (replaces the rail at <=900px) ---------- */

.fp-filter-mobile-toggle { display: none; }
.fp-filter-overlay { display: none; }

@media (max-width: 900px) {
    .fp-termek-layout { grid-template-columns: 1fr; gap: 1.25rem; }

    .fp-filter-mobile-toggle {
        display: inline-flex;
        align-items: center;
        gap: .55rem;
        margin: 0 0 1rem;
        padding: .65rem 1rem;
        background: var(--fp-c-white);
        color: var(--fp-c-text-strong);
        border: 1px solid rgba(0,0,0,.12);
        border-radius: 6px;
        font: inherit;
        font-weight: 500;
        cursor: pointer;
        transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
    }
    .fp-filter-mobile-toggle:hover {
        border-color: var(--fp-c-brand);
        color: var(--fp-c-brand);
    }
    .fp-filter-mobile-toggle__badge {
        background: var(--fp-c-brand);
        color: var(--fp-c-white);
        border-radius: 999px;
        padding: 0 .55rem;
        min-width: 22px;
        height: 22px;
        font-size: .78rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .fp-filter-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 99;
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
    }
    body.fp-filter-open .fp-filter-overlay {
        opacity: 1;
        pointer-events: auto;
    }
    body.fp-filter-open { overflow: hidden; }

    .fp-filter-rail {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        height: 100dvh;
        width: 340px;
        max-width: 90vw;
        z-index: 100;
        border-radius: 0;
        border-left: 1px solid rgba(0,0,0,.08);
        border-top: 0;
        border-right: 0;
        border-bottom: 0;
        padding: 3rem 1.25rem 1.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        transition: transform .25s ease;
        box-shadow: none;
    }
    body.fp-filter-open .fp-filter-rail {
        transform: translateX(0);
        box-shadow: -8px 0 32px rgba(0,0,0,.2);
    }

    .fp-filter-rail__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: .5rem;
        right: .5rem;
        width: 36px;
        height: 36px;
        background: transparent;
        border: 0;
        color: var(--fp-c-text-muted);
        border-radius: 6px;
        cursor: pointer;
        transition: background .15s ease, color .15s ease;
    }
    .fp-filter-rail__close:hover {
        background: rgba(0,0,0,.05);
        color: var(--fp-c-text-strong);
    }
}

/* ==========================================================================
   Single post / page
   ========================================================================== */
.fp-single__header { padding: 2rem 0 1rem; text-align: center; }
.fp-single__title { margin: 0 0 .5rem; }
.fp-single__meta { color: var(--fp-c-text-muted); margin: 0; }
.fp-single__thumb { margin: 1rem auto 2rem; max-width: 800px; }
.fp-single__thumb img { border-radius: var(--fp-radius-lg); }
.fp-single__content { /* block content */ }

/* termek single-page polish — mobile-first typography + spacing for the
   Gutenberg column content that ships from the migration. */
.single-termek .fp-single__title {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    line-height: 1.25;
    padding: 0 1rem;
}
.single-termek .fp-single__header { padding: 1.5rem 0 .75rem; }

.single-termek .fp-single__content h2 {
    font-size: clamp(1.25rem, 4vw, 1.6rem);
    margin: 1.5rem 0 .75rem;
}
.single-termek .fp-single__content ul {
    padding-left: 1.25rem;
    margin: 0 0 1.25rem;
}
.single-termek .fp-single__content ul li {
    margin-bottom: .35rem;
    line-height: 1.5;
}
.single-termek .fp-single__content p {
    margin: 0 0 .85rem;
    line-height: 1.65;
}
.single-termek .fp-single__content .wp-block-image {
    margin: 0 0 1rem;
}
.single-termek .fp-single__content .wp-block-image img {
    border-radius: var(--fp-radius-lg);
    background: var(--fp-c-bg-soft);
}
/* The CTA group ("Érdekli ez a termék?") that ends every product post. */
.single-termek .fp-single__content .wp-block-group.has-background {
    background: var(--fp-c-bg-soft) !important;
    border-radius: var(--fp-radius-lg);
    margin: 2rem 0 0;
    padding: 1.25rem !important;
}
.single-termek .fp-single__content .wp-block-group.has-background h2 {
    margin-top: 0;
}

/* ==========================================================================
   Buttons (utility — most CTAs come via core button blocks)
   ========================================================================== */
.fp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.fp-btn--primary { background: var(--fp-c-brand); color: #fff; }
.fp-btn--primary:hover { background: var(--fp-c-brand-dark); color: #fff; }
.fp-btn--ghost   { background: transparent; color: var(--fp-c-brand); border-color: var(--fp-c-brand); }
.fp-btn--ghost:hover { background: var(--fp-c-brand); color: #fff; }

/* ==========================================================================
   Footer
   Single dark-navy block: CTA strip on top, menu + copyright below.
   No white stripe between sections; just a subtle hairline divider.
   ========================================================================== */
.fp-footer {
    background: var(--fp-c-dark);
    color: var(--fp-c-text-subtle);
    margin-top: 4rem;
}
.fp-footer__cta {
    padding: 3rem 1.25rem 2.25rem;
    text-align: center;
}
.fp-footer__cta-inner {
    max-width: var(--fp-container);
    margin: 0 auto;
}
.fp-footer__cta-title {
    color: var(--fp-c-white);
    font-size: clamp(1.5rem, 1.4rem + 0.6vw, 1.9rem);
    font-weight: 700;
    margin: 0 0 .55rem;
    line-height: 1.2;
}
.fp-footer__cta-text {
    color: var(--fp-c-bg-soft);
    font-size: .98rem;
    line-height: 1.55;
    margin: 0 auto 1.4rem;
    max-width: 640px;
}
.fp-footer__cta-btn {
    display: inline-block;
    background: var(--fp-c-brand);
    color: var(--fp-c-white);
    font-weight: 600;
    padding: .85rem 1.6rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background .15s ease, transform .08s ease;
}
.fp-footer__cta-btn:hover { background: var(--fp-c-brand-dark); color: var(--fp-c-white); }
.fp-footer__cta-btn:active { transform: translateY(1px); }
.fp-footer__inner {
    max-width: var(--fp-container);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.08);
}
.fp-footer__menu {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}
.fp-footer__menu a {
    color: var(--fp-c-bg-soft);
    font-size: .95rem;
}
.fp-footer__menu a:hover { color: var(--fp-c-brand); }
.fp-footer__copy {
    font-size: .85rem;
    margin: 0;
    color: var(--fp-c-text-subtle);
}
.fp-footer__copy a { color: var(--fp-c-bg-soft); }
.fp-footer__copy a:hover { color: var(--fp-c-brand); }

/* ==========================================================================
   Pagination
   ========================================================================== */
.wp-block-query-pagination,
.fp-content nav.pagination,
.fp-content .nav-links {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin: 2.5rem 0 0;
}
.fp-content .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .8rem;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,.1);
    color: var(--fp-c-text);
    background: var(--fp-c-white);
    font-weight: 500;
}
.fp-content .page-numbers.current { background: var(--fp-c-brand); color: #fff; border-color: var(--fp-c-brand); }
.fp-content .page-numbers:hover { background: var(--fp-c-bg-soft); }

/* ==========================================================================
   Search form
   ========================================================================== */
.fp-searchform {
    display: flex;
    gap: .5rem;
    max-width: 480px;
    margin: 1.5rem auto;
}
.fp-searchform__label { position: absolute; left: -9999px; }
.fp-searchform__input {
    flex: 1 1 auto;
    padding: .65rem .9rem;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 6px;
    font: inherit;
    color: var(--fp-c-text);
}
.fp-searchform__input:focus {
    outline: 2px solid var(--fp-c-brand);
    outline-offset: 1px;
    border-color: var(--fp-c-brand);
}
.fp-searchform__btn {
    padding: .65rem 1.1rem;
    background: var(--fp-c-brand);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.fp-searchform__btn:hover { background: var(--fp-c-brand-dark); }

/* ==========================================================================
   Block content tweaks
   ========================================================================== */
/* alignfull / alignwide work via theme.json layout settings + core */
.wp-block-cover { color: var(--fp-c-white); }
.wp-block-button__link { font-weight: 600; }
.wp-block-buttons .is-style-outline .wp-block-button__link {
    background: transparent !important;
}

/* leaves wp-block-button defaults using theme.json colors */

/* ==========================================================================
   Misc
   ========================================================================== */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden;
    padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
