/* ==========================================================
   Circulate Site Header — pure PHP header styles
   ========================================================== */

.circulate-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* ----------------------------------------------------------
   Top announcement bar
   ---------------------------------------------------------- */
.csheader-topbar {
    background: #141414;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 8px 16px;
}

.csheader-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1600px;
    margin: 0 auto;
}

.csheader-topbar__item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.csheader-topbar__item img {
    filter: invert(1);
    flex-shrink: 0;
}

.csheader-topbar__sep {
    color: rgba(255,255,255,0.4);
}

@media (max-width: 767px) {
    .csheader-topbar__sep,
    .csheader-topbar__item:not(:first-child) {
        display: none;
    }
}

/* ----------------------------------------------------------
   Main nav bar
   ---------------------------------------------------------- */
.csheader-main {
    background: #fff;
    padding: 10px 0;
}

.csheader-main__inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.csheader-main li.wp-block-navigation-item {
    font-size: 14px!important;
}


/* Logo */
.csheader-logo {
    flex-shrink: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.csheader-logo__img {
    height: 42px;
    width: auto;
    display: block;
}

.csheader-logo__text {
    font-size: 22px;
    font-weight: 700;
    color: #141414;
    letter-spacing: -0.02em;
    font-style: italic;
}

/* Primary nav */
.csheader-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.csheader-nav__list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.csheader-nav__list li {
    position: relative;
}

.csheader-nav__list a {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #141414;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.csheader-nav__list a:hover,
.csheader-nav__list .current-menu-item > a,
.csheader-nav__list .current-page-ancestor > a {
    color: #888;
}


.csheader-main .wlfmc-counter-icon i{
    font-size: 20px!important;
}

/* Dropdown */
.csheader-nav__list .sub-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 100;
}

.csheader-nav__list li:hover > .sub-menu,
.csheader-nav__list li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.csheader-nav__list .sub-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
}

/* Icons */
.csheader-icons {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.csheader-icons__item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #141414;
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.15s;
}

.csheader-icons__item:hover {
    opacity: 0.6;
}

.csheader-icons__item img,
.csheader-icons__item svg {
    display: block;
    max-width: unset;
}

/* Cart badge */
.csheader-icons__cart-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.csheader-icons__cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    background: #141414;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

.csheader-icons__cart-count.is-empty {
    display: none;
}

/* Hamburger — hidden on desktop */
.csheader-icons__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.csheader-icons__hamburger span {
    display: block;
    height: 2px;
    width: 20px;
    background: #141414;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.csheader-icons__hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.csheader-icons__hamburger.is-open span:nth-child(2) { opacity: 0; }
.csheader-icons__hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ----------------------------------------------------------
   Mobile drawer
   ---------------------------------------------------------- */
.csheader-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
    visibility: hidden;
}

.csheader-drawer.is-open {
    pointer-events: all;
    visibility: visible;
}

.csheader-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.25s;
}

.csheader-drawer.is-open .csheader-drawer__overlay {
    opacity: 1;
}

.csheader-drawer__inner {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #fff;
    padding: 24px 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    z-index: 1;
}

.csheader-drawer.is-open .csheader-drawer__inner {
    transform: translateX(0);
}

.csheader-drawer__close {
    display: flex;
    margin-left: auto;
    margin-bottom: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.csheader-drawer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.csheader-drawer__list li {
    border-bottom: 1px solid #f0f0f0;
}

.csheader-drawer__list a {
    display: block;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 500;
    color: #141414;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.csheader-drawer__list .sub-menu {
    list-style: none;
    padding: 0 0 8px 12px;
    margin: 0;
}

.csheader-drawer__list .sub-menu a {
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    padding: 8px 0;
    border: none;
}

/* ----------------------------------------------------------
   Search side panel (slides in from right)
   ---------------------------------------------------------- */
.csheader-search {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
    visibility: hidden;
}

.csheader-search.flex {
    pointer-events: all;
    visibility: visible;
}

/* Dark backdrop */
.csheader-search::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.25s;
}

.csheader-search.flex::before {
    opacity: 1;
}

.csheader-search__inner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 90vw);
    background: #fff;
    padding: 32px 28px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    z-index: 1;
}

.csheader-search.flex .csheader-search__inner {
    transform: translateX(0);
}

.csheader-search__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.csheader-search__heading {
    font-size: 20px;
    font-weight: 500;
    color: #141414;
}

.csheader-search__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.csheader-search__form {
    display: flex;
    align-items: center;
}

.csheader-search__input {
    width: 100%;
    border: 1px solid #d0d0d0;
    border-radius: 0;
    outline: none;
    font-size: 15px;
    color: #141414;
    background: #fff;
    padding: 14px 16px;
    transition: border-color 0.15s;
}

.csheader-search__input:focus {
    border-color: #141414;
}

.csheader-search__input::placeholder {
    color: #999;
}

/* Keywords section */
.csheader-search__keywords {
    margin-top: 28px;
}

.csheader-search__keywords-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 12px;
}

.csheader-search__keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.csheader-search__keywords-list a {
    font-size: 14px;
    font-weight: 500;
    color: #141414;
    text-decoration: none;
    transition: color 0.15s;
}

.csheader-search__keywords-list a:hover {
    color: #888;
}

/* Popular products section */
.csheader-search__popular {
    margin-top: 32px;
}

.csheader-search__popular-label {
    display: block;
    font-size: 20px;
    font-weight: 500;
    color: #141414;
}

/* ----------------------------------------------------------
   Modern Fullscreen Mobile Menu (Glassmorphism)
   ---------------------------------------------------------- */

/* Only visible below 900px */
@media (max-width: 899px) {
    .csheader-mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 1100;
        pointer-events: none;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .csheader-mobile-menu.is-open {
        pointer-events: all;
        visibility: visible;
        opacity: 1;
    }

    /* Backdrop with subtle dim */
    .csheader-mobile-menu__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .csheader-mobile-menu.is-open .csheader-mobile-menu__backdrop {
        opacity: 1;
    }

    /* Main container - glassmorphism panel */
    .csheader-mobile-menu__container {
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 40px 60px;
        transform: translateY(20px);
        opacity: 0;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .csheader-mobile-menu.is-open .csheader-mobile-menu__container {
        transform: translateY(0);
        opacity: 1;
    }

    /* Close button - minimal X */
    .csheader-mobile-menu__close {
        position: absolute;
        top: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(20, 20, 20, 0.05);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
        z-index: 10;
    }

    .csheader-mobile-menu__close:hover {
        background: rgba(20, 20, 20, 0.1);
        transform: rotate(90deg);
    }

    .csheader-mobile-menu__close-line {
        position: absolute;
        width: 20px;
        height: 1.5px;
        background: #141414;
        border-radius: 1px;
        transition: background 0.2s ease;
    }

    .csheader-mobile-menu__close-line:first-child {
        transform: rotate(45deg);
    }

    .csheader-mobile-menu__close-line:last-child {
        transform: rotate(-45deg);
    }

    /* Navigation */
    .csheader-mobile-menu__nav {
        width: 100%;
        max-width: 320px;
    }

    .csheader-mobile-menu__list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    /* Menu items with staggered animation */
    .csheader-mobile-menu__item {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: calc(var(--item-index) * 80ms + 150ms);
    }

    .csheader-mobile-menu.is-open .csheader-mobile-menu__item {
        opacity: 1;
        transform: translateY(0);
    }

    /* Large elegant navigation links */
    .csheader-mobile-menu__link {
        display: block;
        padding: 12px 0;
        font-size: clamp(28px, 8vw, 40px);
        font-weight: 500;
        color: #141414;
        text-decoration: none;
        letter-spacing: -0.02em;
        line-height: 1.2;
        position: relative;
        transition: color 0.3s ease;
    }

    /* Animated underline on hover */
    .csheader-mobile-menu__link::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #141414 0%, #666 100%);
        border-radius: 2px;
        transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .csheader-mobile-menu__link:hover {
        color: #444;
    }

    .csheader-mobile-menu__link:hover::after {
        width: 100%;
    }

    /* Footer with CTA button */
    .csheader-mobile-menu__footer {
        margin-top: 48px;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: 550ms;
    }

    .csheader-mobile-menu.is-open .csheader-mobile-menu__footer {
        opacity: 1;
        transform: translateY(0);
    }

    .csheader-mobile-menu__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 14px 32px;
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #fff;
        background: #141414;
        text-decoration: none;
        border-radius: 100px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 4px 20px rgba(20, 20, 20, 0.15);
    }

    .csheader-mobile-menu__btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(20, 20, 20, 0.25);
    }

    /* Hamburger animation enhancement */
    .csheader-icons__hamburger {
        transition: transform 0.2s ease;
    }

    .csheader-icons__hamburger:active {
        transform: scale(0.95);
    }
}

/* Hide on desktop (900px and above) */
@media (min-width: 900px) {
    .csheader-mobile-menu {
        display: none !important;
    }
}

/* ----------------------------------------------------------
   Responsive breakpoint
   ---------------------------------------------------------- */
@media (max-width: 991px) {
    .csheader-main__inner {
        padding: 0 20px;
        gap: 16px;
    }

    .csheader-nav {
        display: none;
    }

    .csheader-icons__hamburger {
        display: flex;
    }
}

@media (max-width: 480px) {
    .csheader-main__inner {
        height: 58px;
    }
    .csheader-icons {
        gap: 15px;
    }
}
