/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 0;
}

.logo-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 0.5rem 1rem;
    position: relative;
}

/* Site Logo */
.site-logo {
    height: 70px;
    display: block;
    margin: 0 auto;
}

/* Navigation Row */
.nav-row {
    background-color: #FFC300;
    text-align: center;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    position: relative;
    font-weight: bold;
}

/* Header Navigation Links */
header nav a {
    color: black;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: bold;
}

/* Container for the buttons */
.button-container {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    bottom: 30px
}

/* Cart and Wishlist Button */
.cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.cart-icon, .wishlist-icon {
    width: 30px;
    height: 30px;
}

.cart-count, .wishlist-count {
    position: absolute;
    top: -5px; /* Adjust as necessary */
    right: -5px; /* Adjust as necessary */
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    z-index: 10;
}

/* Hide wishlist on mobile */
@media (max-width: 768px) {
    #wishlist-btn {
        display: block;
    }
}

/* Mobile View */
@media (max-width: 768px) {
    /* Mobile layout adjustments */
    .logo-user-row {
        justify-content: space-between;
        position: relative;
    }

    /* Toggle button (hamburger) */
    #menu-toggle {
        font-size: 30px;
        cursor: pointer;
        background: none;
        border: none;
        position: absolute;
        left: 10px;
        top: 20px; /* Align it vertically */
        z-index: 10; /* Ensure the toggle button is above other content */
    }

    /* Cart button on the right */
    #cart-btn {
        background: none;
        border: none;
        cursor: pointer;
        position: absolute;
        right: -70px; /* Align it to the right */
        top: 15px; /* Align it vertically */
        z-index: 10; /* Ensure the cart button is above other content */
    }
    /* wishlist button on the right */
    #wishlist-btn {
        background: none;
        border: none;
        cursor: pointer;
        position: absolute;
        right: -30px; /* Align it to the right */
        top: 15px; /* Align it vertically */
        z-index: 10; /* Ensure the cart button is above other content */
    }

    /* Hide menu by default on mobile */
    .nav-row {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* Show menu when active */
    .nav-row.active {
        display: flex;
    }

    /* Adjust menu links for mobile */
    nav a {
        margin: 10px 0;
    }

    /* Centering logo on mobile */
    .logo-user-row {
        justify-content: center; /* Center logo on mobile */
    }
}

/* Desktop View - Hide Toggle Button */
@media (min-width: 769px) {
    #menu-toggle {
        display: none; /* Hide toggle button on desktop */
    }

    /* Cart button on desktop */
    #cart-btn {
        position: absolute;
        right: 10px;
        top: 10px;
        z-index: 10;
    }
    
    /* Wishlist button on desktop */
    #wishlist-btn {
        position: absolute;
        right: 50px; /* Adjust as necessary */
        top: 10px; /* Align it vertically */
        z-index: 10;
    }
}

/* Products Section */
.products-section {
    padding: 1rem;
    margin-bottom: 10px;
}

/* Headline Styling with Background */
.products-section h2 {
    margin-top: 5px;
    font-size: 1.5em;
    text-align: center;
    background-color: #ffc300; /* Ensure background color is correctly applied */
    color: #000000;
    padding: 10px 20px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Custom Grids for Each Section */
.new-products .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for new products */
    gap: 15px;
    justify-content: center;
}

.all-products .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for all products */
    gap: 15px;
    justify-content: center;
}

.top-selling .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for top-selling products */
    gap: 15px;
    justify-content: center;
}

/* General Product Styles */
.product {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    position: relative;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.product h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.product p {
    margin: 5px 0;
    font-size: 0.9em;
}

.product .price {
    color: green;
    font-weight: bold;
}

.product .old-price {
    text-decoration: line-through;
    color: red;
    font-size: 0.8em;
}

.product button {
    background-color: orange;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-size: 1em;
}

.product button:hover {
    background-color: dark orange;
}

a {
    text-decoration: none; /* Removes the underline */
    color: inherit; /* Ensures the text color matches the surrounding text */
}

/* NEW Tag styling */
.new-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: orange;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8em;
}

.search-wrapper {
    position: relative;
    display: inline-block;
}

.header-search-form {
    display: inline-block;
    margin-left: 20px;
}

.search-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-button {
    padding: 8px 12px;
    background-color: #5cb85c;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.search-button:hover {
    background-color: #4cae4c;
}

/* Adjust form visibility and style */
.search-form.show {
    display: inline-block;
}

/* Footer General Styles */
footer {
    background-color: #FFC300; /* Light orange background */
    color: #000;
    padding: 0px 0px;
    font-size: 14px;
    box-sizing: border-box;
    text-align: center;
}

/* Footer Container */
.footer-container {
    display: flex; /* Flexbox for alignment */
    justify-content: space-between; /* Address on left, social links on right */
    align-items: flex-start; /* Align items at the top */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    padding: 0px 20px;
    padding-top: 5px;
}

/* Footer Address Section */
.footer-address {
    flex: 1; /* Allow it to grow and take up space */
    min-width: 200px; /* Prevent it from shrinking too small */
    text-align: left; /* Align text to the left */
    line-height: 1.2; /* Reduce line-height for tighter text */
}

.footer-address h4 {
    margin-bottom: 5px;
    font-size: 16px;
    text-transform: uppercase;
    margin-top: 0;
    padding-top: 0;
}

.footer-address p {
    margin: 2px 0; /* Reduced margin between <p> tags */
    font-size: 13px; /* Slightly smaller text for compactness */
}

.footer-address a {
    color: #000; /* Link color */
    text-decoration: none;
}

.footer-address a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Footer Social Links Section */
.footer-social {
    flex: 1; /* Allow it to grow and take up space */
    min-width: 200px; /* Prevent it from shrinking too small */
    text-align: right; /* Align text to the right */
    line-height: 1.2; /* Reduce line-height for tighter text */
}

.footer-social h4 {
    margin-bottom: 5px;
    font-size: 16px;
    text-transform: uppercase;
    margin-top: 0;
    padding-top: 0;
}

.footer-social ul {
    list-style: none; /* Remove bullets */
    padding: 0;
    margin: 0;
}

.footer-social ul li {
    margin: 2px 0; /* Reduced margin between list items */
    font-size: 13px; /* Slightly smaller text */
}

.footer-social ul li a {
    color: #000; /* Link color */
    text-decoration: none;
}

.footer-social ul li a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Footer Bottom (Copyright) */
.footer-bottom {
    display: block; /* Make it take the full row */
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
    color: #000;
    background-color: #ff6133; /* Change this to your desired color */
    padding: 5px 0; /* Add some padding for better appearance */
    font-weight: bold;
}

/* Responsive Design: Mobile Adjustments */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Stack sections vertically */
        align-items: center; /* Center-align sections */
    }

    .footer-address,
    .footer-social {
        text-align: center; /* Center-align text for mobile */
        margin: 10px 0; /* Add spacing between sections */
    }

    .footer-bottom {
        margin-top: 10px;
        padding-bottom: 40px;
    }
    
    /* Increase bottom padding for the entire footer */
    footer {
        padding-bottom: 40px; /* Adjust this value as needed */
    }
}
/* Responsive Design: Mobile Adjustments */
@media (max-width: 768px) {
    .new-products .products,
    .all-products .products,
    .top-selling .products {
        grid-template-columns: repeat(2, 1fr); /* Two columns for mobile */
        gap: 10px; /* Adjust gap for better spacing */
    }

    .nav-row {
        padding: 0.5rem 0;
        font-size: 0.9em;
        
    }

    .footer-address,
    .footer-social {
        text-align: center;
    }
}
/* For very small screens (480px or less) */
@media (max-width: 480px) {
    .new-products .products,
    .all-products .products,
    .top-selling .products {
        grid-template-columns: repeat(2, 1fr); /* Two columns for smaller mobile screens */
        gap: 8px;
    }
}