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;
    color: white;
    font-weight: bold;
}

nav ul li a {
    color: white !important;
    text-decoration: none;
    font-weight: bold !important;
}

.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;
}

button {
    background-color: #ffa200;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
}

main {
    padding: 20px;
}

section {
    margin-bottom: 30px;
}

.info-container {
    display: flex;
    align-items: flex-start; /* Align items to the start */
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info, .price-adjustment {
    flex: 1; /* Make both sections take equal space */
    padding: 10px;
}

.separator {
    width: 2px; /* Width of the separator line */
    background-color: black; /* Color of the separator line */
    margin: 0 20px; /* Space around the line */
    height: auto; /* Let it adapt to the height of the sections */
}

h2 {
    margin-top: 0; /* Remove default margin for h2 */
}

.offers, .shipping-info, .products {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.offer-item, .product-item {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ba22a1;
    border-radius: 5px;
}

.products{
    margin-top: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 3 products per row */
    gap: 20px; /* Space between products */
    padding: 20px;
    margin: 0;
    text-align: center;
}

.product-item h3 {
    margin: 0;
    color: #ba22a1;
}

.product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

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;
}


input[type="text"]{
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    background-color: #ffa200;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
}

.offer-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Display 5 products per row */
    gap: 20px; /* Space between items */
    padding: 20px;
    margin: 0;
}

.offer-products-grid .product-item {
    border: 1px solid #ba22a1;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.offer-products-grid .product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.offer-products-grid .product-item h3 {
    color: #ba22a1;
    margin: 10px 0;
}

.offer-products-grid .product-item a {
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 10px;
    background-color: #fe5757;
}

.products .product-item a {
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 10px;
    background-color: #fe5757;
}

.products .product-item p {
    margin: 5px 0;
    color: #ba22a1;
    font-weight: bold;
}

.offer-products-grid .product-item p {
    margin: 5px 0;
    color: #ba22a1;
    font-weight: bold;
}

.offer-products-grid .product-item .description {
    margin: 5px 0;
    color: #150e11;
    font-weight: bold;
}

.products .product-item h3 {
    color: #ba22a1;
    margin: 10px 0;
}

.products .product-item .description {
    color: #150e11;
    margin: 10px 0;
}


@media screen and (max-width: 768px) {
    /* Ensure body takes full width */
    body {
        overflow-x: hidden; /* Prevent horizontal scrolling */
        width: 100%;
    }

    header .logo img {
        margin: 5px 0;
        width: 80px;
        height: auto;
    }

    header .user-icons i {
        font-size: 20px; /* Decrease the icon size on small screens */
    }

    /* Hamburger Menu */
    .hamburger {
        display: block; /* Show hamburger button */
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: #fe5757; /* Set visible color for the button */
        position: relative;
        right: 0; /* Position the button in the top-right corner */
        z-index: 10; /* Ensure it stays above other elements */
    }

    /* Hide navigation by default */
    nav {
        max-height: 0; /* Collapsed menu */
        overflow: hidden; /* Hide overflowing items */
        background-color: transparent; /* Remove background when collapsed */
        transition: max-height 0.3s ease, background-color 0.3s ease;
    }

    /* Show navigation when toggled */
    nav.open {
        max-height: 350px; /* Adjust based on menu size */
        background-color: #fe5757; /* Add background when expanded */
    }

    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; /* Make the icon visible */
        font-size: 24px;
        color: #fe5757;
        cursor: pointer;
        margin-right: 20px;
        position: relative;
        transition: transform 0.3s ease; /* Add smooth transition for transform */
    }

    .search-bar.open {
        display: flex !important; /* Make the search bar appear */
        position: absolute;
        top: 80px; /* Adjust position below the header */
        width: 60%; /* Width of the search bar */
        max-width: 300px; /* Maximum width */
        background-color: white;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        border-radius: 5px;
        opacity: 0; /* Initially invisible */
        transform: scaleX(0); /* Start with no width */
        transform-origin: left center; /* Animate from the left */
        transition: opacity 0.3s ease, transform 0.3s ease; /* Transition for opacity and transform */
    }

    .search-bar.open.show {
        opacity: 1; /* Make it visible */
        transform: scaleX(1); /* Expand the search bar horizontally */
    }
    
    .offer-products-grid,
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 products per row */
        gap: 15px; /* Space between items */
        padding: 20px;
    }

    .product-item .description {
        display: none; /* Hide description on mobile */
    }

    .product-item a {
        font-size: 0.8rem; /* Smaller button font size */
        padding: 8px 12px; /* Adjust button padding */
    }

    .offer-products-grid .product-item a,
    .products .product-item a {
        font-size: 0.8rem; /* Adjust button font size */
        padding: 8px 12px; /* Adjust button padding */
    }
    
    /* Footer remains untouched but properly positioned */
    footer {
        background-color: #150e11;
        color: white;
        text-align: center;
        padding: 15px 0;
        position: relative;
        bottom: 0;
        width: 100%;
    }
}