/* Import Lato Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;700&display=swap');

/* General Styles for Shop Page */
body {
    font-family: 'Lato', sans-serif; /* Set Lato as the default font */
}

.shop-container {
    width: 100%;
    padding: 120px 20px 20px 20px; /* Added top padding to accommodate fixed header */
    margin: 0 auto;
    max-width: 1200px;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.shop-header {
    position: fixed;               /* Fixes the header to the top */
    top: 75px;                     /* Adjust this value to match the height of your navigation header */
    left: 0;                       /* Aligns it to the left */
    width: 100%;                   /* Ensures it spans the full width */
    background-color: #ffffff;     /* White background for readability */
    text-align: center;            /* Centers the text */
    padding: 10px 0;               /* Reduced vertical padding for a thinner header */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
    z-index: 1;                  /* Sets z-index below 999 */
}

.shop-header h1 {
    font-size: 2.5em;
    font-weight: 300;              /* Use Lato Light */
    color: #000;
    margin: 0;                      /* Remove default margins */
}

.shop-logo {
    max-width: 100px;              /* Reduced max-width to prevent SVG from being too large */
    width: 100%;                    /* Ensures responsiveness */
    height: auto;
    margin-bottom: 10px;
    display: block;                 /* Centers the logo within the header */
    margin-left: auto;
    margin-right: auto;
}

/* Product Grid Styles */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Change from space-between to center when 2 products */
    gap: 20px;
}

.product-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: left;
    width: calc(33.333% - 20px);
    box-sizing: border-box;
    position: relative;
    transition: transform 0.3s ease;
}

@media (min-width: 769px) {
    /* Target scenarios where only 2 products are displayed */
    .product-grid.two-products {
        justify-content: space-around; /* Center the two products more */
    }
}

.product-item:hover {
    transform: translateY(-5px);
}

/* If there are 2 products, center them */
.product-grid .product-item:nth-child(2) {
    margin-left: auto;
    margin-right: auto;
}

/* Product Image */
.product-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Product Details */
.product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 20px;
}

.product-name {
    font-size: 1.2em;
    font-weight: 700;              /* Use Lato Bold */
    margin: 0;
    color: #333;
    text-decoration: none;
    display: inline-block;
}

.product-name:hover {
    text-decoration: underline;
}

.product-price {
    font-size: 1.1em;
    font-weight: 300;              /* Use Lato Light */
    color: #000;
    margin-bottom: 10px;
    display: block;
}

/* Wishlist Button */
.wishlist-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin: 0;
    color: #333;
    transition: color 0.2s ease;
}

.wishlist-button i {
    vertical-align: middle; /* Aligns icon with the text */
}

.wishlist-button i:hover {
    color: #ff0000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-item {
        width: calc(50% - 15px);
    }

    .shop-header {
        padding: 10px 0; /* Maintain thinner header padding on tablets */
    }

    .shop-header h1 {
        font-size: 2.2em; /* Slightly smaller font for tablets */
        font-weight: 300; /* Ensure Lato Light is used */
    }

    .shop-logo {
        max-width: 80px; /* Reduced logo size for tablets */
    }
}

@media (max-width: 480px) {
    .product-item {
        width: 100%;
        margin-bottom: 20px;
    }

    .shop-logo {
        max-width: 60px; /* Further reduced logo size for mobile */
    }

    .shop-header h1 {
        font-size: 2em; /* Reduce font size for better fit */
        font-weight: 300; /* Ensure Lato Light is used */
    }
}

.no-products-message{
  margin-top: 40px;
  margin-bottom: 20px;
}

/* The rest of your CSS remains unchanged */
