body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #150e11;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    color: #fe5757;
}

header .logo img {
    margin: 5px 0;
    width: 100px;
    height: auto;
}

header .search-bar {
    display: flex; /* Use flexbox for horizontal layout */
    align-items: center; /* Center items vertically */
    gap: 10px; /* Space between input and button */
}

header .search-bar input {
    padding: 10px;
    border: none;
    border-radius: 5px;
    flex: 1; /* Allow input to take remaining space */
}

header .search-bar button {
    padding: 10px 15px; /* Add padding for the button */
    background-color: #fe5757; /* Button background color */
    color: white; /* Text color for the button */
    border: none; /* Remove border */
    border-radius: 5px; /* Round corners */
    cursor: pointer; /* Change cursor to pointer on hover */
}

header .user-icons a {
    margin-left: 20px;
    color: #fe5757;
    text-decoration: none;
}

header .search-bar button:hover {
    background-color: #ba22a1; /* Change color on hover */
}

header .user-icons i {
    font-size: 32px; /* Increase this value for larger icons */
}

nav {
    background-color: #fe5757;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.search-bar {
    display: flex; /* Keep it visible on larger screens */
    align-items: center; /* Center items vertically */
    gap: 10px; /* Space between input and button */
    transition: all 0.3s ease; /* Smooth transition */
}

#search-icon {
    display: none; /* Hide search icon on larger screens */
}

.hamburger{
    display: none;
}

/* Product Details Page */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.product-gallery {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-image {
    width: 100%;
    max-width: 600px;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    object-fit: contain; /* Ensures the entire image is visible without cropping */

}

.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    cursor: pointer;
    object-fit: cover;
}

.reviews {
    margin-top: 20px;
    font-size: 0.9em;
    color: #333;
}

.product-info {
    background-color: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-info h1 {
    margin: 0;
    color: #150e11;
}

.price {
    font-size: 1.5em;
    color: #fe5757;
}

.description {
    margin: 15px 0;
    color: #333;
}

.addtocart {
    background-color: #fe5757;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
}

.addtocart:hover {
    background-color: #ffa200;
}


input[type="text"]{
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    background-color: #fe5757;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
}

footer {
    background-color: #150e11;
    color: white;
    text-align: center;
    padding: 15px 0;
    position: relative; /* Ensure footer stays at the bottom */
    bottom: 0; /* Align to the bottom */
    width: 100%; /* Full width of the page */
}

footer a {
    color: #ffa200;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }

    header .logo img {
        margin: 5px 0;
        width: 80px;
        height: auto;
    }

    header .user-icons i {
        font-size: 20px;
    }

    .hamburger {
        display: block;
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: #fe5757;
        position: relative;
        right: 0;
        z-index: 10;
    }

    nav {
        max-height: 0;
        overflow: hidden;
        background-color: transparent;
        transition: max-height 0.3s ease, background-color 0.3s ease;
    }

    nav.open {
        max-height: 350px;
        background-color: #fe5757;
    }

    nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .search-bar {
        display: none !important;
    }

    #search-icon {
        display: block;
        font-size: 24px;
        color: #fe5757;
        cursor: pointer;
        margin-right: 20px;
        position: relative;
        transition: transform 0.3s ease;
    }

    .search-bar.open {
        display: flex !important;
        position: absolute;
        top: 80px;
        width: 60%;
        max-width: 300px;
        background-color: white;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        border-radius: 5px;
        opacity: 0;
        transform: scaleX(0);
        transform-origin: left center;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .search-bar.open.show {
        opacity: 1;
        transform: scaleX(1);
    }

    .thumbnail-images {
        flex-direction: row;
    }

    footer {
        background-color: #150e11;
        color: white;
        text-align: center;
        padding: 15px 0;
        position: relative;
        bottom: 0;
        width: 100%;
    }
}


