/* Header Styles */
.header-new {
    background: white;
    width: 100%;
    z-index: 1000;
    position: sticky;
    top: 0;
}
.header-top-bar {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
}
.header-container {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    max-width: 259px;
    text-decoration: none;

    display: flex;
    flex-direction: column;
}

.header-logo img {
    width: 100%;
    height: auto !important;
}

.header-logo p {
    color: #3A3A3A;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-size: 15px;
    margin-top: 5px;
    margin-bottom: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.top-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.top-nav-link {
    text-decoration: none;
    color: #343434;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.35rem 0.75rem;
    transition: 0.2s;
    border-radius: 0.375rem;
}
.top-nav-link:hover {
    color: #4c5ca4;
    background: white;
}

.header-main {
    padding: 1.25rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.header-logo img {
    height: 40px;
    transition: transform 0.3s;
}
.header-logo:hover img {
    transform: scale(1.05);
}

.search-wrapper {
    flex: 1;
    max-width: 600px;
    position: relative;
    margin: 0 2rem;
}
.search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: 0.3s;
}
.search-input:focus {
    border-color: #4c5ca4;
    box-shadow: 0 0 0 3px rgba(76, 92, 164, 0.1);
}
.search-btn {
    position: absolute;
    right: 1rem;
    top: 56%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.btn-action {
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}
.btn-blue {
    background: #4c5ca4;
    color: white;
}
.btn-gray {
    background: #343434;
    color: white;
}
.btn-yellow {
    background: #fde663;
    color: #000;
}
.btn-blue:hover,
.btn-gray:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #343434;
    padding: 0.5rem;
    border-radius: 0.5rem;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #4c5ca4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
}
.cart-trigger {
    width: 48px;
    height: 48px;
    background: #4c5ca4;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    border: none;
    cursor: pointer;
}

.lang-select {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
}

/* Burger — hidden on desktop */
.burger-trigger {
    display: none;
}

/* Mobile Menu — hidden on desktop */
.mobile-menu-overlay {
    display: none;
}
.mobile-menu {
    display: none;
}

@media (max-width: 1024px) {
    .header-actions .btn-action {
        display: none;
    }
    .header-logo {
        max-width: 200px;
    }
    .burger-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #f3f4f6;
        border: none;
        border-radius: 0.5rem;
        cursor: pointer;
        color: #343434;
    }
}

/* ========================================
   Mobile Search Bar
   ======================================== */
.header-mobile-search {
    display: none;
}

/* ========================================
   RESPONSIVE — Mobile (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    .header-top-bar {
        display: none;
    }
    .header-container {
        padding: 0 10px;
    }
    .header-main {
        padding: 0.75rem 0;
        padding: 0;
    }
    .header-logo {
        max-width: 180px;
    }
    .header-logo p {
        display: none;
    }
    .search-wrapper {
        display: none;
    }
    .header-mobile-search {
        display: block;
        background: #f3f4f6;
        padding: 0.5rem 0;
        border-bottom: 1px solid #e5e7eb;
    }
    .mobile-search-form {
        display: flex;
        align-items: center;
        gap: 0;
        background: #fff;
        border-radius: 0.5rem;
        border: 1px solid #d1d5db;
        overflow: hidden;
        width: 100%;
        position: relative;
    }
    .mobile-search-form .search-input {
        flex: 1;
        min-width: 0;
        border: none !important;
        border-radius: 0 !important;
        padding: 0.6rem 0.75rem !important;
        padding-right: 0.75rem !important;
        font-size: 0.875rem;
        outline: none;
        background: transparent;
        box-shadow: none !important;
    }
    .mobile-search-form .search-btn {
        background: #4c5ca4;
        border: none;
        padding: 0.6rem 0.75rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        position: absolute;
        top: 20px;
        right: 0px;
        height: 40px;
    }
    .mobile-search-form .search-btn .search-icon {
        stroke: #fff;
        display: block;
    }
    .mobile-search-form .search-btn .feather-spinner {
        stroke: #fff;
    }
    .header-actions {
        gap: 0.5rem;
    }
    .user-profile > div:last-child {
        display: none;
    }
    .cart-trigger {
        width: 40px;
        height: 40px;
    }
    .user-avatar {
        width: 36px;
        height: 36px;
    }
}

/* ========================================
   Mobile Menu Panel
   ======================================== */
.mobile-menu-overlay {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 997;
    overflow-y: auto;
    padding: 1.5rem;
    padding-top: 125px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
    display: block;
    transform: translateY(0);
}

.mobile-menu-search {
    margin-bottom: 1.5rem;
    position: relative;
    display: none;
}
.mobile-menu-search .search-input {
    width: 100%;
    box-sizing: border-box;
}

.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.mobile-menu-buttons .btn-action {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.mobile-menu-links {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}
.mobile-menu-link {
    display: block;
    padding: 0.75rem 0;
    color: #343434;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.2s;
}
.mobile-menu-link:hover {
    color: #4c5ca4;
}

.mobile-menu-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

