/* Sepete-eklendi penceresi (cart-popup.js). Masaüstünde sağ üst köşe,
   mobilde alttan kart. Renkler tema token'larından. */
.hs-added {
  --ha-brand:   var(--hs-brand, #5b832e);
  --ha-brand-h: var(--hs-brand-hover, #4d6f27);
  --ha-btn:     var(--hs-brand-btn, var(--ha-brand));
  --ha-soft:    var(--hs-brand-soft, #f1f4ed);
  --ha-text:    #1b2733;
  --ha-muted:   #5f6b7a;
  --ha-border:  #e3e7eb;

  position: fixed; top: 16px; right: 16px; z-index: 1060;
  width: 340px; max-width: calc(100vw - 24px);
  padding: .85rem;
  background: #fff; color: var(--ha-text);
  border: 1px solid var(--ha-border); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16,24,40,.16), 0 3px 8px rgba(16,24,40,.06);
  font-size: .85rem; line-height: 1.35;
  opacity: 0; transform: translateY(-8px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
}
.hs-added.is-on { opacity: 1; transform: none; }

.hs-added-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .65rem; }
.hs-added-title { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ha-brand-h); }
.hs-added-title svg { width: 18px; height: 18px; color: var(--ha-brand); }
.hs-added-close {
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--ha-muted); cursor: pointer;
}
.hs-added-close svg { width: 18px; height: 18px; }
.hs-added-close:hover { background: #f2f4f6; color: var(--ha-text); }

.hs-added-product { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .7rem; align-items: center; }
.hs-added-product img { width: 56px; height: 56px; object-fit: cover; border-radius: 9px; border: 1px solid var(--ha-border); }
.hs-added-info { display: flex; flex-direction: column; min-width: 0; }
.hs-added-name { font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hs-added-info small { color: var(--ha-muted); font-size: .76rem; }
.hs-added-price { white-space: nowrap; }

.hs-added-free {
  margin-top: .7rem; padding: .5rem .65rem;
  background: var(--ha-soft); border-radius: 9px;
  font-size: .78rem; color: var(--ha-brand-h);
}
.hs-added-free.is-won { font-weight: 600; }
.hs-added-bar { display: block; height: 5px; margin-top: .35rem; background: rgba(0,0,0,.07); border-radius: 3px; overflow: hidden; }
.hs-added-bar i { display: block; height: 100%; background: var(--ha-brand); border-radius: 3px; }

.hs-added-sum {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: .7rem; padding-top: .6rem; border-top: 1px solid var(--ha-border);
  color: var(--ha-muted);
}
.hs-added-sum strong { color: var(--ha-text); font-size: .95rem; }

.hs-added-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .75rem; }
.hs-added-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 .75rem; border-radius: 9px;
  font-weight: 700; font-size: .85rem; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.hs-added-btn.is-ghost { border: 1px solid #cfd6dd; color: var(--ha-text); background: #fff; }
.hs-added-btn.is-ghost:hover { border-color: var(--ha-brand); color: var(--ha-brand-h); background: var(--ha-soft); }
.hs-added-btn.is-primary { background: var(--ha-btn); color: #fff; border: 1px solid transparent; }
.hs-added-btn.is-primary:hover { background: var(--ha-brand-h); color: #fff; }

@media (max-width: 575.98px) {
  .hs-added {
    top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; max-width: none;
    transform: translateY(12px);
  }
  .hs-added.is-on { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-added { transition: opacity .1s; transform: none; }
}
