/* =========================================
   PRIMARY HEADER
   ========================================= */

.primary-header {
    background-color: #253141;
    color: #fff;
    box-shadow: 0 1px 2px rgba(237, 198, 198, 0.1);
}

.primary-header .container {
    /* max-width: 1280px; */
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
    width: auto;
    padding: 0 1rem;
}

.logo-wrapper .logo-img {
    /* height: 80px; */
    height: 200px;
    width: auto;
    object-fit: contain;
}

/* =========================================
   ACTIONS (Cart + Account)
   ========================================= */

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

.logo-wrapper {
    width: 400px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    border-radius: 8px;
}

.logo-wrapper img {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    display: block;
}

.search-container {
    min-width: 280px;
}

/* Cart */
.cart-link {
    position: relative;
    font-size: 1.25rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background-color: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-links-desktop {
    display: flex;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    align-items: center;
    gap: 15px;
}

/* Account Dropdown */
.account-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

.account-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #111827;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    min-width: 200px;
    z-index: 1000;
    padding: 8px 0;
}

.account-dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #e5e7eb;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(107, 114, 128, 0.5);
    color: #fff;
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(156, 163, 175, 0.4);
    margin: 6px 0;
}

/* =========================================
   SECONDARY NAV (Horizontal Dropdowns)
   ========================================= */

.secondary-nav {
    padding: 5px 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    /* horizontal spacing between dropdowns */
    margin: 0;
    padding: 0;
    list-style: none;
    /* removes default bullets */
}

.secondary-nav .nav-links li {
    display: inline-block;
}

.secondary-nav .nav-links a {
    display: block;
    padding: 8px 14px;

    text-decoration: none;
    color: #ffffff;

    font-weight: 500;
    font-size: 0.95rem;

    transition: color 0.2s ease, background-color 0.2s ease;
}

/*.secondary-nav .nav-links a:hover {
    color: #f97316;
    /* orange *
}*/

.secondary-nav .nav-links a:hover {
    color: #f97316;
    background-color: rgba(249, 115, 22, 0.1);
    border-radius: 6px;
}


/* =========================================
   MOBILE BEHAVIOR
   ========================================= */

.mobile-menu-button {
    display: none;
    font-size: 1.25rem;
}

@media (max-width: 767px) {

    .mobile-menu-button {
        display: block;
    }

    header.primary-header.mobile-active .account-dropdown-menu {
        display: flex;
    }

}