/* ===== TOP INFO BAR ===== */

.top-info-bar {
    background-color: #4a4a4a;
    padding: 6px 0;
    font-family: Arial, sans-serif;
}

/* Inner container */
.top-info-content {
    max-width: 98%;
    margin: auto;
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

/* Text & Links */
.top-info-content span,
.top-info-content a {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-header {
    background-color: #fff;
    color: #000;
    font-family: Arial, sans-serif;
}

/* Hover effect */
.top-info-content a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .top-info-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


a {
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
    /* or change color */
    color: #e47911;
    /* example hover color */
}







/* =========================
   Header Base Styles
========================= */
.header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: #131921;
    color: #fff;
    height: 80px;
    padding: 0 15px;
    font-family: Arial, sans-serif;
}

.header-bar a:hover {
    text-decoration: underline;
}

/* Logo */
.logo img {
    height: 60px;
    width: auto;
    margin-top: px;
}



/* Search Bar */
.search-bar {
    flex: 1 1 auto;
    /* allows it to grow */
    display: flex;
    align-items: center;
    max-width: 500px;
    min-width: 200px;
    margin-left: auto;
    /* push it to the right */
}

.search-bar form {
    display: flex;
    width: 100%;
}

/* Category Dropdown */
.category-dropdown {
    flex: 0 0 auto;
    position: relative;
    background-color: #f3f3f3;
    border: 1px solid #cdcdcd;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.category-toggle {
    background: none;
    border: none;
    padding: 8px 12px;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-toggle:hover {
    background-color: #e6e6e6;
}

.category-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.category-title {
    padding: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-weight: bold;
}

.category-items a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.category-items a:hover {
    background-color: #f5f5f5;
    color: #e47911;
}

/* Search Input & Button */
.search-bar input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cdcdcd;
    border-left: none;
    border-right: none;
    font-size: 14px;
    color: #333;
}

.search-bar button[type="submit"] {
    background-color: #febd69;
    border: 1px solid #cdcdcd;
    border-left: none;
    border-radius: 0 4px 4px 0;
    padding: 8px 16px;
    cursor: pointer;
}

.search-bar button i {
    color: #333;
    font-size: 18px;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.header-icons>div {
    display: flex;
    flex-direction: column;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
}

.header-icons div div:first-child {
    font-size: 12px;
    color: #ccc;
}

.header-icons div div:last-child {
    font-size: 14px;
    font-weight: bold;
}

.header-icons a {
    color: #fff;
    text-decoration: none;
}

/* Cart */
.cart {
    position: relative;
}

.cart .fa-shopping-cart {
    font-size: 28px;
}

.cart .cart-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f08804;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Logout */
.logout a {
    color: #febd69;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid #febd69;
    border-radius: 3px;
}

/* =========================
   Responsive Styles
========================= */
@media (max-width: 1200px) {
    .search-bar {
        max-width: 500px;
    }

    .header-icons {
        gap: 12px;
    }
}

@media (max-width: 991px) {
    .header-bar {
        height: auto;
        padding: 10px;
        flex-wrap: wrap;
    }

    .search-bar {
        width: 100%;
        max-width: 100%;
        order: 2;
        /* margin: 10px 0; */

        flex: 1 1 100%;
        margin: 10px 0;

    }

    .header-icons {
        width: 100%;
        order: 3;
        justify-content: space-around;
        margin-left: 0;
    }

    .logo {
        order: 1;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 767px) {
    .search-bar input[type="text"] {
        font-size: 13px;
        padding: 6px 10px;
    }

    .search-bar button {
        padding: 6px 12px;
    }

    .category-menu {
        width: 180px;
        left: 0;
    }
}

@media (max-width: 480px) {
    .search-bar input[type="text"] {
        font-size: 12px;
        padding: 5px 8px;
    }

    .search-bar button {
        padding: 5px 10px;
    }

    .category-menu {
        width: 160px;
        left: 0;
    }
}

@media (max-width: 360px) {
    .header-icons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .header-icons>div {
        flex: 0 0 45%;
        margin-bottom: 5px;
    }

    .category-toggle span {
        display: none;
    }

    .category-toggle::after {
        content: "☰";
        font-size: 14px;
    }
}

































/* =========================
   Category Menu Base Styles
========================= */

/* Menu Base Styles */


.nav-category {
    position: relative;
    padding: 5px 6px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.nav-category:hover {
    border: 1px solid white;
}

.nav-category>a {
    color: #fff;
    text-decoration: none;
    font-family: "Amazon Ember", Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-category>a i {
    font-size: 12px;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.nav-category:hover>a i {
    transform: rotate(180deg);
}

.dropdown {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100vw;
    max-height: 450px;
    overflow-y: auto;
    background: white;
    padding: 10px 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    z-index: 1001;
    box-sizing: border-box;
    border-top: 3px solid #ff9900;
}

.dropdown-section {
    margin-bottom: 10px;
}

.dropdown-section h3 {
    color: #111;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.dropdown a {
    color: #555;
    text-decoration: none;
    padding: 6px 0;
    display: block;
    font-size: 14px;
    transition: color 0.2s ease;
}

.dropdown a:hover {
    color: #ff9900;
    text-decoration: underline;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 15px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 70vh;
    overflow-y: auto;
}

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

.mobile-nav-category {
    border-bottom: 1px solid #eee;
}

.mobile-nav-category>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    background: white;
}

.mobile-nav-category>a i {
    transition: transform 0.3s ease;
}

.mobile-nav-category.active>a i {
    transform: rotate(180deg);
}

.mobile-dropdown {
    display: none;
    background: #f9f9f9;
    padding: 12px 20px 12px 35px;
}

.mobile-dropdown.active {
    display: block;
}

.mobile-dropdown a {
    display: block;
    padding: 10px 0;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.mobile-dropdown a:last-child {
    border-bottom: none;
}

.mobile-dropdown a:hover {
    color: #ff9900;
}






@media (max-width: 1200px) {
    .dropdown {
        grid-template-columns: repeat(5, 1fr);
        padding: 20px 30px;
    }

    .nav-category {
        padding: 8px 12px;
    }
}

@media (max-width: 991px) {
    .mobile-menu-btn {
        display: flex;
        padding-left: 20px;
    }

    nav.desktop-nav {
        display: none !important;
    }

    .mobile-menu {
        max-height: 60vh;
    }
}

@media (max-width: 768px) {
    .dropdown {
        grid-template-columns: repeat(4, 1fr);
        padding: 15px 20px;
        max-height: 400px;
    }

    .mobile-menu {
        max-height: 50vh;
    }

    .mobile-nav-category>a {
        padding: 12px 15px;
        font-size: 13px;
    }

    .mobile-dropdown {
        padding: 10px 15px 10px 30px;
    }
}

@media (max-width: 576px) {
    .dropdown {
        grid-template-columns: repeat(3, 1fr);
        padding: 12px 15px;
    }

    .dropdown-section h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .dropdown a {
        font-size: 13px;
        padding: 5px 0;
    }

    .mobile-menu {
        max-height: 60vh;
    }

    .mobile-dropdown a {
        font-size: 12px;
        padding: 8px 0;
    }
}

@media (max-width: 480px) {
    .dropdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .mobile-menu-btn span {
        display: none;
    }

    .mobile-menu-btn {
        padding: 10px;
    }

    .mobile-nav-category>a {
        padding: 10px 12px;
    }

    .mobile-dropdown {
        padding: 8px 12px 8px 25px;
    }
}

