/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

button {
    background-color: #ff0000; /* Bright red */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
	background-color: #b30000; /* Dark red */
}

input[type="text"] {
    width: 400px;
    height: 40px;
    font-size: 16px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="textarea"] {
    width: 400px;
    height: 40px;
    font-size: 16px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}



/* Sidebar Styling */
.sidebar {
    width: 250px;
    background-color: rgba(150,0,0); /* Bright red with 90% opacity */
    color: #fff;
    padding: 15px;
    height: 100vh;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: fixed;
}
.sidebar ul li a:hover {
    text-decoration: underline;
    color: rgba(255, 230, 230, 0.9); /* Slightly lighter red for hover effect */
}

.sidebar h2 {
	color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
}

.sidebar ul li a:hover {
    text-decoration: underline;
    color: #ffe6e6; /* Light red */
}

.sidebar form {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the left */
}

.sidebar label {
    display: block; /* Makes labels take full width */
    width: 90px; /* Set a fixed width to align inputs */
    font-weight: bold;
    margin-bottom: 5px;
}

.sidebar input[type="number"] {
    width: 80px; /* Adjust as needed */
    padding: 2px;
    font-size: 14px;
    margin-bottom: 5px; /* Space between inputs */
}



/* Main Content Area */
main {
    margin-left: 270px; /* To account for the fixed sidebar */
    padding: 20px;
}

/* Search Container Styling */
.search-container {
    display: flex;
    align-items: left;
    justify-content: space-between; /* Push elements to the edges */
    margin-bottom: 20px;
}
.search-count {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}


.search-container form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.search-container input[type="text"] {
    width: 400px;
    height: 40px;
    font-size: 16px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-container button {
    background-color: #ff0000; /* Bright red */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #b30000; /* Dark red */
}


/* Search Form Styling */
.search-form {
    flex: 1; /* Allow the search form to take up remaining space */
}

/* Sort Container Styling */
.sort-container {
    display: flex;
    align-items: center;
    margin-left: auto; /* Push it to the right of the container */
    gap: 10px; /* Space between label and dropdown */
}


.sort-container label {
    margin-right: 10px;
    font-size: 16px;
    color: #333;
}

#sort-options {
    font-size: 16px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
}

#sort-options:focus {
    border-color: #ff0000; /* Bright red */
    outline: none;
}


/* Products Grid Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns for large screens */
    gap: 20px;
    margin-top: 20px;
}

/* Product Card */
.product {
    background-color: #fff; /* White background */
    border: 1px solid #ffcccc; /* Light red border */
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.product img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.product h3 {
    font-size: 18px;
    color: #b30000; /* Dark red */
    margin-bottom: 10px;
}

.product a {
    text-decoration: none;
    color: #b30000; /* Dark red */
}

.product a:hover {
    color: #ff0000; /* Bright red */
}

.product p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.product .add-to-cart {
    background-color: #ff0000; /* Bright red */
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.product .add-to-cart:hover {
    background-color: #b30000; /* Dark red */
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns for medium screens */
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for small screens */
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr; /* 1 column for very small screens */
    }
}


