/* Smoke Factory: výsuvný mini košík (desktop zprava, mobil zospodu) */
.sfc {
    --c-g: var(--sf-g, #00c346);
    --c-gd: var(--sf-gd, #00843a);
    --c-gl: var(--sf-gl, #e9fff1);
    --c-dark: var(--sf-dark, #292929);
    --c-line: var(--sf-line, #e6e6e6);
    --c-soft: var(--sf-soft, #f3f3f3);
    --c-muted: var(--sf-muted, #5c5c5c);
    --c-ease: cubic-bezier(.22, .8, .24, 1);
    font-family: inherit;
    color: var(--c-dark);
    line-height: 1.35;
}
.sfc[hidden] { display: none; }
.sfc { position: fixed; inset: 0; z-index: 100002; display: flex; justify-content: flex-end; align-items: stretch; }
body.sfc-open { overflow: hidden; }

.sfc__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .22s ease; }
.sfc.is-open .sfc__backdrop { opacity: 1; }

.sfc__panel {
    position: relative; display: flex; flex-direction: column;
    width: 440px; max-width: 100%; height: 100%;
    background: #fff; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .4);
    transform: translateX(100%); transition: transform .3s var(--c-ease); outline: 0;
}
.sfc.is-open .sfc__panel { transform: none; }

.sfc__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 12px 14px 22px; border-bottom: 1px solid var(--c-line); }
.sfc__title { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; font-size: 21px; font-weight: 800; line-height: 1.2; color: var(--c-dark); }
.sfc__tick { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-g); color: #fff; }
.sfc__count { display: inline-block; min-width: 26px; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: var(--c-soft); color: var(--c-dark); font-size: 14px; font-weight: 700; text-align: center; vertical-align: middle; }
.sfc__close { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--c-soft); color: var(--c-dark); cursor: pointer; }
.sfc__close:focus-visible, .sfc-btn:focus-visible, .sfc-qty__btn:focus-visible, .sfc-sug__add:focus-visible { outline: 2px solid var(--c-dark); outline-offset: 2px; }

.sfc__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px 22px 22px; }
.sfc.is-busy .sfc__body { opacity: .6; pointer-events: none; transition: opacity .15s; }
.sfc__foot { flex: none; padding: 14px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); background: #fff; display: flex; flex-direction: column; gap: 10px; }
.sfc__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Poštovné zdarma */
.sfc-ship { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--c-soft); font-size: 15px; }
.sfc-ship.is-done { background: var(--c-gl); color: var(--c-gd); align-items: center; }
.sfc-ship__ico { flex: none; color: var(--c-gd); margin-top: 1px; }
.sfc-ship__txt { flex: 1 1 auto; min-width: 0; }
.sfc-ship__bar { height: 8px; margin: 10px 0 6px; border-radius: 999px; background: #dcdcdc; overflow: hidden; }
.sfc-ship__bar span { display: block; height: 100%; border-radius: 999px; background: var(--c-g); transition: width .4s var(--c-ease); }
.sfc-ship small { color: var(--c-muted); font-size: 13px; }

/* Položky */
.sfc-items { margin: 0; padding: 0; list-style: none; }
.sfc-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.sfc-item:first-child { padding-top: 0; }
.sfc-item.is-new { margin: 0 -10px 0; padding: 14px 10px; border-radius: 14px; border-bottom-color: transparent; background: var(--c-gl); }
.sfc-item.is-new:first-child { padding-top: 14px; }
.sfc-item__img { flex: none; display: block; width: 72px; height: 72px; border-radius: 12px; background: #fff; border: 1px solid var(--c-line); overflow: hidden; }
.sfc-item__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sfc-item__main { flex: 1 1 auto; min-width: 0; }
.sfc-item__name { display: block; color: var(--c-dark); font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.sfc-item__var { display: block; margin-top: 2px; color: var(--c-muted); font-size: 13px; }
.sfc-item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.sfc-item__total { font-size: 17px; font-weight: 800; color: var(--c-gd); white-space: nowrap; }
.sfc-item__remove { margin: 8px 0 0; padding: 0; border: 0; background: none; color: var(--c-muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.sfc-item__remove:hover { color: var(--c-dark); }
.sfc-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--c-line); border-radius: 12px; background: #fff; overflow: hidden; }
.sfc-qty__btn { width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: var(--c-dark); font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; }
.sfc-qty__btn:hover { background: var(--c-soft); }
.sfc-qty__val { min-width: 32px; text-align: center; font-size: 16px; font-weight: 700; }

/* Odporúčané doplnky */
.sfc-sugs { margin: 22px 0 0; }
.sfc-sugs__title { margin: 0 0 10px; padding: 0; color: var(--c-dark); font-size: 16px; font-weight: 800; }
.sfc-sugs__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sfc-sug { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--c-line); border-radius: 14px; }
.sfc-sug__img { flex: none; display: block; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; }
.sfc-sug__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sfc-sug__main { flex: 1 1 auto; min-width: 0; }
.sfc-sug__name { display: -webkit-box; overflow: hidden; color: var(--c-dark); font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sfc-sug__price { display: block; margin-top: 2px; color: var(--c-gd); font-size: 15px; font-weight: 800; }
.sfc-sug__add { flex: none; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--c-g); border-radius: 10px; background: #fff; color: var(--c-gd); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.sfc-sug__add:hover { background: var(--c-g); color: #fff; }

/* Tip pre neprihlásených */
.sfc-nudge { position: relative; display: flex; gap: 12px; margin: 22px 0 0; padding: 14px 40px 14px 14px; border-radius: 14px; background: var(--c-soft); }
.sfc-nudge__ico { flex: none; color: var(--c-gd); margin-top: 2px; }
.sfc-nudge__txt p { margin: 0; font-size: 14px; line-height: 1.45; }
.sfc-nudge__sub { color: var(--c-muted); }
.sfc-nudge__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; }
.sfc-nudge__btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 10px; background: var(--c-dark); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.sfc-nudge__link { color: var(--c-gd); font-size: 14px; font-weight: 700; text-decoration: none; }
.sfc-nudge__link:hover { text-decoration: underline; }
.sfc-nudge__x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--c-muted); cursor: pointer; }
.sfc-nudge__x svg { width: 16px; height: 16px; }

.sfc-empty { padding: 30px 0; text-align: center; color: var(--c-muted); }
.sfc-empty strong { color: var(--c-dark); font-size: 18px; }

/* Pätička */
.sfc-sum { display: flex; align-items: baseline; justify-content: space-between; font-size: 16px; }
.sfc-sum strong { font-size: 22px; font-weight: 800; }
.sfc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 0 18px; border: 1.5px solid transparent; border-radius: 12px; font-family: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.sfc-btn--primary { background: var(--c-g); color: #fff; }
.sfc-btn--primary:hover { background: var(--c-gd); color: #fff; }
.sfc-btn--ghost { background: #fff; border-color: var(--c-line); color: var(--c-dark); }
.sfc-btn--ghost:hover { border-color: var(--c-dark); }

/* Načítavanie na tlačidle */
a.sfc-loading, button.sfc-loading { opacity: .65; pointer-events: none; }

.sfc-toast { position: fixed; left: 50%; bottom: 24px; z-index: 100003; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--c-dark, #292929); color: #fff; font-size: 15px; transform: translate(-50%, 20px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.sfc-toast.is-in { transform: translate(-50%, 0); opacity: 1; }

/* Mobil: panel zospodu */
@media (max-width: 767.98px) {
    .sfc { align-items: flex-end; }
    .sfc__panel { width: 100%; height: auto; max-height: 88vh; border-radius: 22px 22px 0 0; box-shadow: 0 -16px 40px -16px rgba(0, 0, 0, .4); transform: translateY(100%); }
    .sfc.is-open .sfc__panel { transform: none; }
    .sfc__head { padding: 14px 10px 12px 18px; }
    .sfc__body { flex: 0 1 auto; padding: 14px 18px 18px; }
    .sfc__foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    .sfc__panel, .sfc__backdrop, .sfc-ship__bar span, .sfc-toast { transition: none !important; }
}
