 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: "Segoe UI", sans-serif;
     background: linear-gradient(135deg, #fafafa, #e5c8ff);
     min-height: 100vh;
 }

 h1 {
     text-align: center;
     font-size: 48px;
     margin: 30px 0;
     color: #434343;
 }


 #addcart {
     position: fixed;
     top: 20px;
     right: 20px;
     display: flex;
     align-items: center;
     gap: 8px;
     background: white;
     padding: 8px 14px;
     border-radius: 30px;
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
     cursor: pointer;
 }

 #addcart img {
     width: 26px;
 }

 #cartCount {
     background: #ef4444;
     color: white;
     font-size: 12px;
     font-weight: bold;
     padding: 3px 8px;
     border-radius: 50%;
 }

 .container {
     max-width: 1300px;
     margin: auto;
     padding: 0 30px;
 }

 #productDiv {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
     gap: 20px;
     margin-bottom: 40px;
     /* border: 1px solid black; */
 }

 .card {
     background: rgba(255, 255, 255, 0.95);
     border-radius: 10px;
     padding: 16px;
     box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
     display: flex;
     flex-direction: column;
     transition: 0.5s;
     align-items: center;
 }

 .card:hover {
     transform: translateY(-10px) scale(1);
 }

 .card img {
     height: 160px;
     object-fit: contain;
     margin-bottom: 12px;
     box-shadow: 0 10px 25px rgb(235, 235, 235);
 }

 .title {
     align-items: center;
     font-size: 14px;
     font-weight: 600;
     color: #111827;
     height: 36px;
     overflow: hidden;
     margin-bottom: 6px;
     text-align: center;
     justify-content: center;

 }

 .card h4 {
     color: #2a85e1;
     margin-bottom: 12px;
     font-size: 16px;
     align-self: flex-start;
     margin: 8px 0;
     font-weight: bold;
 }

 .card button {
     width: fit-content;
     justify-content: center;
     align-items: center;
     margin-top: auto;
     border: none;
     padding: 10px;
     border-radius: 12px;
     font-weight: bold;
     color: rgb(255, 255, 255);
     background: linear-gradient(135deg, #8347b8, #8985dc);
     cursor: pointer;
     transition: 0.3s;
 }

 .card button:hover {
     background: linear-gradient(135deg, #8985dc, #8347b8);
     transform: scale(1.05);
 }