/* ==================================
   HEADER - FULL RESPONSIVE
   ================================== */

.murad-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Bar */
.header-top {
    background: var(--murad-dark);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-top span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-top i {
    color: var(--murad-primary);
}

/* Main Header */
.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Logo */
.logo {
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--murad-primary);
}

.logo i {
    font-size: 32px;
}

/* Search Bar */
.search-bar {
    flex: 1;
    position: relative;
    max-width: 600px;
}

.search-bar input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--murad-primary);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.search-bar button {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--murad-primary);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.search-bar button:hover {
    background: var(--murad-accent);
    transform: translateY(-50%) scale(1.1);
}

/* Search Results Autocomplete */
#search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

#search-results.show {
    display: block;
}

.autocomplete-dropdown {
    padding: 10px 0;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f8f9fa;
}

.autocomplete-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.autocomplete-item div {
    flex: 1;
}

.autocomplete-item h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: var(--murad-dark);
}

.autocomplete-item span {
    color: var(--murad-primary);
    font-weight: 600;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-btn {
    position: relative;
    background: linear-gradient(135deg, var(--murad-primary), var(--murad-accent));
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.cart-btn .count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--murad-danger);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--murad-dark);
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Navigation */
.header-nav {
    background: var(--murad-secondary);
    padding: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--murad-primary);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .search-bar {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .header-main .container {
        gap: 15px;
    }
    
    .search-bar {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .header-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        overflow-y: auto;
    }
    
    .header-nav.show {
        display: block;
        animation: slideInRight 0.3s ease-out;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu li a {
        color: var(--murad-dark);
        border-bottom: 1px solid #f5f5f5;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        display: none;
    }
    
    .mobile-menu-overlay.show {
        display: block;
        animation: fadeIn 0.3s ease;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}
