/**
 * Header Standard Styles
 * Fluid, Responsive & Component-based
 */
:root {
    --h-bg: #ffffff;
    --h-border: #dfdfdf;
    --h-text: #333333;
    --h-gold: #a88734;
    --h-gold-grad: linear-gradient(to bottom, #f7dfa5 0%, #f0c14b 100%);
    --h-height: 80px;
}

/* Base resets for header */
.ikx-header-standard * { 
    box-sizing: border-box; 
    font-family: 'Inter', 'Poppins', sans-serif;
}

.ikx-header-standard {
    background: var(--h-bg);
    width: 100%;
    position: relative;
    z-index: 10000;
}

/* TOP BARS */
.h-promo { background: var(--h-gold-grad); border-bottom: 1px solid var(--h-gold); padding: 8px 40px; min-height: 50px; display: flex; align-items: center; justify-content: center; }
.h-utility { background: #f5f5f5; border-bottom: 1px solid #dfdfdf; min-height: 35px; display: flex; align-items: center; padding: 0 40px; }

/* MAIN HEADER GRID */
.h-main {
    height: var(--h-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    gap: 30px;
    border-bottom: 1px solid var(--h-border);
}

.h-left { display: flex; align-items: center; gap: 30px; flex-shrink: 0; }
.h-center { flex: 1; max-width: 800px; min-width: 0; }
.h-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }

.h-logo img { max-height: 60px; width: auto; }

/* SEARCH COMPONENT */
.h-search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    height: 46px;
    background: #ffffff;
    border: 1px solid #bbb;
    border-radius: 8px;
    padding: 0 4px 0 16px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.h-search-bar:focus-within {
    border-color: var(--h-gold);
    box-shadow: 0 4px 12px rgba(168, 135, 52, 0.15);
}
.h-search-input { 
    flex: 1; 
    border: 0; 
    background: transparent; 
    outline: none; 
    font-size: 15px; 
    color: var(--h-text); 
    height: 100%;
}
.h-search-loading {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(168, 135, 52, 0.2);
    border-top-color: var(--h-gold);
    border-radius: 50%;
    animation: h-spin 0.8s linear infinite;
    margin-right: 10px;
}
@keyframes h-spin { to { transform: rotate(360deg); } }

.h-search-btn {
    background: var(--h-gold-grad);
    border: 1px solid var(--h-gold);
    color: #111;
    width: 54px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}
.h-search-btn:hover {
    filter: brightness(1.05);
}
.h-search-btn i { font-size: 20px; }

/* LIVE SEARCH DROPDOWN */
.live-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 9999;
    max-height: 500px;
    overflow-y: auto;
    display: none;
    border-radius: 0 0 12px 12px;
    margin-top: 5px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* NAVIGATION */
.h-nav { display: flex; gap: 30px; align-items: center; }
.h-nav-link { text-decoration: none; color: var(--h-text); font-weight: 700; font-size: 14px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }

/* DARK MODE OVERRIDES */
body.dark-mode .ikx-header-standard { --h-bg: #1e1e1e; --h-text: #e0e0e0; --h-border: #333333; }
body.dark-mode .h-utility { background: #121212; border-color: #333; }
body.dark-mode .h-search-bar { background: #2c2c2c; border-color: #444; }
body.dark-mode .h-search-input { color: #fff; }

/* MOBILE */
@media (max-width: 1200px) {
    .h-nav { display: none; }
    .h-center { display: none; }
    .h-main { padding: 0 20px; }
}
