.home .entry-header,
.home .entry-title,
.home.page .page-header {
    display: none !important;
}

.cel-header__right {
    gap: 8px !important;
}

/* Force header constraint to 1200px for consistency across all pages */
.cel-header > div {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    .cel-header > div {
        max-width: 100% !important;
    }
}


.cel-header__brand {
    gap: 10px !important;
}

.cel-header-icon {
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    opacity: 0.95 !important;
    overflow: hidden !important;
}

.cel-header-icon img,
.cel-header-icon .custom-logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: inherit !important;
    display: block !important;
}

/* 
 * Header Brand Transitions & Modes:
 * Handles switching between 'Icon + Title' and 'Full Logo'.
 */
.cel-header__brand {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cel-header__brand .custom-logo-link {
    transition: all 0.4s ease;
    display: flex !important;
    align-items: center !important;
}

/* mode: logo_only */
.cel-header__brand .is-full-logo img {
    height: auto !important;
    max-height: 50px !important;
    /* Cap height to prevent header bloat */
    width: auto !important;
}

.cel-header__brand:hover .is-full-logo {
    transform: scale(1.02);
}

/* Override cel-header-icon constraints when in full logo mode */
.cel-header__brand .cel-header-icon.is-full-logo {
    width: auto !important;
    height: auto !important;
    border: none !important;
    overflow: visible !important;
    padding: 0 !important;
}

.cel-header__brand .cel-header-icon.is-full-logo img,
.cel-header__brand .cel-header-icon.is-full-logo .custom-logo {
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    max-height: 60px !important;
    /* Slightly larger cap for full logo */
}

/* Adjust gap in full logo mode */
.cel-header__brand.is-logo-only {
    gap: 0 !important;
}

.cel-header__toggle {
    display: none;
    align-items: center;
    gap: 0;
    padding: 10px;
    margin-top: 6px;
    border: 0;
    border-radius: 999px;
    background: var(--celeste-button_bg, #111) !important;
    color: var(--celeste-button_text, #fff) !important;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
}

.cel-header__toggle-lines {
    position: relative;
    width: 18px;
    height: 12px;
    display: inline-block;
}

.cel-header__toggle-lines::before,
.cel-header__toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.cel-header__toggle-lines::before {
    top: 0;
}

.cel-header__toggle-lines::after {
    bottom: 0;
}

.cel-header .cel-header__toggle {
    background: var(--celeste-button_bg, #111) !important;
    color: var(--celeste-button_text, #fff) !important;
}

.cel-header .cel-header__toggle-lines::before,
.cel-header .cel-header__toggle-lines::after {
    background: var(--celeste-button_text, #fff) !important;
}

.cel-header .cel-header__mobile-close {
    background: var(--celeste-button_bg, #111) !important;
    color: var(--celeste-button_text, #fff) !important;
    border-color: var(--celeste-button_bg, #111) !important;
}

.cel-header__mobile-panel {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    background: rgba(17, 17, 17, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
}

.cel-header__mobile-panel-inner {
    width: min(92vw, 360px);
    height: 100%;
    background: #fff;
    padding: 24px;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.18);
    transform: translateX(20px);
    transition: transform 0.25s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cel-header__mobile-panel.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cel-header__mobile-panel.is-open .cel-header__mobile-panel-inner {
    transform: translateX(0);
}

.cel-header__mobile-close {
    align-self: flex-end;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--celeste-button_bg, #111) !important;
    background: var(--celeste-button_bg, #111) !important;
    color: var(--celeste-button_text, #fff) !important;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cel-header__mobile-close span {
    color: var(--celeste-button_text, #fff) !important;
}

@media (max-width: 900px) {
    .cel-header__left {
        gap: 20px !important;
    }

    .cel-header__left .cel-nav {
        display: none !important;
    }

    .cel-header__right .cel-search,
    .cel-header__right .cel-search-container {
        display: none !important;
    }

    .cel-header__right .cel-header__cart {
        display: none !important;
    }

    .cel-header__right {
        padding-top: 4px;
    }

    .cel-header__toggle {
        display: inline-flex;   
        color: var(--celeste-button_text, #fff) !important;
    }
}

/* mode: icon_title */
.is-icon-only img {
    border-radius: 4px;
    /* Optional: subtle rounding for icon look */
    transition: all 0.3s ease;
}

.cel-nav--mobile {
    margin-top: 8px;
}
.cel-nav--mobile .wp-block-navigation__container {
    gap: 0 !important;
}
.cel-nav--mobile .wp-block-navigation-item {
    display: block !important;
}
.cel-nav--mobile .wp-block-navigation-item__content {
    display: block !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #e5e7eb;
}
.cel-nav--mobile .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
    border-bottom: 0;
}

body.cel-no-scroll {
    overflow: hidden;
}