/* hidden attribute her zaman gizler — flex/grid display'leri override etmesin */
[hidden] { display: none !important; }

/* ======================================================================
   CART PAGE — /sepet, /cart, /korb, ...
   ====================================================================== */

.cart-page {
    padding: var(--sp-6) 0 var(--sp-10);
    min-height: 60vh;
}

.cart-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--sp-4);
}

/* ─────────── Header ─────────── */

.cart-header {
    margin-bottom: var(--sp-5);
    text-align: center;
}

.cart-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: var(--fw-bold);
    color: var(--text);
    margin: 0;
}

.cart-title-icon {
    font-size: 1.2em;
    line-height: 1;
}

.cart-subtitle {
    margin-top: var(--sp-2);
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

/* ─────────── Dine-in Notice ─────────── */

.cart-dine-in-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: var(--radius);
    color: #78350f;
    margin-bottom: var(--sp-5);
}

.cart-dine-in-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #d97706;
    margin-top: 2px;
}

.cart-dine-in-notice strong {
    display: block;
    font-weight: var(--fw-semibold);
    margin-bottom: 2px;
}

.cart-dine-in-notice p {
    margin: 0;
    font-size: var(--fs-sm);
    line-height: 1.5;
}

/* ─────────── Loading ─────────── */

.cart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    padding: var(--sp-10) 0;
    color: var(--text-muted);
}

.cart-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: cart-spin 0.8s linear infinite;
}

@keyframes cart-spin {
    to { transform: rotate(360deg); }
}

/* ─────────── Empty ─────────── */

.cart-empty {
    text-align: center;
    padding: var(--sp-10) var(--sp-4);
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: var(--sp-4);
    opacity: 0.7;
}

.cart-empty-title {
    font-size: 1.5rem;
    margin: 0 0 var(--sp-2);
    color: var(--text);
}

.cart-empty-desc {
    color: var(--text-muted);
    margin: 0 0 var(--sp-5);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.cart-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: var(--fw-semibold);
    transition: all var(--t-fast);
}
.cart-empty-cta:hover {
    background: var(--primary-dk);
    color: var(--primary-on, #fff);
    transform: translateY(-1px);
}
.cart-empty-cta svg {
    width: 18px;
    height: 18px;
}

/* ─────────── Content (Items + Summary) ─────────── */

.cart-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--sp-5);
    align-items: start;
}

/* ─────────── Items ─────────── */

.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.cart-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: var(--sp-3);
    padding: var(--sp-3);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    align-items: center;
    transition: border-color var(--t-fast);
}
.cart-item:hover {
    border-color: var(--border-strong, var(--primary));
}

.cart-item-thumb {
    width: 96px;
    height: 96px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
}

.cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-thumb-fallback {
    font-size: 2rem;
}

.cart-item-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    color: var(--text);
    text-decoration: none;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-base);
    line-height: 1.3;
}
.cart-item-name:hover {
    color: var(--primary-dk);
}

/* Adisyon style — grup adı bold, alt alta */
.cart-item-variants {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 6px;
}

.cart-item-variant-group {
    display: block;
    font-weight: 700;
    color: #2C4530;
    margin-top: 4px;
    margin-bottom: 1px;
}
.cart-item-variant-group:first-child {
    margin-top: 0;
}

.cart-item-variant {
    display: block;
    line-height: 1.4;
    padding-left: 4px;
}

.cart-item-variant-adj {
    color: var(--primary);
    font-weight: 600;
    margin-left: 4px;
}

.cart-item-price-unit {
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--sp-2);
}

/* ─── Qty stepper ─── */

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: var(--bg-card);
}

.cart-item-qty-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--text);
    transition: background var(--t-fast);
}
.cart-item-qty-btn:hover {
    background: var(--bg-soft);
    color: var(--text);
}
.cart-item-qty-btn svg {
    width: 14px;
    height: 14px;
}

.cart-item-qty-value {
    min-width: 32px;
    text-align: center;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
}

.cart-item-line-price {
    font-weight: var(--fw-bold);
    color: var(--text);
    font-size: var(--fs-base);
    white-space: nowrap;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all var(--t-fast);
}
.cart-item-remove:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}
.cart-item-remove svg {
    width: 16px;
    height: 16px;
}

/* ═════════════════════════════════════════════════════════════
   📋 SİPARİŞ ÖZETİ — Mandıracı Dede premium tasarım
   Krem gradient + koyu yeşil aksanlar + sade hiyerarşi
   ═════════════════════════════════════════════════════════════ */

.cart-summary {
    background: linear-gradient(180deg, #ffffff 0%, #fdfcf7 100%);
    border: 1px solid #e5dfd0;
    border-radius: 14px;
    padding: 22px 24px;
    position: sticky;
    top: calc(var(--header-h, 64px) + 20px);
    box-shadow: 0 4px 12px rgba(44, 69, 48, 0.04), 0 1px 3px rgba(44, 69, 48, 0.03);
}

/* Üst başlık */
.cart-summary-title {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: #2C4530;
    letter-spacing: -0.01em;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0ebde;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-summary-title::before {
    content: "🧾";
    font-size: 18px;
}

.cart-summary-rows {
    margin: 0 0 18px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 0;
    font-size: 13.5px;
}

.cart-summary-row dt {
    color: #6b7568;
    font-size: 13.5px;
    font-weight: 500;
}

.cart-summary-row dd {
    margin: 0;
    color: #2C4530;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* İndirim satırları — yeşil pozitif */
.cart-summary-discount dd {
    color: #16a34a;
    font-weight: 700;
}
.cart-summary-discount dt {
    color: #16a34a;
}

/* Dine-in ücretleri */
.cart-summary-dine-in dt {
    color: #6b7568;
}
.cart-summary-dine-in .cart-summary-fee-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-left: 4px;
    font-weight: 400;
    font-style: italic;
}

/* Meta satırlar — ağırlık (sönük) */
.cart-summary-meta dt,
.cart-summary-meta dd {
    color: #8b8470;
    font-size: 12.5px;
    font-weight: 500;
}

/* Çeşni / ekstralar — turuncu vurgu */
.cart-summary-extras dt {
    color: #b45309;
}
.cart-summary-extras dd {
    color: #b45309;
    font-weight: 700;
}

/* TOPLAM — vurgulu, koyu yeşil banner */
.cart-summary-total {
    margin-top: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #2C4530 0%, #1f3624 100%);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(44, 69, 48, 0.15);
    border: none;
    position: relative;
    overflow: hidden;
}
.cart-summary-total::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.cart-summary-total dt {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.cart-summary-total dd {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* 💚 Tasarruf vurgusu — yeşil yumuşak kart */
.cart-summary-savings {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    border: 1px solid #86efac;
    border-radius: 10px;
    animation: cartSavingsPulse 1.5s ease-out;
}
.cart-summary-savings-icon {
    font-size: 22px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(22, 163, 74, 0.2));
}
.cart-summary-savings-text {
    font-size: 12.5px;
    color: #166534;
    line-height: 1.4;
    flex: 1;
}
.cart-summary-savings-text strong {
    font-size: 15px;
    font-weight: 800;
    color: #15803d;
    display: block;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
@keyframes cartSavingsPulse {
    0%   { transform: scale(0.95); opacity: 0; }
    50%  { transform: scale(1.02); }
    100% { transform: scale(1);    opacity: 1; }
}

/* ============================================================
   KUPON GİRİŞ ALANI (sepet özeti içinde)
============================================================ */
.cart-coupon {
    padding: var(--sp-3) 0;
    margin: var(--sp-3) 0;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
}

.cart-coupon-input-row {
    display: flex;
    gap: 8px;
}

.cart-coupon-input-row input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: var(--fs-sm);
    background: var(--bg-card, #fff);
    color: var(--text);
    transition: border-color 150ms ease;
    letter-spacing: 0.5px;
}

.cart-coupon-input-row input:focus {
    outline: none;
    border-color: var(--primary);
}

.cart-coupon-apply {
    padding: 10px 16px;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: background 150ms ease;
    white-space: nowrap;
}

.cart-coupon-apply:hover {
    background: var(--primary-dk);
    color: var(--primary-on, #fff);
}

.cart-coupon-apply:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cart-coupon-applied {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--success-lt, #ecfdf5);
    border: 1px solid var(--success, #16a34a);
    border-radius: 8px;
}

.cart-coupon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--success, #16a34a);
}

.cart-coupon-badge svg {
    flex-shrink: 0;
}

.cart-coupon-discount {
    margin-left: auto;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--success, #16a34a);
    font-variant-numeric: tabular-nums;
}

.cart-coupon-remove {
    background: transparent;
    border: 0;
    padding: 2px;
    cursor: pointer;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    transition: color 150ms ease;
}

.cart-coupon-remove:hover {
    color: var(--danger, #dc2626);
}

.cart-coupon-error {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--danger-lt, #fef2f2);
    border: 1px solid var(--danger, #dc2626);
    border-radius: 6px;
    font-size: var(--fs-xs, 12px);
    color: var(--danger, #dc2626);
    line-height: 1.4;
}

/* ─── Actions ─── */

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: all var(--t-fast);
}

.cart-btn svg {
    width: 16px;
    height: 16px;
}

.cart-btn-primary {
    background: var(--primary);
    color: white;
}
.cart-btn-primary:hover:not(.is-disabled) {
    background: var(--primary-dk);
    color: var(--primary-on, #fff);
    transform: translateY(-1px);
}
.cart-btn-primary.is-disabled {
    background: var(--bg-soft);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.cart-btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.cart-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dk);
}

/* WhatsApp ile Sipariş Ver — dine-in mod butonu */
.cart-btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: 1px solid #1ea954;
}
.cart-btn-whatsapp:hover {
    background: #1ea954;
    transform: translateY(-1px);
}
.cart-btn-whatsapp svg {
    flex-shrink: 0;
}

.cart-checkout-note {
    margin: var(--sp-3) 0 0;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* ─────────── Invalid Notice ─────────── */

.cart-invalid-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-top: var(--sp-4);
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: var(--radius);
    color: #991b1b;
    font-size: var(--fs-sm);
}
.cart-invalid-notice[hidden] {
    display: none !important;
}

.cart-invalid-notice svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ─────────── Responsive ─────────── */

@media (max-width: 880px) {
    /* Sayfa kökünde yatay taşmayı kes — savunma katmanı */
    .cart-page {
        overflow-x: clip;
    }
    .cart-inner {
        padding: 0 var(--sp-3);  /* mobile'da yan padding daralt: 16 → 12 */
        min-width: 0;
    }

    .cart-content {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .cart-summary {
        position: static;
        padding: var(--sp-3);  /* mobile'da daha sıkı padding */
        min-width: 0;
    }

    .cart-items {
        min-width: 0;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-areas:
            "thumb body"
            "controls controls";
        min-width: 0;  /* grid item içeride taşma engellemek */
    }
    .cart-item-thumb { grid-area: thumb; width: 80px; height: 80px; }
    .cart-item-body  {
        grid-area: body;
        min-width: 0;
        overflow: hidden;  /* uzun isimler container'ı genişletmesin */
    }
    .cart-item-name {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .cart-item-variants {
        word-break: break-word;
    }
    .cart-item-controls {
        grid-area: controls;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--border);
        padding-top: var(--sp-2);
        flex-wrap: wrap;  /* qty + price + remove satır taşabilirse alt satıra */
        gap: var(--sp-2);
    }

    /* Summary satırları — uzun para tutarları taşabilir */
    .cart-summary-row {
        gap: 8px;
    }
    .cart-summary-row dt,
    .cart-summary-row dd {
        word-break: break-word;
    }

    /* Kupon uygulanmış satır — uzun kupon kodları */
    .cart-coupon-applied {
        flex-wrap: wrap;
    }
    .cart-coupon-input-row {
        flex-wrap: wrap;
    }
    .cart-coupon-input-row input {
        min-width: 0;  /* flex:1 ama %100'e kadar shrink */
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cart-item-line-price {
        font-size: var(--fs-sm);
    }
    .cart-item-thumb { width: 64px; height: 64px; }
    .cart-item { grid-template-columns: 64px 1fr; }
}

/* ======================================================================
   TOAST (yz-toast)
   ====================================================================== */

.yz-toast-container {
    position: fixed;
    top: calc(var(--header-h, 64px) + 12px);
    inset-inline-end: var(--sp-4);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: calc(100vw - var(--sp-4) * 2);
}

.yz-toast {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    max-width: 380px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    font-size: var(--fs-sm);
    pointer-events: auto;
    animation: yz-toast-in 0.24s ease-out;
}

.yz-toast.is-leaving {
    animation: yz-toast-out 0.28s ease-in forwards;
}

@keyframes yz-toast-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes yz-toast-out {
    to { opacity: 0; transform: translateX(20px); }
}

.yz-toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--fw-bold);
    color: white;
    flex-shrink: 0;
    font-size: 13px;
}

.yz-toast-success .yz-toast-icon { background: #16a34a; }
.yz-toast-error   .yz-toast-icon { background: #dc2626; }
.yz-toast-info    .yz-toast-icon { background: var(--primary); font-style: italic; }

.yz-toast-text {
    flex: 1;
    min-width: 0;
}

/* RTL desteği */
[dir="rtl"] .yz-toast-container {
    inset-inline-end: var(--sp-4);
}
[dir="rtl"] .yz-toast.is-leaving {
    animation-name: yz-toast-out-rtl;
}
@keyframes yz-toast-out-rtl {
    to { opacity: 0; transform: translateX(-20px); }
}

/* ============================================================
   MIN ORDER + FREE DELIVERY HINTS (cart + checkout)
   Cart sayfasında cart-coupon'un hemen üstüne enjekte edilir.
============================================================ */
.cart-summary-hints {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 12px;
}
.cart-summary-hints[hidden] { display: none !important; }

.cart-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.cart-hint svg { flex-shrink: 0; }

.cart-hint-warn {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.cart-hint-info {
    background: var(--primary-lt, #fff7ed);
    border: 1px solid var(--primary, #f97316);
    color: var(--primary-dk, #c2410c);
}

.cart-checkout-btn.is-disabled,
[data-cart-checkout-btn].is-disabled {
    cursor: not-allowed !important;
}

/* ============================================================
   CART CATEGORY HEADERS — kategoriye göre gruplandırma
============================================================ */
.cart-category-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted, #6b7280);
    padding: 12px 4px 6px;
    margin-top: 8px;
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.cart-category-header:first-child {
    margin-top: 0;
    padding-top: 4px;
}

/* ============================================================
   CART CLOSED NOTICE — Restoran kapalı + scheduled da kapalı
   "Ödemeye Geç" butonunun yerine
============================================================ */
.cart-closed-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    color: #991b1b;
    width: 100%;
}
.cart-closed-notice svg { width: 28px; height: 28px; flex-shrink: 0; }
.cart-closed-notice strong { display: block; font-size: 15px; font-weight: 600; }
.cart-closed-notice small { font-size: 13px; opacity: 0.85; }

.cart-checkout-note-info {
    color: var(--primary-dk, #c2410c);
    background: var(--primary-lt, #fff7ed);
    border-left: 3px solid var(--primary, #f97316);
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 13px;
}

/* ═════════════════════════════════════════════════════════════
   ADİSYON (Receipt) — Resmi gösterim, restoran fişi tarzı
   ═════════════════════════════════════════════════════════════ */

.cart-receipt {
    margin-top: 24px;
    padding: 20px 18px;
    background: var(--bg-soft, #fafaf7);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text, #1f2937);
}

/* Header satırları — UPPERCASE bölüm başlıkları */
.cart-receipt .receipt-header {
    text-align: center;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 12px;
    margin: 12px 0 6px;
    color: var(--text-muted, #6b7280);
}
.cart-receipt .receipt-header:first-child {
    margin-top: 0;
}

/* Çizgiler — tek/çift */
.cart-receipt .receipt-divider {
    border-top: 1px dashed var(--border, #d4d4d4);
    margin: 6px 0;
    height: 0;
}
.cart-receipt .receipt-divider-double {
    border-top: 2px solid var(--text-soft, #9ca3af);
    margin: 10px 0;
}

/* Satır — sol metin, sağ rakam */
.cart-receipt .receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 2px 0;
}
.cart-receipt .receipt-row > span:first-child {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cart-receipt .receipt-row > span:last-child {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Varyant satırları — daha küçük, soluk, girintili */
.cart-receipt .receipt-variant {
    font-size: 11.5px;
    color: var(--text-muted, #6b7280);
    padding: 1px 0;
}

/* Ara toplam — orta vurgu */
.cart-receipt .receipt-subtotal {
    font-weight: 600;
    padding-top: 4px;
}

/* GENEL TOPLAM — büyük vurgu */
.cart-receipt .receipt-grand-total {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 6px 0;
    color: var(--text, #111827);
}
.cart-receipt .receipt-grand-total > span:first-child {
    letter-spacing: 1.2px;
}

/* KDV satırları */
.cart-receipt .receipt-vat-row {
    font-size: 12px;
    color: var(--text-muted, #4b5563);
}

/* KDV DAHİLDİR notu */
.cart-receipt .receipt-vat-note {
    justify-content: center;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-muted, #6b7280);
    padding: 6px 0;
}
.cart-receipt .receipt-vat-note em {
    font-style: normal;
    font-weight: 600;
}

/* Hint — küçük açıklamalar (örn: %10) */
.cart-receipt .receipt-hint {
    font-size: 11px;
    color: var(--text-soft, #9ca3af);
    margin-left: 4px;
    font-weight: 400;
}

/* Mobil dokunuşlar */
@media (max-width: 480px) {
    .cart-receipt {
        font-size: 12px;
        padding: 16px 12px;
    }
    .cart-receipt .receipt-grand-total {
        font-size: 14px;
    }
}

/* Print — gerçek fiş çıktısı için (gelecekte print butonu eklenirse) */
@media print {
    .cart-receipt {
        background: white;
        border: none;
        padding: 0;
        font-size: 11px;
    }
}

/* ─── Adisyon Restoran Başlığı ─── */
.cart-receipt .receipt-brand-header {
    margin-bottom: 8px;
}

.cart-receipt .receipt-brand-name {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.2px;
    margin: 6px 0 2px;
    color: var(--text, #111827);
}

.cart-receipt .receipt-brand-location {
    text-align: center;
    font-size: 11.5px;
    color: var(--text-muted, #6b7280);
    margin: 0 0 6px;
    letter-spacing: 0.3px;
}

.cart-receipt .receipt-meta {
    padding: 4px 0 2px;
    font-size: 12px;
}

.cart-receipt .receipt-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0;
}

.cart-receipt .receipt-meta-row strong {
    font-weight: 600;
    color: var(--text, #111827);
}

/* ─── Teşekkür Notu ─── */
.cart-receipt .receipt-thank-you {
    text-align: center;
    font-size: 13px;
    letter-spacing: 1.8px;
    padding: 10px 0 4px;
    color: var(--text, #374151);
    font-weight: 600;
    text-transform: uppercase;
}


/* Cart receipt/adisyon varyant satırları - kompakt fiş görünümü */
.receipt-row.receipt-variant {
    display: block;
    padding-top: 1px;
    padding-bottom: 1px;
    font-size: 11px;
    line-height: 1.25;
    color: var(--text-muted, #6b7280);
}

.receipt-row.receipt-variant .receipt-variant-text {
    display: block;
    padding-left: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media print {
    .receipt-row.receipt-variant {
        font-size: 10px;
        line-height: 1.2;
    }

    .receipt-row.receipt-variant .receipt-variant-text {
        padding-left: 6px;
    }
}

/* Sadakat puanı kutusu */
.cart-loyalty-box{
    margin:14px 0;
    padding:14px 15px;
    border:1px solid rgba(217,119,6,.24);
    background:linear-gradient(135deg,rgba(255,251,235,.95),rgba(255,247,237,.92));
    border-radius:16px;
    box-shadow:0 10px 24px rgba(120,53,15,.06);
}
.cart-loyalty-title{font-weight:800;color:#92400e;margin-bottom:6px;font-size:14px}
.cart-loyalty-text{font-size:13px;color:#374151;line-height:1.45;margin-top:4px}
.cart-loyalty-note{font-size:12.5px;color:#6b7280;line-height:1.45;margin-top:6px}
.cart-loyalty-btn{
    margin-top:10px;
    width:100%;
    border:0;
    border-radius:999px;
    padding:10px 13px;
    font-weight:800;
    cursor:pointer;
    background:var(--primary,#d97706);
    color:#fff;
    box-shadow:0 8px 18px rgba(217,119,6,.18);
}
.cart-loyalty-btn:hover{filter:brightness(.97)}
.cart-summary-loyalty-row dd{color:#15803d;font-weight:800}

/* ═══════════════════════════════════════════════════════════════════════
   ⚖️ Weighted Modal (Migros-style miktar seçim)
   ═══════════════════════════════════════════════════════════════════════ */
#yz-weighted-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.ywm-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    animation: ywmFade .18s ease;
}
.ywm-dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 22px 22px 18px;
    max-width: 380px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.28);
    animation: ywmPop .22s ease;
}
@keyframes ywmFade { from {opacity:0} to {opacity:1} }
@keyframes ywmPop  { from {opacity:0; transform: translateY(12px) scale(.96)} to {opacity:1; transform: translateY(0) scale(1)} }
.ywm-close {
    position: absolute; top: 10px; right: 10px;
    width: 32px; height: 32px;
    border: 0; background: #f4f4f5; color: #71717a;
    border-radius: 50%; cursor: pointer;
    font-size: 14px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.ywm-close:hover { background:#e4e4e7; color:#18181b }
.ywm-image {
    width: 72px; height: 72px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 12px;
    background: #fafafa;
}
.ywm-image img { width:100%; height:100%; object-fit: cover; }
.ywm-name {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}
.ywm-unit-hint {
    text-align: center;
    font-size: 12px;
    color: #d97706;
    font-weight: 600;
    margin-bottom: 16px;
}
.ywm-presets {
    display: flex; gap: 6px; flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 14px;
}
.ywm-preset {
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #374151;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .12s;
}
.ywm-preset:hover { border-color:#9ca3af }
.ywm-preset.is-active {
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
}
.ywm-input-row {
    display: flex; align-items: center; gap: 8px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 14px;
}
.ywm-minus, .ywm-plus {
    width: 38px; height: 38px;
    border: 0; background: #fff;
    border-radius: 9px;
    font-size: 20px; font-weight: 700;
    color: #111827;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.ywm-minus:hover, .ywm-plus:hover { background:#f3f4f6 }
.ywm-input {
    flex: 1;
    border: 0; background: transparent;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    -moz-appearance: textfield;
}
.ywm-input::-webkit-outer-spin-button,
.ywm-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ywm-input-unit {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    padding-right: 10px;
}
.ywm-total {
    display: flex; justify-content: space-between; align-items: center;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}
.ywm-total-lbl { color:#0369a1; font-size:13px; font-weight:600 }
.ywm-total-val { color:#075985; font-size:18px; font-weight:700 }
.ywm-submit {
    width: 100%;
    background: linear-gradient(180deg, #1f2937, #111827);
    color: #fff;
    border: 0;
    padding: 13px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .2px;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.ywm-submit:hover { filter: brightness(1.1); }
.ywm-hint {
    text-align: center;
    margin-top: 10px;
    font-size: 11px;
    color: #9ca3af;
}

/* ═══════════════════════════════════════════════════════════
   🆕 2-Tab Sistemi (⚖️ Tartı / 📦 Hazır Paket)
   ═══════════════════════════════════════════════════════════ */
.ywm-tabs {
    display: flex;
    gap: 6px;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
    margin: 12px 0 14px;
}
.ywm-tab {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.ywm-tab:hover { color: #374151; }
.ywm-tab.is-active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
}

.ywm-panels { display: contents; }
.ywm-panel { display: none; }
.ywm-panel.is-active { display: block; }

/* ─── Paket kartı ─── */
.ywm-pkg-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border: 1.5px solid #fcd34d;
    border-radius: 12px;
    margin-bottom: 14px;
}
.ywm-pkg-info { flex: 1; min-width: 0; }
.ywm-pkg-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #92400e;
    background: rgba(245, 158, 11, 0.18);
    padding: 3px 9px;
    border-radius: 99px;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}
.ywm-pkg-name {
    font-size: 14px;
    font-weight: 600;
    color: #78350f;
    margin-bottom: 6px;
    line-height: 1.3;
}
.ywm-pkg-price strong {
    font-size: 18px;
    color: #b45309;
}
.ywm-pkg-unit-ref {
    font-size: 11.5px;
    color: #b45309;
    opacity: 0.75;
    margin-left: 4px;
}

/* ─── Paket adet stepper ─── */
.ywm-pkg-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
}
.ywm-pkg-qty-lbl {
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
}
.ywm-pkg-qty-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ywm-pkg-minus, .ywm-pkg-plus {
    width: 36px; height: 36px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    transition: background 0.15s, border-color 0.15s;
}
.ywm-pkg-minus:hover, .ywm-pkg-plus:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}
.ywm-pkg-qty {
    width: 56px;
    height: 36px;
    text-align: center;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    -moz-appearance: textfield;
}
.ywm-pkg-qty::-webkit-outer-spin-button,
.ywm-pkg-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.ywm-pkg-total {
    color: #075985;
    font-size: 18px;
    font-weight: 700;
}
