* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f4f4f4;
    padding-top: 110px;
    /* Offset for fixed navbar */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #ffffff;
    color: rgb(0, 0, 0);
    padding: 15px 0 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: top 0.3s;
    box-shadow: 0px 3px #888888;
}

.container {
    max-width: 2100px;
    margin: auto;
    padding: 0px 20px 20px 0px;
    display: flex;
    justify-content: space-between;
    position: relative;
    align-items: center;
}

.logo {
    margin-left: 10px;
}

.profile1 {
    display: flex;
    gap: 30px;
}

.profile2 {
    display: block;
    margin-top: 5px;
}

/* Profile Icon */

.header-2 {
    border-top: 3px solid #ddd;
    display: flex;
    justify-content: space-evenly;
    padding-top: 10px;
    /* padding-right: 150px; */
    align-items: center;
    max-height: 40px;
}


.header-2 a {
    padding: 10px;
    text-decoration: none;
    color: black;
    position: relative;
    transition: color 0.3s ease;
}

.header-2 a::after {
    content: '';
    position: absolute;
    left: 10px;
    bottom: 5px;
    width: 0;
    height: 2px;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.header-2 a:hover {
    color: #0d6efd;
}

.header-2 a:hover::after {
    width: calc(100% - 20px);
}

.header-2 a.active,
.header-2 a:hover {
    color: #0d6efd;
}

.header-2 a.active::after,
.header-2 a:hover::after {
    width: calc(100% - 20px);
}


.nav-menu {
    display: flex;
    justify-content: space-between;
}

.nav-menu li {
    margin-top: 12px;
}

.profile-icon {
    width: 40px;
    height: 40px;
    display: flex;
    background-color: #ddd;
    overflow: hidden;

}

.profile-icon img {
    width: 100%;
    height: 100%;
    border: 2px solid #007bff;
    border-radius: 50%;
    object-fit: cover;
}

.ac-btn {
    text-decoration: none;
    color: #000;
    padding: 10px;
    width: 70px;
    max-width: 70px;
    min-width: 70px;
    display: block;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    /* default no shadow */
}

.ac-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #007bff, #0056b3);
    transform: scale(1.1) rotate(-1deg);
    box-shadow: 0px 2px 8px rgba(0, 123, 255, 0.25);
    border-radius: 12px;
}


.right-side-ac {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Container for the search */

.search-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 600px;
    margin: 30px auto;
}

.search-icon {
    padding: 9px;
    margin-top: 4px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;

    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    /* border-radius: 50%; */
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0px 2px 8px rgba(0, 123, 255, 0.25);
}



.search-icon svg {
    display: block;
    stroke: white;
}

.search-container {
    margin-top: 5px;
    position: relative;
    width: 500px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
}

#searchBox, #searchBoxMobile {
    width: 100%;
    padding: 10px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;

    outline: none;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0px 2px 8px rgba(0, 123, 255, 0.25);
}

#searchBox:hover, #searchBoxMobile:hover {
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.6);
}

#searchBox:focus, #searchBoxMobile:focus {
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.6);
}



#suggestions, #suggestionsMobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #007bff;
    border-radius: 10px;
    margin-top: 10px;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0px 2px 8px rgba(0, 123, 255, 0.25);
}

#suggestions div, #suggestionsMobile div {
    padding: 8px 12px;
    cursor: pointer;
}




.suggestion-item {
    padding: 12px 16px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.logo {
    display: flex;
    align-items: center;
    height: 80px;
    text-decoration: none;
}

.user-name {
    font-size: 30px;
    font-weight: 800;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #007bff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
}

.translate-wrapper {
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 10px;
    max-width: 160px;
    min-width: 160px;
    /* position: fixed;
    top: 62px;
    right: 20px; */
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); */
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}


.translate-wrapper::after {
    content: '';
    position: absolute;
    left: 10px;
    bottom: 5px;
    width: 0;
    height: 2px;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.translate-wrapper:hover {
    color: #0d6efd;
}

.translate-wrapper:hover::after {
    width: calc(100% - 20px);
}


.translate-wrapper i {
    color: #000000;
    font-size: 16px;
}

#google_translate_element select {
    border: none;
    background: transparent;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    font-size: 14px;
}

#google_translate_element select:hover {
    color: #007bff;
}

.goog-te-banner-frame.skiptranslate,
body>.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

li {
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Profile Dropdown */
.profile {
    position: relative;
    /* display: inline-block; */
    cursor: pointer;
    font-family: Arial, sans-serif;
}


.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    background-color: #ddd;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: black;
}

.profile-icon img {
    width: 100%;
    height: 100%;
    border: 2px solid #007bff;
    border-radius: 50%;
    object-fit: cover;
}

.profile-icon:hover {
    background: #0056b3;
    transform: scale(1.1);
}


.profile-menu {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 15px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}


.profile:hover .profile-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


.profile-header {
    text-align: center;
}




.profile-name {
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0;
    color: #333;
}


.profile-info {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    /* margin: 5px 0; */
    display: flex;
    justify-content: center;
    align-items: center;
}


.profile-menu hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 10px 0;
}


.profile-link {
    display: block;
    padding: 12px;
    text-align: center;
    color: #111;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    background: #f9f9f9;
    /* font-weight: bold; */
    margin-top: 5px;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}


.profile-link:hover {

    transform: scale(1.05);
}


.logout {
    background: #007bff;
    color: white;
}


.logout:hover {
    background: #007bff;
}

/* if user not loged in */
.login-btn {
 background: linear-gradient(90deg, #007bff, #0056b3);
box-shadow: 0px 2px 8px rgba(0, 123, 255, 0.25);
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.login-btn:hover {
background: linear-gradient(90deg, #0056b3, #007bff);
box-shadow: 0 0 12px rgba(0, 123, 255, 0.6);
}

.register-btn {
    display: inline-block;
    padding: 10px 15px;
    background: linear-gradient(135deg, #28a745, #218838);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    /* margin-left: 10px; */
}

.register-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    box-shadow: 0 6px 16px rgba(33, 136, 56, 0.5);
}

.header-btn {
    display: flex;
    gap: 10px;
}


.show-login-btn {
    display: none;
}



.mobile-header{
    display: none;
}


@media (max-width: 873px) {

.mobile-header{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
    padding: 0px 10px;
    height: 50px;
    border-top: 2px solid black;
}


    .cart-desktop{
        display: none;
    }

    #search-desktop{
        display: none;
    }
    .profile2 {
        display: none;
    }

    .login-btn {
        display: none;
    }

    #r-btn {
        display: none;
    }

    .profile {
        display: none;
    }

    #show-mobile {
        display: none;
    }

    .show-login-btn {
        display: block;
    }

    .user-name {
        font-size: 20px;
    }

    .cleanprint-logo {
        width: 150px;
    }

    .right-side-ac {
        gap: 0px;
    }

}




@media (max-width: 768px) {
    .container {
        padding: 0;

    }

    .search-container {
        display: flex;
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        background: transparent;
        
    }


    .search-wrapper {
        justify-content: center;
    }

    .ac-btn {
        padding: 10px 0px;
        width: 50px;
        max-width: 50px;
        min-width: 50px;
    }

    .search-container input {
        width: 100%;
    }

    #searchBox, #searchBoxMobile {
        width: 100%;
        font-size: 15px;
    }
}

@media (max-width: 320px) {
    .user-name {
        font-size: 20px;
        font-weight: 500;
    }

    
}

@media (max-width: 768px) {
    
    header{
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .header-2 {
        display: none;
        flex-direction: column;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 10px 0;
        max-height: 50vh;
        /* padding-bottom: 45vh; */
        border-bottom: 2px solid #007bff;
    }

    .header-2.show {
        display: flex;
        animation: slideDown 0.3s ease-in-out;
    }

    .header-2 a {
        padding: 5px 10px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }

    .hamburger-icon {
        display: block;
        font-size: 24px;
        color: #000;
        cursor: pointer;
        padding: 10px;
        margin-right: 10px;
    }

 

    .test{
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (min-width: 769px) {
    .hamburger-icon {
        display: none;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}