.main-header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Removed d-flex from top-navbar container, now using row/col */
.top-navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

/* --- Logo Area --- */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    /* Ensure logo stays compact */
    padding: 0;
    margin: 0;
}

/* Placeholder for the BBD Logo image */
.logo-placeholder {
    width: 40px;
    height: 40px;
    background-color: #343a40;
    border-radius: 5px;
    margin-right: 5px;
    /* Placeholder to simulate the BBD text mark */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext x='50' y='70' font-family='Arial, sans-serif' font-size='60' font-weight='bold' fill='white' text-anchor='middle'%3EBBD%3C/text%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext x='50' y='70' font-family='Arial, sans-serif' font-size='60' font-weight='bold' fill='white' text-anchor='middle'%3EBBD%3C/text%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.logo-text {
    font-size: 0.8rem;
    color: #333;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

/* --- Search Bar Input Styles --- */
.custom-search-input .input-group-text,
.custom-search-input .form-control {
    border-color: #ced4da;
    height: 40px;
    box-shadow: none !important;
}

.custom-search-input .input-group-text {
    background-color: #f8f9fa;
    color: #6c757d;
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
}

.custom-search-input .form-control {
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
    padding: 0.375rem 0.75rem;
}

.custom-search-input .form-control::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* --- Account/Cart Links (Desktop) --- */
.nav-icon-link {
    color: #343a40;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-icon-link:hover {
    color: #198754; /* Green hover color */
}

.nav-icon-link i {
    font-size: 1.1rem;
}
.nav-icon-link span {
    /* Ensures text is visible by default */
    display: inline;
}

/* Style the dropdown toggle to remove default button styling */
.dropdown-toggle.nav-icon-link {
    padding: 0 !important;
}

/* Custom Dropdown Styling for Green Theme */
.custom-dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.custom-dropdown-menu .dropdown-item {
    color: #343a40;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

/* Green hover state for dropdown items */
.custom-dropdown-menu .dropdown-item:hover,
.custom-dropdown-menu .dropdown-item:focus,
.custom-dropdown-menu .dropdown-item.active {
    background-color: #198754; /* Green */
    color: #ffffff; /* White text */
}

/* Ensure the dropdown toggle arrow is visible but subtle */
.dropdown-toggle::after {
    vertical-align: 0.1em;
}


/* --- Sell With Us Button (Green Gradient) --- */
.custom-sell-btn {
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background-image: linear-gradient(to right, #198754 0%, #28a745 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    text-decoration: none; /* Important for accessibility and button styling */
}

.custom-sell-btn:hover {
    background-image: linear-gradient(to right, #157347 0%, #218838 100%);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.custom-sell-btn i {
    margin-right: 8px;
}

/* --- Bottom Navigation (Desktop Only) --- */
.bottom-navbar {
    background-color: #ffffff;
    padding: 0.75rem 0;
}

/* Hide the bottom navigation bar on screens smaller than 992px (lg) */
@media (max-width: 991.98px) {
    .bottom-navbar {
        display: none !important;
    }
}

.custom-nav-link {
    color: #343a40 !important;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: color 0.2s;
    position: relative;
    text-decoration: none;
}

.custom-nav-link:hover {
    color: #198754 !important;
}

.custom-nav-link.active {
    color: #198754 !important;
}

.custom-nav-link.active::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 0;
    height: 3px;
    background-color: #198754;
    border-radius: 2px;
}

/* --- Offcanvas Mobile Links --- */
.custom-nav-link-mobile {
    padding: 0.75rem 1rem !important;
    transition: background-color 0.2s;
    border-radius: 0.25rem;
    color: #343a40 !important;
    font-weight: 500;
}

.custom-nav-link-mobile:hover,
.custom-nav-link-mobile.active {
    color: #ffffff !important;
    background-color: #198754;
}

/* --- Mobile Layout Adjustments (Using Flexbox on Small Screens) --- */
@media (max-width: 991.98px) {

    /* Cart link only shows icon on small screens */
    .nav-icon-link span {
        display: none;
    }

    .nav-icon-link {
        padding: 0.5rem 0.75rem !important; /* Increase touch target size */
    }
    .nav-icon-link i {
        font-size: 1.2rem; /* Ensure icon is visible */
        margin-right: 0 !important;
    }

    /* Adjust spacing for Sell button and Menu Toggle */
    .custom-sell-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
        margin-right: 0.75rem; /* Space before menu toggle */
    }

    .custom-sell-btn i {
        margin-right: 4px; /* Reduce spacing in button */
    }
}

.my_cart_quantity {
background-color: #198754!important;
color: #ffffff!important;
}

.oi-search {
color: #198754!important;
}

.search-query:hover {
border-color: #198754!important;
}