
/* Product style */
    .product-grid {
        display: grid;
        gap: 20px;
        padding: 20px;
        max-width: 1400px;
        margin: 0 auto;
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }
    
    @media (min-width: 640px) {
        .product-grid {
            grid-template-columns: repeat(3, 1fr); /* 3 columns on tablets */
        }
    }
    
    @media (min-width: 1024px) {
        .product-grid {
            grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
        }
    }
    
    @media (min-width: 1280px) {
        .product-grid {
            grid-template-columns: repeat(5, 1fr); /* 5 columns on large desktop */
        }
    }
    
    .product-card {
        background: white;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: transform 0.3s, box-shadow 0.3s;
    }
    
    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    
    .product-image {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 5px;
    }
    
    .product-title {
        font-weight: bold;
        margin-top: 10px;
        margin-bottom: 5px;
        font-size: 14px;
    }
    
    .product-description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #666;
        font-size: 11px;
        line-height: 1.3;
    }
    
    .add-to-cart-btn {
        width: 100%;
        background-color: #3b82f6;
        color: white;
        padding: 6px 10px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 12px;
        transition: background-color 0.3s;
        margin-top: 10px;
    }
    
    .add-to-cart-btn:hover {
        background-color: #2563eb;
    }
    
    @media (min-width: 640px) {
        .product-image {
            height: 180px;
        }
        .product-title {
            font-size: 16px;
        }
        .add-to-cart-btn {
            padding: 8px 12px;
            font-size: 14px;
        }
    }

/* The background overlay */
.overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  
  /* Centering Logic */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* The actual white box */
.modal-box {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 300px;
  text-align: center;
}

/* Class to show the modal */
.show {
  display: flex; /* Switches from 'none' to 'flex' to center the content */
}

.add-to-cart-btn {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.add-to-cart-btn:hover {
  background-color: #45a049;
}