/* ==========================================================================================
   leotekerleklisandalye.com — EK KATMAN (tema.css'ten SONRA yüklenir): satış akışı parçaları.
   Mobil alt çubuk, ürün sayfasında kaydırınca beliren sepet çubuğu, ürün kartı görsel yerleşimi, altbilgi.
   Kural: aciliyet/indirim yalnızca GERÇEK veriden (liste fiyatı, kargo ayarı) — sahte sayaç / "son 2 ürün" yok.
   (Dosya adı kardeş siteden kalmadır; içerik bu sitenin sade görünümüne göredir.)
   ========================================================================================== */

/* --- Ürün kartı: portre (dikey) fotoğraf kare kutuyu uzatmasın --- */
.pcard-media { overflow: hidden; min-height: 0; border-bottom: 1px solid var(--line); }
.pcard-media img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.pcard-badges { right: 52px; gap: 6px; }
.pcard-brand { color: var(--red-d); }
.pcard-foot { flex-direction: column; align-items: stretch; gap: 10px; }
.pcard-price { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pcard-price .price { font-size: clamp(17px, 1.5vw, 20px); }
.pcard-price .price-old { font-size: 12.5px; color: var(--mut); }
.pcard-stock { color: var(--red-d); font-weight: 600; flex-basis: 100%; }
.pcard-add { width: 100%; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 700; }
.pcard-add .ic { width: 17px; height: 17px; }
.pcard-add.is-done .pcard-add-t { font-size: 0; }
.pcard-add.is-done .pcard-add-t::after { content: "Eklendi ✓"; font-size: 14px; }
@media (max-width: 560px) { .badge-ship { font-size: 9px; padding: 4px 7px; letter-spacing: .02em; gap: 3px; } .badge-ship .ic { width: 10px; height: 10px; } .badge-red, .badge-sale { font-size: 11px; padding: 5px 8px; } }

/* --- Ürün sayfası satın alma kutusu --- */
.ship-line b { color: var(--red-d); }

/* --- Kaydırınca beliren sepet çubuğu (ürün sayfası) --- */
.sbuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; background: #fff; border-top: 1px solid var(--line-2); box-shadow: 0 -8px 24px -18px rgba(23, 32, 28, .35); transform: translateY(115%); transition: transform .3s ease; padding-bottom: env(safe-area-inset-bottom); }
.sbuy.is-on { transform: translateY(0); }
.sbuy-in { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.sbuy-img { width: 50px; height: 50px; object-fit: contain; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); flex: none; }
.sbuy-t { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.sbuy-t b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbuy-t span { font-size: 13px; color: var(--mut); }
.sbuy-t strong { font-size: 18px; color: var(--red-d); font-weight: 700; }
.sbuy .btn { flex: none; min-height: 46px; padding: 12px 18px; }
@media (max-width: 520px) { .sbuy-img, .sbuy-t b { display: none; } }
/* Çubuk açıkken yüzen düğmeler üstüne binmesin */
.wa-fab, .to-top { transition: bottom .3s ease, opacity .25s, transform .25s; }
body.sbuy-on .wa-fab { bottom: 96px; }
body.sbuy-on .to-top { bottom: 96px; }

/* --- Mobil alt çubuk --- */
.mbar { display: none; }
@media (max-width: 899px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line-2); box-shadow: 0 -8px 24px -18px rgba(23, 32, 28, .35); }
  .mbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; font-size: 11px; font-weight: 700; color: var(--ink-2); border-radius: var(--r-sm); }
  .mbar .ic { width: 21px; height: 21px; color: var(--red-d); }
  .mbar a i { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--coral); color: #fff; font-size: 10.5px; font-style: normal; display: grid; place-items: center; }
  .mbar .mbar-wa { background: var(--wa-d); color: #fff; }
  .mbar .mbar-wa .ic { color: #fff; }
  body { padding-bottom: 78px; }
  .wa-fab { display: none; }
  .to-top { bottom: 92px; }
  body.page-product .mbar { display: none; }
  body.page-product { padding-bottom: 74px; }
  .x-deals { gap: 8px; }
}

/* --- Alt bilgi --- */
.footer { background: var(--red-deep); }
.footer::before { display: none; }

/* --- Hareket azaltma --- */
@media (prefers-reduced-motion: reduce) {
  .sbuy { transition: none; }
}
