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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    border-bottom: 5px solid #007bff;
}

header h1 {
    margin: 0;
    display: inline-block;
}

header h1 a {
    color: #fff;
    text-decoration: none;
}

header nav {
    float: right;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul {
            margin: 0;
            padding: 0;
            list-style: none;
            display: flex;
            align-items: center;
            gap: 20px; /* space between nav items */
        }
        nav a {
            text-decoration: none;
            color: #555;
            font-size: 1rem;
            padding: 5px;
        }
        /* Style for the WhatsApp icon */
        nav a .fa-whatsapp {
            font-size: 1.8rem; /* Make the icon larger */
            color: #25D366;   /* Official WhatsApp green color */
            transition: transform 0.2s;
        }
        nav a:hover .fa-whatsapp {
            transform: scale(1.1); /* Slight zoom on hover */
        }

header nav ul li {
    display: inline-block;
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

/* Main Content */
main {
    padding: 20px 0;
}

.shop-container {
    display: flex;
    gap: 20px;
}

.filters-sidebar {
    flex: 0 0 250px; /* Fixed width for sidebar */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters-sidebar h3 {
    margin-top: 0;
    color: #007bff;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-inputs input {
    flex: 1;
}

.filter-btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
}

.filter-btn:hover {
    background-color: #0056b3;
}

.clear-filters {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #dc3545;
}

.clear-filters:hover {
    text-decoration: none;
}

.products-section {
    flex-grow: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.products-header h2 {
    margin: 0;
}

.results-info {
    font-size: 0.9em;
    color: #666;
}

.filter-indicator {
    color: #007bff;
    font-weight: bold;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain */
    display: block;
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 10px;
    min-height: 40px; /* Ensure consistent height */
}

.product-name a {
    color: #333;
    text-decoration: none;
}

.product-name a:hover {
    color: #007bff;
}

.product-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    flex-grow: 1;
}

.product-meta {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
}

.product-category,
.product-sku {
    display: inline-block;
    margin-right: 10px;
    background-color: #e9ecef;
    padding: 3px 8px;
    border-radius: 3px;
}

.product-price {
    font-size: 1.4em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.product-stock {
    font-size: 0.9em;
    font-weight: bold;
}

.in-stock {
    color: #28a745;
}

.out-of-stock {
    color: #dc3545;
}

.no-products {
    text-align: center;
    padding: 50px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-products p {
    font-size: 1.2em;
    color: #555;
}

.no-products a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
}

.no-products a:hover {
    background-color: #0056b3;
}

/* Pagination */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination-btn {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
}

.pagination-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination-btn:hover:not(.active) {
    background-color: #e9ecef;
}

/* Product Detail Page */
.product-detail-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #007bff;
}

.product-detail {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.product-image-section {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.main-image {
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.main-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.product-info-section {
    flex: 2;
    min-width: 300px;
}

.product-title {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.product-sku,
.product-category {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 5px;
}

.product-category a {
    color: #777;
}

.product-category a:hover {
    color: #007bff;
}

.product-price-section {
    margin: 20px 0;
}

.current-price {
    font-size: 2.5em;
    font-weight: bold;
    color: #007bff;
}

.product-stock-section {
    margin-bottom: 20px;
}

.stock-status {
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stock-icon {
    font-size: 1.2em;
}

.low-stock-warning {
    color: #ffc107;
    font-weight: bold;
    margin-top: 5px;
}

.product-description {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.product-description h3 {
    margin-top: 0;
    color: #007bff;
}

.product-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.add-to-cart-btn,
.notify-btn,
.wishlist-btn {
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover,
.notify-btn:hover,
.wishlist-btn:hover {
    background-color: #0056b3;
}

.notify-btn {
    background-color: #ffc107;
}

.notify-btn:hover {
    background-color: #e0a800;
}

.wishlist-btn {
    background-color: #6c757d;
}

.wishlist-btn:hover {
    background-color: #5a6268;
}

.product-meta {
    margin-top: 20px;
    font-size: 0.9em;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.meta-item {
    margin-bottom: 5px;
}

/* Related Products */
.related-products {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.related-products h3 {
    color: #007bff;
    margin-bottom: 20px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.related-product-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.related-product-info {
    padding: 10px;
}

.related-product-info h4 {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 5px;
}

.related-product-info h4 a {
    color: #333;
    text-decoration: none;
}

.related-product-info h4 a:hover {
    color: #007bff;
}

.related-product-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #007bff;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-container {
        flex-direction: column;
    }

    .filters-sidebar {
        flex: none;
        width: 100%;
    }

    .product-detail {
        flex-direction: column;
    }

    .product-image-section,
    .product-info-section {
        min-width: unset;
        max-width: 100%;
    }

    .product-actions {
        flex-direction: column;
    }

    .add-to-cart-btn,
    .notify-btn,
    .wishlist-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header nav {
        float: none;
        text-align: center;
        margin-top: 10px;
    }

    header nav ul li {
        margin: 0 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }
}


