/* Simple Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
  }
  
/* Base Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
  }
  
  /* Logo Styling */
  .logo {
    max-width: 50px;
  }
  
  .logo img {
    width: 100%;
    height: auto;
  }
  
  /* Navigation Links */
  .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-links li {
    margin-left: 2rem;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .nav-links a:hover {
    color: #0066cc;
  }
  
  /* Menu Icons - initially hidden on desktop */
  .menu-icon, .close-icon {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
  }
  
  /* Responsive Styles */
  @media screen and (max-width: 768px) {
    /* Show menu icon, hide navigation by default */
    .menu-icon {
      display: block;
      z-index: 101;
    }
    
    /* Hide close icon initially */
    .close-icon {
      display: none;
      position: absolute;
      top: 1rem;
      right: 1rem;
      z-index: 101;
    }
    
    /* Navigation for mobile */
    nav {
      position: relative;
    }
    
    .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      width: 70%;
      height: 80vh;
      flex-direction: column;
      background-color: #fff;
      padding: 5rem 2rem 2rem;
      box-shadow: -2px 0 5px rgba(0,0,0,0.1);
      transition: right 0.3s ease;
      z-index: 100;
    }
    
    .nav-links.active {
      right: 0;
    }
    
    .nav-links li {
      margin: 1.5rem 0;
    }
    
    /* When menu is open, show close icon */
    .nav-links.active ~ .close-icon {
      display: block;
    }
  }

  
  /* Main Content */
  main {
    padding: 20px;
  }
  
  h1 {
    text-align: center;
    margin: 30px 0;
    color: #333;
  }
  
  /* Product List */
  .product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .product-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    background: white;
  }
  
  .product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .product-details {
    padding: 15px;
  }
  
  .product-name {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
  }
  
  .product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
  }
  
  .product-price {
    font-weight: bold;
    color: #222;
  }
  
  /* Footer */
  .footer {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
  }
  
  .footer-links {
    margin-top: 10px;
  }
  
  .footer-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
  }
  
  .footer-links a:hover {
    text-decoration: underline;
  }
  
  /* Mobile Styles */
  @media (max-width: 768px) {
    
    .product-list {
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .product-image {
      height: 160px;
    }
  }
  
  /* Tablet Styles */
  @media (min-width: 769px) and (max-width: 1024px) {
    .product-list {
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
  }