    .product-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 25px;
    }

    @media (max-width: 1024px) {
      .product-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 600px) {
      .product-grid {
        grid-template-columns: 1fr;
      }
    }

    .product-card {
      background: #fff;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 15px;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .product-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .product-image {
      position: relative;
      width: 70px;
      height: 70px;
      margin: auto;
    }

    .product-image img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      border-radius: 8px;
    }

    .badge {
      position: absolute;
      top: -8px;
      left: -8px;
      background: #10b981;
      color: #fff;
      font-size: 0.7rem;
      font-weight: 600;
      padding: 3px 6px;
      border-radius: 6px;
    }

    .product-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: #333;
      line-height: 1.4;
      text-align: center;
      min-height: 40px;
    }

    .product-title a {
      text-decoration: none;
      color:#000;
    }

    .pieces {
      display: inline-block;
      background: #ecfdf5;
      color: #10b981;
      font-size: 1rem;
      font-weight: 500;
      padding: 4px 10px;
      border-radius: 30px;
      margin: auto;
    }

    .price {
      text-align: center;
    }

    .price .current {
      font-size: 1.2rem;
      font-weight: 700;
      color: #111;
      margin-right: 8px;
    }

    .price .old {
      font-size: 0.9rem;
      color: #9ca3af;
      text-decoration: line-through;
    }

    .btn-buy {
      display: block;
      text-align: center;
      background: #10b981;
      color: #fff;
      padding: 12px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      transition: background 0.3s ease;
    }
    .btn-buy-out {
      display: block;
      text-align: center;
      background: #9ab981;
      color: #fff;
      padding: 12px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      transition: background 0.3s ease;
      cursor: not-allowed;
    }

    .btn-buy i {
      margin-left: 8px;
    }

    .btn-buy:hover {
      background: #059669;
    }

    .btn-buy-a a {
        color: #ffffff;
        text-decoration: none;
    }


    /* Support Button */


    /* Floating Support Button */
    .support-btn {
      position: fixed;
      bottom: 20px;
      left: 20px;
      background: #007bff;
      color: #fff;
      padding: 12px 18px;
      border-radius: 50px;
      cursor: pointer;
      font-weight: bold;
      display: flex;
      align-items: center;
      gap: 5px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      transition: 0.3s;
      z-index: 999;
    }
    .support-btn:hover {
      background: #0056b3;
    }

    /* Chat Popup */
    .chat-popup {
      position: fixed;
      bottom: 80px;
      left: 20px;
      width: 320px;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      display: none;
      flex-direction: column;
      z-index: 1000;
    }

    /* Header */
    .chat-header {
      background: #f5f5f5;
      padding: 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top-left-radius: 10px;
      border-top-right-radius: 10px;
    }
    .chat-header strong {
      font-size: 14px;
    }
    .chat-header span {
      color: green;
      font-size: 12px;
    }
    .chat-close {
      cursor: pointer;
      font-weight: bold;
    }

    /* Message area */
    .chat-body {
      padding: 15px;
      font-size: 14px;
      color: #333;
    }
    .chat-body strong {
      font-weight: bold;
    }

    /* Action buttons */
    .chat-actions {
      display: flex;
      gap: 10px;
      padding: 15px;
    }
    .chat-actions a {
      flex: 1;
      text-align: center;
      padding: 10px;
      border-radius: 6px;
      font-size: 14px;
      text-decoration: none;
      color: #fff;
      font-weight: bold;
    }
    .whatsapp {
      background: #25D366;
    }
    .telegram {
      background: #0088cc;
    }


   /* Modal Overlay */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Modal Content */
.modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-wrap: nowrap;        /* keep side by side */
  align-items: stretch;     /* equal height */
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 10;
  width: 32px;
  height: 32px;
  background-color: #e0e7ff;  /* soft indigo background */
  color: #3730a3;             /* indigo-800 icon color */
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.close-btn:hover {
  background-color: #c7d2fe; /* lighter indigo on hover */
  color: #1e3a8a;            /* deeper indigo icon */
}

/* Left image */
.modal-left {
  flex: 1 1 300px;
  background: #f4f4f4;
  display: flex;
  align-items: center;   /* vertical center */
  justify-content: center;
  padding: 20px;
}
.modal-left img {
  width: 100%;
  max-width: 250px;
  border-radius: 12px;
}

/* Right content */
.modal-right {
  flex: 2 1 400px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* keep content balanced */
}
.modal-right h2 {
  font-size: 20px;
  margin-bottom: 12px;
}
.features {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}
.features li {
  margin-bottom: 8px;
  color: #374151;
}
.features li::before {
  content: "✔";
  color: #059669;
  margin-right: 6px;
}
.new-price {
  font-size: 18px;
  font-weight: bold;
  color: #059669;
  margin-bottom: 10px;
}
.old-price {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 14px;
  margin-left: 5px;
}

/* Quantity */
.quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap; /* mobile safe */
}
.quantity button {
  width: 30px;
  height: 30px;
  border: none;
  background: #e5e7eb;
  cursor: pointer;
  border-radius: 6px;
  font-size: 18px;
}
.quantity input {
  width: 50px;
  text-align: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 5px;
}
.stock {
  background: #d1fae5;
  color: #065f46;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
}

/* CTA Button */
.buy-now {
  padding: 12px 24px;
  background: #059669;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
  width: fit-content; /* button stays compact */
}
.buy-now:hover {
  background: #047857;
}

/* Animation */
@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}

/* Mobile */
@media (max-width: 600px) {
  .modal-content {
    flex-direction: column;
    max-width: 95%;
  }
  .modal-left, 
  .modal-right {
    flex: 1 1 100%;
    padding: 15px;
  }
  .modal-left img {
    max-width: 200px;
  }
  .buy-now {
    width: 100%; /* full width on mobile */
    text-align: center;
  }
}


.text-danger {
  color: #dc2626;
}


.spinner-border {
  margin-left: 5px;
}

.d-none {
    display: none;
}