/* en cox satilanlar */
.best-sellers {
  max-width: 1200px;
  margin: 50px auto;
  text-align: center;
  margin-top: 50px;
}
.best-sellers h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #333;
}

.product-item {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.3s;
}
.product-item:hover {
  transform: scale(1.03);
}
.product-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.product-item p {
  margin-top: 10px;
  font-weight: 500;
  color: #444;
}
/*  */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 10px;
}

.product-item {
  width: 100%;
  max-width: 340px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  box-sizing: border-box;
  /* flex: 1 1 180px; */
  margin-top: 30px;
}

.product-item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.product-item p {
  margin: 10px 0;
  font-weight: 600;
  color: #333;
}

.btn-fav,
.btn-wp,
.btn-view {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

.btn-fav {
  background: #ffebeb;
  color: #c00;
}

.btn-wp {
  background: #25d366;
  color: #fff;
}

.btn-view {
  background-color: #009087;
  color: white;
}

@media (max-width: 768px) {
  .product-item {
    max-width: 45%;
  }
}

@media (max-width: 500px) {
  .product-item {
    max-width: 90%;
  }
}
.product-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; /* görünüş sabit olsun */
  object-fit: contain;
}
.product-name {
  font-size: 16px;
  margin: 10px 0;
}
.product-name a {
  color: #333;
  text-decoration: none;
}
.product-name a:hover {
  text-decoration: underline;
}

/*  */
/* === Yeni ümumi düymə stili === */
.btn-fav,
.btn-wp,
.btn-view {
  font-size: 12px;
  --btn-radius: 9999px;
  --btn-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  --btn-shadow-hover: 0 10px 22px rgba(0, 0, 0, 0.18);

  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.6rem;
  border-radius: var(--btn-radius);
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--btn-shadow);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Klik effekti */
.btn-fav:active,
.btn-wp:active,
.btn-view:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

/* Klaviatura fokus */
.btn-fav:focus-visible,
.btn-wp:focus-visible,
.btn-view:focus-visible {
  outline: 3px solid rgba(155, 142, 22, 0.6); /* #9b8e16 */
  outline-offset: 2px;
}

/* ❤️ Favori – soft pill */
.btn-fav {
  background: #ffe8ec;
  color: #c5162b;
  border-color: #ffd6dc;
}
.btn-fav:hover {
  background: #ffdfe6;
  box-shadow: var(--btn-shadow-hover);
}

/* 📱 WhatsApp – brend rəngi */
.btn-wp {
  background: #25d366;
  color: #fff;
  border-color: #1fb85a;
}
.btn-wp:hover {
  background: #1ea955;
  box-shadow: var(--btn-shadow-hover);
}

/* 👁️ Bax – şık gradient/teal */
.btn-view {
  background: linear-gradient(135deg, #019fa0, #007a74);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.05);
}
.btn-view:hover {
  filter: brightness(1.04);
  box-shadow: var(--btn-shadow-hover);
}

/* Kart içində yerləşmə: aralarını aç */
.product-item .btn-fav,
.product-item .btn-wp,
.product-item .btn-view {
  margin: 8px 2px 0 6px;
}
