/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 2.2.0
Text Domain: hello-elementor-child
*/

/* =========================================================
   CSS VÁLTOZÓ FALLBACKEK
   (A tényleges értékeket a Customizer inline CSS-ből írja felül.)
   ========================================================= */
:root {
    --hc-topbar-bg: #2A1108;
    --hc-topbar-color: rgba(251, 226, 172, 0.9);
    --hc-header-bg: #ffffff;
    --hc-header-bg-sticky: #ffffff;
    --hc-menu-link: #542616;
    --hc-menu-link-hover: #F1A748;
    --hc-badge-bg: #D46E5E;
    --hc-submenu-bg: #141414;
    --hc-submenu-link: #ffffff;
    --hc-submenu-hover-bg: #262626;
    --hc-cta-bg: #222222;
    --hc-cta-color: #ffffff;
    --hc-cta-hover-bg: #000000;
    --hc-cta-hover-color: #ffffff;
    --hc-cta-bg-sticky: #222222;
    --hc-cta-color-sticky: #ffffff;
    --hc-cta-radius: 4px;
    --hc-cta-padding-y: 10px;
    --hc-cta-padding-x: 24px;
    --hc-header-radius: 20px;
    --hc-header-max-width: 1300px;
    --hc-header-offset: 20px;
    --hc-content-offset: 0px;
    --hc-sidebar-bg: #131313;
    --hc-sidebar-color: #ffffff;
    --hc-sidebar-hover: #ffffff;
    --hc-menu-font-size: 1.125rem;
    --hc-cta-font-size: 16px;
    --hc-logo-height: 50px;
    --hc-logo-height-mobile: 40px;
}

/* =========================================================
   TARTALOM ELTOLÁS – a fejléc alatti rés (behúzás a menü alá)
   ========================================================= */
/*
   FONTOS: `overflow-x: hidden` helyett `overflow-x: clip` kell!
   CSS spec szerint ha az egyik tengely `hidden` (vagy bármi nem-visible),
   a másik tengely `visible` értéke `auto`-ra számítódik át → az elem
   scroll-konténerré válik, és plusz függőleges scrollbar jelenhet meg.
   A `clip` érték CSAK levágja a túllógó tartalmat, de NEM tesz scroll-konténert,
   így az `overflow-y` megmarad `visible`-nek. Ezért nincs plusz scrollbar.
   Fallback a régi böngészőkhöz: előbb `hidden`, aztán `clip`.
*/


/* =========================================================
   BASE HEADER STYLES
   ========================================================= */

/* A teljes fejléc befoglalója */
.custom-header-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    pointer-events: none;
    box-sizing: border-box;
    overflow: visible !important;
    transition: all 0.3s ease;
}

/* WordPress admin sáv kezelése bejelentkezett felhasználóknál */
body.admin-bar .custom-header-wrapper {
    top: 32px;
}

body.admin-bar .custom-header-inner.is-sticky {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .custom-header-wrapper {
        top: 46px;
    }

    body.admin-bar .custom-header-inner.is-sticky {
        top: 46px;
    }
}

/* ---------------------------------------------------------
   TOP BAR STYLES
   --------------------------------------------------------- */
.custom-header-top-bar {
    width: 100%;
    background: var(--hc-topbar-bg, #2A1108);
    color: var(--hc-topbar-color, rgba(251, 226, 172, 0.9));
    font-size: 0.75rem; /* 12px */
    line-height: 1.4;
    padding: 7px 0;
    pointer-events: auto;
    position: relative;
    z-index: 1000;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    width: 100%;
}

.top-bar-left,
.top-bar-center,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.top-bar-text {
    color: var(--hc-topbar-color, rgba(251, 226, 172, 0.9));
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.top-bar-social-label {
    color: var(--hc-topbar-color, rgba(251, 226, 172, 0.9));
    font-size: 0.75rem;
    font-weight: 400;
    margin-right: 4px;
    white-space: nowrap;
}

.top-bar-social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.top-bar-social-icons a:hover {
    transform: translateY(-1px);
    opacity: 0.8;
}

.top-bar-social-icons img {
    width: 20px;
    height: 20px;
    display: block;
}

/* ---------------------------------------------------------
   HEADER INNER
   --------------------------------------------------------- */
.custom-header-inner {
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 !important;
    height: var(--hc-header-height);
    border-radius: 0;
    padding: 0;
    box-sizing: border-box;
    background: var(--hc-header-bg, #ffffff);
    position: relative;
    transition: background 0.3s ease, max-width 0.3s ease, border-radius 0.3s ease, height 0.3s ease;
}

.custom-header-wrapper.header-on-light .custom-header-inner {
    background: var(--hc-header-bg, #ffffff);
    border-bottom: none;
    background-image: none;
}

/* STICKY állapot */
.custom-header-inner.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--hc-header-bg, #ffffff) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-bottom: none;
}

/* ---------------------------------------------------------
   HEADER CONTAINER
   --------------------------------------------------------- */
.custom-header-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 100%;
    position: relative;
    gap: 20px;
}

/* ---------------------------------------------------------
   HEADER BOTTOM WAVE SEPARATOR
   --------------------------------------------------------- */
.custom-header-wave {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: clamp(38px, 4.2vw, 62px);
    background-image: url('https://torta.freedomdev.hu/wp-content/uploads/2026/09/hullam-feher.png');
    background-repeat: repeat-x;
    background-position: center bottom;
    background-size: 1920px 82px;
    pointer-events: none;
    z-index: 10;
    margin-top: -1px;
}

/* ---------------------------------------------------------
   HEADER ACTION BUTTONS (Right Side)
   --------------------------------------------------------- */
.custom-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
    margin-left: auto;
}

.header-action-btn,
button.header-action-btn,
a.header-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
    line-height: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.header-action-btn::before {
    content: '';
    position: absolute;
    top: -6px;
    bottom: -6px;
    left: -6px;
    right: -6px;
}

.header-action-btn:hover,
.header-action-btn:focus,
button.header-action-btn:hover,
button.header-action-btn:focus,
a.header-action-btn:hover,
a.header-action-btn:focus {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    transform: translateY(-2px);
    opacity: 0.85;
}

.header-action-btn img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    display: block !important;
    background: transparent !important;
    border: none !important;
}

.header-action-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 50%;
    background-color: var(--hc-badge-bg, #D46E5E);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   LARGE SEARCH MODAL & RESULTS
   --------------------------------------------------------- */
.custom-header-search-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(42, 17, 8, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    pointer-events: none;
}

.custom-header-search-backdrop.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.custom-header-search-modal {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translate(-50%, -20px) scale(0.97);
    width: min(880px, 94vw);
    max-height: 85vh;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 30px 70px -15px rgba(42, 17, 8, 0.35), 0 0 0 1px rgba(84, 38, 22, 0.08);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.custom-header-search-modal.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
}

.custom-header-search-dialog {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    width: 100%;
    box-sizing: border-box;
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px 14px;
    border-bottom: 1px solid rgba(84, 38, 22, 0.07);
}

.search-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hc-menu-link, #542616);
    font-family: inherit;
    letter-spacing: 0.01em;
}

.search-modal-title img {
    width: 22px;
    height: 22px;
    display: block;
}

.custom-header-search-close {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    color: var(--hc-menu-link, #542616);
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.custom-header-search-close:hover {
    background-color: rgba(84, 38, 22, 0.08) !important;
    color: var(--hc-menu-link-hover, #F1A748);
    transform: rotate(90deg);
}

.custom-header-search-form {
    padding: 20px 26px 14px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    height: 56px;
    background: #fbf8f5;
    border: 2px solid rgba(84, 38, 22, 0.15);
    border-radius: 12px;
    padding: 0 6px 0 18px;
    gap: 12px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--hc-menu-link-hover, #F1A748);
    background-color: #ffffff;
    box-shadow: none !important;
}

.custom-header-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    font-family: inherit;
    font-size: 1.05rem;
    color: var(--hc-menu-link, #542616) !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.custom-header-search-input::-webkit-search-cancel-button,
.custom-header-search-input::-webkit-search-decoration,
.custom-header-search-input::-webkit-search-results-button,
.custom-header-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.custom-header-search-input::placeholder {
    color: rgba(84, 38, 22, 0.45);
    font-weight: 400;
}

.search-input-clear-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 4px;
    margin: 0;
    cursor: pointer;
    color: var(--hc-menu-link, #542616);
    transition: color 0.2s ease, transform 0.2s ease;
}

.search-input-clear-btn:hover {
    color: var(--hc-menu-link-hover, #F1A748);
    transform: scale(1.1);
}

.search-input-clear-btn svg {
    display: block;
}

.search-submit-btn {
    background: var(--hc-menu-link, #542616) !important;
    background-color: var(--hc-menu-link, #542616) !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 20px !important;
    height: 42px;
    border-radius: 8px !important;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.search-submit-btn:hover {
    background: var(--hc-menu-link-hover, #F1A748) !important;
    background-color: var(--hc-menu-link-hover, #F1A748) !important;
    transform: translateY(-1px);
}

/* Results area */
.custom-header-search-results {
    padding: 0 26px 26px;
    overflow-y: auto;
    max-height: calc(85vh - 170px);
    display: none;
    box-sizing: border-box;
}

.custom-header-search-results.has-content {
    display: block;
}

.search-results-section {
    margin-top: 18px;
}

.search-results-section:first-child {
    margin-top: 6px;
}

.search-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(84, 38, 22, 0.12);
}

.search-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hc-menu-link, #542616);
    margin: 0;
}

.search-section-count {
    font-size: 0.8rem;
    color: rgba(84, 38, 22, 0.6);
    font-weight: 500;
}

/* MAX 2 COLUMNS GRID */
.search-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none !important;
    background: #fbf8f5;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
    background: #f5eee5;
    border: none !important;
    box-shadow: none !important;
}

.search-result-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f0ebe4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-result-thumb svg {
    color: rgba(84, 38, 22, 0.4);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin-bottom: 2px;
    line-height: 1.2;
    display: block;
}

.search-result-badge.badge-product {
    color: #c97c1a;
}

.search-result-badge.badge-post {
    color: rgba(84, 38, 22, 0.6);
}

.search-result-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hc-menu-link, #542616);
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.search-result-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hc-menu-link, #542616);
}

.search-result-date {
    font-size: 0.78rem;
    color: rgba(84, 38, 22, 0.6);
}

.search-results-loading,
.search-results-empty {
    text-align: center;
    padding: 36px 0;
    color: rgba(84, 38, 22, 0.75);
    font-size: 1rem;
}

.search-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(84, 38, 22, 0.15);
    border-radius: 50%;
    border-top-color: var(--hc-menu-link-hover, #F1A748);
    animation: search-spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@media (max-width: 680px) {
    .custom-header-search-modal {
        top: 20px;
        width: 95vw;
        max-height: 90vh;
        border-radius: 14px;
    }

    .search-modal-header {
        padding: 16px 18px 12px;
    }

    .custom-header-search-form {
        padding: 14px 18px 12px;
    }

    .custom-header-search-results {
        padding: 0 18px 18px;
    }

    .search-items-grid {
        grid-template-columns: 1fr;
    }

    .search-input-wrapper {
        height: 50px;
    }

    .search-submit-btn {
        padding: 0 14px !important;
        height: 38px;
        font-size: 0.875rem;
    }
}

/* ---------------------------------------------------------
   LOGO
   --------------------------------------------------------- */
.custom-header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 0;
    z-index: 10;
    padding-top: 12px;
    padding-bottom: 6px;
    box-sizing: border-box;
}

.submenu-toggle-link::after {
    margin-left: 8px !important;
    margin-right: unset !important;
}

.custom-header-sidebar ::marker {
    font-size: 0px !important;
}

.custom-header-sidebar-logo img {
    display: none !important;
}

.custom-header-logo img {
    max-height: min(var(--hc-logo-height), calc(var(--hc-header-height) - 16px)) !important;
    width: auto !important;
    height: auto !important;
    display: block;
    filter: none;
    transition: filter 0.3s ease;
    object-fit: contain;
}

.custom-header-logo a {
    display: flex;
}

.custom-header-wrapper.header-on-light .custom-header-logo img {
    filter: invert(1) brightness(0);
}

.custom-header-inner.is-sticky .custom-header-logo img {
    filter: none !important;
}

/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */
.custom-header-nav-desktop {
    display: block;
}

.custom-header-nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 auto;
    margin: 0 24px;
}

/* A fő (jobb oldali) menü alapból jobbra van tolva */
.custom-header-nav-right {
    margin-left: auto;
}

/* =========================================================
   DESKTOP LANG SWITCHER
   ========================================================= */
.custom-header-lang-wrapper {
    display: flex;
    align-items: center;
    margin-left: 25px;
    z-index: 1002;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.custom-header-lang-wrapper .pll-switch {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 6px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 10px 14px;
    line-height: 1;
    transition: all 0.3s ease;
}

.custom-header-lang-wrapper .pll-switch img {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 999px;
}

.custom-header-lang-wrapper .pll-switch__code {
    line-height: 1;
    font-size: 22px;
    color: #ffffff;
    font-weight: 400;
    font-family: inherit;
    transition: color 0.3s ease;
}

.custom-header-wrapper.header-on-light .custom-header-lang-wrapper .pll-switch__code {
    color: #1C191A;
}

.custom-header-lang-wrapper.is-sticky .pll-switch__code {
    color: #ffffff !important;
}

.custom-header-lang-wrapper.is-sticky .pll-switch {
    background: rgba(19, 19, 19, 0.9);
}

/* =========================================================
   DESKTOP STYLES (Min-width: 992px)
   ========================================================= */
@media (min-width: 992px) {
    .custom-header-menu-list {
        display: flex;
        gap: clamp(16px, 2.2vw, 32px);
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .custom-header-menu-list>li {
        position: relative;
    }

    .custom-header-menu-list>li::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 20px;
        background: transparent;
        pointer-events: auto;
    }

    .custom-header-menu-list li a {
        text-decoration: none;
        color: var(--hc-menu-link, #542616) !important;
        font-family: 'Staatliches', cursive, sans-serif !important;
        font-size: 1.125rem !important; /* 18px-nek megfelelő rem */
        font-weight: 400 !important;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        transition: color 0.25s ease;
        white-space: nowrap;
    }

    .custom-header-wrapper.header-on-light .custom-header-menu-list li a {
        color: var(--hc-menu-link, #542616) !important;
    }

    /* Hover és aktív menüpont színe: #F1A748 */
    .custom-header-menu-list li a:hover,
    .custom-header-menu-list li:hover>a,
    .custom-header-menu-list li:focus-within>a,
    .custom-header-menu-list li.current-menu-item>a,
    .custom-header-menu-list li.current_page_item>a,
    .custom-header-menu-list li.current-menu-ancestor>a {
        color: var(--hc-menu-link-hover, #F1A748) !important;
    }

    /* Sticky módban a normál menüpontok (nem CTA) a menu-link színét kapják. */
    .custom-header-inner.is-sticky .custom-header-menu-list li:not(.CTA) a {
        color: var(--hc-menu-link, #542616) !important;
    }

    .custom-header-inner.is-sticky .custom-header-menu-list li:not(.CTA) a:hover,
    .custom-header-inner.is-sticky .custom-header-menu-list li:not(.CTA):hover>a,
    .custom-header-inner.is-sticky .custom-header-menu-list li.current-menu-item>a,
    .custom-header-inner.is-sticky .custom-header-menu-list li.current_page_item>a {
        color: var(--hc-menu-link-hover, #F1A748) !important;
    }

    /* Sticky módban a CTA gomb saját (külön állítható) háttér- és szövegszínt kap. */
    .custom-header-inner.is-sticky .custom-header-menu-list li.CTA a {
        background-color: var(--hc-cta-bg-sticky) !important;
        color: var(--hc-cta-color-sticky) !important;
    }

    /* Sticky CTA hover – továbbra is a közös hover színeket használja. */
    .custom-header-inner.is-sticky .custom-header-menu-list li.CTA a:hover,
    .custom-header-inner.is-sticky .custom-header-menu-list li.CTA:hover>a,
    .custom-header-inner.is-sticky .custom-header-menu-list li.CTA:focus-within>a {
        background-color: var(--hc-cta-hover-bg) !important;
        color: var(--hc-cta-hover-color) !important;
    }

    .custom-header-inner.is-sticky .custom-header-menu-list .sub-menu a {
        color: var(--hc-submenu-link) !important;
    }

    .custom-header-inner.is-sticky .custom-header-menu-list .sub-menu a:hover,
    .custom-header-inner.is-sticky .custom-header-menu-list .sub-menu a:focus {
        color: var(--hc-submenu-link) !important;
    }

    /* -----------------------------------------------------
       CTA (gomb) menüpont
       ----------------------------------------------------- */
    .custom-header-menu-list li.CTA a {
        background-color: var(--hc-cta-bg) !important;
        color: var(--hc-cta-color) !important;
        padding: var(--hc-cta-padding-y) var(--hc-cta-padding-x) !important;
        border-radius: var(--hc-cta-radius);
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        font-weight: var(--hc-cta-font-weight) !important;
        font-style: var(--hc-cta-font-style) !important;
        font-size: var(--hc-cta-font-size) !important;
        line-height: 1;
        text-transform: uppercase;
        font-family: inherit !important;
        transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    }

    .custom-header-menu-list li.CTA a:hover,
    .custom-header-menu-list li.CTA:hover>a,
    .custom-header-menu-list li.CTA:focus-within>a {
        transform: translateY(-3px);
        background-color: var(--hc-cta-hover-bg) !important;
        color: var(--hc-cta-hover-color) !important;
    }

    /* Almenü */
    .custom-header-menu-list li .sub-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        min-width: 220px;
        padding: 8px;
        margin: 0;
        list-style: none;
        background: var(--hc-submenu-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: none;
        border-radius: 12px;
        box-shadow: 0 20px 25px -5px rgba(19, 19, 19, 0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px) scale(0.98);
        transform-origin: top left;
        pointer-events: none;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
    }

    .custom-header-menu-list li:hover>.sub-menu,
    .custom-header-menu-list li:focus-within>.sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .custom-header-menu-list li .sub-menu li {
        margin: 0;
        padding: 0;
        position: relative;
    }

    .custom-header-menu-list li .sub-menu li::after {
        display: none;
    }

    .custom-header-menu-list li .sub-menu li+li {
        margin-top: 2px;
    }

    .custom-header-menu-list li .sub-menu a {
        display: block;
        padding: 8px 12px;
        border-radius: 8px;
        text-transform: none;
        font-size: var(--hc-submenu-font-size) !important;
        font-weight: 400;
        color: var(--hc-submenu-link) !important;
        transition: all 0.2s ease;
        white-space: nowrap;
        background: transparent !important;
    }

    .custom-header-menu-list li .sub-menu a:hover,
    .custom-header-menu-list li .sub-menu a:focus {
        background: var(--hc-submenu-hover-bg) !important;
        color: var(--hc-submenu-link) !important;
        transform: translateX(4px);
        outline: none;
    }

    /* Második szint */
    .custom-header-menu-list li .sub-menu li .sub-menu {
        top: 0;
        left: 100%;
        transform: translateX(10px) scale(0.98);
        transform-origin: top left;
    }

    .custom-header-menu-list li .sub-menu li:hover>.sub-menu,
    .custom-header-menu-list li .sub-menu li:focus-within>.sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0) scale(1);
        pointer-events: auto;
    }

    .custom-header-mobile-toggle {
        display: none;
    }

    /* KOSÁR IKON – Desktop */
    .custom-header-cart {
        display: flex;
        align-items: center;
        margin-left: 20px;
        pointer-events: auto;
    }

    /* Extra shortcode doboz – a menü és a kosár között */
    .custom-header-extra {
        display: flex;
        align-items: center;
        margin-left: 20px;
        pointer-events: auto;
    }
}

/* Logo center legacy override removed to preserve 3-column layout */

/* =========================================================
   BOXED (keretes) MENÜSÁV – max. szélesség + lekerekítés
   ========================================================= */
@media (min-width: 1201px) {
    body.hc-width-boxed .custom-header-wrapper {
        background: transparent !important;
    }

    body.hc-width-boxed .custom-header-inner {
        max-width: var(--hc-header-max-width);
        margin: var(--hc-header-offset) auto 0 !important;
        border-radius: var(--hc-header-radius);
        background: var(--hc-header-bg);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    body.hc-width-boxed .custom-header-inner.is-sticky {
        position: fixed;
        top: var(--hc-header-offset);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: var(--hc-header-max-width);
        border-radius: var(--hc-header-radius);
        background: var(--hc-header-bg-sticky) !important;
    }
}

/* =========================================================
   MOBILE & TABLET STYLES (Max-width: 991px)
   ========================================================= */
@media (max-width: 991px) {
    .custom-header-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        position: fixed;
        background: transparent !important;
    }

    /* Mobilon mindig teljes szélességű, a boxed beállítás csak desktopon számít */
    body.hc-width-boxed .custom-header-wrapper {
        background: transparent !important;
    }

    body.hc-width-boxed .custom-header-inner {
        max-width: 100%;
        margin: 0 !important;
        border-radius: 0;
        box-shadow: none;
    }

    .custom-header-inner {
        padding: 0;
        border-radius: 0;
    }

    .custom-header-container {
        width: 100%;
        justify-content: space-between;
        display: flex !important;
        grid-template-columns: none !important;
        padding: 0 16px;
    }

    .custom-header-logo {
        flex-grow: 0;
        order: 1;
        justify-self: start !important;
        padding-top: 6px;
        padding-bottom: 4px;
        box-sizing: border-box;
    }

    .custom-header-logo img {
        max-height: var(--hc-logo-height-mobile, 40px) !important;
        width: auto !important;
        height: auto !important;
    }

    /* Mobilon mindkét asztali menü el van rejtve */
    .custom-header-nav-desktop,
    .custom-header-nav-left,
    .custom-header-nav-right,
    .custom-header-nav-center {
        display: none !important;
    }

    /* Mobilon a kosár mindig látszik */
    body.hc-layout-logo-center .custom-header-cart {
        display: flex;
    }

    .custom-header-actions {
        order: 2;
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .custom-header-top-bar {
        padding: 6px 0;
    }

    .top-bar-container {
        padding: 0 16px;
        flex-wrap: wrap;
        gap: 6px 14px;
        justify-content: center;
    }

    .top-bar-text,
    .top-bar-social-label {
        font-size: 0.7rem;
    }

    .custom-header-mobile-toggle {
        order: 3;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        width: 40px !important;
        height: 40px !important;
        background-color: transparent !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 1001;
        box-shadow: none !important;
        outline: none !important;
        border: none !important;
    }

    .custom-header-mobile-toggle span {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        background-color: var(--hc-menu-link, #542616) !important;
        border-radius: 2px !important;
        transition: all 0.3s ease;
        margin: 0 !important;
    }

    .custom-header-wrapper.header-on-light .custom-header-mobile-toggle span {
        background-color: var(--hc-menu-link, #542616) !important;
    }

    .custom-header-inner.is-sticky .custom-header-mobile-toggle span {
        background-color: var(--hc-menu-link, #542616) !important;
    }
}

@media (max-width: 640px) {
    .top-bar-center {
        display: none;
    }
    .top-bar-container {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .custom-header-inner {
        padding: 0 12px;
    }
    .custom-header-actions {
        gap: 6px;
    }
    .header-action-btn {
        padding: 2px;
    }
    .header-action-btn img {
        width: 17px;
        height: 17px;
    }
    .custom-header-mobile-toggle {
        width: 32px !important;
        height: 32px !important;
        margin-left: 2px !important;
    }
    .top-bar-right {
        display: none;
    }
    .top-bar-container {
        justify-content: center;
    }
}

/* =========================================================
   MOBILE SIDEBAR (Off-canvas)
   ========================================================= */
.custom-header-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80vw;
    max-width: 350px;
    height: 100vh;
    background: var(--hc-sidebar-bg);
    backdrop-filter: blur(15px);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    padding: 20px 25px;
    overflow-y: auto;
}

.custom-header-sidebar.is-open {
    transform: translateX(0);
}

.custom-header-sidebar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-header-sidebar-logo img {
    max-height: 65px;
    width: auto !important;
    filter: none !important;
}

.custom-header-sidebar-close {
    background: transparent !important;
    border: none;
    color: var(--hc-sidebar-color) !important;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    width: auto;
    height: auto;
    padding: 5px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-header-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-header-mobile-list>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-header-mobile-list li a {
    color: var(--hc-sidebar-color);
    text-decoration: none;
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    font-family: 'Staatliches', cursive, sans-serif !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: color 0.2s;
}

.custom-header-mobile-list li a:hover,
.custom-header-mobile-list li a:focus {
    color: var(--hc-sidebar-hover);
}

.custom-header-mobile-list li.menu-item-has-children>a::after {
    content: '' !important;
    display: block !important;
    width: 8px !important;
    height: 8px !important;
    border: 0 !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;
    transform: rotate(45deg);
    transition: transform 0.3s;
    margin-right: 5px;
}

.custom-header-mobile-list li.menu-item-has-children>a.is-active::after {
    transform: rotate(-135deg);
    margin-top: 5px;
}

/* =========================================================
   MOBILE SUBMENUS (Accordion)
   ========================================================= */
.custom-header-mobile-list .sub-menu {
    display: none;
    padding-left: 15px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
    border-radius: 8px;
}

.custom-header-mobile-list .sub-menu.is-open {
    display: block;
    animation: fadeIn 0.3s ease;
}

.custom-header-mobile-list .sub-menu li {
    border: none;
    margin: 0;
}

.custom-header-mobile-list .sub-menu a {
    font-size: var(--hc-submenu-font-size) !important;
    padding: 10px 0;
    color: var(--hc-sidebar-color);
    opacity: 0.75;
    justify-content: flex-start;
}

.custom-header-mobile-list .sub-menu a:hover {
    opacity: 1;
    color: var(--hc-sidebar-hover);
}

.custom-header-mobile-list .sub-menu a::after {
    display: none !important;
}

.custom-header-mobile-list .sub-menu .sub-menu {
    padding-left: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 0 6px 6px 0;
    margin: 2px 0 6px 4px;
}

.custom-header-mobile-list .sub-menu .sub-menu a {
    font-size: 14px;
    opacity: 0.55;
    padding: 12px 0;
}

.custom-header-mobile-list .sub-menu .sub-menu li+li {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   OVERLAY
   ========================================================= */
.custom-header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 19, 19, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.custom-header-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .custom-header-inner {
        height: var(--hc-header-height);
        border-radius: 0;
    }
}