* {
    margin: 0;
    padding: 4px;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-img {
    width: 50px;
    height: auto;
}

.search-bar {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Allows the search bar to expand and center */
    justify-content: center; /* Centers the search bar horizontally */
    margin: 0 20px; /* Adds some space on both sides */
}

.search-bar input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    outline: none;
    width: 200px; /* Fixed width for better centering control */
}

.search-bar button {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 5px 5px 0;
    background-color: #fff;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

nav {
    flex-grow: 1;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.hero {
    position: relative;
    text-align: center;
    background-color: #e0e7f0;
    padding: 50px 0;
}

.hero-img {
    width: 400px;
    height: auto;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: #333;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: #666;
    margin: 10px 0;
}

.hero-text p {
    font-size: 1rem;
    color: #999;
    max-width: 600px;
    margin: 0 auto 20px;
}

.discover-btn {
    padding: 10px 20px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background-color: #fff;
}

.category-btn {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
}

.all-btn {
    background-color: #f0f0f0;
}

.new-arrivals, .trending-products {
    padding: 40px 20px;
    text-align: center;
}

.new-arrivals h3, .trending-products h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.products {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    width: 200px;
    text-align: center;
}

.product-card img {
    width: 100%;
    height: auto;
}

.product-card h4 {
    font-size: 1rem;
    margin: 10px 0;
}

.product-card p {
    font-size: 0.9rem;
    color: #666;
}

.wishlist-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #4a90e2;
}

.view-all-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

footer {
    background-color: #000;
    color: #fff;
    padding: 40px 20px;
    text-align: left;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 0.9rem;
    margin: 5px 0;
}

.social-icons a {
    color: #fff;
    margin-right: 10px;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transition: all 0.3s ease;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    .search-bar {
        width: 100%;
        margin: 0; /* Reset margin on responsive screens */
        justify-content: flex-start; /* Align left on mobile */
    }

    .search-bar input {
        width: 80%;
    }

    .hero-img {
        width: 300px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .categories {
        flex-direction: column;
        align-items: center;
    }

    .category-btn {
        width: 80%;
        margin-bottom: 10px;
    }

    .product-card {
        width: 150px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-img {
        width: 200px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text h2 {
        font-size: 1rem;
    }

    .product-card {
        width: 120px;
    }

    .footer-section {
        margin-bottom: 20px;
    }
}

.dropdown{
    position: relative;
    display: inline-block;
}

.dropdown-content{
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    right: 0;
}

.dropdown-content a{
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    width: 100%;
}

.dropdown-content a:hover{
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content{
    display: block;
}

.header{
    position: relative;
    z-index: 500;  
}

.sign-in-link{
    text-decoration: none;
    color:#333;
}

.offcanvas__nav__option {
    text-align: center;
    margin-bottom: 25px;
}
.offcanvas__nav__option a {
    display: inline-block;
    margin-right: 26px;
    position: relative;
}
.offcanvas__nav__option a span {
    color: #0d0d0d;
    font-size: 11px;
    position: absolute;
    left: 5px;
    top: 8px;
}