/* =====================================================
   UX MODERN BESTSELLERS – FINAL v3
   Button wider / Perfect center / Trendyol feel
===================================================== */

.umb-wrap {
  --umb-cols-desktop: 7;
  --umb-cols-tablet: 4;
  --umb-cols-mobile: 2;
  --umb-gap: 18px;
  --umb-accent: #ff7a00;
  width: 100%;
}

/* ================= GRID ================= */

.umb-grid {
  display: grid;
  gap: var(--umb-gap);
  grid-template-columns: repeat(var(--umb-cols-desktop), 1fr);
}

@media (max-width: 980px) {
  .umb-grid {
    grid-template-columns: repeat(var(--umb-cols-tablet), 1fr);
  }
}
@media (max-width: 560px) {
  .umb-grid {
    grid-template-columns: repeat(var(--umb-cols-mobile), 1fr);
  }
}

/* ================= CARD ================= */

.umb-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 16px 38px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  min-height: 380px;
  transition: all .2s ease;
}

.umb-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 56px rgba(0,0,0,.14);
}

/* ================= IMAGE ================= */

.umb-media {
  height: 200px;
  padding: 16px;
  position: relative;
}

.umb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ================= DISCOUNT BADGE ================= */

.umb-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--umb-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ================= BODY ================= */

.umb-body {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ================= TITLE ================= */

.umb-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #222;
  margin-bottom: 8px;
  min-height: 40px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= META ================= */

.umb-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 10px;
}

.umb-rating {
  color: #f6b100;
  font-weight: 700;
}

/* ================= PRICE + BUTTON ================= */

.umb-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* PRICE */
.umb-price {
  font-size: 16px;
  font-weight: 900;
  color: #000;
  text-align: center;
}

.umb-price del {
  opacity: .4;
  margin-right: 6px;
}

.umb-price ins {
  text-decoration: none;
}

/* ================= BUTTON ================= */

.umb-cart {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* BUTON KARTI DOLDURACAK ŞEKİLDE */
.umb-cart a.button,
.umb-cart a.add_to_cart_button,
.umb-cart a.product_type_simple,
.umb-cart a.product_type_variable {
  width: 92%;               /* 🔥 DAHA GENİŞ */
  max-width: 280px;         /* kartı ortalıyor */
  height: 48px;

  display: flex !important;
  align-items: center;
  justify-content: center;

  background: linear-gradient(180deg, #ff9f2f, var(--umb-accent));
  color: #fff !important;

  font-size: 13.5px !important;
  font-weight: 900;
  letter-spacing: .35px;

  border-radius: 16px !important;
  border: none !important;
  padding: 0 !important;

  box-shadow: 0 18px 40px rgba(255,122,0,.38);
  transition: all .2s ease;
  text-transform: none !important;
  white-space: nowrap;
}

/* HOVER */
.umb-cart a:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 56px rgba(255,122,0,.48);
}

/* "View cart" linki gizle */
.umb-cart a.added_to_cart {
  display: none !important;
}

/* ================= MOBILE ================= */

@media (max-width: 560px) {
  .umb-card {
    min-height: 350px;
  }

  .umb-media {
    height: 175px;
  }

  .umb-cart a {
    width: 96%;
    height: 46px;
  }
}

/* === GRID WRAPPER SAĞ-SOL BOŞLUK & ORTALAMA === */

/* Tüm bestseller alanı */
.umb-wrap {
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* Büyük ekranlarda biraz daha ferah */
@media (min-width: 1400px) {
  .umb-wrap {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Mobilde kenara yapışmasın */
@media (max-width: 560px) {
  .umb-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}
