/* ================================================
   STICKY ADD TO CART — babyombi.com
   ================================================ */

.sticky-buy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
  padding: 10px 16px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.sticky-buy-bar.is-visible {
  transform: translateY(0);
}

/* Ürün adı ve fiyat — GİZLİ */
.sticky-buy-bar__info {
  display: none;
}

/* === MİKTAR SEÇİCİ === */
.sticky-buy-bar__qty {
  display: flex;
  align-items: center;
  gap: 0;
  background: #f5f5f5;
  border-radius: 50px;
  overflow: hidden;
  flex-shrink: 0;
}

.sticky-buy-bar__qty button {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: 300;
  color: #333;
  line-height: 1;
  padding: 0;
  transition: background 0.15s;
}

.sticky-buy-bar__qty button:hover {
  background: #e0e0e0;
}

.sticky-buy-bar__qty span {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  min-width: 28px;
  text-align: center;
}

/* === ANA BUTON === */
.sticky-buy-bar__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F5C518;
  color: #1a1a1a;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.sticky-buy-bar__btn:hover {
  background: #e6b800;
  transform: scale(1.02);
}

.sticky-buy-bar__btn:active {
  transform: scale(0.97);
}

.sticky-buy-bar__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sticky-buy-bar__btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.sticky-buy-bar__btn.is-loading .btn-text {
  display: none;
}

.sticky-buy-bar__btn .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.sticky-buy-bar__btn.is-loading .btn-spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 768px) {
  .sticky-buy-bar {
    max-width: 600px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(100%);
    border-radius: 16px 16px 0 0;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
  }
  
  .sticky-buy-bar.is-visible {
    transform: translateX(-50%) translateY(0);
  }
}