
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
    color: #f7efef;
}


.brand-bar {
    width: 100%;
    background-color: rgb(33, 45, 79);
    padding: 10px 0;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}


.brand-box {
    padding: 4px 10px;
    border-radius: 5px;
    background-color: #358442;
}

.brand-title {
    font-size: 18px;
    font-weight: 800;
    color: white;
    letter-spacing: 1.2px;
    font-family: "Arial Black", sans-serif;
}


.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    background-color: rgb(33, 45, 79);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid #eee;
}

.nav-left img {
    height: 60px;
    padding: 5px 0;
}

.nav-center ul {
    list-style: none;
    display: flex;
    gap: 80px;
}

.nav-center a {
    text-decoration: none;
    color: #f7efef;
    font-weight: 600;
}

.nav-center a:hover {
    color: #8e4a3a;
}



.nav-right {
    display: flex;
    gap: 30px; 
    align-items: center;
    margin-right: 20px;
}


.icon-link {
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}


.icon-link img {
    width: 30px;
    height: auto;
    object-fit: contain;
    transition: 0.2s ease;
}


.icon-link img:hover {
    opacity: 0.7;
    transform: scale(1.05);
}


.icon-link span {
    margin-top: -1px;
    font-size: 12px;
    color: white;  
    opacity: 0.85;
    letter-spacing: 0.3px;
    user-select: none;
    transition: 0.2s ease;
}


.icon-link:hover span {
    opacity: 1;
    font-weight: 600;
}





.cart-link {
    position: relative;
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background-color: #e01e26; 
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    transition: transform 0.15s ease;
}

.cart-badge-bump {
    transform: scale(1.2);
}


.search-overlay {
    position: fixed;
    top: -100px;         
    left: 0;
    width: 100%;
    background: rgba(10, 20, 60, 0.9); 
    padding: 20px 0;
    display: flex;
    justify-content: center;
    transition: 0.35s ease;
    z-index: 9999;      
}


.search-overlay.active {
    top: 0;             
}


.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    padding: 8px 18px;
    width: 60%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


.search-box input {
    border: none;
    outline: none;
    font-size: 16px;
    flex: 1;
    padding: 8px 14px;
    border-radius: 30px;
}


.close-search {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    padding: 0 8px;
    transition: 0.2s ease;
}

.close-search:hover {
    color: #000;
    transform: scale(1.1);
}



.site-footer {
    margin-top: 230px;
    background-color: rgb(29, 40, 65);
    color: #f7efef;
    text-align: center;
    padding: 16px 8px;
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
