/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Header Styling */
header {
    background-color: #35424a;
    color: white;
    text-align: center;
    padding: 10px 0;
}

.main-nav {
    padding-top: 10px;
}

.main-content .banner img {
    width: 100%;
    height: 40vh;
    object-fit: cover;
    object-position: top;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.top-bar .logo {
    width: 200px;
}

.search-bar input {
    padding: 10px;
    width: 300px;
}

.search-bar button {
    padding: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
}

.account-cart a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
}

/* Sidebar Styling */
.sidebar {
    width: 200px;
    padding: 20px;
    background-color: #ecf0f1;
    float: left;
}

.sidebar h2 {
    font-size: 1.2em;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #34495e;
}

.sidebar ul li ul.sub-categories {
    margin-top: 10px;
}

.sidebar ul li ul.sub-categories li {
    margin-left: 20px;
    font-size: 0.9em;
}

/* Main Content */
.main-content {
    margin-left: 220px;
    padding: 20px;
}

.product-container{
    height: 100vh;
}
.product-container,
.featured-products {
    display: flex;
    flex-wrap: wrap;
    margin: 20px;

}

.product {
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    margin: 10px;
    padding: 15px;
    width: calc(33.33% - 40px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 200px;
}

.product img {
    max-width: 100%;
    height: auto;
}

.product h2 {
    font-size: 1.2em;
    margin: 10px 0;
}

.product .price {
    font-size: 1.2em;
    color: #e74c3c;
    font-weight: bold;
}

.product button,
.add-to-cart {
    background-color: #35424a;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.product button:hover,
.add-to-cart:hover {
    background-color: #2980b9;
}

/* Cart Styles */
.cart {
    position: relative;
    display: inline-block;
}

.cart-count {
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 5px 10px;
    position: absolute;
    top: -5px;
    right: -10px;
}

.cart-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1000;
}

.cart-item {
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart h3 {
    margin: 0;
    padding-bottom: 10px;
    font-size: 1.2em;
    border-bottom: 1px solid #ccc;
}

#cart-total {
    font-weight: bold;
    font-size: 1.1em;
}

#checkout {
    margin-top: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    cursor: pointer;
}

#checkout:hover {
    background-color: #2980b9;
}

/* Image Slider */
.img-slider {
    width: 100%;
    height: 30vh;
}

/* Contact Information Section */
.contact-info {
    padding: 20px 0;
    background-color: #f9f9f9;
}

.contact-logo {
    width: 150px;
    margin-bottom: 10px;
    text-align: left;
}

.contact-info h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.text-center {
    text-align: left !important;
}

.contact-details {
    margin-top: 20px;
    text-align: left;
}

.contact-item {
    margin-bottom: 10px;
}

.contact-item h4 {
    font-size: 18px;
    color: #555;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 16px;
    color: #777;
    margin: 0;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Newsletter Section */
#newsletter {
    background-color: #099;
    padding: 20px;
    margin-top: 10px;
}

#newsletter .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#newsletter .container h2 {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: left;
}

#newsletter .container p {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    text-align: left;
}

#newsletter form {
    margin-top: 20px;
    text-align: right;
}

#newsletter form input[type="email"] {
    padding: 10px;
    width: 300px;
    max-width: 100%;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#newsletter form button {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#newsletter form button:hover {
    background-color: #218838;
}

/* Terms Section */
#terms {
    background-color: #f9f9f9;
    padding: 20px;
    margin-top: 20px;
}

#terms h2, #terms h3 {
    color: #333;
}

#terms p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Styling */
#blog {
    background-color: #f9f9f9;
    padding: 20px;
    margin-top: 20px;
}

.blog-post {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.blog-post h3 {
    color: #333;
}

.blog-post p {
    line-height: 1.5;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Projects Styling */
#projects {
    background-color: #f9f9f9;
    padding: 20px;
    margin-top: 20px;
}

.project-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.project-card h3 {
    color: #333;
}

.project-card p {
    line-height: 1.5;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Footer Styling */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer .footer-links ul {
    list-style: none;
    padding: 0;
}

footer .footer-links ul li {
    display: inline;
    margin: 0 10px;
}

footer .footer-links a {
    color: white;
    text-decoration: none;
}
/* Sidebar layout to ensure the categories are aligned vertically */
.categories-sidebar {
    width: 300px; /* Width of the sidebar */
    padding: 10px;
    background-color: #f9f9f9; /* Background for the sidebar */
}
svg{
    height: 18px;
    width: 20px;
    font-weight: bold;

}

/* Styling for the CATEGORIES and PRODUCTS headers */
.categories-header {
    background-color: #35424a;
    color: white;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
}

/* Initially hide the list items */
.categories-list {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Show list items on hover for both categories */
.categories-sidebar:hover .categories-list {
    display: block;
    background-color: white;
    border: 10px solid #35424a;
    border-radius: 8px;
    padding: 0;
}

/* List item styles */
.categories-list li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* Make list items full-width and clickable */
.categories-list li a {
    text-decoration: none;
    color: #333;
    display: block;
    width: 100%;
    padding: 10px;
}

/* Hover effect for list items */
.categories-list li a:hover {
    background-color: #f1f1f1;
    color: #007bff;
}
.my_categories{
    display: flex; 
    flex-direction: column;
}
/* Style for the list item */
.list-group-item {
    position: relative;
}

/* Style for the dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    width: 600px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    left: 0;
    top: 100%;
    display: flex;
    justify-content: space-between;
}

/* Hover effect to display the dropdown */
.list-group-item:hover .dropdown-content {
    display: flex;
}

/* Style for the columns */
.column {
    flex: 1;
    margin: 0 15px;
}

/* Style for the column headers */
.column h4 {
    margin-bottom: 10px;
    font-weight: bold;
}

/* Style for the list item */
.list-group-item {
    position: relative;
}

/* Style for the dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    width: 600px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    left: 0;
    top: 100%;
    display: flex;
    justify-content: space-between;
}

/* Hover effect to display the dropdown */
.list-group-item:hover .dropdown-content {
    display: flex;
}

/* Style for the columns */
.column {
    flex: 1;
    margin: 0 15px;
}

/* Style for the column headers */
.column h4 {
    margin-bottom: 10px;
    font-weight: bold;
}

/* Optional styling for hover on the top-level link */
.list-group-item > a {
    text-decoration: none;
    font-weight: bold;
    color: #333;
}

.list-group-item > a:hover {
    color: green;
}

/* Optional styling for hover on the top-level link */
.list-group-item > a {
    text-decoration: none;
    font-weight: bold;
    color: #333;
}

.list-group-item > a:hover {
    color: green;
}

/* Hide all sub-lists by default */
.sub-list {
    display: none;
    list-style-type: none;
    padding-left: 15px; /* Add padding for indentation */
    position: absolute;
    left: 100%; /* Aligns sub-list to the right of parent li */
    top: 0;
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px;
    z-index: 10;
}

/* Show sub-list when hovering over the parent li */
.list-group-item:hover > .sub-list {
    display: block;
}

/* Styling for list items */
.list-group-item {
    position: relative; /* Ensures sub-list positions relative to li */
}

.sub-list li {
    margin-top: 5px; /* Add some space between sub-items */
}

.sub-list a {
    text-decoration: none;
    color: #007bff; /* Link color */
}

.sub-list a:hover {
    text-decoration: underline;
}
/* Style for the product-list section */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* Style for individual product items */
.product-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect on product items */
.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Style for product images */
.product-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Style for product titles */
.product-info h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

/* Style for product details */
.product-info p {
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
}

/* Rating style */
.rating {
    font-size: 1.2em;
    color: #f39c12;
    margin-bottom: 10px;
}

/* Button styles for tabs */
.tabs button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tabs button:hover {
    background-color: #2980b9;
}

/* Style for tab content (hidden by default) */
.tab-content {
    background-color: #f7f7f7;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    color: #333;
}

/* Style for unordered list inside tab content */
.tab-content ul {
    list-style-type: none;
    padding: 0;
}

.tab-content ul li {
    margin-bottom: 5px;
}

/* Responsive: Make products stack on smaller screens */
@media (max-width: 750px) {
    .product-list {
        flex-direction: column;
        align-items: center;
    }
}
