.header_3_container {
    background: #fff;
    box-shadow: 0 0px 0px 1px rgb(0 0 0 / 10%);
}

.sticky-header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
}

/* Header 3 Grid Layout */
.header_3_grid_container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
}

/* Menu Button Section (Left) */
.header_3_menu_section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header_3_menu_button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.header_3_menu_button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Logo Section (Center) */
.header_3_logo_section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header_3_logo_section a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header_3_logo_section img {
    width: 170px;
    min-height: 55px;
    object-fit: contain;
}

/* Action Menu Section (Right) */
.header_3_actions_section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.header_3_action_item {
    list-style: none;
    display: flex;
    align-items: center;
}

.header_3_icons {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    position: relative;
}

.header_3_icons:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Cart Count Badge */
.header_cart_count_3 {
    position: absolute;
    top: -5px;
    right: -5px;
    background:var(--primary, #007bff);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    padding: 2px 6px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.password-toggle-container {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    width: 24px;
    height: 24px;
}


/* User Modal Styles */
.header_3_user_model {
    position: absolute;
    top: 100%;
    right: 0;
    visibility: hidden;
    opacity: 0;
    width: 400px;
    max-height: 500px;
    transform: translateY(20px);
    background: var(--white, #fff);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    border-radius: 16px;
    overflow-y: auto;
    z-index: 2000 !important;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.header_3_user_model.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Cart Modal Styles */
.header_3_cart_model {
    position: absolute;
    right: 0;
    top: 80px;
    visibility: hidden;
    opacity: 0;
    width: 500px;
    max-height: 500px;
    transform: translateY(20px);
    background: var(--white, #fff);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
    z-index: 2000 !important;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.header_3_cart_model.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header_3_grid_container {
        display: flex;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .header_3_logo_section {
        width: 100%;
        justify-content: start;
    }

    .header_3_logo_section img {
        width: 144px;
        height: auto;
        margin-right: auto;
    }

    .header_3_actions_section {
        gap: 0.25rem;
    }

    .header_3_icons {
        padding: 0.25rem;
    }

    .header_3_user_model,
    .header_3_cart_model {
        width: calc(100vw - 20px);
        max-width:300px;
        right: 10px;
        left: auto;
        transform: translateY(20px);
        max-height: 70vh;
    }

    .header_3_user_model.visible,
    .header_3_cart_model.visible {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .header_3_grid_container {
        padding: 0.25rem;
        min-height: 60px;
    }

    /* .header_3_logo_section img {
        width: 40px;
        height: auto;
    } */

    .header_3_icons img {
        width: 14px !important;
        height: 14px !important;
    }
}

/* Hide some actions on smaller screens */
@media (max-width: 1200px) {
    .header_3_action_item.d-none.d-xl-block {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .header_3_action_item.d-none.d-lg-block {
        display: none !important;
    }
}

/* Mobile menu visibility */
.tf-lg-hidden {
    display: none;
}

@media (max-width: 992px) {
    .tf-lg-hidden {
        display: flex;
    }

    .header_3_action_item.d-none.d-lg-block {
        display: none !important;
    }
}
