/* ============================================================
   BUHARAGROUP  ÜRÜNLER SAYFASI (HTML UYUMLU TAM SÜRÜM)
   Mevcut HTML yapina göre %100 optimize edildi
============================================================ */

/* GENEL YAPI ------------------------------------------------ */
.buharagroup-main-urunler {
  padding: 20px 0;
  background: #f8f8f8;
}

.buharagroup-urunler-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

/* SAYFA BASLIK --------------------------------------------- */
.buharagroup-page-header { margin-bottom: 25px; }
.buharagroup-page-title { font-size: 28px; font-weight: 700; color: #222; }
.buharagroup-page-subtitle { font-size: 15px; color: #666; margin-top: 5px; }

/* SIRALAMA -------------------------------------------------- */
.buharagroup-sort-wrapper { margin-bottom: 20px; position: relative; }
.buharagroup-sort-btn {
  background: #fff; border: 1px solid #ddd; padding: 10px 14px;
  border-radius: 6px; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
   z-index: 9999;        /* en öne getirir */

}
.buharagroup-sort-menu {
  display: none; position: absolute; top: 45px; left: 0;
  background: #fff; border: 1px solid #ddd; width: 220px;
  border-radius: 6px; z-index: 20;
  z-index: 9999;        /* en öne getirir */

}
.buharagroup-sort-menu div { padding: 10px; cursor: pointer; font-size: 14px; z-index: 9999;  /* en öne getirir */ }
.buharagroup-sort-menu div:hover { background: #f0f0f0; }

/* GRID ------------------------------------------------------ */
.buharagroup-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

/* ÜRÜN KARTI ------------------------------------------------ */
.buharagroup-product-card {
  background: #ffffff; /* zemin rengi: yari saydam yesil */
  border-radius: 10px;
  overflow: hidden;
  padding: 12px;
  position: relative;
  height: 380px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: 0.25s ease;
  border: 1px solid transparent; /* dis çizgi için */
}

.buharagroup-product-card:hover {
  box-shadow: 0 4px 18px #6b8e2338;; /* gölge rengi: yesil (#538507) */
  transform: translateY(-3px) scale(1.02); /* hover'da büyütme */
  border: 1px solid #78C207; /* yesil ince çizgi */
}
/* ÜRÜN GÖRSELI --------------------------------------------- */
.buharagroup-product-image-wrapper {
  position: relative;
  height: 260px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.buharagroup-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease; /* geçis efekti */
}

/* Kart hover oldugunda sadece görseli büyüt */
.buharagroup-product-card:hover .buharagroup-product-image {
  transform: scale(1.40); /* görseli %8 büyüt */
}

.confetti img {
  position: absolute;
  width: 40px;   /* yaprak boyutu */
  height: 40px;
  animation: explode 2s ease forwards; 
}

@keyframes explode {
  0% {
    transform: translate(0,0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--rand-x), var(--rand-y)) rotate(720deg);
    opacity: 0;
  }
}

/* FIRSAT ETIKETI ------------------------------------------- */
.firsat-etiket {
  position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg, #f7d774, #e6b93c);
  color: #000; padding: 10px 14px; border-radius: 8px;
  text-align: center; font-weight: 700; z-index: 30;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  border: 1px solid #d1a837; min-width: 90px;
}
.firsat-title { font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase; }
.firsat-sub { font-size: 11px; margin-top: 2px; opacity: 0.85; text-transform: uppercase; }

/* ÜST KAMPANYA ETIKETLERI ---------------------------------- */
.bg-urun-kampanya-ust {
  position: absolute; top: 10px; left: 10px;
  background: rgba(230, 57, 70, 0.95); color: #fff;
  padding: 6px 8px; border-radius: 6px; font-size: 11px;
  font-weight: 600; z-index: 20; max-width: 70%; line-height: 1.2;
}
.bg-urun-kampanya-ust-satir { margin-bottom: 2px; }

/* ALT KIRMIZI SERIT ---------------------------------------- */
.bg-urun-kampanya-alt-kirmizi {
  position: absolute; bottom: 26px; left: 0; right: 0;
  background: #e63946; color: #fff; font-size: 11px;
  font-weight: 600; padding: 4px 6px; text-align: center;
}

/* CART ------------------------------------------------------ */
.bgurunler-cart { display: flex; justify-content: center; align-items: center; min-height: calc(60vh - 5px); }
.bgurunler-cart-inner { text-align: center; }
.bgurunler-cart-img { width: 100%; object-fit: contain; margin-bottom: 20px; }
.bgurunler-cart-btn { display: inline-block; width: 220px; }
.bgurunler-cart-btn img { width: 100%; height: auto; display: block; }

/* MAVI SERIT ------------------------------------------------ */
.bg-urun-kampanya-mavi {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #e3f2fd; color: #0d47a1; font-size: 11px;
  font-weight: 600; padding: 4px 6px; text-align: center;
}

/* ÜRÜN IÇERIK ---------------------------------------------- */
.buharagroup-product-content { flex: 1; display: flex; flex-direction: column; }
.buharagroup-product-title {
  font-size: 15px; font-weight: 600; color: #333; /* koyu gri */
  min-height: 40px; margin-bottom: 6px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* RATING ---------------------------------------------------- */
.buharagroup-product-rating {
  font-size: 13px; width:65px; color: #444;
  display: flex; align-items: center; gap: 4px; margin-bottom: 8px;
}
.buharagroup-stars .star { font-size: 15px; }
.star.full { color: #ffb703; }
.star.half { color: #ffb703; opacity: 0.6; }
.star.empty { color: #ccc; }

/* FIYAT ----------------------------------------------------- */
.buharagroup-product-prices { margin-top: auto; }
.buharagroup-price-old { font-size: 13px; color: #888; text-decoration: line-through; }
.buharagroup-price-new { font-size: 18px; font-weight: 700; color: #d32f2f; }
.buharagroup-price-main { font-size: 18px; font-weight: 700; color: #222; }

/* FIYAT ALTI KAMPANYA SATIRLARI ---------------------------- */
.bg-urun-kampanya-fiyat-alt { margin-top: 6px; font-size: 11px; color: #555; }

/* SEPET & BEGENI BUTONLARI --------------------------------- */
.buharagroup-product-actions { display: flex; gap: 10px; margin-top: 12px; }
.bg-btn-sepete-ekle,
.bg-btn-begen {
  position: absolute; padding: 8px 12px; border-radius: 6px;
  border: 1px solid #ddd; background: #fff; cursor: pointer;
  font-size: 14px; transition: 0.2s; bottom: 10px;
}
.bg-btn-sepete-ekle:hover { background: #e3f2fd; }
.bg-btn-begen:hover { background: #ffe3e3; }
.bg-btn-begen.active { background: #ff4d6d; color: #fff; }

.buharagroup-product-actions { position: absolute; top: 8px; right: 8px; }

/* SAG ÜST IKONLAR ------------------------------------------ */
.buharagroup-product-icons {
  position: absolute; top: 8px; right: 8px;
  display: flex; flex-direction: column; gap: 6px; z-index: 20;
}

.buharagroup-product-cart,
.buharagroup-product-like {
  background: #fff;
  border: 1px solid #ddd;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.buharagroup-product-like.active {
  background: #ff4d6d;
  color: #fff;
  border-color: #ff4d6d;
}

.buharagroup-product-cart.active {
  background: #d35400;
  color: #fff;
}

/* ALTTaki SEPETE EKLE BUTONU */
.buharagroup-product-actions-bottom {
  margin-top: 12px;
}

.buharagroup-product-actions-bottom .bg-btn-sepete-ekle:hover {
  background: none;
}

.buharagroup-product-topline {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Linkler için genel stil */
a {
  color: #555;          /* gri renk */
  text-decoration: none; /* alt çizgiyi kaldir */
}

/* Hover durumunda */
a:hover {
  color: #333;           /* koyu gri */
  text-decoration: underline; /* istersen hover'da alt çizgi ekleyebilirsin */
}

/* RESPONSIVE ------------------------------------------------ */
@media (max-width: 768px) {
  .buharagroup-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 576px) {
  .buharagroup-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 420px) {
  .buharagroup-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}