/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}


.mc-bogo-banner {
  display:flex; align-items:center; gap:8px;
  border:1px dashed rgba(0,0,0,0.15);
  padding:10px 14px; border-radius:10px;
  background:rgba(255,235,59,0.12);
  font-size:15px; line-height:1.5; margin-top:10px;
}
.mc-bogo-banner > span { font-size:18px; }
.mc-bogo-banner span[style*="opacity"] { opacity:.85; }



/* ==== 🎁 1 Alana 1 Hediye Rozeti – Eliptik, Tüm Sayfalarda ==== */

/* Ortak yapı */
.badge-inner.secondary.on-sale {
  background: linear-gradient(135deg, #ff8c00, #ff4081);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px; /* elips form */
  min-width: 130px;
  height: 36px;
  padding: 0 16px;
  box-shadow: 0 6px 15px rgba(255, 64, 129, 0.3);
  border: 2px solid #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Hover efekti */
.badge-inner.secondary.on-sale:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 25px rgba(255, 64, 129, 0.4);
}

/* Hafif parlama animasyonu */
.badge-inner.secondary.on-sale::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 250%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: rotate(20deg);
  animation: shineMove 4s infinite linear;
}
@keyframes shineMove {
  0% { transform: translateX(-150%) rotate(20deg); }
  100% { transform: translateX(150%) rotate(20deg); }
}

/* Ana sayfa (ürün grid kartları) – üstünü kaplamasın */
.product-small .badge {
  top: 10px !important;
  left: 10px !important;
  transform: none !important;
  z-index: 10;
  position: absolute !important;
  pointer-events: none;
}

/* Tekil ürün sayfasında da aynı hizalama */
.single-product .badge {
  top: 15px !important;
  left: 15px !important;
  position: absolute !important;
  z-index: 10;
  pointer-events: none;
}

/* Mobilde küçültme */
@media (max-width: 480px) {
  .badge-inner.secondary.on-sale {
    font-size: 11.5px;
    min-width: 100px;
    height: 30px;
    padding: 0 12px;
  }
}
