/**
 * Header Styles - Extracted from header.php inline CSS for caching
 * @package Astra Child (isakib Pro)
 */

/* Header CSS */
.site-header-custom {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 1000;
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Top Announcement Notice Bar */
.header-announcement-bar {
    background-color: #EA7236;
    color: #ffffff;
    text-align: center;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.header-announcement-bar a {
    color: #ffffff;
    text-decoration: underline;
}

/* Main Navigation Bar */
.main-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Area */
.header-logo-area a {
    display: inline-block;
    text-decoration: none !important;
}
.header-logo-area img {
    max-height: 50px;
    width: auto;
    display: block;
}
.header-site-title {
    font-size: 24px;
    font-weight: 700;
    color: #EA7236;
    margin: 0;
}

/* Nav Menu styling */
.header-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}
.header-nav-menu li a {
    color: #1e293b !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}
.header-nav-menu li a:hover,
.header-nav-menu li.current-menu-item a {
    color: #EA7236 !important;
}
.header-nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #EA7236;
    transition: width 0.2s ease;
}
.header-nav-menu li a:hover::after {
    width: 100%;
}

/* ===== Live Search Bar ===== */
.header-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.header-search-form {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
    border: 1.5px solid #EA7236;
    border-radius: 25px;
    padding: 0 4px 0 16px;
    transition: all 0.25s ease;
    width: 240px;
    box-shadow: 0 2px 8px rgba(234, 114, 54, 0.10);
}
.header-search-form:focus-within {
    border-color: #e85d1a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(234, 114, 54, 0.18), 0 4px 16px rgba(234, 114, 54, 0.14);
    width: 260px;
}
.header-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #1e293b;
    width: 100%;
    padding: 8px 0;
    font-family: inherit;
}
.header-search-input::placeholder {
    color: #EA7236;
    opacity: 0.65;
    font-size: 13px;
}
/* Orange pill search button inside the box */
.header-search-btn {
    background: linear-gradient(135deg, #EA7236, #f2864f) !important;
    border: none !important;
    cursor: pointer !important;
    color: #ffffff !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(234, 114, 54, 0.35) !important;
    margin: 3px !important;
    outline: none !important;
    text-decoration: none !important;
}
.header-search-btn:hover {
    background: linear-gradient(135deg, #e85d1a, #EA7236) !important;
    transform: scale(1.08) !important;
    box-shadow: 0 4px 10px rgba(234, 114, 54, 0.45) !important;
    color: #ffffff !important;
}
.header-search-btn svg {
    width: 15px !important;
    height: 15px !important;
    fill: currentColor !important;
}

/* Live Results Dropdown */
.header-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 360px;
    background: #ffffff;
    border: 1.5px solid rgba(234, 114, 54, 0.18);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13), 0 4px 12px rgba(234, 114, 54, 0.08);
    z-index: 9999;
    display: none;
    overflow: hidden;
}
.header-search-results.active {
    display: block;
    animation: searchDropIn 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes searchDropIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Results header strip */
.search-results-header {
    padding: 10px 16px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #EA7236;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(90deg, #fff5f0, #fff);
    border-bottom: 1px solid #fde8d8;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none !important;
    color: #1e293b !important;
    transition: background 0.15s, padding-left 0.15s;
    border-bottom: 1px solid #fafafa;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: linear-gradient(90deg, #fff5f0, #fff);
    padding-left: 20px;
}
.search-result-img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 8px;
    border: 1.5px solid #fde8d8;
    flex-shrink: 0;
}
.search-result-info {
    flex-grow: 1;
    min-width: 0;
}
.search-result-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 3px 0;
    color: #1e293b;
}
.search-result-price {
    font-size: 13px;
    font-weight: 700;
    color: #EA7236;
}
.search-result-price del {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
    margin-right: 4px;
}
.search-result-price ins {
    text-decoration: none;
}
.search-result-arrow {
    color: #EA7236;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    flex-shrink: 0;
}
.search-result-item:hover .search-result-arrow {
    opacity: 1;
    transform: translateX(3px);
}
.search-no-results,
.search-loading {
    padding: 20px 16px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}
.search-loading::before {
    content: '🔍 ';
}
.search-see-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #EA7236, #f2864f);
    border-top: 1.5px solid rgba(234, 114, 54, 0.2);
    transition: all 0.2s ease;
}
.search-see-all:hover {
    background: linear-gradient(135deg, #e85d1a, #EA7236);
    letter-spacing: 0.02em;
}

/* Mobile Search Bar Styling */
@media (max-width: 1024px) {
    .main-header-container {
        flex-wrap: wrap;
        padding: 10px 15px 8px;
    }
    .header-search-wrapper {
        display: flex;
        order: 3;
        width: 100%;
        margin-top: 8px;
    }
    .header-search-form {
        width: 100% !important;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    .header-search-results {
        width: 100%;
        left: 0;
        right: 0;
    }
}

/* Right Header Icons and CTA Buttons */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Cart link in header */
.header-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: #1e293b !important;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
    position: relative;
}
.header-cart-btn:hover {
    color: #EA7236 !important;
}
.header-cart-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    color: #475569;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.header-cart-btn:hover .header-cart-icon-container {
    background-color: #EA7236;
    color: #ffffff;
}
.header-cart-icon-container svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.header-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #EA7236;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(234, 114, 54, 0.2);
    border: 2px solid #ffffff;
}

/* Account button */
.header-account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    color: #475569 !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none !important;
}
.header-account-btn:hover {
    background-color: #EA7236;
    color: #ffffff !important;
}
.header-account-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Track Order button */
.header-track-btn {
    background-color: #EA7236;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(234, 114, 54, 0.15);
}
.header-track-btn:hover {
    background-color: #f2864f;
    transform: translateY(-1px);
}

/* Mobile Burger Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #1e293b;
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Overlay Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 2000;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.mobile-menu-overlay.active {
    left: 0;
}
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #475569;
    cursor: pointer;
}
.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.mobile-menu-list li a {
    color: #1e293b !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    display: block;
    padding: 8px 0;
}
.mobile-menu-list li a:hover {
    color: #EA7236 !important;
}
.mobile-menu-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-nav-menu,
    .header-right-actions .header-track-btn,
    .header-right-actions .header-account-btn {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .main-header-container {
        padding: 10px 15px;
    }
}

@media (max-width: 600px) {
    .header-announcement-bar {
        display: block !important;
        text-align: center !important;
        font-size: 11px !important;
        padding: 6px 10px !important;
        line-height: 1.5 !important;
    }
    .header-announcement-bar svg {
        display: inline-block !important;
        vertical-align: middle !important;
        margin-top: -2px !important;
        margin-right: 4px !important;
    }
}
