/* ================================
   Header wrapper
================================ */

.custom-header {
    width: 100%;
    z-index: 1000;
    position: relative;
}

/* ================================
   Announcement bar
================================ */

.custom-header__announcement {
    width: 100%;
    background: #111111;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.4;
    max-height: 36px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 1;
}

.custom-header__announcement-inner {
    position: relative;
    max-width: 1200px;
    height: 36px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.custom-header__announcement-message {
    position: absolute;
    margin: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    text-align: center;
    pointer-events: none;
}

.custom-header__announcement-message.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   Main bar : menu | logo | actions
================================ */

.custom-header__bar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    transition: background 0.4s ease, border-color 0.4s ease, border-width 0.4s ease;
}

.custom-header__bar-inner {
    max-width: 100%;
    margin: 0;
    padding: 40px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}


.is-scrolled .custom-header__bar-inner {
    padding: 12px 40px;
    /* <-- Shrinks the top/bottom space on scroll */
}

/* ================================
   Left: Navigation
================================ */

/*.custom-header__nav {*/
/*    justify-self: start;*/
/*}*/


.custom-header__left {
    justify-self: start;
    display: flex;
    align-items: center;
}

.custom-header__nav {
    display: block;
}

.custom-header__trigger {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    position: relative;
    z-index: 10001;
}

.custom-header__trigger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #111111;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background-color 0.4s ease;
}

.custom-header--hero .custom-header__trigger-bar {
    background-color: #ffffff;
}

.custom-header--hero.is-scrolled .custom-header__trigger-bar {
    background-color: #111111;
}

.custom-header__trigger.is-active .custom-header__trigger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: #111111 !important;
}

.custom-header__trigger.is-active .custom-header__trigger-bar:nth-child(2) {
    opacity: 0;
}

.custom-header__trigger.is-active .custom-header__trigger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: #111111 !important;
}

.custom-header__menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-header__menu li {
    position: relative;
    margin: 0;
}

.custom-header__menu a {
    display: block;
    padding: 8px 0;
    color: #111111;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.2s ease;
}

.custom-header__menu a:hover,
.custom-header__menu .current-menu-item>a,
.custom-header__menu .current-menu-ancestor>a {
    color: #777777;
}

/* Dropdown */
.custom-header__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 220px;
    margin: 0;
    padding: 12px 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid #eeeeee;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
}

.custom-header__menu li:hover>.sub-menu,
.custom-header__menu li:focus-within>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.custom-header__menu .sub-menu a {
    padding: 12px 20px;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

/* ================================
   Center: Text Logo
================================ */

.custom-header__logo {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-header__logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    gap: 2px;
}

.custom-header__logo-main {
    font-family: 'TAN-Pearl-Regular', serif !important;
    font-size: 28px;
    letter-spacing: 0.18em;
    color: #111111;
    transition: font-size 0.5s ease, color 0.4s ease;
}

.custom-header__logo-sub {
    font-family: 'Amiri-Regular', serif !important;
    font-size: 14px;
    letter-spacing: 0.35em;
    color: #111111;
    transition: font-size 0.5s ease, color 0.4s ease;
}

/* ================================
   Right: WooCommerce Actions
================================ */

.custom-header__actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 20px;
}

.custom-header__action {
    color: #111111;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.2s ease;
}

.custom-header__action:hover {
    color: #777777;
}

.custom-header__cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #111111;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transition: background 0.3s ease;
}

/* ================================
   HERO MODE (front page only)
   Transparent header overlaying hero,
   big logo, white text/icons
================================ */

.custom-header--hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.custom-header--hero .custom-header__bar {
    background: transparent;
    border-bottom-color: transparent;
}

.custom-header--hero .custom-header__logo-main {
    font-size: 40px;
    color: #ffffff;
}

.custom-header--hero .custom-header__logo-sub {
    font-size: 20px;
    color: #ffffff;
}

.custom-header--hero .custom-header__menu a {
    color: #ffffff;
}

.custom-header--hero .custom-header__menu a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.custom-header--hero .custom-header__action {
    color: #ffffff;
}

.custom-header--hero .custom-header__action:hover {
    color: rgba(255, 255, 255, 0.7);
}

.custom-header--hero .custom-header__cart-count {
    background: #ffffff;
    color: #111111;
}

/* Dropdown stays white on hero */
.custom-header--hero .custom-header__menu .sub-menu a {
    color: #111111;
}

/* ================================
   SCROLLED STATE (hero mode)
   White bg, small logo,
   announcement hidden
================================ */

.custom-header--hero.is-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.custom-header--hero.is-scrolled .custom-header__announcement {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.custom-header--hero.is-scrolled .custom-header__bar {
    background: #ffffff;
    border-bottom-color: #eeeeee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.custom-header--hero.is-scrolled .custom-header__logo-main {
    font-size: 22px;
    color: #111111;
}

.custom-header--hero.is-scrolled .custom-header__logo-sub {
    font-size: 10px;
    color: #111111;
}

.custom-header--hero.is-scrolled .custom-header__menu a {
    color: #111111;
}

.custom-header--hero.is-scrolled .custom-header__menu a:hover,
.custom-header--hero.is-scrolled .custom-header__menu .current-menu-item>a {
    color: #777777;
}

.custom-header--hero.is-scrolled .custom-header__action {
    color: #111111;
}

.custom-header--hero.is-scrolled .custom-header__action:hover {
    color: #777777;
}

.custom-header--hero.is-scrolled .custom-header__cart-count {
    background: #111111;
    color: #ffffff;
}

/* ================================
   NON-HERO pages: sticky bar
================================ */

.custom-header:not(.custom-header--hero) {
    position: sticky;
    top: -36px;
    z-index: 10000;
}

.custom-header:not(.custom-header--hero) .custom-header__bar {
    position: relative;
    z-index: 1000;
}



/* ================================
   Responsive
================================ */

@media (max-width: 768px) {
    .custom-header:not(.custom-header--hero) {
        top: -34px;
    }

    .custom-header__announcement-inner {
        height: 34px;
        padding: 0 16px;
    }

    .custom-header__announcement-message {
        font-size: 11px;
    }

    .custom-header__bar-inner {
        padding: 8px 16px;
        gap: 8px;
    }

    .custom-header__menu {
        gap: 14px;
    }

    .custom-header__menu a {
        font-size: 11px;
        padding: 6px 0;
    }

    .custom-header__logo-main {
        font-size: 22px;
    }

    .custom-header__logo-sub {
        font-size: 11px;
    }

    .custom-header--hero .custom-header__logo-main {
        font-size: 30px;
    }

    .custom-header--hero .custom-header__logo-sub {
        font-size: 16px;
    }

    .custom-header--hero.is-scrolled .custom-header__logo-main {
        font-size: 22px;
    }

    .custom-header--hero.is-scrolled .custom-header__logo-sub {
        font-size: 11px;
    }

    .custom-header__actions {
        gap: 12px;
    }

    .custom-header__action svg {
        width: 18px;
        height: 18px;
    }

    .custom-header__menu .sub-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .custom-header__bar-inner {
        padding: 6px 12px;
        gap: 4px;
    }

    .custom-header__menu {
        gap: 10px;
    }

    .custom-header__menu a {
        font-size: 10px;
        letter-spacing: 0.03em;
    }

    .custom-header__logo-main {
        font-size: 18px;
    }

    .custom-header__logo-sub {
        font-size: 9px;
    }

    .custom-header--hero .custom-header__logo-main {
        font-size: 28px;
    }

    .custom-header--hero .custom-header__logo-sub {
        font-size: 13px;
    }

    .custom-header--hero.is-scrolled .custom-header__logo-main {
        font-size: 18px;
    }

    .custom-header--hero.is-scrolled .custom-header__logo-sub {
        font-size: 9px;
    }

    .custom-header__actions {
        gap: 10px;
    }

    .custom-header__action svg {
        width: 16px;
        height: 16px;
    }
}







/* ================================
   Mobile Navigation Drawer & Responsive Adjustments
================================ */

@media (max-width: 991px) {
    .custom-header__nav {
        display: none !important;
    }

    .custom-header__trigger {
        display: flex;
    }

    .custom-header__action--account {
        display: none !important;
    }

    .custom-header__logo {
        padding: 10px 0;
    }
}

/* Drawer Container */
.custom-header__drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    visibility: hidden;
    transition: visibility 0.4s ease;
}

.custom-header__drawer.is-open {
    visibility: visible;
}

/* Drawer Overlay Backdrop */
.custom-header__drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.custom-header__drawer.is-open .custom-header__drawer-overlay {
    opacity: 1;
}

/* Drawer Slide Panel */
.custom-header__drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: #ffffff;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 30px 24px;
    z-index: 2;
}

.custom-header__drawer.is-open .custom-header__drawer-content {
    transform: translateX(0);
}

/* Drawer Header */
.custom-header__drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 20px;
}

.custom-header__drawer-logo .custom-header__logo-main {
    font-family: 'TAN-Pearl-Regular', serif !important;
    font-size: 24px;
    letter-spacing: 0.15em;
    color: #111111;
}

.custom-header__drawer-close {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.custom-header__drawer-close:hover {
    color: #777777;
    transform: rotate(90deg);
}

/* Drawer Navigation */
.custom-header__drawer-nav {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 30px;
}

.custom-header__drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-header__drawer-menu li {
    margin: 0 0 20px 0;
    position: relative;
}

.custom-header__drawer-menu a {
    font-family: 'SweetSansPro-Regular', sans-serif !important;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: #111111;
    display: block;
    padding: 6px 0;
    transition: padding-left 0.3s ease, color 0.3s ease;
}

.custom-header__drawer-menu a:hover {
    color: #777777;
    padding-left: 6px;
}

/* Drawer Dropdown sub-menu */
.custom-header__drawer-menu .sub-menu {
    list-style: none;
    padding: 10px 0 0 16px;
    margin: 0;
}

.custom-header__drawer-menu .sub-menu li {
    margin-bottom: 12px;
}

.custom-header__drawer-menu .sub-menu a {
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: #555555;
    font-weight: normal;
}

.custom-header__drawer-menu .sub-menu a:hover {
    color: #111111;
}

/* Drawer Footer Actions */
.custom-header__drawer-footer {
    border-top: 1px solid #eeeeee;
    padding-top: 24px;
    margin-top: auto;
}

.custom-header__drawer-account {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #111111;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.2s ease;
}

.custom-header__drawer-account:hover {
    color: #777777;
}

.custom-header__drawer-account svg {
    stroke-width: 2;
}

/* Prevent background scroll when drawer is open */
body.drawer-open {
    overflow: hidden;
}