/* Modern Header Styles */
:root {
    --header-purple: #5d3191;
    --header-green: #56d07e;
    --header-light-bg: #f3f1f8;
    --header-text-dark: #333;
    --header-border: #e1e1e1;
}

.site-header-modern {
    background: #fff;
    border-bottom: 1px solid var(--header-border);
    padding: 10px 0;
    font-family: 'Roboto', sans-serif;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Section */
.logo-section {
    display: flex;
    flex-direction: column;
    margin-right: 30px;
}

.logo-section img {
    width: 200px;
    height: auto;
}

.established-text {
    font-size: 10px;
    color: var(--header-purple);
    font-weight: bold;
    margin-top: 5px;
}

/* Contact Info */
.header-contact-info {
    display: flex;
    flex-direction: column;
    margin-right: 30px;
}

.header-phone {
    color: var(--header-purple);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.lines-status {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--header-green);
    border-radius: 50%;
    margin-right: 5px;
}

/* Search Bar */
.header-search-container {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.header-search-input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid #eee;
    background: #f8f8f8;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.header-search-input:focus {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-submit-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

/* CTA Buttons */
.header-cta-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.btn-contact {
    background: var(--header-purple);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.3s;
}

.btn-callback {
    background: var(--header-green);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}

.btn-contact:hover,
.btn-callback:hover {
    opacity: 0.9;
}

/* Icon Buttons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    width: 45px;
    height: 45px;
    background: var(--header-light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--header-purple);
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: background 0.3s;
}

.icon-btn:hover {
    background: #e8e4f1;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--header-green);
    color: #fff;
    font-size: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    color: var(--header-purple);
    background: none;
    border: none;
    cursor: pointer;
}

/* Trust Bar (Promo Bar) */
.header-trust-bar {
    background: #111;
    color: #fff;
    padding: 15px 0;
    border-top: 1px solid #333;
    font-family: 'Roboto', sans-serif;
}

.trust-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 1px solid #333;
    padding-right: 10px;
}

.trust-item:last-child {
    border-right: none;
}

.trust-icon-box {
    font-size: 24px;
    color: #fff;
}

.trust-text-box {
    display: flex;
    flex-direction: column;
}

.trust-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.trust-subtitle {
    font-size: 11px;
    color: #ccc;
    margin-top: 2px;
}

/* Responsiveness */
@media (max-width: 1100px) {
    .trust-bar-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }

    .trust-item:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 1200px) {

    .header-contact-info,
    .header-search-container {
        display: none;
    }
}

@media (max-width: 992px) {
    .site-header-modern {
        padding: 6px 0;
    }

    .header-cta-group {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .header-container {
        padding: 4px 15px;
    }

    .logo-section img {
        height: 38px;
        width: auto;
    }

    .icon-btn.search,
    .icon-btn.user {
        display: none;
    }

    /* Hide desktop search toggle on mobile — we use our own button */
    .mobile-search-toggle {
        display: flex;
    }

    .icon-btn.callback-mobile {
        display: flex;
        background: var(--header-green);
        color: #fff;
    }
}

/* Mobile specific layout matching screenshot */
@media (max-width: 600px) {
    .header-container {
        justify-content: space-between;
    }

    .header-icons {
        gap: 10px;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
    }

    .header-trust-bar {
        display: none;
    }
}

/* Navigation Bar */
.topNavContainer {
    background: #fff;
    border-bottom: 1px solid var(--header-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 99;
}

.topNav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    gap: 30px;
}

.topNav a {
    padding: 15px 5px;
    color: var(--header-text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topNav a i {
    font-size: 16px;
    color: var(--header-purple);
}

.topNav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--header-purple);
    transition: width 0.3s ease;
}

.topNav a:hover {
    color: var(--header-purple);
}

.topNav a:hover::after {
    width: 100%;
}

.topNav a#mainMenu.active {
    color: var(--header-purple);
}

.topNav a#mainMenu.active::after {
    width: 100%;
}

/* Mobile Bar Reset */
.mobileBar {
    display: none;
}

@media (max-width: 992px) {
    .topNavContainer {
        display: none;
    }
}

/* ===== Search Autocomplete Dropdown ===== */
#headerSearchContainer {
    position: relative;
}

.search-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    border: 1px solid #ede8f5;
    z-index: 9999;
    overflow: hidden;
    animation: acFadeIn 0.15s ease;
}

@keyframes acFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f0fb;
    transition: background 0.15s;
}

.ac-item:last-of-type {
    border-bottom: none;
}

.ac-item:hover,
.ac-item.ac-active {
    background: #f5f0fb;
}

.ac-icon {
    width: 32px;
    height: 32px;
    background: #ede8f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5d3191;
    font-size: 14px;
    flex-shrink: 0;
}

.ac-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ac-label {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-label mark {
    background: none;
    color: #5d3191;
    font-weight: 800;
}

.ac-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
    display: flex;
    gap: 8px;
}

.ac-price {
    color: #5d3191;
    font-weight: 700;
}

.ac-size {
    color: #aaa;
}

.ac-see-all {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #5d3191;
    background: #faf8ff;
    text-decoration: none;
    border-top: 1px solid #ede8f5;
    transition: background 0.15s;
}

.ac-see-all:hover {
    background: #f0e8ff;
}

.ac-see-all i {
    font-size: 12px;
    opacity: 0.7;
}

/* ===== Mobile Search Toggle Button ===== */
.mobile-search-toggle {
    display: none; /* hidden on desktop */
}

/* ===== Mobile Search Bar (slide-down panel) ===== */
.mobile-search-bar {
    background: #fff;
    border-bottom: 1px solid var(--header-border);
    padding: 10px 15px;
    position: relative;
}

.mobile-search-inner {
    position: relative;
    max-width: 100%;
}

.mobile-search-input {
    width: 100%;
    padding: 11px 45px 11px 18px;
    border-radius: 30px;
    border: 2px solid var(--header-purple);
    background: #faf8ff;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    color: #333;
}

.mobile-search-input:focus {
    background: #fff;
    box-shadow: 0 2px 10px rgba(93,49,145,0.1);
}

.mobile-search-submit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--header-purple);
    font-size: 17px;
    cursor: pointer;
}

#mobileSearchBar .search-autocomplete-dropdown {
    top: calc(100% + 4px);
}

/* ===== Mobile Nav Drawer ===== */
.nav-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-drawer-overlay.open {
    display: block;
    opacity: 1;
}

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.nav-drawer.open {
    transform: translateX(0);
}

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--header-border);
    background: var(--header-light-bg);
}

.nav-drawer-logo img {
    height: 36px;
    width: auto;
}

.nav-drawer-close {
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid var(--header-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--header-purple);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.nav-drawer-close:hover {
    background: var(--header-purple);
    color: #fff;
}

.nav-drawer-links {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    flex: 1;
    overflow-y: auto;
}

.nav-drawer-links li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 24px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-drawer-links li a i {
    width: 18px;
    text-align: center;
    color: var(--header-purple);
    font-size: 16px;
}

.nav-drawer-links li a:hover {
    background: var(--header-light-bg);
    color: var(--header-purple);
    border-left-color: var(--header-purple);
}

.nav-drawer-divider {
    height: 1px;
    background: var(--header-border);
    margin: 8px 24px;
}

.nav-drawer-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--header-border);
    font-size: 12px;
    color: #999;
    text-align: center;
}