/* Sepet: menü sayacı, karttaki "sepete ekle" düğmesi ve /sepet sayfası */
.site-nav .nav-sepet { position: relative; }
.nav-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--primary); font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; }
.nav-badge[hidden] { display: none; }
.card-add { position: absolute; top: .5rem; right: .5rem; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(16, 24, 40, .18); cursor: pointer; transition: background-color .15s, color .15s, transform .15s; }
.group-card .thumb .card-add i { font-size: .95rem; color: inherit; }
.card-add:hover { background: var(--accent); }
.card-add:active { transform: scale(.92); }
.card-add.on { background: var(--good); color: #fff; }
.best-box .btn-basket { margin-top: .5rem; }
.best-box .btn-basket.on { background: #fff; color: var(--good); border-color: #fff; }

.basket-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.basket-items { position: sticky; top: calc(var(--nav-h, 64px) + 12px); }
.basket-items .panel-title .count { background: var(--bg); color: var(--muted-text); border-radius: 999px; font-size: .75rem; padding: .05rem .5rem; }
.b-items { list-style: none; margin: .5rem 0 0; padding: 0; }
.b-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.b-img, .b-l-img { width: 48px; height: 48px; border-radius: 10px; background: #F6F8FB; display: grid; place-items: center; grid-template: minmax(0, 1fr) / minmax(0, 1fr); padding: 4px; overflow: hidden; color: #C9D3E3; }
.b-img img, .b-l-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.b-info { display: flex; flex-direction: column; min-width: 0; }
.b-name { font-weight: 700; color: var(--text); font-size: .93rem; line-height: 1.25; }
.b-sub { font-size: .76rem; color: var(--muted-text); }
.b-sub.warn { color: #B45309; }
.b-item.no-price .b-img { opacity: .5; }
.b-qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.b-qty button { width: 32px; height: 34px; border: 0; background: transparent; font-weight: 700; font-size: 1rem; color: var(--primary); }
.b-qty button:hover:not(:disabled) { background: var(--bg); }
.b-qty button:disabled { color: #C9D3E3; }
.b-qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.b-del { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted-text); }
.b-del:hover { background: #FDECEC; color: #B42318; }
.b-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem; font-weight: 600; font-size: .9rem; }
.b-hint { margin: .5rem 0 0; font-size: .78rem; color: var(--muted-text); }
.basket-page button.chip { cursor: pointer; }

.b-summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow-md); }
.b-summary .label { font-size: .8rem; font-weight: 600; opacity: .9; display: inline-flex; align-items: center; gap: .4rem; }
.b-summary .label i { color: var(--accent); }
.b-sum-market { margin-top: .4rem; }
.b-sum-note { margin-top: .5rem; font-size: .78rem; color: var(--accent); max-width: 420px; }
.b-sum-price { text-align: right; }
.b-sum-price .price { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.b-sum-price .save { margin-top: .3rem; display: inline-flex; align-items: center; gap: .4rem; background: var(--accent); color: var(--primary); font-weight: 700; font-size: .82rem; padding: .25rem .65rem; border-radius: 999px; }

.b-markets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.b-markets:not(.open) .b-market.more { display: none; }
.b-market { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.b-market.cheapest { border-color: var(--good); box-shadow: 0 0 0 1px var(--good), var(--shadow-sm); }
.b-market summary { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 16px; align-items: center; gap: .8rem; padding: .8rem 1rem; cursor: pointer; list-style: none; }
.b-market summary::-webkit-details-marker { display: none; }
.b-m-name { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-width: 0; }
.b-m-name .tag-cheapest { margin: 0; }
.b-cover { font-size: .76rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; }
.b-cover.ok { background: #E7F6EE; color: var(--good); }
.b-cover.miss { background: #FEF3E2; color: #B45309; }
.b-m-total { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.b-m-total b { display: block; font-size: 1.15rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.b-m-total small { color: #B42318; font-size: .76rem; font-weight: 600; }
.b-market.partial .b-m-total b { color: var(--muted-text); }
.b-caret { color: var(--muted-text); font-size: .75rem; transition: transform .2s var(--ease); }
.b-market details[open] .b-caret { transform: rotate(180deg); }
.b-lines { list-style: none; margin: 0; padding: 0 1rem .4rem; border-top: 1px solid var(--border); }
.b-line { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px dashed var(--border); }
.b-line:last-child { border-bottom: 0; }
.b-l-info { display: flex; flex-direction: column; min-width: 0; }
.b-l-info b { font-size: .88rem; }
.b-l-info small { font-size: .76rem; color: var(--muted-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-l-cost { text-align: right; font-weight: 800; color: var(--primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.b-l-cost small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted-text); }
.b-line.missing { color: #B45309; }
.b-line.missing .b-l-img { background: #FEF3E2; color: #B45309; }
.b-line.missing small { color: #B45309; }
.b-show-all { margin-top: .7rem; }
@media (max-width: 991.98px) {
  .basket-grid { grid-template-columns: minmax(0, 1fr); }
  .basket-items { position: static; }
}
@media (max-width: 575.98px) {
  .b-market summary { gap: .5rem; padding: .7rem .75rem; grid-template-columns: 22px minmax(0, 1fr) auto 14px; }
  .b-lines { padding-inline: .75rem; }
  .b-summary { padding: 1rem; }
}
/* Market çiplerinde "+N market" (ürün sayfasındaki kuralın sepet sayfasına özel kopyası) */
.basket-page .chip-row:not(.open) .chip.more { display: none; }
.basket-page .chip-row.open .chip-more { display: none; }
