/* =====================================================================
   Ürün Paketleri (Birlikte Al) – varsayılan ve sistem teması
   Kart kendi genişliğine göre düzen değiştirir (container query):
   geniş alanda yatay, dar alanda / mobilde dikey + kaydırmalı ürün şeridi.
   ===================================================================== */
.bnd-block, #bundle-page {
  --bnd-accent: #f2622e;
  --bnd-accent-ink: #fff;
  --bnd-accent-soft: rgba(242, 98, 46, .10);
  --bnd-ink: inherit;
  --bnd-muted: #6b7280;
  --bnd-line: #e8e8ec;
  --bnd-surface: #fff;
  --bnd-soft: #f7f7f9;
  --bnd-ok: #15803d;
  --bnd-ok-soft: #ecfdf3;
  --bnd-bad: #b91c1c;
  --bnd-bad-soft: #fef2f2;
  --bnd-radius: 14px;
  --bnd-pad: 18px;
}
@supports (background: color-mix(in srgb, red 10%, white)) {
  .bnd-block, #bundle-page { --bnd-accent-soft: color-mix(in srgb, var(--bnd-accent) 11%, transparent); }
}
.bnd-block *, .bnd-card *, #bundle-page .bnd-detail * { box-sizing: border-box; }

/* ---------- blok ---------- */
.bnd-block { clear: both; margin: 28px 0; width: 100%; }
.bnd-block--floating:not(.is-placed) { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 15px; }
.bnd-block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bnd-block__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; font-weight: 700; line-height: 1.25; }
.bnd-block__icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--bnd-accent-soft); color: var(--bnd-accent); }
.bnd-stack { display: flex; flex-direction: column; gap: 14px; }

.bnd-link { font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--bnd-accent) !important; text-decoration: none !important; }
.bnd-link:hover { text-decoration: underline !important; }

/* ---------- kart ---------- */
.bnd-card { container-type: inline-size; container-name: bnd; position: relative; min-width: 0; background: var(--bnd-surface); border: 1px solid var(--bnd-line); border-radius: var(--bnd-radius); padding: var(--bnd-pad); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: box-shadow .2s; }
.bnd-card:hover { box-shadow: 0 10px 30px rgba(16, 24, 40, .08); }
.bnd-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bnd-card__heading { min-width: 0; }
.bnd-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bnd-accent); margin-bottom: 3px; }
.bnd-card__title { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; color: inherit !important; text-decoration: none !important; }
.bnd-card__title:hover { color: var(--bnd-accent) !important; }
.bnd-badge { flex: 0 0 auto; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--bnd-accent); color: var(--bnd-accent-ink); font-size: 13px; font-weight: 800; line-height: 1; vertical-align: middle; }

.bnd-card__body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: center; }
.bnd-card__body > * { min-width: 0; }

/* ürünler */
.bnd-items { display: flex; align-items: flex-start; gap: 30px; min-width: 0; }
.bnd-cell { position: relative; flex: 1 1 0; min-width: 0; max-width: 190px; }
.bnd-item { display: flex; flex-direction: column; color: inherit !important; text-decoration: none !important; }
.bnd-item__img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--bnd-soft); border-radius: 10px; overflow: hidden; border: 1px solid var(--bnd-line); }
.bnd-item__img img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.bnd-item:hover .bnd-item__img img { transform: scale(1.04); }
.bnd-qty { position: absolute; top: 6px; left: 6px; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px; background: rgba(17, 24, 39, .82); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.bnd-item__name { margin-top: 8px; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bnd-item:hover .bnd-item__name { color: var(--bnd-accent); }
.bnd-item__price { margin-top: 2px; font-size: 13px; font-weight: 700; }
/* "+" işareti görselin dikey ortasında: margin-top yüzdesi hücre genişliğine (= görsel yüksekliği) göre */
.bnd-plus { position: absolute; z-index: 1; left: -15px; top: 0; width: 26px; height: 26px; margin-top: calc(50% - 13px); transform: translateX(-50%); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bnd-surface); border: 1px solid var(--bnd-line); color: var(--bnd-muted); box-shadow: 0 1px 3px rgba(16,24,40,.08); }

/* özet */
.bnd-summary { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; background: var(--bnd-soft); }
.bnd-summary__count { font-size: 12px; font-weight: 600; color: var(--bnd-muted); text-transform: uppercase; letter-spacing: .04em; }
.bnd-summary__old { font-size: 13px; color: var(--bnd-muted); white-space: nowrap; }
.bnd-summary__old s { white-space: nowrap; }
.bnd-summary__price { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.bnd-save { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: var(--bnd-ok-soft); color: var(--bnd-ok); font-size: 12px; font-weight: 600; }
.bnd-save b { font-weight: 800; }
.bnd-summary .bnd-link { align-self: center; margin-top: 2px; }

/* buton */
.bnd-btn { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--bnd-accent); color: var(--bnd-accent-ink) !important; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none !important; cursor: pointer; transition: filter .15s, transform .05s, box-shadow .15s; box-shadow: 0 6px 16px -6px var(--bnd-accent); }
.bnd-btn:hover { filter: brightness(1.07); }
.bnd-btn:active { transform: translateY(1px); }
.bnd-btn:focus-visible { outline: 3px solid var(--bnd-accent-soft); outline-offset: 2px; }
.bnd-btn.is-loading { opacity: .75; pointer-events: none; }
.bnd-btn.is-loading svg { animation: bnd-spin .8s linear infinite; }
.bnd-btn.is-done { background: var(--bnd-ok); box-shadow: none; }
.bnd-btn--inline { width: auto; display: inline-flex; }
@keyframes bnd-spin { to { transform: rotate(360deg); } }

/* mesaj */
.bnd-msg:empty { display: none; }
.bnd-msg { margin-top: 14px; }
.bnd-alert { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 10px; font-size: 13px; line-height: 1.45; animation: bnd-in .2s ease-out; }
.bnd-alert a { font-weight: 700; text-decoration: underline; color: inherit !important; }
.bnd-alert--ok { background: var(--bnd-ok-soft); color: var(--bnd-ok); }
.bnd-alert--err { background: var(--bnd-bad-soft); color: var(--bnd-bad); }
@keyframes bnd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- DAR KART / MOBİL ---------- */
@container bnd (max-width: 620px) {
  .bnd-card__body { grid-template-columns: 1fr; gap: 14px; }
  .bnd-items { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--bnd-pad); -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--bnd-pad)); padding: 2px var(--bnd-pad) 6px; scrollbar-width: none; }
  .bnd-items::after { content: ''; flex: 0 0 1px; }
  .bnd-items::-webkit-scrollbar { display: none; }
  .bnd-items { gap: 24px; }
  .bnd-cell { flex: 0 0 38%; max-width: none; scroll-snap-align: start; }
  .bnd-plus { left: -12px; width: 22px; height: 22px; margin-top: calc(50% - 11px); }
  .bnd-summary { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 4px; padding: 14px; }
  .bnd-summary__count, .bnd-summary__old { flex: 0 0 100%; }
  .bnd-summary__price { font-size: 22px; }
  .bnd-save { align-self: center; }
  .bnd-btn { flex: 0 0 100%; }
  .bnd-summary .bnd-link { flex: 0 0 100%; text-align: center; }
}
@container bnd (max-width: 380px) {
  .bnd-cell { flex-basis: 46%; }
}

/* container query desteklemeyen eski tarayıcılar */
@supports not (container-type: inline-size) {
  @media (max-width: 767px) {
    .bnd-card__body { grid-template-columns: 1fr; gap: 14px; }
    .bnd-card__body > * { min-width: 0; }
    .bnd-items { overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--bnd-pad)); padding: 2px var(--bnd-pad) 6px; gap: 24px; }
    .bnd-cell { flex: 0 0 40%; max-width: none; scroll-snap-align: start; }
    .bnd-plus { left: -12px; }
  }
}

@media (max-width: 767px) {
  .bnd-block { margin: 22px 0; }
  .bnd-block__title { font-size: 17px; }
  .bnd-block, #bundle-page { --bnd-pad: 16px; }
}

/* ---------- paket sayfaları ---------- */
.bnd-hero { margin-bottom: 22px; }
.bnd-hero__title { margin-bottom: 6px; }
.bnd-hero__sub { color: var(--bnd-muted); margin: 0; max-width: 640px; }
.bnd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 18px; margin-bottom: 24px; }
.bnd-empty { text-align: center; padding: 56px 20px; border: 2px dashed var(--bnd-line); border-radius: var(--bnd-radius); color: var(--bnd-muted); }
.bnd-empty svg { color: var(--bnd-accent); margin-bottom: 10px; }

.bnd-detail { margin-bottom: 30px; }
.bnd-detail__head { margin-bottom: 18px; }
.bnd-detail__title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 0; }
.bnd-detail__desc { color: var(--bnd-muted); max-width: 760px; }
.bnd-detail__cover { margin-bottom: 18px; border-radius: var(--bnd-radius); overflow: hidden; }
.bnd-detail__cover img { display: block; width: 100%; height: auto; }
.bnd-card--detail { padding: 22px; }
.bnd-card--detail .bnd-card__body { grid-template-columns: minmax(0, 1fr) 290px; }
.bnd-card--detail .bnd-cell { max-width: 230px; }
.bnd-note { margin-top: 14px; padding: 11px 14px; border-radius: 10px; background: var(--bnd-accent-soft); font-size: 13px; }
.bnd-detail__subtitle { font-size: 17px; font-weight: 700; margin: 28px 0 12px; }
.bnd-rows { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--bnd-line); border-radius: 12px; overflow: hidden; }
.bnd-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--bnd-line); }
.bnd-row:last-child { border-bottom: 0; }
.bnd-row__img img { display: block; width: 60px; height: 60px; object-fit: contain; border-radius: 8px; background: var(--bnd-soft); }
.bnd-row__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bnd-row__name { font-weight: 600; color: inherit !important; }
.bnd-row__meta { font-size: 12px; color: var(--bnd-muted); }
.bnd-row__price { font-weight: 700; white-space: nowrap; }
