/* ========================================
   iPALENGKE - HEADER COMPONENT STYLES
   Extracted from inline <style> in header.php
   ======================================== */

/* Hide mobile header top on large screens */
@media (min-width: 992px) {
    .axil-header-top {
        display: none !important;
    }
}

/* Hide main menu on mobile */
@media (max-width: 991px) {
    .axil-mainmenu {
        display: none !important;
    }

    /* Hide desktop Shop by Category on mobile */
    .header-nav-department {
        display: none !important;
    }
}

/* Desktop header layout fix */
.header-navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.header-brand {
    flex-shrink: 0;
}

.header-nav-department {
    flex-shrink: 0;
    margin-left: 20px;
}

/* Shop by Category clickable area improvements */
.header-nav-department .header-department-text {
    position: relative;
    z-index: 10;
}

.header-nav-department .header-department-text:hover {
    background: #f8f9fa !important;
    color: #ee4d2d !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-nav-department .header-department-text:hover .icon,
.header-nav-department .header-department-text:hover .text {
    color: #ee4d2d !important;
}

.header-action {
    flex-shrink: 0;
    margin-left: auto;
}

.header-action .action-list {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mobile search modal */
.mobile-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.mobile-search-modal.show {
    display: flex;
}

.search-modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    animation: slideDown 0.3s ease;
}

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

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-modal-close {
    background: #ee4d2d;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.search-modal-form input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

.search-modal-form input:focus {
    border-color: #ee4d2d;
}

/* Search dropdown for desktop */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    margin-top: 5px;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-dropdown.show {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:hover {
    background: linear-gradient(135deg, #ee4d2d 0%, #d63031 100%);
    color: white;
}

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

.search-result-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: #f8f9fa;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    color: inherit;
}

.search-result-price {
    font-size: 12px;
    opacity: 0.8;
    margin: 2px 0 0 0;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Account dropdown */
.my-account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 0;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
}

.my-account-dropdown.show {
    display: block;
}

.my-account-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.my-account-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.15s;
}

.my-account-dropdown li a:hover {
    background: #f0f4ff;
    color: #4f46e5;
}

.my-account-dropdown li a i {
    width: 16px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.my-account-dropdown li a:hover i {
    color: #4f46e5;
}

.my-account-dropdown .dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 12px;
}

.my-account-dropdown .dropdown-label {
    padding: 8px 16px 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.my-account-dropdown li a.logout-link {
    color: #ef4444;
}
.my-account-dropdown li a.logout-link i {
    color: #ef4444;
}
.my-account-dropdown li a.logout-link:hover {
    background: #fef2f2;
    color: #dc2626;
}
