
/* Set the background color for the products page */
body {
    background-color: #2a2a2a; /* Dark gray background */
    margin: 0;
    padding: 0;
}

/* Navigation bar with darker background */
.nav-bar {
    background-color: #000000 !important; /* Black background */
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed !important; /* Force fixed position */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border: none;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease;
}

/* Force all child elements to have the same background */
.nav-bar *,
.nav-container,
.main-nav,
.main-nav ul,
.main-nav ul li {
    background-color: #000000 !important;
    border: none;
}

/* Add padding to the top of the container to account for fixed nav */
.container {
    padding-top: 70px !important; /* 60px nav height + 10px extra space */
}

/* Adjust filter section margin to account for fixed nav */
.filter-section {
    margin-top: 0;
}

/* Container for the navigation elements */
.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #2a2a2a; /* Match body background */
}

/* Ensure container below nav bar has same dark background */
.container {
    background-color: #2a2a2a; /* Match body background */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Filter Section */
.filter-section {
    background: #333333; /* Slightly lighter than body background */
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    border: none;
    box-shadow: none;
}

.search-group {
    grid-column: 1 / -1;
    margin-bottom: 10px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background: #222222; /* Darker than body background for input fields */
    color: #ffffff;
    font-size: 14px;
}

/* Search Group */
.search-container {
    position: relative;
}

input[type="text"] {
    background-color: #222222; /* Darker than body background for search field */
    border: none;
    color: #ffffff;
    padding: 8px 12px;
    width: 100%;
    border-radius: 4px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
}

/* Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
    background-color: #2a2a2a; /* Match body background */
}

.product-item {
    background: #333333; /* Slightly lighter than body background */
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    text-align: center;
}

.product-image {
    width: 100%;
    height: 200px; /* Increase this value to make the container taller */
    background: #1e1e1e;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden; /* Ensures the image doesn't spill outside the container */
}

.product-image img {
    width: 90%; /* Reduce from 100% to 90% */
    height: 90%; /* Reduce from 100% to 90% */
    object-fit: contain;
    display: block;
    margin: 0 auto; /* Center the image horizontally */
    position: relative;
    top: 50%;
    transform: translateY(-50%); /* Center the image vertically */
}

/* Mobile-specific image adjustments */
@media (max-width: 768px) {
    .product-image img {
        width: 80%; /* Make image even smaller on mobile */
        height: 80%;
    }
}

@media (max-width: 480px) {
    .product-image img {
        width: 75%; /* Make image even smaller on very small screens */
        height: 75%;
    }
}

.product-brand {
    display: block;
    color: #888;
    font-size: 12px;
    margin-bottom: 5px;
    text-align: center;
    text-transform: uppercase;
}

.product-title {
    color: #fff;
    font-size: 14px;
    margin: 0 0 10px 0;
    font-weight: 500;
    text-align: center;
}

.product-price {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .filter-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-image {
        height: 180px; /* Adjust for medium screens */
    }

    .product-title {
        font-size: 13px;
    }

    .product-price {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 220px; /* Adjust for small screens */
    }
}

/* Increase container height for mobile */
@media (max-width: 768px) {
    .product-image {
        height: 250px; /* Increase from 180px to 250px */
    }
}

@media (max-width: 480px) {
    .product-image {
        height: 280px; /* Increase from 220px to 280px */
    }
    
    /* Ensure the product item has enough space */
    .product-item {
        padding: 20px; /* Increase padding */
        margin-bottom: 25px; /* Add some bottom margin */
    }
}

/* Footer styles for products page */
.products-page footer,
.products-page footer .container,
.products-page .footer-content,
.products-page .footer-sections,
.products-page .footer-logo,
.products-page .footer-nav,
.products-page .footer-contact,
.products-page .footer-nav h3,
.products-page .footer-contact h3,
.products-page .footer-nav ul,
.products-page .footer-nav ul li,
.products-page .footer-contact p,
.products-page .whatsapp-link,
.products-page .footer-logo img {
    background-color: #121212 !important; /* Force dark background with !important */
}

/* Remove any potential background colors or images */
.products-page footer::before,
.products-page footer::after,
.products-page .footer-content::before,
.products-page .footer-content::after,
.products-page .footer-sections::before,
.products-page .footer-sections::after {
    display: none !important;
}

/* Ensure the footer bottom has the correct background */
.products-page .footer-bottom,
.products-page .footer-bottom * {
    background-color: #0a0a0a !important;
}

.products-page .footer-bottom p {
    background-color: transparent !important;
}

/* Responsive Footer Styles */
@media (max-width: 768px) {
    .products-page .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .products-page .footer-logo {
        justify-content: center;
    }

    .products-page .footer-sections {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

/* Fix for logo on products page */
.products-page .nav-bar .logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 20; /* Ensure logo is above other elements */
    background-color: transparent !important;
}

.products-page .nav-bar .logo a {
    display: flex;
    align-items: center;
    background-color: transparent !important;
}

.products-page .nav-bar .logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
    margin-right: 10px;
    background-color: transparent !important;
}

/* Ensure nav container has proper z-index and positioning */
.products-page .nav-container {
    position: relative;
    z-index: 10;
    background-color: #000000 !important;
}

/* Ensure all nav elements have proper background */
.products-page .nav-bar,
.products-page .nav-bar *,
.products-page .main-nav,
.products-page .main-nav ul,
.products-page .main-nav ul li {
    background-color: #000000 !important;
}

/* Remove any potential overlays */
.products-page .nav-bar::before,
.products-page .nav-bar::after,
.products-page .nav-container::before,
.products-page .nav-container::after {
    display: none !important;
}

/* Override any navigation styles to match home page */
.products-page .nav-bar,
.products-page .nav-container,
.products-page .main-nav,
.products-page .main-nav ul,
.products-page .main-nav ul li {
    background-color: #000000 !important;
}

/* Ensure navigation buttons match home page */
.products-page .nav-button {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid transparent !important;
}

.products-page .nav-button:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.products-page .nav-button.active {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}

/* Ensure cart icon and count match home page */
.products-page .cart-icon a {
    color: #fff !important;
    background-color: transparent !important;
}

.products-page .cart-icon i {
    background-color: transparent !important;
}

.products-page .cart-count {
    background: #ff4444 !important;
    color: white !important;
}

/* Remove any conflicting styles */
.products-page .nav-bar::before,
.products-page .nav-bar::after,
.products-page .nav-container::before,
.products-page .nav-container::after,
.products-page .main-nav::before,
.products-page .main-nav::after {
    display: none !important;
}

/* Search label color */
.search-group label {
    color: #ffffff; /* White color for search label */
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* Search input placeholder color */
input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.7); /* Light white for placeholder */
}

/* Footer location text color */
.footer-contact p {
    margin-bottom: 10px;
    color: #ffffff !important; /* White color for footer contact info */
    background-color: #121212 !important;
}

/* Footer location icon color */
.footer-contact p i {
    color: #ffffff !important; /* White color for footer icons */
    margin-right: 8px;
}

/* No results message */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    background: #333333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    margin: 20px 0;
}








