/*
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-header-bg: #ffffff;
    --hc-header-bg-sticky: #ffffff;
    --hc-menu-link: #000000;
    --hc-menu-link-hover: #222222;
    --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: 16px;
    --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`.
*/
html, body {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow-x: hidden !important;
    overflow-x: clip !important;
}

/* =========================================================
   HERO OLDALAK FEJLÉC STÍLUSAI (Szövegek fehérítése)
   ========================================================= */
body.has-hero-image .custom-header-menu-list li:not(.CTA) a {
    color: #ffffff !important;
}

body.has-hero-image .custom-header-menu-list li:not(.CTA) a:hover,
body.has-hero-image .custom-header-menu-list li:not(.CTA):hover>a,
body.has-hero-image .custom-header-menu-list li:not(.CTA):focus-within>a {
    color: #ffffff !important;
}

body.has-hero-image .custom-header-mobile-toggle span {
    background-color: #ffffff !important;
}


/* =========================================================
   SOLID FEJLÉC STÍLUSOK (Olyan oldalakhoz, ahol nincs hero)
   ========================================================= */
body.solid-header-page {
    padding-top: var(--hc-content-offset) !important;
}

body.solid-header-page .custom-header-wrapper {
    background: var(--hc-header-bg-sticky) !important;
}

body.solid-header-page .custom-header-menu-list li:not(.CTA) a {
    color: var(--hc-menu-link) !important;
}

body.solid-header-page .custom-header-menu-list li:not(.CTA) a:hover,
body.solid-header-page .custom-header-menu-list li:not(.CTA):hover>a,
body.solid-header-page .custom-header-menu-list li:not(.CTA):focus-within>a {
    color: var(--hc-menu-link-hover) !important;
}

body.solid-header-page .custom-header-mobile-toggle span {
    background-color: var(--hc-menu-link) !important;
}

body.solid-header-page .custom-header-lang-wrapper .pll-switch__code {
    color: var(--hc-menu-link) !important;
}

body.solid-header-page .top-bar-contact li a {
    color: var(--hc-menu-link) !important;
}

body.solid-header-page .custom-header-logo img {
    filter: none !important;
}


/* =========================================================
   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: var(--hc-header-bg) !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;
}

/* ---------------------------------------------------------
   TOP BAR STYLES
   --------------------------------------------------------- */
.custom-header-top-bar {
    width: 100%;
    background: transparent;
    padding: 10px 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: 5px 0px;
    box-sizing: border-box;
}

.top-bar-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-contact li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    transition: color 0.3s;
}

.top-bar-contact li a:hover {
    color: #ffffff;
}

.top-bar-social .header-grid {
    display: flex;
    gap: 15px;
}

.top-bar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #fff !important;
    border-radius: 50%;
    transition: all 0.3s;
}

.top-bar-social a:hover {
    background: #fff;
}

.top-bar-social svg {
    width: 18px;
    height: 18px;
}

.top-bar-social path {
    transition: fill 0.3s;
}

.custom-header-wrapper.header-on-light .top-bar-contact li a {
    color: #1C191A;
}

.custom-header-wrapper.header-on-light .top-bar-social a {
    background: #fff;
}

.header-divider {
    width: 100%;
    max-width: 1300px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    transition: background-color 0.3s;
}

.custom-header-wrapper.header-on-light .header-divider {
    background-color: #fff;
}

/* ---------------------------------------------------------
   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 40px;
    box-sizing: border-box;
    background: transparent;
    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: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    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-sticky) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-bottom: none;
}

/* ---------------------------------------------------------
   HEADER CONTAINER
   --------------------------------------------------------- */
.custom-header-container {
    width: 100%;
    max-width: 1300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* ---------------------------------------------------------
   LOGO
   --------------------------------------------------------- */
.custom-header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 0;
    z-index: 10;
}

.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: var(--hc-logo-height) !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;
}

/* 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);
}

@media(max-width: 1350px) {
    .custom-header-lang-wrapper {
        display: none;
    }

    .custom-header-top-bar {
        display: none;
    }

    .header-divider {
        display: none;
    }

    .custom-header-nav-desktop {
        display: none;
    }
}

/* =========================================================
   DESKTOP STYLES (Min-width: 1201px)
   ========================================================= */
@media (min-width: 1201px) {
    .custom-header-menu-list {
        display: flex;
        gap: 25px;
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
        justify-content: flex-end;
    }

    .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);
        font-weight: var(--hc-menu-font-weight) !important;
        font-style: var(--hc-menu-font-style) !important;
        font-size: var(--hc-menu-font-size) !important;
        transition: color 0.3s, background-color 0.3s, transform 0.2s;
        font-family: inherit !important;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 3px;
    }

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

    /* 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) !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;
    }

    .custom-header-menu-list li a:hover,
    .custom-header-menu-list li:hover>a,
    .custom-header-menu-list li:focus-within>a {
        color: var(--hc-menu-link-hover) !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 ELRENDEZÉS (Desktop)
   Bal menü | Logó | Jobb menü  (kosár nem látszik, szimmetria miatt)
   ========================================================= */
@media (min-width: 1201px) {
    body.hc-layout-logo-center .custom-header-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 20px;
    }

    body.hc-layout-logo-center .custom-header-nav-left {
        grid-column: 1;
        justify-self: start;
        margin-left: 0;
    }

    body.hc-layout-logo-center .custom-header-logo {
        grid-column: 2;
        justify-self: center;
    }

    body.hc-layout-logo-center .custom-header-nav-right {
        grid-column: 3;
        justify-self: end;
        margin-left: 0;
    }

    body.hc-layout-logo-center .custom-header-nav-left .custom-header-menu-list {
        justify-content: flex-start;
    }

    body.hc-layout-logo-center .custom-header-nav-right .custom-header-menu-list {
        justify-content: flex-end;
    }

    /* A kosárikont és az extra shortcode-ot elrejtjük a középre igazított logó
       melletti szimmetrikus elrendezés megőrzése érdekében (mobilon így is látszanak). */
    body.hc-layout-logo-center .custom-header-cart,
    body.hc-layout-logo-center .custom-header-extra {
        display: none;
    }
}

/* =========================================================
   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 STYLES (Max-width: 1350px)
   ========================================================= */
@media (max-width: 1350px) {
    .custom-header-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        position: fixed;
        background: var(--hc-header-bg) !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: var(--hc-header-bg) !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 25px;
        border-radius: 0;
    }

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

    .custom-header-logo {
        flex-grow: 0;
        order: 1;
        justify-self: start !important;
    }

    .custom-header-logo img {
        max-height: var(--hc-logo-height-mobile) !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 {
        display: none !important;
    }

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

    .custom-header-cart {
        order: 2;
        margin-left: auto;
        margin-right: 8px;
        display: flex;
        align-items: center;
        pointer-events: auto;
    }

    /* Extra shortcode mobilon – a kosár elé kerül, ne tolja ki a hamburger-t */
    .custom-header-extra {
        order: 2;
        margin-left: auto;
        margin-right: 8px;
        display: flex;
        align-items: center;
        pointer-events: auto;
    }

    .custom-header-extra+.custom-header-cart {
        margin-left: 0;
    }

    .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: 44px !important;
        height: 44px !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) !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) !important;
    }

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

/* =========================================================
   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 !important;
    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: var(--hc-menu-font-size) !important;
    font-weight: var(--hc-menu-font-weight) !important;
    font-style: var(--hc-menu-font-style) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-family: inherit !important;
    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;
}


/* =========================================================
   CHECKOUT PAGE REDESIGN (WPAB)
   ========================================================= */

:root {
    --wpab-checkout-gold: #927C69;
    --wpab-checkout-dark: #333333;
    --wpab-checkout-border: #eaeaea;
    --wpab-checkout-bg: #ffffff;
}

/* Hide default page title generated by theme */
body.woocommerce-checkout .page-header,
body.woocommerce-checkout .elementor-page-title,
body.woocommerce-checkout .entry-title,
body.woocommerce-checkout .entry-header {
    display: none !important;
}

/* Header Titles - Full Width Hero */
/* Ensure the hero header is visually above the woocommerce notices */
body.woocommerce-checkout .woocommerce {
    display: flex;
    flex-direction: column;
}

body.woocommerce-checkout .woocommerce > .wpab-checkout-header {
    order: -1;
}

body.woocommerce-checkout .wpab-checkout-header {
    text-align: center;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 40px !important;
    position: relative;
    padding: 130px 20px !important;
    box-sizing: border-box;
    background-color: transparent !important;
}

body.woocommerce-checkout .wpab-checkout-header::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background-color: #000;
    z-index: -1;
}

body.woocommerce-checkout .wpab-checkout-header .wpab-checkout-title {
    color: var(--wpab-checkout-gold) !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    font-size: 36px !important;
}

body.woocommerce-checkout .wpab-checkout-header .wpab-checkout-subtitle {
    color: #ffffff !important;
    font-size: 18px !important;
    opacity: 0.9;
}

/* Two Column Layout */
body.woocommerce-checkout form.checkout.custom-checkout-layout {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    margin-bottom: 60px !important;
}

body.woocommerce-checkout .checkout-left-column {
    flex: 1 1 55% !important;
    min-width: 300px !important;
}

body.woocommerce-checkout .checkout-right-column {
    flex: 1 1 40% !important;
    min-width: 300px !important;
    background: var(--wpab-checkout-bg) !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    align-self: flex-start !important;
    border: 1px solid var(--wpab-checkout-border) !important;
}

/* Premium Input Fields & Layout Fixes */
body.woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
    max-width: 100% !important;
}

body.woocommerce-checkout input[type="text"],
body.woocommerce-checkout input[type="email"],
body.woocommerce-checkout input[type="tel"],
body.woocommerce-checkout input[type="password"],
body.woocommerce-checkout select,
body.woocommerce-checkout textarea,
body.woocommerce-checkout .select2-container--default .select2-selection--single {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid var(--wpab-checkout-border) !important;
    border-radius: 8px !important;
    background-color: #fafafa !important;
    color: var(--wpab-checkout-dark) !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    height: auto !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
}

body.woocommerce-checkout input[type="text"]:focus,
body.woocommerce-checkout input[type="email"]:focus,
body.woocommerce-checkout input[type="tel"]:focus,
body.woocommerce-checkout input[type="password"]:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout textarea:focus {
    border-color: var(--wpab-checkout-gold) !important;
    background-color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(146, 124, 105, 0.2) !important;
}

body.woocommerce-checkout label {
    font-weight: 600 !important;
    color: var(--wpab-checkout-dark) !important;
    margin-bottom: 8px !important;
    display: block !important;
    font-size: 14px !important;
}

body.woocommerce-checkout .form-row {
    margin-bottom: 20px !important;
}

/* Review Order Table */
body.woocommerce-checkout .wpab-booking-summary-title {
    font-size: 20px !important;
    color: var(--wpab-checkout-dark) !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid var(--wpab-checkout-gold) !important;
    padding-bottom: 10px !important;
    display: inline-block !important;
    margin-top: 0 !important;
}

body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table.custom-review-table {
    border: none !important;
    width: 100% !important;
    margin: 0 !important;
}

body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table.custom-review-table th,
body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table.custom-review-table td {
    border: none !important;
    background: transparent !important;
}

body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table.custom-review-table thead {
    display: none !important;
}

/* Format the definition list to look like a table */
body.woocommerce-checkout .wpab-review-details-only .variation {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

body.woocommerce-checkout .wpab-review-details-only .variation dt {
    padding: 15px 0 !important;
    border-bottom: 1px solid var(--wpab-checkout-border) !important;
    color: var(--wpab-checkout-gold) !important;
    font-weight: 600 !important;
    margin: 0 !important;
    font-size: 15px !important;
    background: transparent !important;
}

body.woocommerce-checkout .wpab-review-details-only .variation dd {
    padding: 15px 0 !important;
    border-bottom: 1px solid var(--wpab-checkout-border) !important;
    color: var(--wpab-checkout-dark) !important;
    text-align: right !important;
    margin: 0 !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    background: transparent !important;
}

body.woocommerce-checkout .wpab-review-details-only .variation dt:last-of-type,
body.woocommerce-checkout .wpab-review-details-only .variation dd:last-of-type {
    border-bottom: none !important;
}

/* Ensure paragraph inside dd doesn't mess up margin */
body.woocommerce-checkout .wpab-review-details-only .variation dd p {
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 500 !important;
}

/* Totals section formatting */
body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tfoot th {
    padding: 20px 0 !important;
    color: var(--wpab-checkout-dark) !important;
    font-weight: 600 !important;
    border-top: 1px solid var(--wpab-checkout-border) !important;
    border-bottom: none !important;
}

body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tfoot td {
    padding: 20px 0 !important;
    text-align: right !important;
    color: var(--wpab-checkout-gold) !important;
    font-weight: 700 !important;
    border-top: 1px solid var(--wpab-checkout-border) !important;
    border-bottom: none !important;
}

body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tfoot .order-total th,
body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 22px !important;
    border-top: 2px solid var(--wpab-checkout-dark) !important;
}

/* Micro interactions */
body.woocommerce-checkout #place_order {
    background-color: var(--wpab-checkout-gold) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 20px !important;
    border: none !important;
}

body.woocommerce-checkout #place_order:hover {
    background-color: #7a6655 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(146, 124, 105, 0.3) !important;
}

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

    body.woocommerce-checkout form.checkout.custom-checkout-layout {
        flex-direction: column !important;
    }

    body.woocommerce-checkout .checkout-left-column,
    body.woocommerce-checkout .checkout-right-column {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-checkout {
        overflow-x: clip !important;
    }
}

/* Checkout Hero Background and hiding duplicated titles */
.wpab-checkout-header {
    color: #fff;
    padding: 150px 20px 60px 20px !important;
    text-align: center;
    margin-bottom: 40px;
    margin-top: -100px !important;
    width: 100%;
    position: relative;
    z-index: 10;
}

.wpab-checkout-notices {
    max-width: 1300px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

/* Remove background from payment methods container */
#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment,
.woocommerce-checkout-payment {
    background: transparent !important;
}

.wpab-checkout-header .wpab-checkout-title {
    color: #fff;
    margin-bottom: 10px;
}

.wpab-checkout-header .wpab-checkout-subtitle {
    color: #ccc;
    font-size: 16px;
}

/* Hide WooCommerce default billing/shipping titles */
.woocommerce-billing-fields>h3,
.woocommerce-shipping-fields>h3 {
    display: none !important;
}


/* Modern Payment Methods styling */
.woocommerce-checkout #payment ul.payment_methods {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
    border: 1px solid #e1e1e1 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
    background-color: #fff !important;
    transition: all 0.3s ease !important;
    list-style: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method>label {
    display: inline-block !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-left: 10px !important;
    cursor: pointer !important;
}

.woocommerce-checkout #payment div.payment_box {
    background: #f9f9f9 !important;
    border-radius: 6px !important;
    padding: 15px !important;
    margin-top: 15px !important;
    border: 1px solid #eee !important;
    box-shadow: none !important;
    color: #666 !important;
    font-size: 14px !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}

/* Order button styling override */
body.woocommerce-checkout #place_order {
    background-color: #000000 !important;
    color: #ffffff !important;
}

body.woocommerce-checkout #place_order:hover {
    background-color: #333333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Custom Privacy Policy checkbox styling */
.woocommerce-checkout .form-row.privacy {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: #f9f9f9 !important;
    border-radius: 6px !important;
    border: 1px solid #eee !important;
}

.woocommerce-checkout .form-row.privacy label {
    display: inline-block !important;
    margin-left: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Completely hide WooCommerce default privacy policy text */
.woocommerce-privacy-policy-text {
    display: none !important;
}

/* Make payment form row full width */
#add_payment_method #payment div.form-row,
.woocommerce-cart #payment div.form-row,
.woocommerce-checkout #payment div.form-row {
    padding: 0 !important;
}

/* Coupon Form Styling */
body.woocommerce-checkout .woocommerce-form-coupon {
    padding: 20px !important;
    background: #f9f9f9 !important;
    border-radius: 8px !important;
    border: 1px solid var(--wpab-checkout-border) !important;
    margin-bottom: 30px !important;
}

/* Only apply flex when WooCommerce JS sets display to block */
body.woocommerce-checkout .woocommerce-form-coupon[style*="display: block"],
body.woocommerce-checkout .woocommerce-form-coupon[style*="display:block"] {
    display: flex !important;
    gap: 15px !important;
    align-items: stretch !important;
    flex-wrap: wrap !important;
}

body.woocommerce-checkout .woocommerce-form-coupon .form-row {
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-checkout .woocommerce-form-coupon .form-row-first {
    flex: 1 1 auto !important;
    min-width: 200px !important;
}

body.woocommerce-checkout .woocommerce-form-coupon .form-row-last {
    flex: 0 0 auto !important;
    min-width: fit-content !important;
}

body.woocommerce-checkout .woocommerce-form-coupon .input-text {
    height: 100% !important;
    margin: 0 !important;
    padding: 12px 15px !important;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    background-color: #fff !important;
}

body.woocommerce-checkout form.woocommerce-form-coupon button[type="submit"],
body.woocommerce-checkout .woocommerce-form-coupon .button {
    height: 100% !important;
    margin: 0 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
}

body.woocommerce-checkout form.woocommerce-form-coupon button[type="submit"]:hover,
body.woocommerce-checkout .woocommerce-form-coupon .button:hover {
    background-color: #333333 !important;
    transform: translateY(-2px) !important;
}

/* -----------------------------------------------------
   MOBILE CHECKOUT RESPONSIVE FIXES
   ----------------------------------------------------- */
@media (max-width: 768px) {

    /* 1. Fix horizontal overflow caused by 100vw and negative margins */
    body.woocommerce-checkout .wpab-checkout-header {
        width: 100% !important;
        padding-top: 130px !important;
        padding-bottom: 30px !important;
    }

    /* Reset Gutenberg's alignwide block which also bleeds out of the screen */
    body.woocommerce-checkout .woocommerce.wp-block-group.alignwide {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Global overflow protection for checkout on mobile */
    body.woocommerce-checkout {
        overflow-x: hidden !important;
    }

    /* 2. Stack form fields correctly (First Name, Last Name, etc.) */
    body.woocommerce-checkout .form-row-first,
    body.woocommerce-checkout .form-row-last,
    body.woocommerce-checkout .form-row-wide {
        width: 100% !important;
        float: none !important;
    }

    /* 3. Reduce huge paddings to save screen space */
    body.woocommerce-checkout .checkout-left-column,
    body.woocommerce-checkout .checkout-right-column {
        padding: 0 15px 15px 15px !important;
    }

    body.woocommerce-checkout .wpab-checkout-notices {
        padding: 0 15px !important;
    }

    /* 4. Fix global theme padding that squeezes full width layouts */
    body.woocommerce-checkout .site-main {
        padding-inline-end: 0 !important;
        padding-inline-start: 0 !important;
    }

    /* 5. Fix order button text wrapping on small screens */
    body.woocommerce-checkout #place_order {
        white-space: normal !important;
        word-wrap: break-word !important;
        line-height: 1.3 !important;
        font-size: 16px !important;
        padding: 12px 15px !important;
    }

    /* 6. Mobile coupon form layout fixes: make full width and add top margin to button */
    body.woocommerce-checkout .woocommerce-form-coupon .form-row-first,
    body.woocommerce-checkout .woocommerce-form-coupon .form-row-last {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.woocommerce-checkout .woocommerce-form-coupon .form-row-last {
        margin-top: 12px !important;
    }

    body.woocommerce-checkout .woocommerce-form-coupon .input-text,
    body.woocommerce-checkout .woocommerce-form-coupon .button {
        width: 100% !important;
        display: block !important;
    }
}

/* --- THANK YOU PAGE MODERNIZATION --- */
.custom-thankyou-page {
    max-width: 800px;
    margin: 80px auto;
}

.thankyou-card {
    background: #fff;
    padding: 40px;
}

.thankyou-icon.success {
    color: #4CAF50;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.thankyou-icon.error {
    color: #E53935;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.thankyou-icon.success svg,
.thankyou-icon.error svg {
    width: 100%;
    height: 100%;
}

.thankyou-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.thankyou-text {
    text-align: center;
    font-size: 16px;
    margin-bottom: 30px;
    color: #666;
}

.thankyou-overview-box {
    display: flex;
    justify-content: space-between;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
}

.overview-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.overview-item span {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.overview-item strong {
    font-size: 16px;
    color: #333;
}

.thankyou-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.thankyou-block-title {
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #333;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.detail-row span {
    color: #666;
}

.detail-row strong {
    color: #333;
    text-align: right;
    max-width: 65%;
}

.thankyou-actions {
    text-align: center;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .thankyou-card {
        padding: 20px;
    }

    .thankyou-overview-box {
        flex-direction: column;
        gap: 15px;
    }

    .thankyou-details-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SCROLL LOCK FOR MOBILE MENU
   ========================================================= */
html.hc-menu-is-open,
body.hc-menu-is-open {
    overflow: hidden !important;
}