/* =========================================================
   BÜROMOTTO HOMEPAGE POLISH v1.0.1
   Popüler ürünleri premium vitrin tasarımına çevirir
=========================================================*/

/* Bölümler arası gereksiz boşluk */
body.home .bmhp-cat-section {
  margin-bottom: 28px !important;
  padding-bottom: 0 !important;
}

body.home .bmhp-popular-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
  position: relative !important;
}

/* Başlık alanı sade kalsın, rozet/pill yapılmasın */
body.home .bmhp-popular-section > span,
body.home .bmhp-popular-section .section-subtitle,
body.home .bmhp-popular-section .subtitle,
body.home .bmhp-popular-section [class*="subtitle"] {
  color: #e92828 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
}

body.home .bmhp-popular-section h1,
body.home .bmhp-popular-section h2,
body.home .bmhp-popular-section h3 {
  margin-top: 0 !important;
  margin-bottom: 28px !important;
  color: #101820 !important;
  font-weight: 950 !important;
  letter-spacing: -.7px !important;
}

/* Popüler ürün grid/slider alanı */
body.home .bmhp-popular-section ul.products,
body.home .bmhp-popular-section .products,
body.home .bmhp-popular-section .swiper-wrapper {
  align-items: stretch !important;
}

/* Kart ana gövde */
body.home .bmhp-popular-section li.product,
body.home .bmhp-popular-section .product,
body.home .bmhp-popular-section article.product,
body.home .bmhp-popular-section .swiper-slide {
  border-radius: 30px !important;
  background: #ffffff !important;
  border: 1px solid rgba(16,24,32,.075) !important;
  box-shadow: 0 24px 70px rgba(16,24,32,.08) !important;
  overflow: hidden !important;
  padding: 16px !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}

body.home .bmhp-popular-section li.product:hover,
body.home .bmhp-popular-section .product:hover,
body.home .bmhp-popular-section article.product:hover,
body.home .bmhp-popular-section .swiper-slide:hover {
  transform: translateY(-7px) !important;
  border-color: rgba(233,40,40,.18) !important;
  box-shadow: 0 32px 90px rgba(16,24,32,.12) !important;
}

/* Ürün link alanı */
body.home .bmhp-popular-section li.product a.woocommerce-LoopProduct-link,
body.home .bmhp-popular-section .product a.woocommerce-LoopProduct-link {
  display: block !important;
  text-decoration: none !important;
}

/* Görsel alanı: daha büyük, premium, temiz */
body.home .bmhp-popular-section .product img,
body.home .bmhp-popular-section li.product img,
body.home .bmhp-popular-section article img,
body.home .bmhp-popular-section .product-card img {
  display: block !important;
  width: 100% !important;
  height: 245px !important;
  max-height: 245px !important;
  object-fit: contain !important;
  background: linear-gradient(180deg, #fbfcfd 0%, #f4f6f8 100%) !important;
  padding: 28px !important;
  margin: 0 0 18px !important;
  border-radius: 24px !important;
  transition: transform .28s ease !important;
}

body.home .bmhp-popular-section li.product:hover img,
body.home .bmhp-popular-section .product:hover img {
  transform: scale(1.045) !important;
}

/* İndirim rozeti sadece ürün kartındaki sale rozetlerine uygulansın */
body.home .bmhp-popular-section .onsale,
body.home .bmhp-popular-section .sale-badge,
body.home .bmhp-popular-section .product-badge,
body.home .bmhp-popular-section .ct-woo-card-badge {
  position: absolute !important;
  left: 24px !important;
  top: 24px !important;
  z-index: 3 !important;
  background: #e92828 !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 9px 13px !important;
  min-width: auto !important;
  min-height: auto !important;
  line-height: 1 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  box-shadow: 0 14px 30px rgba(233,40,40,.24) !important;
}

/* Kategori/etiket gibi gereksiz metinler gizlensin */
body.home .bmhp-popular-section .posted_in,
body.home .bmhp-popular-section .product_meta,
body.home .bmhp-popular-section .ct-woo-card-extra,
body.home .bmhp-popular-section .ct-product-categories,
body.home .bmhp-popular-section .product-categories,
body.home .bmhp-popular-section .product-category,
body.home .bmhp-popular-section .category {
  display: none !important;
}

/* Başlık */
body.home .bmhp-popular-section .woocommerce-loop-product__title,
body.home .bmhp-popular-section .ct-product-title,
body.home .bmhp-popular-section .product-title {
  display: block !important;
  color: #101820 !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 950 !important;
  min-height: 50px !important;
  margin: 0 2px 12px !important;
  padding: 0 !important;
  letter-spacing: -.25px !important;
}

/* Tema h2/h3 ürün başlıklarını da yakala ama bölüm başlığı hariç */
body.home .bmhp-popular-section li.product h2,
body.home .bmhp-popular-section li.product h3,
body.home .bmhp-popular-section .product h2,
body.home .bmhp-popular-section .product h3 {
  color: #101820 !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 950 !important;
  min-height: 50px !important;
  margin: 0 2px 12px !important;
  padding: 0 !important;
}

/* Fiyat */
body.home .bmhp-popular-section .price {
  display: block !important;
  margin: 0 2px 18px !important;
  color: #e92828 !important;
  font-size: 20px !important;
  font-weight: 950 !important;
}

body.home .bmhp-popular-section .price .amount,
body.home .bmhp-popular-section .amount {
  color: #e92828 !important;
  font-weight: 950 !important;
}

body.home .bmhp-popular-section del,
body.home .bmhp-popular-section del .amount {
  color: #aeb5c0 !important;
  font-size: 13px !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}

/* Küçük ok butonunu kaldırıp tam buton yap */
body.home .bmhp-popular-section .button,
body.home .bmhp-popular-section a.add_to_cart_button,
body.home .bmhp-popular-section a.product_type_simple,
body.home .bmhp-popular-section a[class*="button"],
body.home .bmhp-popular-section .bmhp-fixed-product-button {
  width: 100% !important;
  height: 52px !important;
  margin: 0 !important;
  border-radius: 17px !important;
  background: #e92828 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  border: 0 !important;
  box-shadow: 0 16px 34px rgba(233,40,40,.20) !important;
  opacity: 1 !important;
}

body.home .bmhp-popular-section .button:hover,
body.home .bmhp-popular-section a.add_to_cart_button:hover,
body.home .bmhp-popular-section a.product_type_simple:hover {
  background: #c91515 !important;
  color: #fff !important;
}

/* Slider okları */
body.home .bmhp-popular-section .swiper-button-next,
body.home .bmhp-popular-section .swiper-button-prev,
body.home .bmhp-popular-section [class*="arrow"],
body.home .bmhp-popular-section [class*="next"],
body.home .bmhp-popular-section [class*="prev"] {
  width: 46px !important;
  height: 46px !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid #edf0f3 !important;
  color: #101820 !important;
  box-shadow: 0 16px 36px rgba(16,24,32,.12) !important;
}

/* Sağ üst tüm ürünler linki */
body.home .bmhp-popular-section a[href*="magaza"],
body.home .bmhp-popular-section a[href*="shop"] {
  color: #e92828 !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

/* Genel sıkılık */
body.home .bmhp-cat-section + .bmhp-popular-section,
body.home .bmhp-cat-section ~ .bmhp-popular-section {
  margin-top: -18px !important;
}

@media (max-width: 768px) {
  body.home .bmhp-cat-section {
    margin-bottom: 18px !important;
  }

  body.home .bmhp-popular-section .product img,
  body.home .bmhp-popular-section li.product img,
  body.home .bmhp-popular-section article img {
    height: 205px !important;
    padding: 22px !important;
  }

  body.home .bmhp-popular-section li.product,
  body.home .bmhp-popular-section .product,
  body.home .bmhp-popular-section article.product,
  body.home .bmhp-popular-section .swiper-slide {
    border-radius: 24px !important;
    padding: 14px !important;
  }
}


/* =========================================================
   BÜROMOTTO HOMEPAGE POLISH v1.0.3
   Sadece hedef bölümlere müdahale eder. Header/slider bozmaz.
=========================================================*/

/* Menü ile ana slider arasındaki gereksiz boşluk */
body.home main,
body.home .site-main,
body.home #main,
body.home .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.home .entry-content > *:first-child,
body.home main > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Kategori > Popüler arası */
body.home .bmhp-cat-section {
  padding-bottom: 8px !important;
  margin-bottom: 8px !important;
}

/* Popüler bölüm alt boşluğu */
body.home .bmhp-popular-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.home .bmhp-popular-section h1,
body.home .bmhp-popular-section h2,
body.home .bmhp-popular-section h3 {
  margin-bottom: 18px !important;
}

body.home .bmhp-popular-section ul.products,
body.home .bmhp-popular-section .products,
body.home .bmhp-popular-section .swiper,
body.home .bmhp-popular-section .swiper-container,
body.home .bmhp-popular-section .swiper-wrapper {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Popüler ürün kartlarının alt boşluğu */
body.home .bmhp-popular-section li.product,
body.home .bmhp-popular-section .product,
body.home .bmhp-popular-section article.product,
body.home .bmhp-popular-section .swiper-slide {
  margin-bottom: 0 !important;
}

/* Popüler ürün ile makam banner arası net şekilde daraltılır */
body.home .bmhp-makam-section {
  padding-top: 0 !important;
  margin-top: -38px !important;
  padding-bottom: 0 !important;
  margin-bottom: 22px !important;
}

/* Makam banner kendi içinde yukarı yapışsın */
body.home .bmhp-makam-section > *,
body.home .bmhp-makam-section .wp-block-cover,
body.home .bmhp-makam-section .wp-block-image,
body.home .bmhp-makam-section [class*="banner"],
body.home .bmhp-makam-section [class*="hero"] {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Makam banner ile footer arası */
body.home .bmpfh-footer {
  margin-top: 24px !important;
}

/* Spacer blokları sadece bu iki hedef bölümün yanında küçült */
body.home .bmhp-popular-section + .wp-block-spacer,
body.home .bmhp-makam-section + .wp-block-spacer,
body.home .wp-block-spacer.bmhp-tight-spacer {
  height: 10px !important;
  max-height: 10px !important;
  min-height: 10px !important;
}

/* Mobil */
@media (max-width: 768px) {
  body.home .bmhp-makam-section {
    margin-top: -22px !important;
    margin-bottom: 16px !important;
  }

  body.home .bmpfh-footer {
    margin-top: 18px !important;
  }
}
