 /* Reset */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: Arial, sans-serif;
  }
/* ✅ Floating cart for all screens */
#cartContainer {
  position: fixed;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: all 0.4s ease;
}

 .thumb {
        flex-shrink: 0;
        width: 100%;
        height: auto;              /* Allow natural height */
        max-height: 300px;         /* Optional: limit max height to keep cards uniform */
        object-fit: contain;       /* Show full image, no cropping */
        background: #f9fafb;       /* Light background for letterboxing if needed */
        border-radius: 16px;
        padding: 8px;              /* Optional: small inner padding for better look */
        box-sizing: border-box;
      }
   
      .product-card {
        background: white;
        border-radius: 20px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        overflow: hidden;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        height: 100%;
        display: flex;
        flex-direction: column;
      }
      .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
      }
      .price-badge {
        background: #0b6e4f;
        color: white;
        padding: 6px 12px;
        border-radius: 9999px;
        font-weight: bold;
        font-size: 0.875rem;
      }
      .low-stock {
        background: #fef3c7;
        color: #92400e;
        padding: 4px 10px;
        border-radius: 9999px;
        font-size: 0.8rem;
      }

      /* Dark mode */
      [data-theme="dark"] {
        background-color: #1e293b;
        color: #e2e8f0;
      }
      [data-theme="dark"] .product-card {
        background: #1e293b;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
      }

      /* Floating cart */
      #cartContainer {
        position: fixed;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        z-index: 1000;
        transition: all 0.4s ease;
      }
      [data-theme="dark"] #cartContainer { background: #1e293b; }
      @media (min-width: 1024px) {
        #cartContainer {
          top: 1rem;
          right: 1rem;
          width: 340px;
          max-height: 90vh;
          overflow-y: auto;
        }
      }
      @media (max-width: 1023px) {
        #cartContainer {
          bottom: 0;
          left: 0;
          right: 0;
          width: 100%;
          border-radius: 16px 16px 0 0;
          max-height: 60vh;
          overflow-y: auto;
        }
      }

      #floatingCartBtn {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }
      #floatingCartBtn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 18px rgba(0,0,0,0.25);
      }
      @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
        70% { box-shadow: 0 0 0 15px rgba(34,197,94,0); }
        100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
      }
      #floatingCartBtn.pulse {
        animation: pulse 2s infinite;
      }

@media (min-width: 1024px) {
  #cartContainer {
    top: 1rem;
    right: 1rem;
    width: 320px;
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 1023px) {
  #cartContainer {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 60vh;
    overflow-y: auto;
  }
}

  /* Navbar container */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0d6efd;
    padding: 10px 20px;
    color: white;
  }

  /* Logo and site name */
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo img {
    width: 35px;
    height: 35px;
  }

  .logo h1 {
    font-size: 20px;
    font-weight: 600;
  }

  /* Menu items */
  .nav-links {
    display: flex;
    gap: 25px;
  }

  .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
  }

  .nav-links a:hover {
    text-decoration: underline;
  }

  /* Hamburger icon */
  .menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }

  .menu-toggle span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px 0;
    border-radius: 3px;
  }

  /* Responsive styles */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: #0d6efd;
      position: absolute;
      top: 60px;
      right: 0;
      width: 180px;
      border-radius: 5px;
      padding: 10px 0;
    }

    .nav-links.show {
      display: flex;
    }

    .menu-toggle {
      display: flex;
    }

  }
/*Card modification Css*/
/* Floating cart button */
#floatingCartBtn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#floatingCartBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Optional pulse animation to draw attention */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  70% { box-shadow: 0 0 0 15px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
#floatingCartBtn.pulse {
  animation: pulse 2s infinite;
}

