
.tanedorost-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  padding: 40px 20px;
  direction: rtl;
  font-family: Vazir, sans-serif;
}
.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.product-gallery {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.product-gallery img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #ddd;
  cursor: pointer;
}
.product-info {
  padding: 16px;
}
.product-info h2 {
  font-size: 18px;
  margin-bottom: 10px;
}
.product-specs {
  font-size: 14px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}
.show-more {
  background: #eee;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
}

/* Popup */
.tanedorost-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}
.tanedorost-modal-content {
  background: white;
  margin: 10% auto;
  padding: 24px;
  width: 90%;
  max-width: 600px;
  border-radius: 16px;
  position: relative;
}
.tanedorost-modal-close {
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 24px;
  cursor: pointer;
}

.buy-button {
  display: block;                /* تمام عرض کارت */
  width: 100%;                   /* از چپ تا راست */
  background-color: #4CAF50;
  color: white;
  text-decoration: none;
  text-align: center;
  margin-top: 12px;
  padding: 10px 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s;
}
.buy-button:hover {
  background-color: #388e3c;
}


