/* =====================================================================
   SƏBƏT MODULU — STİL
   Yer: /modules/cart/assets/cart.css
   ---------------------------------------------------------------------
   Bütün siniflər "lfm-cart-" önəkli — saytın qalan hissəsi ilə toqquşmur.
   Modul bağlananda bu fayl yüklənmir.
   Bölmələr: 1. Header ikonu  2. Kart / elan düymələri  3. Say (− +)
             4. Mini səbət paneli  5. Səbət səhifəsi  6. Checkout
             7. Sifariş izləmə  8. Sifarişlər / Satışlarım  9. Mobil
   ===================================================================== */

/* ---------- 1. HEADER İKONU ---------- */
.lfm-cart-hbtn { display: inline-flex; align-items: center; gap: 8px; color: #4b5563; font-weight: 600; font-size: 14px; transition: color .15s; }
.lfm-cart-hbtn:hover { color: var(--lf-brand-600, #16a34a); }
.lfm-cart-hic { position: relative; width: 40px; height: 40px; border-radius: 999px; background: #f3f4f6; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.lfm-cart-hbtn:hover .lfm-cart-hic { background: var(--lf-brand-50, #f0fdf4); }
.lfm-cart-hsvg { width: 21px; height: 21px; }
.lfm-cart-hlabel { display: none; }
@media (min-width: 1024px) { .lfm-cart-hlabel { display: inline; } }
.lfm-cart-badge { position: absolute; top: -4px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #f43f5e; color: #fff; font-size: 10.5px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; line-height: 1; }
.lfm-cart-bump { animation: lfm-cart-bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes lfm-cart-bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
[data-lfm-cart-count][hidden] { display: none !important; }

/* ---------- 2. KART + ELAN SƏHİFƏSİ DÜYMƏLƏRİ ---------- */
.lfm-cart-cardbtn { position: relative; z-index: 2; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 36px; border-radius: 12px; background: var(--lf-brand-50, #f0fdf4); color: var(--lf-brand-700, #15803d); font-size: 12.5px; font-weight: 800; border: 1px solid var(--lf-brand-100, #dcfce7); transition: all .15s; }
.lfm-cart-cardbtn:hover { background: var(--lf-brand-600, #16a34a); color: #fff; border-color: var(--lf-brand-600, #16a34a); }
.lfm-cart-cardbtn.is-busy, .lfm-cart-buy-add.is-busy, .lfm-cart-buy-now.is-busy, .lfm-cart-barbtn.is-busy { opacity: .65; pointer-events: none; }
.lfm-cart-cardbtn.is-done { background: var(--lf-brand-600, #16a34a); color: #fff; }

.lfm-cart-buy { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: linear-gradient(180deg, #f8fffa, #fff); border: 1px solid var(--lf-brand-100, #dcfce7); }
.lfm-cart-buy-conv { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #4b5563; }
.lfm-cart-buy-stock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: 13px; font-weight: 800; }
.lfm-cart-buy-stock span { display: inline-flex; align-items: center; gap: 5px; }
.lfm-cart-buy-stock .is-in { color: var(--lf-brand-700, #15803d); }
.lfm-cart-buy-stock .is-low { color: #ea580c; }
.lfm-cart-buy-stock .is-out { color: #e11d48; }
.lfm-cart-buy-stock small { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: #6b7280; }
.lfm-cart-buy-row { display: flex; gap: 8px; }
.lfm-cart-buy-add { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 16px; background: var(--lf-brand-600, #16a34a); color: #fff; font-weight: 900; font-size: 15px; box-shadow: 0 12px 26px -12px rgba(22, 163, 74, .7); transition: background .15s, transform .1s; }
.lfm-cart-buy-add:hover { background: var(--lf-brand-700, #15803d); }
.lfm-cart-buy-add:active, .lfm-cart-buy-now:active { transform: scale(.98); }
.lfm-cart-buy-now { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 16px; background: #111827; color: #fff; font-weight: 800; font-size: 14px; transition: background .15s, transform .1s; }
.lfm-cart-buy-now:hover { background: #000; }
.lfm-cart-buy-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lfm-cart-buy-trust li { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #6b7280; line-height: 1.3; }
.lfm-cart-buy-trust svg { color: var(--lf-brand-600, #16a34a); flex-shrink: 0; }
.lfm-cart-barbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 50px; padding: 0 16px; border-radius: 16px; background: #111827; color: #fff; font-weight: 800; font-size: 14px; flex-shrink: 0; }

/* ---------- 3. SAY (− / +) ---------- */
.lfm-cart-qty { display: inline-flex; align-items: center; height: 52px; border-radius: 16px; background: #fff; border: 1px solid #e5e7eb; overflow: hidden; flex-shrink: 0; }
.lfm-cart-qty button { width: 42px; height: 100%; display: inline-flex; align-items: center; justify-content: center; color: #374151; transition: background .12s; }
.lfm-cart-qty button:hover:not(:disabled) { background: #f3f4f6; }
.lfm-cart-qty button:disabled { opacity: .3; cursor: not-allowed; }
.lfm-cart-qty input { width: 42px; height: 100%; text-align: center; font-weight: 900; font-size: 15px; border: 0; background: transparent; color: #111827; -moz-appearance: textfield; appearance: textfield; padding: 0; }
.lfm-cart-qty input::-webkit-outer-spin-button, .lfm-cart-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lfm-cart-qty input:focus { outline: none; }
.lfm-cart-qty.is-sm { height: 38px; border-radius: 12px; }
.lfm-cart-qty.is-sm button { width: 34px; }
.lfm-cart-qty.is-sm input { width: 34px; font-size: 14px; }

/* ---------- 4. MİNİ SƏBƏT PANELİ ---------- */
.lfm-cart-drawer { position: fixed; inset: 0; z-index: 260; }
.lfm-cart-drawer-bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); animation: lfm-cart-fade .2s ease; }
.lfm-cart-drawer-box { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 50px -20px rgba(16, 24, 40, .35); animation: lfm-cart-slide .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes lfm-cart-fade { from { opacity: 0; } }
@keyframes lfm-cart-slide { from { transform: translateX(100%); } }
.lfm-cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #f1f3f5; }
.lfm-cart-drawer-head b { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 900; color: #111827; }
.lfm-cart-drawer-head em { font-style: normal; font-size: 12px; background: #f3f4f6; color: #374151; padding: 2px 8px; border-radius: 999px; }
.lfm-cart-drawer-head button { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #6b7280; }
.lfm-cart-drawer-head button:hover { background: #f3f4f6; color: #111827; }
.lfm-cart-drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; overscroll-behavior: contain; }
.lfm-cart-drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid #f1f3f5; display: grid; gap: 12px; background: #fff; }
.lfm-cart-drawer-sum { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: #4b5563; }
.lfm-cart-drawer-sum b { font-size: 20px; font-weight: 900; color: #111827; }
.lfm-cart-drow { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f5f6f8; }
.lfm-cart-drow:last-child { border-bottom: 0; }
.lfm-cart-drow img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #f3f4f6; flex-shrink: 0; }
.lfm-cart-drow a.t { font-size: 13.5px; font-weight: 700; color: #1f2937; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.lfm-cart-drow a.t:hover { color: var(--lf-brand-700, #15803d); }
.lfm-cart-drow p { font-size: 12.5px; color: #6b7280; margin-top: 3px; }
.lfm-cart-drow p b { color: #111827; font-weight: 900; }
.lfm-cart-drow .x { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #9ca3af; flex-shrink: 0; }
.lfm-cart-drow .x:hover { background: #fff1f2; color: #e11d48; }
.lfm-cart-drow.is-off { opacity: .55; }
.lfm-cart-dempty { text-align: center; padding: 56px 10px; color: #6b7280; }
.lfm-cart-dempty span { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; background: var(--lf-brand-50, #f0fdf4); color: var(--lf-brand-600, #16a34a); }
.lfm-cart-dempty b { display: block; font-size: 17px; font-weight: 900; color: #111827; }
.lfm-cart-spin { width: 34px; height: 34px; margin: 60px auto; border-radius: 50%; border: 3px solid #e5e7eb; border-top-color: var(--lf-brand-600, #16a34a); animation: lfm-cart-rot .8s linear infinite; }
@keyframes lfm-cart-rot { to { transform: rotate(360deg); } }

/* Pulsuz çatdırılma zolağı */
.lfm-cart-free { padding: 12px 14px; border-radius: 16px; background: #fff7ed; border: 1px solid #fed7aa; margin-bottom: 12px; }
.lfm-cart-free p { font-size: 12.5px; font-weight: 800; color: #9a3412; display: flex; align-items: center; gap: 6px; }
.lfm-cart-free i { display: block; height: 7px; margin-top: 8px; border-radius: 999px; background: #ffedd5; overflow: hidden; }
.lfm-cart-free i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fb923c, #f97316); transition: width .4s ease; }
.lfm-cart-freeok { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--lf-brand-50, #f0fdf4); color: var(--lf-brand-800, #166534); font-size: 12.5px; font-weight: 800; margin-bottom: 12px; }

/* ---------- 5. SƏBƏT SƏHİFƏSİ ---------- */
.lfm-cart-page { max-width: 1240px; margin: 0 auto; }
.lfm-cart-ohead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 4px 4px 0; }
.lfm-cart-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1024px) { .lfm-cart-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; } }
.lfm-cart-group { background: #fff; border: 1px solid #eef0f3; border-radius: 24px; box-shadow: var(--lf-shadow-sm); overflow: hidden; }
.lfm-cart-group-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: linear-gradient(180deg, #fafbfc, #fff); border-bottom: 1px solid #f1f3f5; }
.lfm-cart-slogo { position: relative; width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0; overflow: hidden; background: var(--lf-brand-100, #dcfce7); color: var(--lf-brand-700, #15803d); display: flex; align-items: center; justify-content: center; font-weight: 900; }
.lfm-cart-slogo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.lfm-cart-sname { display: block; font-weight: 900; color: #111827; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.lfm-cart-sname:hover { color: var(--lf-brand-700, #15803d); }
.lfm-cart-group-head small { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: #6b7280; }
.lfm-cart-list > li { border-bottom: 1px solid #f5f6f8; }
.lfm-cart-list > li:last-child { border-bottom: 0; }
.lfm-cart-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px 18px; transition: opacity .25s, background .2s; }
@media (min-width: 640px) { .lfm-cart-row { grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; } }
.lfm-cart-row.is-off { background: #fafafa; }
.lfm-cart-row.is-off .lfm-cart-img, .lfm-cart-row.is-off .lfm-cart-title { opacity: .55; }
.lfm-cart-row.is-busy { opacity: .6; pointer-events: none; }
.lfm-cart-img { display: block; width: 84px; height: 84px; border-radius: 18px; overflow: hidden; background: #f3f4f6; }
@media (min-width: 640px) { .lfm-cart-img { width: 96px; height: 96px; } }
.lfm-cart-img img { width: 100%; height: 100%; object-fit: cover; }
.lfm-cart-title { font-size: 14.5px; font-weight: 700; color: #1f2937; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lfm-cart-title:hover { color: var(--lf-brand-700, #15803d); }
.lfm-cart-unit { margin-top: 4px; font-size: 13px; font-weight: 800; color: #4b5563; }
.lfm-cart-unit small { font-weight: 600; color: #9ca3af; }
.lfm-cart-why, .lfm-cart-low { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.lfm-cart-why { color: #be123c; background: #fff1f2; }
.lfm-cart-low { color: #c2410c; background: #fff7ed; }
.lfm-cart-ctrl { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
@media (min-width: 640px) { .lfm-cart-ctrl { grid-column: auto; } }
.lfm-cart-line { min-width: 96px; text-align: right; font-size: 16px; font-weight: 900; color: #111827; white-space: nowrap; margin-left: auto; }
.lfm-cart-del { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #9ca3af; flex-shrink: 0; transition: all .15s; }
.lfm-cart-del:hover { background: #fff1f2; color: #e11d48; }
.lfm-cart-row.is-off .lfm-cart-del { margin-left: auto; }
.lfm-cart-h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 900; color: #111827; margin-bottom: 14px; }
.lfm-cart-h3 svg { color: var(--lf-brand-600, #16a34a); }
.lfm-cart-sum { display: grid; gap: 10px; }
.lfm-cart-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.lfm-cart-sum dt { color: #6b7280; font-weight: 600; }
.lfm-cart-sum dd { font-weight: 800; color: #111827; white-space: nowrap; }
.lfm-cart-sum .is-total { padding-top: 12px; margin-top: 2px; border-top: 1px dashed #e5e7eb; }
.lfm-cart-sum .is-total dt { color: #111827; font-weight: 900; font-size: 15px; }
.lfm-cart-sum .is-total dd { font-size: 24px; font-weight: 900; letter-spacing: -.02em; color: var(--lf-brand-700, #15803d); }
.lfm-cart-sum .is-refund dd { color: #1d4ed8; }
.lfm-cart-minwarn { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: #fff7ed; color: #9a3412; font-size: 12.5px; font-weight: 700; }
.lf-btn-primary.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.lfm-cart-trust { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #f1f3f5; }
.lfm-cart-trust li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #6b7280; }
.lfm-cart-trust svg { color: var(--lf-brand-600, #16a34a); flex-shrink: 0; }
.lfm-cart-empty { text-align: center; padding: 48px 20px !important; }
@media (min-width: 768px) { .lfm-cart-empty { padding: 72px 24px !important; } }
.lfm-cart-empty-ic { width: 88px; height: 88px; margin: 0 auto; border-radius: 30px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--lf-brand-50, #f0fdf4), #fff); color: var(--lf-brand-600, #16a34a); border: 1px solid var(--lf-brand-100, #dcfce7); box-shadow: 0 18px 40px -20px rgba(22, 163, 74, .5); }
.lfm-cart-mbar { display: none; }

/* ---------- 6. CHECKOUT ---------- */
.lfm-cart-crumbs { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #9ca3af; }
.lfm-cart-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.lfm-cart-crumbs li + li::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: #e5e7eb; margin-right: 2px; }
.lfm-cart-crumbs i { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; background: #f3f4f6; color: #6b7280; font-size: 11px; }
.lfm-cart-crumbs .is-done i { background: var(--lf-brand-600, #16a34a); color: #fff; }
.lfm-cart-crumbs .is-now { color: #111827; }
.lfm-cart-crumbs .is-now i { background: #111827; color: #fff; }
@media (max-width: 639px) { .lfm-cart-crumbs { display: none; } }
.lfm-cart-sec { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 900; color: #111827; margin-bottom: 16px; }
.lfm-cart-sec span { width: 28px; height: 28px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--lf-brand-600, #16a34a); color: #fff; font-size: 13px; }
.lfm-cart-opts { display: grid; gap: 10px; }
@media (min-width: 640px) { .lfm-cart-opts { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.lfm-cart-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 2px solid #eef0f3; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.lfm-cart-opt:hover { border-color: #d1d5db; }
.lfm-cart-opt input { position: absolute; opacity: 0; pointer-events: none; }
.lfm-cart-opt:has(input:checked) { border-color: var(--lf-brand-500, #22c55e); background: #f7fef9; box-shadow: 0 0 0 4px rgba(34, 197, 94, .1); }
.lfm-cart-opt:has(input:focus-visible) { outline: 2px solid var(--lf-brand-500, #22c55e); outline-offset: 2px; }
.lfm-cart-opt-ic { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #f3f4f6; color: #4b5563; transition: all .15s; }
.lfm-cart-opt:has(input:checked) .lfm-cart-opt-ic { background: var(--lf-brand-600, #16a34a); color: #fff; }
.lfm-cart-opt b { display: block; font-size: 14px; font-weight: 800; color: #111827; }
.lfm-cart-opt small { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }
.lfm-cart-opt em { margin-left: auto; font-style: normal; font-weight: 900; font-size: 13.5px; color: #111827; white-space: nowrap; }
.lfm-cart-opt .lf-mini-btn { margin-left: auto; position: relative; z-index: 1; }
.lfm-cart-opt.is-low { opacity: .7; }
.lfm-cart-mapbox { padding: 14px; border-radius: 18px; background: #f8fafc; border: 1px dashed #d1d5db; }
.lfm-cart-map { height: 280px; margin-top: 12px; border-radius: 16px; overflow: hidden; background: #e5e7eb; z-index: 0; }
.lfm-cart-map.is-off { display: flex; align-items: center; justify-content: center; font-size: 13px; color: #6b7280; padding: 20px; text-align: center; }
.lfm-cart-mini { max-height: 320px; overflow-y: auto; margin: -4px -4px 14px; padding: 4px; }
.lfm-cart-mini-store { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; margin: 8px 0 6px; }
.lfm-cart-mini-store:first-child { margin-top: 0; }
.lfm-cart-mini-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.lfm-cart-mini-img { position: relative; width: 48px; height: 48px; flex-shrink: 0; }
.lfm-cart-mini-img img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; background: #f3f4f6; }
.lfm-cart-mini-img em { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #111827; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.lfm-cart-back { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700; color: #6b7280; }
.lfm-cart-back:hover { color: var(--lf-brand-700, #15803d); }
[data-lfm-co-submit]:disabled { opacity: .5; cursor: not-allowed; }
[data-lfm-co-submit].is-busy { opacity: .7; pointer-events: none; }

/* ---------- 7. SİFARİŞ İZLƏMƏ ---------- */
.lfm-cart-thanks { display: flex; align-items: center; gap: 16px; padding: 20px 22px; margin-bottom: 16px; border-radius: 26px; color: #fff; background: linear-gradient(120deg, #15803d, #16a34a 55%, #22c55e); box-shadow: 0 20px 44px -22px rgba(21, 128, 61, .7); position: relative; overflow: hidden; animation: lfm-cart-up .5s ease both; }
.lfm-cart-thanks::after { content: ''; position: absolute; width: 260px; height: 260px; right: -70px; top: -120px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.lfm-cart-thanks h2 { font-size: 18px; font-weight: 900; }
.lfm-cart-thanks p { font-size: 13.5px; opacity: .92; margin-top: 3px; }
.lfm-cart-thanks-ic { width: 56px; height: 56px; border-radius: 18px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); animation: lfm-cart-pop .6s .15s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes lfm-cart-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes lfm-cart-pop { from { transform: scale(0); } }
.lfm-cart-status { background: #fff; border: 1px solid #eef0f3; border-radius: 28px; padding: 20px; box-shadow: var(--lf-shadow-sm); margin-bottom: 16px; }
@media (min-width: 768px) { .lfm-cart-status { padding: 26px 28px; } }
.lfm-cart-status-top { display: flex; align-items: center; gap: 14px; }
.lfm-cart-status-ic { width: 58px; height: 58px; border-radius: 20px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(145deg, var(--lf-brand-500, #22c55e), var(--lf-brand-700, #15803d)); box-shadow: 0 14px 28px -14px rgba(22, 163, 74, .8); }
.lfm-cart-status.is-dead .lfm-cart-status-ic { background: linear-gradient(145deg, #fb7185, #e11d48); box-shadow: 0 14px 28px -14px rgba(225, 29, 72, .7); }
.lfm-cart-status-k { font-size: 12px; font-weight: 800; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; }
.lfm-cart-status-v { font-size: 22px; font-weight: 900; color: #111827; letter-spacing: -.02em; line-height: 1.2; }
@media (min-width: 768px) { .lfm-cart-status-v { font-size: 26px; } }
.lfm-cart-status-sub { font-size: 13.5px; color: #6b7280; margin-top: 3px; }
.lfm-cart-live { margin-left: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #fef2f2; color: #dc2626; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }
.lfm-cart-live i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: lfm-cart-blink 1.4s ease-in-out infinite; }
@keyframes lfm-cart-blink { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } }
.lfm-cart-dead { display: flex; gap: 8px; margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: #fff1f2; color: #9f1239; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
/* Addımlar — mobil: şaquli, masaüstü: üfüqi */
.lfm-cart-steps { position: relative; display: grid; gap: 0; margin-top: 22px; }
.lfm-cart-steps li { position: relative; display: flex; align-items: flex-start; gap: 12px; padding-bottom: 18px; }
.lfm-cart-steps li:last-child { padding-bottom: 0; }
.lfm-cart-steps li::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: #e5e7eb; }
.lfm-cart-steps li:last-child::before { display: none; }
.lfm-cart-steps li.is-done::before { background: var(--lf-brand-500, #22c55e); }
.lfm-cart-step-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #f3f4f6; color: #9ca3af; border: 2px solid #fff; box-shadow: 0 0 0 1px #e5e7eb; transition: all .3s; }
.lfm-cart-steps .is-done .lfm-cart-step-dot { background: var(--lf-brand-500, #22c55e); color: #fff; box-shadow: none; }
.lfm-cart-steps .is-now .lfm-cart-step-dot { background: #111827; color: #fff; box-shadow: 0 0 0 5px rgba(17, 24, 39, .1); animation: lfm-cart-ring 2s ease-in-out infinite; }
@keyframes lfm-cart-ring { 50% { box-shadow: 0 0 0 9px rgba(17, 24, 39, .05); } }
.lfm-cart-step-txt { padding-top: 5px; min-width: 0; }
.lfm-cart-step-txt b { display: block; font-size: 13.5px; font-weight: 700; color: #9ca3af; line-height: 1.3; }
.lfm-cart-steps .is-done b { color: #374151; }
.lfm-cart-steps .is-now b { color: #111827; font-weight: 900; }
.lfm-cart-step-txt small { display: block; font-size: 11.5px; color: #9ca3af; font-weight: 600; margin-top: 2px; }
@media (min-width: 900px) {
    .lfm-cart-steps { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: 28px; }
    .lfm-cart-steps li { flex-direction: column; align-items: center; text-align: center; padding: 0 4px; gap: 10px; }
    .lfm-cart-steps li::before { left: calc(50% + 18px); right: calc(-50% + 18px); top: 15px; bottom: auto; width: auto; height: 2px; }
    .lfm-cart-step-txt { padding-top: 0; }
}
.lfm-cart-courier.is-mod { padding: 0; background: none; border: 0; }
.lfm-cart-courier { margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: #f0f9ff; border: 1px solid #e0f2fe; }
.lfm-cart-ogrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1024px) { .lfm-cart-ogrid { grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; } }
.lfm-cart-olist > li { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #f5f6f8; align-items: flex-start; }
.lfm-cart-olist > li:last-child { border-bottom: 0; }
.lfm-cart-olist > li.is-removed { background: #fffafa; }
.lfm-cart-olist > li.is-removed .lfm-cart-oimg, .lfm-cart-olist > li.is-removed .lfm-cart-otitle, .lfm-cart-olist > li.is-removed .lfm-cart-oline { opacity: .5; }
.lfm-cart-olist > li.is-removed .lfm-cart-oline { text-decoration: line-through; }
.lfm-cart-oimg { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: #f3f4f6; flex-shrink: 0; display: block; }
.lfm-cart-oimg img { width: 100%; height: 100%; object-fit: cover; }
.lfm-cart-otitle { font-size: 14px; font-weight: 700; color: #1f2937; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.lfm-cart-otitle:hover { color: var(--lf-brand-700, #15803d); }
.lfm-cart-ometa { font-size: 12.5px; color: #6b7280; margin-top: 2px; }
.lfm-cart-oline { font-size: 15px; font-weight: 900; color: #111827; white-space: nowrap; }
.lfm-cart-ist { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; background: #f3f4f6; color: #4b5563; }
.lfm-cart-ist.is-wait { background: #fffbeb; color: #b45309; }
.lfm-cart-ist.is-ok { background: #eff6ff; color: #1d4ed8; }
.lfm-cart-ist.is-prep { background: #f5f3ff; color: #6d28d9; }
.lfm-cart-ist.is-ready { background: var(--lf-brand-50, #f0fdf4); color: var(--lf-brand-700, #15803d); }
.lfm-cart-ist.is-removed { background: #fff1f2; color: #be123c; }
.lfm-cart-oreason { display: flex; gap: 6px; margin-top: 8px; padding: 9px 11px; border-radius: 12px; background: #fff1f2; color: #9f1239; font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.lfm-cart-onote { display: flex; gap: 6px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; color: #4b5563; font-size: 13px; }
.lfm-cart-paid { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: #f8fafc; color: #4b5563; font-size: 12.5px; font-weight: 700; }
.lfm-cart-paid.is-paid { background: var(--lf-brand-50, #f0fdf4); color: var(--lf-brand-800, #166534); }
.lfm-cart-tl { position: relative; display: grid; gap: 16px; }
.lfm-cart-tl li { position: relative; display: flex; gap: 12px; }
.lfm-cart-tl li > i { position: relative; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; flex-shrink: 0; background: var(--lf-brand-500, #22c55e); box-shadow: 0 0 0 4px var(--lf-brand-50, #f0fdf4); }
.lfm-cart-tl li:not(:last-child) > i::after { content: ''; position: absolute; left: 5px; top: 16px; width: 2px; height: calc(100% + 18px); background: #eef0f3; }
.lfm-cart-tl li.is-bad > i { background: #f43f5e; box-shadow: 0 0 0 4px #fff1f2; }
.lfm-cart-tl li:first-child > i { animation: lfm-cart-blink 2s ease-in-out 3; }
.lfm-cart-tl p { font-size: 13.5px; color: #1f2937; line-height: 1.4; }
.lfm-cart-tl-note { margin-top: 3px; color: #6b7280 !important; font-size: 13px !important; }
.lfm-cart-tl small { display: block; font-size: 11.5px; color: #9ca3af; font-weight: 600; margin-top: 3px; }
.lfm-cart-cancel { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 46px; border-radius: 16px; background: #fff; border: 1px solid #fecdd3; color: #e11d48; font-weight: 800; font-size: 14px; transition: background .15s; }
.lfm-cart-cancel:hover { background: #fff1f2; }
.lfm-cart-help { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: #fff; border: 1px solid #eef0f3; color: #374151; transition: border-color .15s; }
.lfm-cart-help:hover { border-color: var(--lf-brand-400, #4ade80); }
.lfm-cart-help > svg:first-child { color: var(--lf-brand-600, #16a34a); }
.lfm-cart-help b { display: block; font-size: 14px; font-weight: 800; color: #111827; }
.lfm-cart-help small { display: block; font-size: 12px; color: #6b7280; }
[data-lfm-order-live].is-flash .lfm-cart-status { animation: lfm-cart-flash 1.2s ease; }
@keyframes lfm-cart-flash { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); } 100% { box-shadow: 0 0 0 18px rgba(34, 197, 94, 0); } }

/* ---------- 8. SİFARİŞLƏR / SATIŞLARIM ---------- */
.lfm-cart-stat { display: inline-flex; flex-direction: column; justify-content: center; min-width: 88px; padding: 8px 14px; border-radius: 16px; background: #f8fafc; border: 1px solid #eef0f3; }
.lfm-cart-stat b { font-size: 17px; font-weight: 900; color: #111827; white-space: nowrap; }
.lfm-cart-stat small { font-size: 11px; font-weight: 700; color: #6b7280; }
.lfm-cart-stat.is-blue { background: #eff6ff; border-color: #dbeafe; }
.lfm-cart-stat.is-green { background: var(--lf-brand-50, #f0fdf4); border-color: var(--lf-brand-100, #dcfce7); }
.lfm-cart-stat.is-amber { background: #fffbeb; border-color: #fde68a; }
.lfm-cart-ocard { display: block; padding: 16px 18px; border-radius: 22px; background: #fff; border: 1px solid #eef0f3; box-shadow: var(--lf-shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.lfm-cart-ocard:hover { transform: translateY(-2px); border-color: #dfe3e8; box-shadow: 0 16px 32px -18px rgba(16, 24, 40, .25); }
.lfm-cart-badge-st { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; background: #f3f4f6; color: #4b5563; }
.lfm-cart-badge-st.is-amber { background: #fffbeb; color: #b45309; }
.lfm-cart-badge-st.is-blue { background: #eff6ff; color: #1d4ed8; }
.lfm-cart-badge-st.is-violet { background: #f5f3ff; color: #6d28d9; }
.lfm-cart-badge-st.is-green { background: var(--lf-brand-50, #f0fdf4); color: var(--lf-brand-700, #15803d); }
.lfm-cart-badge-st.is-red { background: #fff1f2; color: #be123c; }
.lfm-cart-thumbs { display: flex; align-items: center; }
.lfm-cart-thumbs img, .lfm-cart-thumbs span { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; background: #f3f4f6; border: 2px solid #fff; margin-left: -8px; box-shadow: 0 2px 6px rgba(16, 24, 40, .08); }
.lfm-cart-thumbs img:first-child { margin-left: 0; }
.lfm-cart-thumbs img.is-off { opacity: .4; filter: grayscale(1); }
.lfm-cart-thumbs span { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; color: #4b5563; }
.lfm-cart-mprog { height: 5px; margin-top: 14px; border-radius: 999px; background: #f1f3f5; overflow: hidden; }
.lfm-cart-mprog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lf-brand-400, #4ade80), var(--lf-brand-600, #16a34a)); }
.lfm-cart-sorder { padding: 18px; border-radius: 24px; background: #fff; border: 1px solid #eef0f3; box-shadow: var(--lf-shadow-sm); scroll-margin-top: 100px; }
.lfm-cart-sorder.is-hl { border-color: var(--lf-brand-400, #4ade80); box-shadow: 0 0 0 4px rgba(34, 197, 94, .12); }
.lfm-cart-sorder .lfm-cart-olist > li { padding: 14px 0; }
.lfm-cart-cust { display: flex; gap: 8px; margin: 12px 0 4px; padding: 10px 12px; border-radius: 14px; background: #f8fafc; font-size: 13px; color: #374151; line-height: 1.5; }
.lfm-cart-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lfm-cart-reason { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 14px; border: 1px solid #eef0f3; cursor: pointer; font-size: 13.5px; font-weight: 600; color: #374151; }
.lfm-cart-reason:has(input:checked) { border-color: #fda4af; background: #fff1f2; color: #9f1239; }
.lfm-cart-reason input { accent-color: #e11d48; }

/* ---------- 9. MOBİL (tətbiq kimi) ---------- */
@media (max-width: 1023px) {
    .lfm-cart-mbar {
        display: flex; align-items: center; gap: 12px; position: sticky; z-index: 30;
        bottom: calc(var(--lf-bottom-nav, 66px) + var(--lf-safe-b, 0px) + 8px); margin-top: 16px; padding: 12px 12px 12px 18px;
        border-radius: 22px; background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); border: 1px solid #eef0f3;
        box-shadow: 0 -10px 30px -12px rgba(16, 24, 40, .25);
    }
    .lfm-cart-mbar > div { flex: 1; }
    .lfm-cart-mbar small { display: block; font-size: 11px; font-weight: 700; color: #6b7280; }
    .lfm-cart-mbar b { display: block; font-size: 20px; font-weight: 900; color: #111827; letter-spacing: -.02em; }
    .lfm-cart-side [data-lfm-cart-go], .lfm-cart-side [data-lfm-co-submit] { display: none; }
    body:has(.lfm-cart-mbar) .laf-scroll-wrapper { display: none; }
}
@media (max-width: 767px) {
    .lfm-cart-mbar { bottom: calc(var(--lf-bottom-nav, 66px) + var(--lf-safe-b, 0px) + 8px); }
    .lfm-cart-hbtn { display: none; } /* mobil: səbət alt menyudadır */
    .lfm-cart-drawer-box { width: 100%; }
    .lfm-cart-group, .lfm-cart-sorder { border-radius: 20px; }
    .lfm-cart-row { padding: 14px; gap: 12px; }
    .lfm-cart-olist > li { padding: 12px 14px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .lfm-cart-mbar { bottom: 12px; }
}
