/* ==========================================================================
   Cherubs Toys - Global CRO Header Styles
   Reference: code.html & DESIGN.md
   ========================================================================== */

/* 0. Material Symbols Outlined Icon Font Rule */
.material-symbols-outlined,
.cherubs-global-header .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-size: 24px;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    display: inline-block !important;
    white-space: nowrap !important;
    word-wrap: normal !important;
    direction: ltr !important;
    font-variant-ligatures: normal !important;
    -webkit-font-feature-settings: 'liga' !important;
    font-feature-settings: 'liga' !important;
    -webkit-font-smoothing: antialiased !important;
}

/* 1. Hide legacy Woodmart header elements */
header.whb-header,
.whb-sticky-header.whb-clone,
.woodmart-header {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    visibility: hidden !important;
}

/* 2. Global Header Container */
.cherubs-global-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 14px rgba(43, 58, 66, 0.04) !important;
    border-bottom: 1px solid #e0f0fb !important;
    transition: all 0.3s ease !important;
}

/* 3. Top Announcement Bar */
.cherubs-topbar {
    width: 100%;
    background: linear-gradient(90deg, rgba(0, 104, 117, 0.08) 0%, rgba(14, 180, 201, 0.15) 50%, rgba(255, 220, 188, 0.3) 100%);
    padding: 6px 0;
    border-bottom: 1px solid rgba(188, 201, 204, 0.3);
    font-family: 'Quicksand', 'Fredoka', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #0e1d25;
}

.cherubs-topbar-container {
    width: 100%;
    max-width: 100% !important;
    margin: 0;
    padding: 0 clamp(20px, 3.5vw, 60px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
}

.cherubs-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
}

.cherubs-topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: #006875;
    padding: 2px 10px;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-weight: 700;
}

.cherubs-topbar-bullet {
    color: #3c494b;
    font-weight: 600;
}

.cherubs-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cherubs-topbar-specialist-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #b45309;
    color: #ffffff !important;
    font-family: 'Quicksand', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 9999px;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(180, 83, 9, 0.3);
    transition: all 0.2s ease;
}
.cherubs-topbar-specialist-btn:hover {
    background: #92400e;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(146, 64, 14, 0.4);
}

.cherubs-topbar-socials {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}

.cherubs-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    color: #6c797c;
    transition: all 0.2s ease;
}
.cherubs-social-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    display: block;
}
.cherubs-social-link:hover {
    color: #006875;
    transform: scale(1.15);
}

/* 4. Main Navigation Row */
/* 4. Main Navigation Row (Mirada-Style Full-Width Alignment) */
.cherubs-navbar {
    width: 100%;
    padding: 10px 0;
}

.cherubs-navbar-container {
    width: 100%;
    max-width: 100% !important;
    margin: 0;
    padding: 0 clamp(20px, 3.5vw, 60px);
    display: flex;
    align-items: center !important;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
    flex-wrap: nowrap !important;
}

/* Left Group: Logo + Navigation Links */
.cherubs-navbar-left {
    display: flex;
    align-items: center !important;
    gap: 32px;
    flex-shrink: 0;
}

.cherubs-hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e7f6ff;
    border: none;
    color: #0e1d25;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cherubs-hamburger-btn:hover {
    background: #daebf5;
}

.cherubs-brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.25s ease;
    height: 48px;
}
.cherubs-brand-logo img {
    height: 48px !important;
    width: auto !important;
    max-width: 150px !important;
    object-fit: contain !important;
    display: block !important;
}
.cherubs-brand-logo:hover {
    transform: scale(1.03);
}

.cherubs-desktop-nav {
    display: flex;
    align-items: center !important;
    gap: 20px;
}

.cherubs-nav-item {
    font-family: 'Quicksand', 'Fredoka', 'Nunito', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #2b1b4d !important;
    text-decoration: none !important;
    padding: 8px 4px;
    height: 38px;
    box-sizing: border-box;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px;
    line-height: 1;
    border: none;
    white-space: nowrap !important;
    position: relative;
}
.cherubs-nav-item:hover {
    color: #006875 !important;
}
.cherubs-nav-item.active {
    color: #006875 !important;
    font-weight: 800;
}
.cherubs-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 4px;
    right: 4px;
    height: 2.5px;
    background: #006875;
    border-radius: 9999px;
}

.cherubs-nav-hot-pill {
    background: #ba1a1a;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 1.5px 5.5px;
    border-radius: 9999px;
    text-transform: uppercase;
    line-height: 1;
    display: inline-block;
}

/* 5. Header Search Form (Mirada Pill Style on Right) */
.cherubs-desktop-search {
    display: flex;
    align-items: center;
    margin-right: 4px;
}

.cherubs-header-search-form {
    position: relative !important;
    width: 240px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.cherubs-header-search-input {
    width: 100% !important;
    background: #ffffff !important;
    border: 1.5px solid #ecd366 !important;
    border-radius: 9999px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    line-height: 36px !important;
    padding: 0 38px 0 16px !important;
    font-family: 'Nunito Sans', 'Nunito', sans-serif !important;
    font-size: 13px !important;
    color: #2b1b4d !important;
    outline: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
}
.cherubs-header-search-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 500;
}
.cherubs-header-search-input:focus {
    background: #ffffff !important;
    border-color: #006875 !important;
    box-shadow: 0 0 0 3px rgba(14, 180, 201, 0.2) !important;
}

.cherubs-header-search-btn {
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 30px !important;
    width: 30px !important;
    background: transparent !important;
    color: #64748b !important;
    border: none !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}
.cherubs-header-search-btn:hover {
    color: #006875 !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* 6. Action Buttons Group */
.cherubs-navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cherubs-action-icon-pill {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e7f6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0e1d25 !important;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}
.cherubs-action-icon-pill:hover {
    background: #daebf5;
    transform: scale(1.08);
}

.cherubs-action-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ba1a1a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cherubs-mobile-search-toggle {
    display: none;
}

/* High Converting Cart Pill */
.cherubs-header-cart-btn {
    background: #00875a !important;
    color: #ffffff !important;
    height: 40px;
    border-radius: 9999px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Quicksand', 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 135, 90, 0.25);
    transition: all 0.2s ease;
}
.cherubs-header-cart-btn:hover {
    background: #006e49 !important;
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0, 110, 73, 0.35);
}

.cherubs-header-cart-count {
    background: #78fbb6;
    color: #002111;
    font-size: 11px;
    font-weight: 800;
    border-radius: 9999px;
    padding: 1.5px 7px;
    line-height: 1;
}

/* 7. Mobile Search Dropdown */
.cherubs-mobile-search-dropdown {
    width: 100%;
    padding: 6px 14px 10px;
    background: #ffffff;
    border-top: 1px solid #e0f0fb;
    box-sizing: border-box;
}

.cherubs-mobile-search-form {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.cherubs-mobile-search-input {
    width: 100%;
    background: #e7f6ff !important;
    border: 1px solid rgba(188, 201, 204, 0.4) !important;
    border-radius: 9999px !important;
    height: 38px !important;
    padding: 0 80px 0 36px !important;
    font-family: 'Nunito Sans', sans-serif !important;
    font-size: 13px !important;
    color: #0e1d25 !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.cherubs-mobile-search-btn {
    position: absolute;
    right: 3px;
    top: 3px;
    bottom: 3px;
    background: #006875 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 0 14px !important;
    font-family: 'Quicksand', sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
}

/* 8. Mobile Off-Canvas Drawer Navigation */
.cherubs-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 29, 37, 0.45);
    backdrop-filter: blur(4px);
    z-index: 10000;
}

.cherubs-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 310px;
    max-width: 85%;
    background: #ffffff;
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.cherubs-mobile-drawer.open {
    transform: translateX(0);
}

.cherubs-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #edf2f7;
}

.cherubs-drawer-logo img {
    height: 40px;
    width: auto;
}

.cherubs-drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
}

.cherubs-drawer-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cherubs-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cherubs-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0e1d25 !important;
    text-decoration: none !important;
    transition: background 0.15s ease;
}
.cherubs-drawer-link:hover,
.cherubs-drawer-link.active {
    background: #e7f6ff;
    color: #006875 !important;
}

.cherubs-drawer-wa-card {
    background: linear-gradient(135deg, #e7f6ff 0%, #daebf5 100%);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(14, 180, 201, 0.2);
}

.cherubs-drawer-wa-btn {
    display: block;
    background: #f39200;
    color: #ffffff !important;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    text-align: center;
    padding: 8px 14px;
    border-radius: 9999px;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(243, 146, 0, 0.25);
}

/* 9. Responsive Breakpoints */
@media (max-width: 1240px) and (min-width: 1025px) {
    .cherubs-navbar-left {
        gap: 20px !important;
    }
    .cherubs-desktop-nav {
        gap: 14px !important;
    }
    .cherubs-nav-item {
        font-size: 13.5px !important;
        padding: 6px 3px !important;
    }
    .cherubs-header-search-form {
        width: 200px !important;
    }
}

@media (max-width: 1024px) {
    .cherubs-desktop-nav {
        display: none !important;
    }
    .cherubs-hamburger-btn {
        display: inline-flex !important;
    }
    .cherubs-navbar-center {
        max-width: 320px;
    }
    .hide-tablet {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .cherubs-topbar-right {
        display: none !important;
    }
    .cherubs-topbar-container {
        justify-content: center !important;
        padding: 0 8px !important;
    }
    .cherubs-topbar-left {
        justify-content: center !important;
        width: 100% !important;
    }
    .cherubs-topbar-pill {
        font-size: 11px !important;
        padding: 2px 8px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
    .cherubs-desktop-search {
        display: none !important;
    }
    .cherubs-mobile-search-toggle {
        display: inline-flex !important;
    }
    .hide-mobile {
        display: none !important;
    }
    .cherubs-brand-logo {
        height: 38px !important;
    }
    .cherubs-brand-logo img {
        height: 38px !important;
        max-width: 120px !important;
    }
    .cherubs-cart-btn-text {
        display: none !important;
    }
    .cherubs-header-cart-btn {
        height: 34px !important;
        padding: 0 10px !important;
        border-radius: 9999px !important;
        flex-shrink: 0 !important;
    }
    .cherubs-action-icon-pill {
        width: 34px !important;
        height: 34px !important;
        flex-shrink: 0 !important;
    }
    .cherubs-hamburger-btn {
        width: 34px !important;
        height: 34px !important;
        flex-shrink: 0 !important;
    }
    .cherubs-navbar-container {
        padding: 0 10px !important;
        gap: 6px !important;
    }
    .cherubs-navbar-left {
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    .cherubs-navbar-right {
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    .cherubs-navbar-right .hide-mobile,
    .cherubs-navbar-right .hide-small {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hide-small {
        display: none !important;
    }
    .cherubs-topbar-container {
        padding: 0 8px !important;
    }
    .cherubs-navbar-container {
        padding: 0 8px !important;
        gap: 4px !important;
    }
    .cherubs-navbar-left {
        gap: 4px !important;
    }
    .cherubs-navbar-right {
        gap: 4px !important;
    }
    .cherubs-brand-logo {
        height: 34px !important;
    }
    .cherubs-brand-logo img {
        height: 34px !important;
        max-width: 105px !important;
    }
    .cherubs-action-icon-pill {
        width: 32px !important;
        height: 32px !important;
    }
    .cherubs-hamburger-btn {
        width: 32px !important;
        height: 32px !important;
    }
    .cherubs-header-cart-btn {
        height: 32px !important;
        padding: 0 8px !important;
    }
}


/* ==========================================================================
   10X Social & Video Header & Drawer Enhancements
   ========================================================================== */
.cherubs-topbar-social-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
}

.cherubs-topbar-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-family: 'Quicksand', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.cherubs-topbar-pill-btn svg {
    width: 12px;
    height: 12px;
    display: block;
}

.cherubs-topbar-pill-btn.insta {
    background: #ffffff;
    color: #db2777 !important;
    border: 1px solid #fbcfe8;
}

.cherubs-topbar-pill-btn.insta:hover {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    color: #ffffff !important;
    border-color: transparent;
    transform: scale(1.05);
}

.cherubs-topbar-pill-btn.yt {
    background: #ffffff;
    color: #dc2626 !important;
    border: 1px solid #fecaca;
}

.cherubs-topbar-pill-btn.yt:hover {
    background: #ff0000;
    color: #ffffff !important;
    border-color: transparent;
    transform: scale(1.05);
}

/* Nav Reel Pill */
.cherubs-nav-reel-pill {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    margin-left: 4px;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
    animation: cherubsPulse 2s infinite;
}

@keyframes cherubsPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Drawer Social Hub Card */
.cherubs-drawer-social-hub {
    margin: 14px 16px;
    padding: 14px;
    background: linear-gradient(135deg, #f0f9ff 0%, #fdf4ff 100%);
    border: 1.5px solid #e0e7ff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cherubs-drawer-hub-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cherubs-drawer-hub-icon {
    font-size: 22px;
    line-height: 1;
}

.cherubs-drawer-hub-title {
    display: block;
    font-family: 'Fredoka', 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0e1d25;
    line-height: 1.25;
}

.cherubs-drawer-hub-sub {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
}

.cherubs-drawer-hub-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cherubs-drawer-social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    font-family: 'Quicksand', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.cherubs-drawer-social-btn .cherubs-social-svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.cherubs-drawer-social-btn span:first-of-type {
    flex-grow: 1;
}

.cherubs-btn-subtag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 9999px;
    font-weight: 800;
}

.cherubs-drawer-social-btn.cherubs-btn-insta {
    background: #ffffff;
    color: #db2777;
    border: 1px solid #fbcfe8;
}

.cherubs-drawer-social-btn.cherubs-btn-insta .cherubs-btn-subtag {
    background: #fce7f3;
    color: #be185d;
}

.cherubs-drawer-social-btn.cherubs-btn-insta:hover {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    color: #ffffff;
    border-color: transparent;
}

.cherubs-drawer-social-btn.cherubs-btn-insta:hover .cherubs-btn-subtag {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.cherubs-drawer-social-btn.cherubs-btn-yt {
    background: #ffffff;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.cherubs-drawer-social-btn.cherubs-btn-yt .cherubs-btn-subtag {
    background: #fee2e2;
    color: #b91c1c;
}

.cherubs-drawer-social-btn.cherubs-btn-yt:hover {
    background: #ff0000;
    color: #ffffff;
    border-color: transparent;
}

.cherubs-drawer-social-btn.cherubs-btn-yt:hover .cherubs-btn-subtag {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
