/* =================================================================== */
/* == STYLES FOR NEW MOBILE HEADER & SEARCH OVERLAY                 == */
/* =================================================================== */

/* --- Base Mobile Header Layout --- */
.mobile-header-wrapper .container-fluid {
    height: 60px; /* Standard header height */
}

.mobile-header-left,
.mobile-header-right {
    flex: 0 0 60px; /* Give the side elements a fixed width */
    height: 100%;
}

.mobile-header-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.mobile-header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Centered Logo (for both PWA and Standard) */
.mobile-logo-pwa-centered,
.mobile-logo-centered {
    flex-grow: 1;
    text-align: center;
}

.mobile-logo-pwa-centered img,
.mobile-logo-centered img {
    max-height: 32px; /* A nice, prominent logo size */
    width: auto;
}

/* Reusable Icon Button Style */
.mobile-header-icon-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 22px; /* Slightly larger for better touch target */
    padding: 10px;
    line-height: 1;
    cursor: pointer;
}


/* --- Mobile Search Overlay Styles --- */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Solid white background */
    z-index: 1050; /* Higher than header */
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.mobile-search-overlay.active {
    display: block;
    opacity: 1;
}

.search-overlay-content {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    height: 60px; /* Match header height */
}

.search-overlay-content form {
    position: relative;
    flex-grow: 1;
}

.search-icon-input {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.search-overlay-input {
    width: 100%;
    height: 44px;
    border: none;
    background-color: #f0f2f5;
    border-radius: 22px;
    padding: 0 20px 0 45px;
    font-size: 1rem;
}

.search-overlay-input:focus {
    outline: none;
    box-shadow: none;
}

.close-search-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #555;
    padding: 0 0 0 15px;
    cursor: pointer;
    line-height: 1;
}


/* =================================================================== */
/* == MOBILE CART ICON ENHANCEMENTS                                == */
/* =================================================================== */

.mobile-header-right .cart-icon {
    height: 100%;
    display: flex;
    align-items: center;
}

.mobile-header-right .cart-icon > a {
    display: flex;
    flex-direction: row; /* Arranges items side-by-side */
    align-items: center;
    text-decoration: none;
    color: #343a40; /* A standard, readable dark text color */
    gap: 6px; /* Creates a nice space between the icon and text */
    padding: 0 10px;
    position: relative;
}

/* Style the icon itself */
.mobile-header-right .cart-icon .icon {
    font-size: 24px;
    line-height: 1;
    color: #343a40; /* THE CORRECTED COLOR */
}

/* Style the text label */
.mobile-header-right .cart-icon .text {
    font-size: 1rem;
    font-weight: 500;
}

/* Ensure the cart count badge is positioned correctly */
.mobile-header-right .cart-icon .badge {
    position: absolute;
    top: -4px;
    right: 0px;
}