/* General Reset */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
}

/* Header */
header {
    position: relative;
    z-index: 1000;
    background-color: #4ffd23; /* Matches the header background in index.php */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow for better visibility */
}

header .navbar {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

header.fixed .navbar {
    min-height: 50px;
    transition: all 0.3s ease;
}

header .navbar-brand {
    display: flex;
    align-items: center;
}

header .navbar-brand img {
    max-height: 60px;
    margin-right: 10px;
}

header .navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

header .navbar-nav li {
    margin: 0 10px;
}

header .navbar-nav li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
}

header .navbar-nav li a:hover {
    color: #007bff;
}

header .navbar-nav .nav-link i {
    margin-right: 5px;
}

header .navbar-toggler {
    display: none; /* Hidden by default for desktop view */
}

/* Category Section */
#category {
    padding: 4% 6%;
    background-color: #ffffff;
}

#category .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

#category .row {
    display: flex;
    flex-direction: column; /* Arrange items vertically */
    gap: 20px;
    align-items: center; /* Center the cards horizontally */
}

#category .col {
    width: 100%; /* Make each card take the full width */
    max-width: 400px; /* Optional: Limit the maximum width of each card */
}

#category .card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

#category .card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#category .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #f8f9fa;
}

/* Product List */
.product-list-style {
    border-bottom: 1px solid #f765bf;
    padding: 5px 0;
}

.productImage {
    display: flex;
    flex-direction: column; /* Arrange images vertically */
    align-items: center; /* Center images horizontally */
    width: 100%; /* Make the images fit the container width */
}

.productImage img {
    width: 100%; /* Make each image fit the container width */
    margin-bottom: 10px; /* Add spacing between images */
    object-fit: cover; /* Ensure images maintain aspect ratio */
}

/* Back to Top Icon */
.up-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
    color: #4caf50;
    background: #ffffff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.up-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Footer Section */
#footer {
    background-color: #343a40;
    color: #ffffff;
    padding: 40px 20px;
}

#footer h4 {
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #f8f9fa;
}

#footer p, #footer ul li a {
    font-size: 14px;
    color: #dcdcdc;
    text-decoration: none;
}

#footer ul {
    list-style: none;
    padding: 0;
}

#footer ul li {
    margin-bottom: 10px;
}

#footer ul li a:hover {
    color: #4caf50;
}

#footer .social ul {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#footer .social ul li a {
    font-size: 20px;
    color: #ffffff;
    transition: color 0.3s ease;
}

#footer .social ul li a:hover {
    color: #4caf50;
}

copyRight {
    background-color: #23272b;
    color: #dcdcdc;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #category .row {
        flex-direction: column;
        align-items: center;
    }

    #footer .col-md-4 {
        margin-bottom: 20px;
    }
}

/* Product Categories */
.product-categories {
    margin-top: 20px;
}

.product-categories h4 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

.product-categories ul {
    list-style: none;
    padding: 0;
}

.product-categories ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: box-shadow 0.3s ease;
}

.product-categories ul li:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-categories ul li img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.product-categories ul li a {
    flex-grow: 1;
    text-decoration: none;
    color: #007bff;
    font-size: 16px;
    font-weight: 500;
}

.product-categories ul li a:hover {
    text-decoration: underline;
}

.product-categories ul li .btn {
    margin-left: 10px;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.product-categories ul li .btn:hover {
    background-color: #0056b3;
    color: #fff;
}