/* Veri Merkezi — sepet-mini.css
   Üst menüdeki sepet simgesi + sayı rozeti ve küçük sepet paneli (masaüstünde açılır kutu, ≤640px'te sağdan çekmece).
   Ürün sayfalarındaki "Sepete eklendi · Sepete git" satırı. Yalnız site.css token'ları (açık/koyu tema kendiliğinden). */

.sepet-mini { position: relative; }
.sepet-mini-dugme { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--ink-80); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, color .2s; }
.sepet-mini-dugme:hover, .sepet-mini-dugme[aria-expanded="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-30); }
.sepet-mini-dugme:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sepet-mini-dugme svg { width: 19px; height: 19px; }
.sepet-mini-sayi { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--blue); color: var(--on-blue, #fff); font-size: 11px; font-weight: 500; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; transition: transform .2s; }
.sepet-mini-sayi[hidden] { display: none; }
.sepet-mini-sayi.is-yeni { transform: scale(1.12); }

.sepet-mini-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 340px; max-width: calc(100vw - 32px); display: grid; gap: 14px; padding: 18px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-soft), 0 0 0 1px var(--line-2); color: var(--ink); text-align: left; }
.sepet-mini-panel[hidden] { display: none; }
.sepet-mini-panel:focus { outline: none; }
.sm-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sm-bas b { font-weight: 500; font-size: 16px; }
.sm-kapat { width: 32px; height: 32px; border: 0; border-radius: 999px; background: none; display: grid; place-items: center; color: var(--ink-60); cursor: pointer; }
.sm-kapat:hover { background: var(--canvas); color: var(--ink); }
.sm-kapat svg { width: 16px; height: 16px; }
.sm-liste { display: grid; max-height: min(50vh, 340px); overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.sm-kalem { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.sm-kalem:first-child { border-top: 0; padding-top: 0; }
.sm-ad { font-size: 14px; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.sm-ad small { display: block; font-size: 12.5px; color: var(--ink-60); }
.sm-fiyat { font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.sm-fiyat small { display: block; font-size: 11.5px; color: var(--ink-60); }
.sm-sil { width: 28px; height: 28px; border: 0; border-radius: 999px; background: none; display: grid; place-items: center; color: var(--ink-60); cursor: pointer; }
.sm-sil:hover { background: var(--canvas); color: #B4232C; }
.sm-sil:disabled { opacity: .4; cursor: default; }
.sm-sil svg { width: 14px; height: 14px; }
.sm-bos-yer { width: 28px; }
.sm-toplam { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 14px; }
.sm-toplam div { display: flex; justify-content: space-between; gap: 10px; }
.sm-toplam span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sm-toplam div:first-child span:last-child { font-weight: 500; }
.sm-dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sm-dugmeler .btn { height: 42px; font-size: 14px; }
.sm-bos { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 8px 0 4px; font-size: 14px; color: var(--ink-60); }
.sm-bos a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.sm-hata { font-size: 13px; color: #B4232C; }

/* ≤640px: sağdan çekmece (odak tuzağı JS'te yalnız bu görünümde) */
.sepet-mini-ort { position: fixed; inset: 0; z-index: 89; background: rgb(15 42 38 / .35); }
.sepet-mini-ort[hidden] { display: none; }
@media (max-width: 640px) {
  .sepet-mini-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(360px, 88vw); max-width: none; border-radius: 0; align-content: start; overflow-y: auto; padding: 18px 16px; }
  .sm-liste { max-height: none; }
}

/* Ürün sayfası: sepete ekleme onayı (formun altında, sakin tek satır) */
.sepet-onay { margin-top: 8px; font-size: 13.5px; color: inherit; opacity: .85; } /* koyu paket kartında da okunur */
.sepet-onay a { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.sepet-onay.is-hata { color: #B4232C; }
@media (prefers-reduced-motion: reduce) { .sepet-mini-sayi { transition: none; } }
