/* ===== HEADER STYLES ===== */

/* Header Container */
.site-header {
    background: rgba(250, 247, 242, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    transition: all 0.3s var(--transition);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    max-width: 1360px;
    margin: 0 auto;
}

/* Logo Styles */
.site-header .logo {
    font-family: var(--ff-display);
    font-size: 1.9rem;
    font-weight: 500;
    color: var(--espresso);
    text-decoration: none;
    letter-spacing: 0.02em;
    line-height: 1;
}

.site-header .logo em {
    font-style: italic;
    color: var(--gold);
    font-family: var(--ff-italic);
}

.site-header .logo span {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--stone);
    font-family: var(--ff-body);
    margin-top: 3px;
}

/* Navigation Links */
.site-header .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.site-header .nav-links a {
    font-family: var(--ff-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--charcoal);
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.25s;
}

.site-header .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.35s var(--transition);
}

.site-header .nav-links a:hover {
    color: var(--gold);
}

.site-header .nav-links a:hover::after {
    width: 100%;
}

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

.site-header .header-actions a {
    color: var(--charcoal);
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    transition: color 0.25s;
}

.site-header .header-actions a:hover {
    color: var(--gold);
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -7px; right: -8px;
    width: 17px; height: 17px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--espresso);
    font-size: 0.6rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ff-body);
}

/* Search Bar */
.search-bar-header {
    display: flex;
    align-items: center;
    background: var(--cream);
    border: 1px solid var(--parchment);
    border-radius: 100px;
    padding: 8px 18px;
    gap: 10px;
    transition: all 0.3s;
}

.search-bar-header:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.search-bar-header input {
    border: none; background: transparent;
    font-family: var(--ff-body); font-size: 0.8rem;
    color: var(--espresso); width: 180px; outline: none;
}

.search-bar-header button {
    background: none; border: none;
    color: var(--stone); cursor: pointer;
    font-size: 0.85rem;
}

/* Search Autocomplete */
.search-autocomplete {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory);
    border: 1px solid var(--parchment);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .nav-links {
        display: none;
    }
    
    .search-bar-header input {
        width: 120px;
    }
    
    .header-inner {
        padding: 18px 20px;
    }
}

@media (max-width: 576px) {
    .site-header .logo {
        font-size: 1.5rem;
    }
    
    .search-bar-header {
        display: none;
    }
    
    .header-inner {
        padding: 15px 15px;
    }
}
