
/* Header */

:root {
    --primary-color: #003049;
    --secondary-color: #FCA311;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
}
/* Top Bar */
.top-bar {
    background: var(--text-color);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.actions {
    display: flex;
    gap: 20px;
}

.actions a {
    text-decoration: none;
    color: var(--light-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.actions a .icon {
    width: 20px;
    height: 20px;
}

/* Main Navigation */
.main-nav {
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo img {
    height: 40px;
}

.search-container {
    position: relative;
    max-width: 600px;
    display: inline-block;
}

.search-bar {
    padding: 8px;
    width: 400px;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    max-width: 600px;
}

.clear {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem; /* Adjust size of the icon */
    color:var(--text-color); /* Icon color */
}

.clear:hover {
    color: var(--secondary-color); /* Red on hover */
}

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-actions a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-actions a .icon {
    width: 20px;
    height: 20px;
}

.nav-actions a.active {
    color: var(--secondary-color);
}

.cart-count {
    background: var(--secondary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 12px;
}

/* Sub Navigation */
.sub-nav {
    background: var(--primary-color);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-nav .links a {
    color: white;
    text-decoration: none;
    margin-right: 30px;
}

.sub-nav .links a.active {
    color: var(--secondary-color); 
    font-weight: 500;
}

.return-policy {
    color: white;
}

/* Breadcrumb */
/* .breadcrumb {
    padding: 20px 5%;
}

.breadcrumb a {
    color: var(--light-gray);
    text-decoration: none;
} */
.signout {
    color: #e74c3c;
}
.signout:hover {
    color: #c0392b;
}

.user-menu {
    position: relative;
    display: inline-block;
}
.dropdown {
    display: none;
    position: absolute;
    background: #333;
    min-width: 130px;
    z-index: 1;
}
.user-menu:hover .dropdown {
    display: block;
}
.dropdown a {
    color: white;
    padding: 10px;
    display: block;
    text-decoration: none;
}

.dropdown .name{
    margin-left: 6px;
}

.dropdown img{
    padding-right: 2px;
}
.dropdown a:hover {
    background: #444;
}

/* Responsive Design (Header Section) */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .actions {
        justify-content: center;
    }

    .main-nav {
        flex-direction: column;
    }

    .search-container {
        width: 100%;
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
    }

    .sub-nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .sub-nav .links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .sub-nav .links a {
        margin: 0;
    }

    .nav-actions img.icon {
        display: none;
    }
    
    .nav-actions a {
        font-size: 14px;
    }
}