/* ==========================================================================
   SZTANFA – ÚJ KOSÁR OLDAL v1.0
   Ugyanaz a paletta és formavilág, mint az új termékadatlapon (.sz-sp).
   Minden szabály a .sz-cart konténerre szűkítve, hogy a téma (GeneratePress)
   és az Elementor globális gomb / input stílusai ne üssék.
   ========================================================================== */

/* A régi Elementor kosár widget elrejtése, amíg az új kosár látszik */
.sz-cart-on .elementor-widget-woocommerce-cart { display: none !important; }

/* --------------------------------------------------------------------------
   0. TOKENEK
   -------------------------------------------------------------------------- */
.sz-cart {
    --sz-brand: #D89244;
    --sz-brand-dark: #b9762d;
    --sz-brand-text: #8a5519;
    --sz-brand-soft: #fbf3e9;
    --sz-green: #1C342F;
    --sz-green-2: #27463f;
    --sz-ok: #1E6B45;
    --sz-ok-soft: #e8f3ec;
    --sz-bad: #b42318;
    --sz-bad-soft: #fdecea;
    --sz-text: #1a1a1a;
    --sz-body: #4a504c;
    --sz-muted: #6b6f6d;
    --sz-border: #ebe7e1;
    --sz-bg: #ffffff;
    --sz-surface: #faf8f5;
    --sz-chip: #f3f1ed;
    --sz-radius: 14px;
    --sz-radius-sm: 10px;
    --sz-radius-lg: 22px;
    --sz-shadow: 0 1px 2px rgba(28,52,47,.04), 0 4px 14px rgba(28,52,47,.05);
    --sz-shadow-hover: 0 14px 34px rgba(28,52,47,.12);
    --sz-ease: cubic-bezier(.2,.7,.2,1);

    max-width: 1240px;
    margin: 0 auto 72px;
    padding: 8px 0 0;
    font-family: 'Poppins', 'Archivo', system-ui, sans-serif;
    color: var(--sz-text);
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
}
.sz-cart *, .sz-cart *::before, .sz-cart *::after { box-sizing: border-box; }
.sz-cart a { color: var(--sz-green); text-decoration: none; }
.sz-cart a:hover { color: var(--sz-brand-dark); }
.sz-cart h2, .sz-cart h3 { font-family: inherit; letter-spacing: 0; text-transform: none; margin: 0; color: var(--sz-text); }
.sz-cart p { margin: 0; }
.sz-cart-icon { display: inline-block; flex: none; vertical-align: middle; }

/* --------------------------------------------------------------------------
   1. ÉRTESÍTÉSEK + TOAST
   -------------------------------------------------------------------------- */
.sz-cart-notices:empty { display: none; }
.sz-cart-notices { margin-bottom: 18px; }
.sz-cart-notices .woocommerce-message,
.sz-cart-notices .woocommerce-info,
.sz-cart-notices .woocommerce-error {
    margin: 0 0 10px !important;
    padding: 14px 18px 14px 48px !important;
    border: 1px solid var(--sz-border) !important;
    border-left: 4px solid var(--sz-green) !important;
    border-radius: var(--sz-radius) !important;
    background: #fff !important;
    color: var(--sz-text) !important;
    box-shadow: var(--sz-shadow) !important;
    font-size: 14px !important;
    list-style: none !important;
}
.sz-cart-notices .woocommerce-error { border-left-color: var(--sz-bad) !important; background: var(--sz-bad-soft) !important; }
.sz-cart-notices .woocommerce-info  { border-left-color: var(--sz-brand) !important; }
.sz-cart-notices .woocommerce-error li { margin: 0 !important; }

.sz-cart-toast {
    position: fixed; z-index: 99990;
    left: 50%; bottom: 24px; transform: translate(-50%, 20px);
    display: flex; align-items: center; gap: 14px;
    max-width: calc(100vw - 32px);
    padding: 12px 14px 12px 18px;
    border-radius: 999px;
    background: var(--sz-green); color: #fff;
    box-shadow: 0 18px 40px rgba(28,52,47,.28);
    font-size: 14px; opacity: 0;
    transition: opacity .25s ease, transform .3s var(--sz-ease);
}
.sz-cart-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.sz-cart-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-cart .sz-cart-toast button {
    appearance: none; flex: none; margin: 0 !important;
    border: 0 !important; border-radius: 999px !important;
    padding: 7px 14px !important; min-height: 0 !important;
    background: var(--sz-brand) !important; color: var(--sz-green) !important;
    font: 600 13px/1.2 inherit !important; font-family: inherit !important; cursor: pointer; box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   2. LÉPÉSEK
   -------------------------------------------------------------------------- */
.sz-steps {
    display: flex; gap: 8px; align-items: center;
    list-style: none !important; margin: 0 0 26px !important; padding: 0 !important;
    counter-reset: none;
}
.sz-steps li {
    display: flex; align-items: center; gap: 10px;
    margin: 0 !important; padding: 0 !important;
    font-size: 14px; color: var(--sz-muted); font-weight: 500;
    flex: 0 1 auto; min-width: 0;
}
.sz-steps li + li::before {
    content: ''; width: 36px; height: 2px; border-radius: 2px;
    background: var(--sz-border); flex: none; margin-right: 2px;
}
.sz-step-n {
    width: 30px; height: 30px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 99px; border: 1.5px solid var(--sz-border);
    background: #fff; font-size: 13px; font-weight: 600; color: var(--sz-muted);
}
.sz-step-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sz-steps li.is-active { color: var(--sz-text); font-weight: 600; }
.sz-steps li.is-active .sz-step-n { background: var(--sz-green); border-color: var(--sz-green); color: #fff; box-shadow: 0 0 0 4px rgba(28,52,47,.1); }

/* --------------------------------------------------------------------------
   3. RÁCS
   -------------------------------------------------------------------------- */
.sz-cart-form { margin: 0 !important; }
.sz-cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
}

.sz-cart-items-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    margin-bottom: 14px;
}
.sz-cart-items-head h2 { font-size: 22px; font-weight: 600; line-height: 1.25; }
.sz-cart-items-head h2 span { font-size: 14px; font-weight: 500; color: var(--sz-muted); margin-left: 6px; }
.sz-link-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--sz-muted) !important; white-space: nowrap; }
.sz-link-back:hover { color: var(--sz-green) !important; }

.sz-cart-list { display: flex; flex-direction: column; gap: 14px; }

/* --------------------------------------------------------------------------
   4. TÉTEL KÁRTYA
   -------------------------------------------------------------------------- */
.sz-ci {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    background: var(--sz-bg);
    border: 1px solid var(--sz-border);
    border-radius: var(--sz-radius-lg);
    box-shadow: var(--sz-shadow);
    transition: box-shadow .25s ease, opacity .25s ease, transform .3s var(--sz-ease);
    animation: sz-ci-in .35s var(--sz-ease) both;
}
.sz-ci:hover { box-shadow: var(--sz-shadow-hover); }
.sz-ci.is-loading { opacity: .6; pointer-events: none; }
.sz-ci.is-leaving { opacity: 0; transform: translateX(16px); }
@keyframes sz-ci-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sz-ci-img {
    width: 112px; height: 112px;
    border-radius: var(--sz-radius);
    overflow: hidden;
    background: var(--sz-surface);
}
.sz-ci-img a { display: block; width: 100%; height: 100%; }
.sz-ci-img img {
    width: 100% !important; height: 100% !important; max-width: none !important;
    object-fit: cover; display: block; margin: 0 !important; border-radius: 0 !important;
    transition: transform .4s var(--sz-ease);
}
.sz-ci:hover .sz-ci-img img { transform: scale(1.04); }

.sz-ci-body { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sz-ci-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.sz-ci-title { min-width: 0; }
.sz-ci-name { font-size: 16px !important; font-weight: 600 !important; line-height: 1.35 !important; }
.sz-ci-name a { color: var(--sz-text) !important; }
.sz-ci-name a:hover { color: var(--sz-brand-dark) !important; }

.sz-ci-meta { margin-top: 6px; }
.sz-ci-meta dl.variation { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 !important; padding: 0; border: 0 !important; }
.sz-ci-meta dl.variation dt,
.sz-ci-meta dl.variation dd {
    display: inline-flex; margin: 0 !important; padding: 0 !important; float: none !important;
    font-size: 12.5px; color: var(--sz-body); font-weight: 500; line-height: 1.4;
}
.sz-ci-meta dl.variation dt { padding: 3px 0 3px 10px !important; background: var(--sz-chip); border-radius: 99px 0 0 99px; color: var(--sz-muted); }
.sz-ci-meta dl.variation dd { padding: 3px 10px 3px 4px !important; background: var(--sz-chip); border-radius: 0 99px 99px 0; margin-right: 2px !important; }
.sz-ci-meta dl.variation dd p { margin: 0 !important; display: inline; }
.sz-ci-backorder { margin-top: 6px !important; font-size: 13px; color: var(--sz-brand-text); font-weight: 500; }

.sz-ci-remove {
    flex: none;
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 99px;
    color: var(--sz-muted) !important;
    background: transparent;
    transition: background .2s ease, color .2s ease;
}
.sz-ci-remove:hover { background: var(--sz-bad-soft); color: var(--sz-bad) !important; }
.sz-ci-remove:focus-visible { outline: 3px solid var(--sz-brand); outline-offset: 1px; }

.sz-ci-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(110px, auto);
    gap: 16px;
    align-items: center;
}
.sz-ci-unit, .sz-ci-sub { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sz-ci-sub { text-align: right; align-items: flex-end; }
.sz-ci-unit-label, .sz-ci-sub-label { font-size: 12px; color: var(--sz-muted); font-weight: 500; }
.sz-ci-unit-val { font-size: 15px; font-weight: 600; color: var(--sz-text); white-space: nowrap; }
.sz-ci-suffix { font-weight: 500; color: var(--sz-muted); margin-left: 2px; font-size: 13px; }
.sz-ci-unit-old { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; color: var(--sz-muted); }
.sz-ci-unit-old del { opacity: .8; }
.sz-ci-sub-val { font-size: 18px; font-weight: 700; color: var(--sz-green); white-space: nowrap; }
.sz-ci-sub-val .woocommerce-Price-amount { color: inherit; }

.sz-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 99px;
    font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.sz-chip-ok { background: var(--sz-ok-soft); color: var(--sz-ok); }

/* Mennyiség léptető */
.sz-ci-qty { display: flex; align-items: center; gap: 8px; }
.sz-qty {
    display: inline-flex; align-items: stretch;
    border: 1px solid var(--sz-border);
    border-radius: var(--sz-radius);
    overflow: hidden; background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.sz-qty:focus-within { border-color: var(--sz-green); box-shadow: 0 0 0 3px rgba(28,52,47,.1); }
.sz-cart .sz-qty-btn {
    appearance: none; -webkit-appearance: none;
    width: 42px; min-height: 46px; height: auto;
    margin: 0 !important; padding: 0 !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    background: #fff !important; color: var(--sz-green) !important;
    font: 500 20px/1 inherit !important; font-family: inherit !important;
    cursor: pointer; transition: background .15s ease;
}
.sz-cart .sz-qty-btn:hover { background: var(--sz-surface) !important; }
.sz-cart .sz-qty-btn:disabled { color: #c4c7c5 !important; cursor: not-allowed; background: #fff !important; }
.sz-cart .sz-qty-btn:focus-visible { outline: 3px solid var(--sz-brand); outline-offset: -3px; }
.sz-cart .sz-qty-input {
    width: 58px !important; min-height: 46px !important; height: auto !important;
    margin: 0 !important; padding: 0 4px !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: 0 !important;
    background: transparent !important; color: var(--sz-text) !important;
    text-align: center !important; font-family: inherit !important; font-size: 16px !important; font-weight: 600 !important;
    -moz-appearance: textfield;
}
.sz-cart .sz-qty-input::-webkit-outer-spin-button,
.sz-cart .sz-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sz-qty-unit, .sz-qty-fixed { font-size: 13px; color: var(--sz-muted); font-weight: 500; }
.sz-qty-fixed { font-size: 15px; color: var(--sz-text); font-weight: 600; }

/* Következő sáv tipp */
.sz-ci-hint {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;
    padding: 10px 12px 10px 14px;
    border-radius: var(--sz-radius);
    background: var(--sz-brand-soft);
    color: var(--sz-brand-text);
    font-size: 13.5px; line-height: 1.45;
}
.sz-ci-hint-text { display: block; flex: 1 1 240px; min-width: 0; }
.sz-ci-hint-text .sz-cart-icon { color: var(--sz-brand); margin: -2px 6px 0 0; }
.sz-ci-hint strong { color: var(--sz-text); font-weight: 600; }
.sz-cart .sz-ci-hint-btn {
    appearance: none; margin: 0 !important;
    padding: 7px 14px !important; min-height: 0 !important;
    border: 1px solid var(--sz-brand) !important; border-radius: 99px !important;
    background: #fff !important; color: var(--sz-brand-text) !important;
    font-family: inherit !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.2 !important;
    text-transform: none !important; letter-spacing: 0 !important;
    cursor: pointer; box-shadow: none !important; white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.sz-cart .sz-ci-hint-btn:hover { background: var(--sz-brand) !important; color: #fff !important; }

/* JS nélküli frissítés gomb – JS-sel rejtve */
.sz-cart-nojs { margin-top: 14px; }
.sz-cart.sz-js .sz-cart-nojs { display: none; }

/* --------------------------------------------------------------------------
   5. GOMBOK
   -------------------------------------------------------------------------- */
.sz-cart .sz-btn {
    appearance: none;
    display: inline-flex !important; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 0 22px !important; margin: 0 !important;
    border: 0 !important; border-radius: var(--sz-radius) !important;
    font-family: inherit !important; font-size: 16px !important; font-weight: 600 !important; line-height: 1.2 !important;
    text-transform: none !important; letter-spacing: 0 !important; text-decoration: none !important;
    cursor: pointer; box-shadow: none !important;
    transition: background .2s ease, transform .2s var(--sz-ease), box-shadow .2s ease, color .2s ease !important;
}
.sz-cart .sz-btn-primary { background: var(--sz-green) !important; color: #fff !important; }
.sz-cart .sz-btn-primary .sz-cart-icon { color: var(--sz-brand); transition: transform .2s var(--sz-ease); }
.sz-cart .sz-btn-primary:hover { background: var(--sz-green-2) !important; color: #fff !important; transform: translateY(-1px); box-shadow: var(--sz-shadow-hover) !important; }
.sz-cart .sz-btn-primary:hover .sz-cart-icon { transform: translateX(3px); }
.sz-cart .sz-btn:focus-visible { outline: 3px solid var(--sz-brand) !important; outline-offset: 2px; }
.sz-cart .sz-btn-ghost { background: #fff !important; color: var(--sz-green) !important; border: 1px solid var(--sz-border) !important; min-height: 46px; font-size: 14px !important; }
.sz-cart .sz-btn-ghost:hover { border-color: var(--sz-green) !important; }

/* --------------------------------------------------------------------------
   6. ÖSSZESÍTŐ
   -------------------------------------------------------------------------- */
.sz-cart-summary { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 14px; }
.admin-bar .sz-cart-summary { top: 142px; }

.sz-sum-card {
    padding: 24px;
    background: var(--sz-bg);
    border: 1px solid var(--sz-border);
    border-radius: var(--sz-radius-lg);
    box-shadow: var(--sz-shadow);
}
.sz-sum-title { font-size: 19px !important; font-weight: 600 !important; margin-bottom: 16px !important; }

.sz-sum-rows { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--sz-border); }
.sz-sum-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; color: var(--sz-body); }
.sz-sum-row > span:last-child { color: var(--sz-text); font-weight: 600; text-align: right; white-space: nowrap; }
.sz-sum-row .sz-sum-muted { color: var(--sz-muted) !important; font-weight: 500 !important; }
.sz-sum-coupon a { font-size: 12px; margin-left: 6px; color: var(--sz-bad) !important; }

.sz-sum-note {
    display: flex; gap: 10px; align-items: flex-start;
    margin-top: 16px; padding: 12px 14px;
    background: var(--sz-surface); border-radius: var(--sz-radius);
    font-size: 13px; color: var(--sz-body); line-height: 1.5;
}
.sz-sum-note .sz-cart-icon { color: var(--sz-brand); margin-top: 1px; }
.sz-sum-note a { font-weight: 600; text-decoration: underline !important; text-underline-offset: 2px; white-space: nowrap; }

.sz-sum-total {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
    margin: 18px 0 18px;
}
.sz-sum-total-label { font-size: 16px; font-weight: 600; display: flex; flex-direction: column; line-height: 1.25; }
.sz-sum-total-label small { font-size: 12px; font-weight: 500; color: var(--sz-muted); margin-top: 3px; }
.sz-sum-total-val { text-align: right; font-size: 26px; font-weight: 700; color: var(--sz-green); line-height: 1.15; }
.sz-sum-total-val strong { font-weight: 700; }
.sz-sum-total-val small, .sz-sum-total-val .includes_tax { display: block; font-size: 12px; font-weight: 500; color: var(--sz-muted); margin-top: 4px; }
.sz-sum-total-val small .woocommerce-Price-amount { font-weight: 500; }

.sz-cart .sz-checkout-btn { width: 100%; min-height: 58px; font-size: 17px !important; }
.sz-sum-extra { margin-top: 10px; }
.sz-sum-secure { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px !important; font-size: 12.5px; color: var(--sz-muted); line-height: 1.45; }
.sz-sum-secure .sz-cart-icon { margin-top: 2px; }

.sz-coupon { margin-top: 16px; border-top: 1px solid var(--sz-border); padding-top: 14px; }
.sz-coupon summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--sz-green); }
.sz-coupon summary::-webkit-details-marker { display: none; }
.sz-coupon-row { display: flex; gap: 8px; margin-top: 12px; }
.sz-cart .sz-coupon-input {
    flex: 1; min-width: 0; min-height: 46px !important; margin: 0 !important;
    padding: 0 14px !important; border: 1px solid var(--sz-border) !important; border-radius: var(--sz-radius) !important;
    font-family: inherit !important; font-size: 14px !important; background: #fff !important; box-shadow: none !important;
}

/* Bizalmi sorok */
.sz-trust {
    list-style: none !important; margin: 0 !important; padding: 16px 18px !important;
    display: flex; flex-direction: column; gap: 12px;
    border: 1px solid var(--sz-border); border-radius: var(--sz-radius-lg);
    background: var(--sz-surface);
}
.sz-trust li { display: flex; gap: 12px; align-items: center; margin: 0 !important; padding: 0 !important; }
.sz-trust-ic {
    width: 36px; height: 36px; flex: none; border-radius: 99px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--sz-green); box-shadow: var(--sz-shadow);
}
.sz-trust strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--sz-text); line-height: 1.3; }
.sz-trust small { display: block; font-size: 12.5px; color: var(--sz-muted); line-height: 1.35; }

.sz-help { text-align: center; font-size: 13px; color: var(--sz-muted); }
.sz-help a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }

/* --------------------------------------------------------------------------
   7. ÜRES KOSÁR
   -------------------------------------------------------------------------- */
.sz-cart-empty {
    max-width: 560px; margin: 24px auto; padding: 48px 28px;
    text-align: center;
    background: #fff; border: 1px solid var(--sz-border);
    border-radius: var(--sz-radius-lg); box-shadow: var(--sz-shadow);
}
.sz-cart-empty-ic {
    width: 76px; height: 76px; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 99px; background: var(--sz-brand-soft); color: var(--sz-brand-dark);
}
.sz-cart-empty h2 { font-size: 22px !important; font-weight: 600 !important; margin-bottom: 8px !important; }
.sz-cart-empty p { color: var(--sz-body); margin-bottom: 22px !important; }

/* --------------------------------------------------------------------------
   8. MOBIL ALSÓ SÁV
   -------------------------------------------------------------------------- */
.sz-cart-bar { display: none; }

/* Betöltés jelző az összesítőn */
.sz-cart.is-busy .sz-sum-total-val,
.sz-cart.is-busy .sz-cart-bar-total strong { opacity: .45; transition: opacity .2s ease; }

/* --------------------------------------------------------------------------
   9. RESZPONZÍV
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .sz-cart-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; }
    .sz-ci-row { grid-template-columns: minmax(0, 1fr) auto; }
    .sz-ci-sub { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: baseline; text-align: left; border-top: 1px solid var(--sz-border); padding-top: 12px; }
}

@media (max-width: 860px) {
    .sz-cart { padding-left: 0; padding-right: 0; margin-bottom: 40px; }
    .sz-cart-grid { grid-template-columns: minmax(0, 1fr); }
    .sz-cart-summary { position: static; }
    .sz-steps li:not(.is-active) .sz-step-l { display: none; }
    .sz-steps li + li::before { width: 22px; }

    .sz-cart-bar {
        display: flex; align-items: center; justify-content: space-between; gap: 14px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.96);
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
        border-top: 1px solid var(--sz-border);
        box-shadow: 0 -10px 30px rgba(28,52,47,.1);
        transform: translateY(110%);
        transition: transform .3s var(--sz-ease);
    }
    .sz-cart-bar.is-visible { transform: none; }
    .sz-cart-bar-total { display: flex; flex-direction: column; min-width: 0; }
    .sz-cart-bar-total small { font-size: 11.5px; color: var(--sz-muted); font-weight: 500; white-space: nowrap; }
    .sz-cart-bar-total strong { font-size: 19px; font-weight: 700; color: var(--sz-green); white-space: nowrap; }
    .sz-cart .sz-cart-bar .sz-btn { min-height: 50px; padding: 0 20px !important; flex: none; }
    .sz-cart-toast { bottom: 92px; }
}

@media (max-width: 560px) {
    .sz-cart { font-size: 14px; }
    .sz-steps { margin-bottom: 18px !important; }
    .sz-cart-items-head h2 { font-size: 19px; }
    .sz-cart-items-head h2 span { display: block; margin: 2px 0 0; font-size: 13px; }

    .sz-ci { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 18px; }
    .sz-ci-img { width: 76px; height: 76px; border-radius: 12px; }
    .sz-ci-name { font-size: 14.5px !important; }
    .sz-ci-remove { width: 34px; height: 34px; margin: -4px -4px 0 0; }
    /* A törzs "szétesik", így a sorok a kártya teljes szélességét kapják a kép alatt */
    .sz-ci { grid-template-areas: "img head" "row row" "hint hint"; row-gap: 14px; }
    .sz-ci-body { display: contents; }
    .sz-ci-img { grid-area: img; }
    .sz-ci-head { grid-area: head; }
    .sz-ci-row { grid-area: row; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
    .sz-ci-hint { grid-area: hint; }
    .sz-ci-sub-val { font-size: 17px; }
    .sz-sum-card { padding: 20px 18px; border-radius: 18px; }
    .sz-sum-total-val { font-size: 23px; }
}

/* --------------------------------------------------------------------------
   10. MOBIL FINOMÍTÁS v1.1
   - nincs alsó fix sáv (a bal alsó badge kitakarná), helyette felül egy
     rövid összesítő kártya pénztár gombbal
   - a toast felülre kerül, hogy a badge ne takarja
   - kompaktabb kártyák, nagyobb érintési felületek
   -------------------------------------------------------------------------- */
.sz-mtop { display: none; }

@media (max-width: 860px) {
    .sz-mtop {
        display: flex; align-items: center; justify-content: space-between; gap: 14px;
        margin: 0 0 18px; padding: 14px 14px 14px 18px;
        background: #fff; border: 1px solid var(--sz-border);
        border-radius: 18px; box-shadow: var(--sz-shadow);
    }
    .sz-mtop-total { display: flex; flex-direction: column; min-width: 0; }
    .sz-mtop-total small { font-size: 12px; color: var(--sz-muted); font-weight: 500; line-height: 1.3; }
    .sz-mtop-total strong { font-size: 21px; font-weight: 700; color: var(--sz-green); line-height: 1.2; white-space: nowrap; }
    .sz-cart .sz-mtop .sz-btn { min-height: 50px; padding: 0 20px !important; flex: none; }

    .sz-cart-toast { top: 16px; bottom: auto; transform: translate(-50%, -20px); width: max-content; }
    .sz-cart-toast.is-in { transform: translate(-50%, 0); }
    .admin-bar .sz-cart-toast { top: 62px; }

    /* A végén legyen hely, hogy a bal alsó badge ne takarja a telefonszámot */
    .sz-help { padding-bottom: 72px; }
}

@media (max-width: 560px) {
    .sz-cart { margin-bottom: 24px; }
    .sz-steps { margin-bottom: 14px !important; }
    .sz-step-n { width: 26px; height: 26px; font-size: 12px; }
    .sz-cart-items-head { margin-bottom: 10px; }
    .sz-cart-list { gap: 12px; }

    .sz-ci-unit-old { margin-top: 4px; }
    .sz-cart .sz-qty-btn { width: 44px; min-height: 44px; }
    .sz-cart .sz-qty-input { width: 52px !important; min-height: 44px !important; }
    .sz-ci-sub { padding-top: 10px; }

    .sz-ci-hint { flex-direction: column; align-items: stretch; padding: 12px; }
    .sz-ci-hint-text { flex: none; }
    .sz-cart .sz-ci-hint-btn { width: 100%; padding: 10px 14px !important; text-align: center; }

    .sz-cart .sz-checkout-btn { min-height: 56px; }
    .sz-cart .sz-coupon-input { font-size: 16px !important; }   /* iOS ne nagyítson rá */
    .sz-trust { padding: 14px !important; }

    /* Ha nincs sávos ár tipp, ne maradjon üres sor a kártya alján */
    .sz-ci:not(:has(.sz-ci-hint)) { grid-template-areas: "img head" "row row"; }
}

@media (max-width: 360px) {
    .sz-ci-row { grid-template-columns: minmax(0, 1fr); }
    .sz-ci-qty { justify-content: flex-start; }
    .sz-mtop-total strong { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .sz-cart *, .sz-cart *::before, .sz-cart *::after { animation: none !important; transition: none !important; }
}


