/*
==================================================
02-header.css
Top header, logo, navigation, search bar, cart icon
==================================================
*/

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 250, 243, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(227, 212, 191, 0.85);
    transition:
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.site-header.scrolled {
    box-shadow: 0 10px 25px rgba(67, 45, 25, 0.08);
    background-color: rgba(255, 250, 243, 0.98);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 2em !important;
}

.logo,
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    flex-shrink: 0;
}

.logo-img {
    height: 100%;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #74685f;
    font-weight: 700;
    transition: background-color 0.25s ease;
}

.nav-link:hover {
    background-color: #f7efe3;
    color: #5b351d;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.75em;
}

.header-search {
    width: 310px;
    display: flex;
    border: 1px solid #e3d4bf;
    background-color: #ffffff;
    border-radius: 5vw;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(67, 45, 25, 0.05);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: none;
    padding: 12px 14px;
    outline: none;
    background-color: transparent;
}

.header-search button {
    border: none;
    background-color: #5b351d;
    color: #fffaf3;
    padding: 0 16px;
    font-weight: 700;
}

.cart-link {
    position: relative;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background-color: #f7efe3;
    border: 1px solid #e3d4bf;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(67, 45, 25, 0.08);
}

.cart-icon {
    font-size: 20px;
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background-color: #c99a3d;
    color: #24211f;
    font-size: 12px;
    font-weight: 900;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid #e3d4bf;
    border-radius: 12px;
    background-color: #ffffff;
}

.mobile-menu-button span {
    display: block;
    width: 21px;
    height: 2px;
    background-color: #5b351d;
    margin: 5px auto;
    border-radius: 99px;
}
