/* =====================================================================
   Rivora · Sepet sayfası (views/checkout/cart.tpl) — sitenin normal düzeniyle
   Ortak sipariş görünümü (üst alan, adımlar, özet bileti, mobil çubuk) yapılandırma sayfalarında da kullanılır.
   Köşe dili: yalnız sağ üst + sol alt yuvarlak. Gölge yok, üzerine gelince zıplama yok.
   Renkler: --primary-color, --secondary-color, --btn-primary · Yazı tipi: sitenin yazı tipi (Inter)
   ===================================================================== */

.rv-cart-page, .rv-cfg-page {
    --rvc-bg: #f4f6f9;
    --rvc-surface: #ffffff;
    --rvc-soft: #f8fafc;
    --rvc-line: #e3e9f1;
    --rvc-line-2: #d5deea;
    --rvc-head: #0f172a;
    --rvc-body: #334155;
    --rvc-muted: #64748b;
    --rvc-tint: color-mix(in srgb, var(--primary-color) 8%, #ffffff);
    --rvc-tint-line: color-mix(in srgb, var(--primary-color) 16%, #ffffff);
    --rvc-ic: var(--primary-color);
    --rvc-link: var(--primary-color);
    --rvc-ok: color-mix(in srgb, var(--btn-primary) 70%, #0f172a);
    --rvc-ok-bg: color-mix(in srgb, var(--btn-primary) 8%, #ffffff);
    --rvc-ok-line: color-mix(in srgb, var(--btn-primary) 32%, #ffffff);
}
[data-bs-theme="dark"] .rv-cart-page, [data-bs-theme="dark"] .rv-cfg-page {
    --rvc-bg: var(--rv-dark-bg, #0b1118);
    --rvc-surface: #111a24;
    --rvc-soft: #0e1620;
    --rvc-line: rgba(255, 255, 255, 0.08);
    --rvc-line-2: rgba(255, 255, 255, 0.14);
    --rvc-head: #f1f5f9;
    --rvc-body: #cbd5e1;
    --rvc-muted: #94a3b8;
    --rvc-tint: color-mix(in srgb, var(--primary-color) 26%, #111a24);
    --rvc-tint-line: color-mix(in srgb, var(--primary-color) 45%, #111a24);
    --rvc-ic: color-mix(in srgb, var(--primary-color) 30%, #ffffff);
    --rvc-link: color-mix(in srgb, var(--primary-color) 30%, #ffffff);
    --rvc-ok: color-mix(in srgb, var(--btn-primary) 72%, #ffffff);
    --rvc-ok-bg: color-mix(in srgb, var(--btn-primary) 14%, #111a24);
    --rvc-ok-line: color-mix(in srgb, var(--btn-primary) 42%, #111a24);
}

/* ---------- Üst alan (kurumsal sayfalarla aynı) ---------- */
.rv-pg-hero { position: relative; padding: 84px 0 96px; overflow: hidden; isolation: isolate; text-align: center; color: var(--header-text, #ffffff); }
.rv-pg-hero::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: var(--btn-primary); pointer-events: none; }
.rv-pg-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
    background: linear-gradient(170deg, color-mix(in srgb, var(--primary-color) 90%, #020617) 0%, color-mix(in srgb, var(--primary-color) 58%, #020617) 100%); }
.rv-pg-bg::before { content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px; background-position: center center;
    -webkit-mask-image: radial-gradient(70% 90% at 50% 40%, #000 0%, transparent 100%); mask-image: radial-gradient(70% 90% at 50% 40%, #000 0%, transparent 100%); }
.rv-pg-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.rv-pg-glow.is-a { width: 460px; height: 460px; left: -120px; top: -180px; background: color-mix(in srgb, var(--secondary-color) 70%, transparent); }
.rv-pg-glow.is-b { width: 520px; height: 520px; right: -160px; bottom: -280px; background: color-mix(in srgb, var(--btn-primary) 55%, transparent); opacity: 0.35; }
.rv-pg-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-pg-bg-img ~ .rv-pg-scrim { position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 90%, transparent) 0%, color-mix(in srgb, var(--primary-color) 74%, #020617) 100%); }
.rv-pg-mark { position: absolute; left: 50%; bottom: -0.32em; transform: translateX(-50%); font-size: clamp(90px, 15vw, 210px); font-weight: 900; line-height: 1; letter-spacing: -0.04em; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07); user-select: none; }
.rv-pg-hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.rv-pg-title { max-width: 900px; margin: 0; font-size: 50px; font-weight: 800; line-height: 1.12; letter-spacing: -1.1px; color: #ffffff; text-wrap: balance; }
.rv-pg-lead { max-width: 700px; margin: 16px 0 0; font-size: 17.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.85); }
.rv-pg-title, .rv-pg-lead, .rv-cart-steps { animation: rvPgRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both; }
.rv-pg-lead { animation-delay: 0.1s; }
.rv-cart-steps { animation-delay: 0.18s; }
@keyframes rvPgRise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.rv-cart-hero { padding-bottom: 150px; }

/* Sipariş adımları */
.rv-cart-steps { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px 0; margin: 26px 0 0; padding: 0; list-style: none; }
.rv-cart-steps li { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, 0.62); }
.rv-cart-steps li + li::before { content: ""; width: 36px; height: 1px; margin: 0 14px; background: rgba(255, 255, 255, 0.26); }
.rv-cart-steps li.is-done + li::before { background: var(--btn-primary); }
.rv-cart-step-no { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 0 7px 0 7px;
    font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, 0.8); }
.rv-cart-steps li.is-done { color: rgba(255, 255, 255, 0.85); }
.rv-cart-steps li.is-done .rv-cart-step-no { border-color: var(--btn-primary); background: var(--btn-primary); color: #ffffff; }
.rv-cart-steps li.is-active { color: #ffffff; }
.rv-cart-steps li.is-active .rv-cart-step-no { border-color: #ffffff; background: #ffffff; color: var(--primary-color); }

/* ---------- Bölüm ve ızgara ---------- */
.rv-cart-sec { position: relative; display: flow-root; padding: 0 0 90px; background: var(--rvc-bg); }
.rv-cart { position: relative; z-index: 5; margin-top: -84px; color: var(--rvc-body); }
.rv-cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 28px; align-items: start; }
.rv-cart-side { position: sticky; top: 104px; }

/* ---------- Ürün listesi ---------- */
.rv-cart-sheet { overflow: hidden; border: 1px solid var(--rvc-line); border-radius: 0 22px 0 22px; background: var(--rvc-surface); }
.rv-cart-sheet-head { display: grid; grid-template-columns: minmax(0, 1fr) 150px 140px; column-gap: 20px; align-items: center; padding: 20px 28px; border-bottom: 1px solid var(--rvc-line); }
.rv-cart-sheet-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.2px; color: var(--rvc-head); }
.rv-cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 0 7px 0 7px;
    font-size: 12.5px; font-weight: 800; color: var(--rvc-ic); background: var(--rvc-tint); border: 1px solid var(--rvc-tint-line); }
.rv-cart-count[hidden] { display: none; }
.rv-cart-cols { display: contents; }
.rv-cart-cols span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--rvc-muted); }
.rv-cart-cols span:last-child { text-align: right; }

.rv-cart-row { position: relative; padding: 26px 28px; border-top: 1px solid var(--rvc-line); }
.rv-cart-rows > .rv-cart-row:first-child { border-top: 0; }
.rv-cart-row-grid { display: grid; grid-template-columns: 52px minmax(0, 1fr) 150px 140px; column-gap: 20px; align-items: start; }

.rv-cart-ic { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 52px; height: 52px; overflow: hidden; border: 1px solid var(--rvc-tint-line); border-radius: 0 12px 0 12px;
    font-size: 22px; color: var(--rvc-ic); background: var(--rvc-tint); }
.rv-cart-ic.is-logo, .rv-cart-ic:has(img) { padding: 7px; background: #ffffff; border-color: var(--rvc-line); }
.rv-cart-ic img { width: 100%; height: 100%; object-fit: contain; }

.rv-cart-info { min-width: 0; }
.rv-cart-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.rv-cart-flag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 0 7px 0 7px; font-size: 12px; font-weight: 700; line-height: 1.4; }
.rv-cart-flag.is-free { color: #ffffff; background: var(--btn-primary); }
.rv-cart-flag.is-of { color: var(--rvc-ok); background: var(--rvc-ok-bg); border: 1px solid var(--rvc-ok-line); font-weight: 600; }
.rv-cart-name { margin: 2px 0 8px; font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -0.2px; color: var(--rvc-head); overflow-wrap: anywhere; }
.rv-cart-specs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.rv-cart-specs li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.45; color: var(--rvc-muted); }
.rv-cart-specs li i { font-size: 13px; color: var(--secondary-color); }

.rv-cart-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 14px; }
.rv-cart-act { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font-size: 12.5px; font-weight: 600; color: var(--rvc-muted); text-decoration: none;
    cursor: pointer; transition: color 0.2s ease; }
.rv-cart-act i { font-size: 13px; }
.rv-cart-act:hover { color: var(--rvc-link); }
.rv-cart-act.is-danger:hover { color: var(--bs-danger, #dc3545); }
.rv-cart-act:disabled { opacity: 0.5; cursor: wait; }
.rv-cart-caret { font-size: 11px !important; transition: transform 0.2s ease; }
.rv-cart-act:not(.collapsed) { color: var(--rvc-link); }
.rv-cart-act:not(.collapsed) .rv-cart-caret, .rv-cart-disc-toggle:not(.collapsed) .rv-cart-caret { transform: rotate(180deg); }
.rv-cart-config { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid #f3d27a; border-radius: 0 7px 0 7px; background: #fff8e6; color: #8a5a00;
    font-size: 12.5px; font-weight: 700; text-decoration: none; transition: border-color 0.2s ease; }
.rv-cart-config:hover { color: #6b4500; border-color: #e0b44a; }
.rv-cart-config.is-configured { border-color: var(--rvc-ok-line); background: var(--rvc-ok-bg); color: var(--rvc-ok); }
[data-bs-theme="dark"] .rv-cart-config { border-color: rgba(245, 190, 60, 0.4); background: rgba(245, 190, 60, 0.1); color: #f6c453; }
.rv-cart-row[data-config-required][data-configured="false"] { box-shadow: inset 3px 0 0 #f0b429; }

/* Süre / adet */
.rv-cart-ctrl { align-self: center; }
.rv-cart-ctrl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rv-cart-select { min-height: 40px; padding-top: 0; padding-bottom: 0; border-color: var(--rvc-line-2); border-radius: 0 10px 0 10px; font-size: 13.5px; font-weight: 600; color: var(--rvc-head);
    background-color: var(--rvc-surface); box-shadow: none; }
.rv-cart-select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 14%, transparent); }
.rv-cart-select:disabled { opacity: 0.6; }
.rv-cart-qty { display: inline-flex; align-items: stretch; height: 40px; overflow: hidden; border: 1px solid var(--rvc-line-2); border-radius: 0 10px 0 10px; background: var(--rvc-surface); }
.rv-cart-qty button { width: 36px; padding: 0; border: 0; background: var(--rvc-soft); color: var(--rvc-head); font-size: 14px; transition: color 0.2s ease, background-color 0.2s ease; }
.rv-cart-qty button:hover { color: var(--rvc-link); background: var(--rvc-tint); }
.rv-cart-qty input { width: 48px; padding: 0; border: 0; border-inline: 1px solid var(--rvc-line); background: transparent; text-align: center; font-size: 14px; font-weight: 700; color: var(--rvc-head);
    -moz-appearance: textfield; appearance: textfield; outline: none; }
.rv-cart-qty input::-webkit-outer-spin-button, .rv-cart-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Fiyat */
.rv-cart-price { display: flex; flex-direction: column; align-items: flex-end; align-self: center; text-align: right; }
.rv-cart-price del { font-size: 13px; color: var(--rvc-muted); }
.rv-cart-price strong { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -0.4px; color: var(--rvc-head); white-space: nowrap; }
.rv-cart-price strong.is-free { color: var(--rvc-ok); }

/* Hediye / bağlı ürün */
.rv-cart-row.is-child { padding-left: 72px; background: color-mix(in srgb, var(--btn-primary) 3%, var(--rvc-surface)); }
.rv-cart-row.is-child::before { content: ""; position: absolute; left: 53px; top: -1px; width: 19px; height: 53px; border-left: 1.5px dashed var(--rvc-ok-line); border-bottom: 1.5px dashed var(--rvc-ok-line); }
.rv-cart-row.is-child .rv-cart-row-grid { grid-template-columns: 52px minmax(0, 1fr) 150px 140px; }
.rv-cart-row.is-child .rv-cart-ic { border-color: var(--rvc-ok-line); background: var(--rvc-ok-bg); color: var(--rvc-ok); }

/* Detaylar */
.rv-cart-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; margin: 18px 0 0 72px; padding: 18px 20px; border: 1px solid var(--rvc-line);
    border-radius: 0 12px 0 12px; background: var(--rvc-soft); }
.rv-cart-details-title { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--rvc-muted); }
.rv-cart-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-cart-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--rvc-line); border-radius: 0 7px 0 7px; background: var(--rvc-surface);
    font-size: 12.5px; font-weight: 600; color: var(--rvc-head); }
.rv-cart-chip i { color: var(--secondary-color); }
.rv-cart-breakdown .cart-breakdown-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 13.5px; color: var(--rvc-body); }
.rv-cart-breakdown .cart-breakdown-row + .cart-breakdown-row { border-top: 1px dashed var(--rvc-line-2); }
.rv-cart-breakdown .cart-breakdown-row > :first-child { min-width: 0; }
.rv-cart-breakdown .num-tabular { font-weight: 600; white-space: nowrap; color: var(--rvc-head); }
.rv-cart-breakdown .cart-breakdown-total { font-weight: 800; color: var(--rvc-head); }
.rv-cart-breakdown .text-success-emphasis, .rv-cart-breakdown .text-success-emphasis .num-tabular { color: var(--rvc-ok) !important; }

/* Liste altı */
.rv-cart-sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 18px 28px; border-top: 1px solid var(--rvc-line); background: var(--rvc-soft); }
.rv-cart-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--rvc-head); text-decoration: none; transition: color 0.2s ease; }
.rv-cart-back i { transition: transform 0.2s ease; }
.rv-cart-back:hover { color: var(--rvc-link); }
.rv-cart-back:hover i { transform: translateX(-3px); }
.rv-cart-subtotal { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.rv-cart-subtotal span { font-size: 13px; color: var(--rvc-muted); }
.rv-cart-subtotal strong { font-size: 18px; font-weight: 800; color: var(--rvc-head); }

/* ---------- Sipariş özeti (bilet görünümü) ---------- */
.rv-cart-sum { position: relative; inset: auto; border: 1px solid var(--rvc-line); border-radius: 0 22px 0 22px; background: var(--rvc-surface); }
.rv-cart-receipt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-radius: 0 21px 0 0; background: var(--primary-color); color: #ffffff; }
.rv-cart-receipt-head h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.2px; color: #ffffff; }
.rv-cart-receipt-head i { font-size: 20px; color: rgba(255, 255, 255, 0.7); }
.rv-cart-receipt-body { padding: 22px 24px 24px; }

.rv-cart-sum .order-summary-line { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 0 0 12px; font-size: 14px; }
.rv-cart-sum .order-summary-line .summary-label { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; min-width: 0; flex: 1 1 auto; color: var(--rvc-body); }
.rv-cart-sum .order-summary-line .summary-label::after, .rv-cart-sum .order-summary-line .summary-sub::after { content: none !important; }
.rv-cart-sum .order-summary-line .summary-value { font-weight: 600; white-space: nowrap; color: var(--rvc-head); }
.rv-cart-sum .order-summary-line.is-disc .summary-label, .rv-cart-sum .order-summary-line.is-disc .summary-value { color: var(--rvc-ok); }
.rv-cart-sum .summary-subline { margin: -4px 0 10px 4px; padding-left: 12px; border-left: 2px solid var(--rvc-ok-line); font-size: 12.5px; }
.rv-cart-sum .summary-subline .summary-sub, .rv-cart-sum .summary-subline .summary-value { color: var(--rvc-muted); font-weight: 500; }
.rv-cart-sum .summary-addon[hidden] { display: none !important; }
.rv-cart-sum .cart-auto-tag { display: inline-block; padding: 1px 6px; border-radius: 0 5px 0 5px; background: var(--rvc-ok-bg); font-size: 10px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; }
.rv-cart-sum .cart-coupon-remove { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 6px; padding: 0; border: 0; border-radius: 0 5px 0 5px;
    background: var(--rvc-ok-bg); color: inherit; font-size: 9px; cursor: pointer; }
.rv-cart-sum .cart-coupon-remove:hover { color: var(--bs-danger, #dc3545); }
.rv-cart-disc-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 4px 0 12px; padding: 12px 0 0; border: 0; border-top: 1px dashed var(--rvc-line-2);
    background: none; font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--rvc-muted); cursor: pointer; }
.rv-cart-disc-toggle[hidden] { display: none; }
.rv-cart-disc-toggle:hover { color: var(--rvc-link); }
.rv-cart-disc { padding-bottom: 2px; }

.rv-cart-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rvc-line); }
.rv-cart-total span { padding-bottom: 5px; font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--rvc-muted); }
.rv-cart-total strong { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -0.8px; color: var(--rvc-head); white-space: nowrap; }
.rv-cart-save { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 10px 12px; border: 1px solid var(--rvc-ok-line); border-radius: 0 10px 0 10px; background: var(--rvc-ok-bg);
    font-size: 13px; font-weight: 600; color: var(--rvc-ok); }
.rv-cart-save[hidden] { display: none; }
.rv-cart-save strong { margin-left: auto; font-weight: 800; }

/* Delikli ayırıcı */
.rv-cart-pay { position: relative; padding: 24px 24px 22px; border-top: 2px dashed var(--rvc-line-2); }
.rv-cart-pay::before, .rv-cart-pay::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border: 1px solid var(--rvc-line); border-radius: 50%; background: var(--rvc-bg); }
.rv-cart-pay::before { left: -12px; clip-path: inset(0 0 0 50%); }
.rv-cart-pay::after { right: -12px; clip-path: inset(0 50% 0 0); }

/* Kupon */
.rv-cart-promo { padding-bottom: 16px; }
.rv-cart-promo-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 1px dashed var(--rvc-line-2); border-radius: 0 10px 0 10px; background: none;
    font-size: 13.5px; font-weight: 600; color: var(--rvc-head); text-align: left; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease; }
.rv-cart-promo-toggle > i:first-child { font-size: 16px; color: var(--secondary-color); }
.rv-cart-promo-plus { margin-left: auto; font-size: 13px; color: var(--rvc-muted); transition: transform 0.2s ease; }
.rv-cart-promo-toggle:hover { border-color: var(--primary-color); color: var(--rvc-link); }
.rv-cart-promo-toggle:not(.collapsed) .rv-cart-promo-plus { transform: rotate(45deg); }
.rv-cart-promo-form { padding-top: 10px; }
.rv-cart-promo-field { display: flex; }
.rv-cart-promo-field .form-control { min-width: 0; min-height: 44px; border-color: var(--rvc-line-2); border-right: 0; border-radius: 0 0 0 10px; background: var(--rvc-surface); color: var(--rvc-head);
    font-size: 13.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; box-shadow: none; }
.rv-cart-promo-field .form-control::placeholder { color: var(--rvc-muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.rv-cart-promo-field .form-control:focus { border-color: var(--primary-color); }
.rv-cart-promo-field .form-control.is-invalid { border-color: var(--bs-danger, #dc3545); }
.rv-cart-promo-apply { flex-shrink: 0; padding: 0 18px; border: 0; border-radius: 0 10px 0 0; background: var(--primary-color); color: #ffffff; font-size: 13.5px; font-weight: 700; cursor: pointer;
    transition: background-color 0.2s ease; }
.rv-cart-promo-apply:hover { background: color-mix(in srgb, var(--primary-color) 85%, #000000); }
.rv-cart-promo-apply:disabled { opacity: 0.6; cursor: wait; }
.rv-cart-promo-form .invalid-feedback { margin-top: 6px; font-size: 12.5px; }

/* Ana buton */
.rv-cart-cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 22px; border: 0; border-radius: 0 14px 0 14px; background: var(--btn-primary);
    color: #ffffff; font-size: 16px; font-weight: 700; text-decoration: none; transition: background-color 0.2s ease; }
.rv-cart-cta i { transition: transform 0.2s ease; }
.rv-cart-cta:hover { color: #ffffff; background: color-mix(in srgb, var(--btn-primary) 86%, #000000); }
.rv-cart-cta:hover i { transform: translateX(3px); }
.rv-cart-cta.cart-proceed-gated { opacity: 0.5; cursor: not-allowed; }
.rv-cart-cta.cart-proceed-gated:hover { background: var(--btn-primary); }
.rv-cart-cta.cart-proceed-gated:hover i { transform: none; }
.rv-cart-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 14px 0 0; font-size: 12.5px; color: var(--rvc-muted); text-align: center; }
.rv-cart-note i { color: var(--rvc-ok); }
.rv-cart-cards { display: flex; justify-content: center; gap: 12px; margin: 10px 0 0; font-size: 24px; line-height: 1; color: var(--rvc-muted); opacity: 0.75; }

/* Mobil alt çubuk */
.rv-cart-bar { display: none; }

/* ---------- Boş sepet ---------- */
.rv-cart-empty { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--rvc-line); border-radius: 0 22px 0 22px; background: var(--rvc-surface); }
.rv-cart-empty.is-solo { grid-template-columns: minmax(0, 1fr); text-align: center; }
.rv-cart-empty-msg { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 48px 48px 46px; background: var(--rvc-surface); }
.rv-cart-empty.is-solo .rv-cart-empty-msg { max-width: 820px; width: 100%; margin: 0 auto; text-align: left; }
.rv-cart-empty-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 12px; }
.rv-cart-empty-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--rvc-tint-line); border-radius: 0 8px 0 8px; background: var(--rvc-tint);
    font-size: 11.5px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--rvc-ic); }
.rv-cart-empty-kicker i { font-size: 13px; }
.rv-cart-empty-msg h2 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.7px; color: var(--rvc-head); }
.rv-cart-empty-head { gap: 18px 22px; margin-bottom: 16px; }
.rv-ce-ttl { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
/* Boş sepet çizimi */
.rv-ce-art { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 88px; height: 88px; border: 1px solid var(--rvc-tint-line);
    border-radius: 0 22px 0 22px; background: var(--rvc-tint); color: var(--rvc-ic); }
.rv-ce-svg { width: 62px; height: 62px; overflow: visible; }
.rv-ce-cart { animation: rvCeRoll 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.rv-ce-slot { color: var(--secondary-color); opacity: 0.85; transform-box: fill-box; transform-origin: center; animation: rvCeSlot 3.2s 0.9s ease-in-out infinite; }
.rv-ce-zero { position: absolute; top: -9px; right: -9px; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px;
    border: 2px solid var(--rvc-surface); border-radius: 0 8px 0 8px; background: #f59e0b; font-size: 13px; font-weight: 800; line-height: 1; color: #ffffff; }
.rv-ce-zero::after { content: ""; position: absolute; inset: -2px; border: 2px solid #f59e0b; border-radius: inherit; opacity: 0; animation: rvCePing 2.4s 1s ease-out infinite; }
@keyframes rvCeRoll { 0% { opacity: 0; transform: translateX(-14px) rotate(-4deg); } 70% { transform: translateX(2px) rotate(1deg); } 100% { opacity: 1; transform: none; } }
@keyframes rvCeSlot { 0%, 100% { transform: translateY(0); opacity: 0.85; } 45% { transform: translateY(9px); opacity: 0.35; } 60% { transform: translateY(9px); opacity: 0.35; } }
@keyframes rvCePing { 0% { opacity: 0.7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.7); } }
.rv-cart-empty-desc { max-width: 520px; margin: 0 0 28px; font-size: 15px; line-height: 1.65; color: var(--rvc-muted); }

/* Sipariş adımları */
.rv-cart-empty-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; margin: 0 0 30px; padding: 0; list-style: none; counter-reset: none; }
.rv-cart-empty-how li { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 18px; border-top: 2px solid var(--rvc-line); }
.rv-cart-empty-how li:first-child { border-top-color: var(--btn-primary); }
.rv-cart-empty-no { margin-bottom: 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.6px; color: var(--secondary-color); }
.rv-cart-empty-how li:first-child .rv-cart-empty-no { color: var(--rvc-ok); }
.rv-cart-empty-how strong { font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--rvc-head); }
.rv-cart-empty-how small { font-size: 12.5px; line-height: 1.55; color: var(--rvc-muted); }
.rv-cart-empty-btns .rv-cart-cta { padding: 0 20px; }
.rv-cart-empty-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.rv-cart-empty-btns .rv-cart-cta { width: auto; min-height: 50px; font-size: 15px; }
.rv-cart-ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 20px; border: 1px solid var(--rvc-line-2); border-radius: 0 14px 0 14px; color: var(--rvc-head);
    font-size: 15px; font-weight: 700; text-decoration: none; transition: border-color 0.2s ease, color 0.2s ease; }
.rv-cart-ghost:hover { border-color: var(--primary-color); color: var(--rvc-link); }
.rv-cart-empty-pop { padding: 40px 36px; border-left: 1px solid var(--rvc-line); background: var(--rvc-soft); }
.rv-cart-empty-pop-title { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--secondary-color); }
.rv-cart-empty-pop ul { margin: 0; padding: 0; list-style: none; }
.rv-cart-empty-pop li + li { border-top: 1px dashed var(--rvc-line-2); }
.rv-cart-empty-pop a { display: flex; align-items: center; gap: 14px; padding: 16px 0; color: inherit; text-decoration: none; }
.rv-cart-empty-pop .rv-cart-ic { width: 44px; height: 44px; font-size: 19px; }
.rv-cart-pop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.rv-cart-pop-text strong { font-size: 15px; font-weight: 700; color: var(--rvc-head); transition: color 0.2s ease; }
.rv-cart-pop-text small { font-size: 12.5px; color: var(--rvc-muted); }
.rv-cart-pop-price { font-size: 12px; color: var(--rvc-muted); white-space: nowrap; text-align: right; }
.rv-cart-pop-price b { display: block; font-size: 15px; font-weight: 800; color: var(--rvc-head); }
.rv-cart-pop-go { font-size: 15px; color: var(--rvc-muted); transition: transform 0.2s ease, color 0.2s ease; }
.rv-cart-empty-pop a:hover .rv-cart-pop-text strong, .rv-cart-empty-pop a:hover .rv-cart-pop-go { color: var(--rvc-link); }
.rv-cart-empty-pop a:hover .rv-cart-pop-go { transform: translateX(3px); }
[data-bs-theme="dark"] .rv-cart-empty-pop .rv-cart-ic:has(img) { background: #ffffff; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1199.98px) {
    .rv-cart-empty-msg { padding: 42px 34px; }
    .rv-cart-empty-msg h2 { font-size: 27px; }
    .rv-cart-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
    .rv-cart-sheet-head, .rv-cart-row-grid, .rv-cart-row.is-child .rv-cart-row-grid { grid-template-columns: 52px minmax(0, 1fr) 130px 120px; }
    .rv-cart-sheet-head { grid-template-columns: minmax(0, 1fr) 130px 120px; }
}
@media (max-width: 991.98px) {
    .rv-cart-grid { grid-template-columns: minmax(0, 1fr); }
    .rv-cart-side { position: static; }
    .rv-cart-empty { grid-template-columns: minmax(0, 1fr); }
    .rv-cart-empty-pop { border-left: 0; border-top: 1px solid var(--rvc-line); }
    .rv-cart-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; padding: 12px 0; border-top: 1px solid var(--rvc-line); background: var(--rvc-surface); }
    .rv-cart-bar-in { display: flex; align-items: center; gap: 16px; max-width: 720px; margin: 0 auto; padding: 0 16px; }
    .rv-cart-bar-total { display: flex; flex-direction: column; line-height: 1.2; }
    .rv-cart-bar-total small { font-size: 11.5px; font-weight: 600; color: var(--rvc-muted); }
    .rv-cart-bar-total strong { font-size: 19px; font-weight: 800; color: var(--rvc-head); }
    .rv-cart-bar .rv-cart-cta { width: auto; min-height: 46px; margin-left: auto; font-size: 15px; }
    body.rv-cart-page:has([data-cart-filled]:not(.d-none)), body.rv-cfg-page { padding-bottom: 72px; }
    body.rv-cart-page:has([data-cart-filled]:not(.d-none)) .scroll-top, body.rv-cfg-page .scroll-top { bottom: 88px !important; }
}
@media (max-width: 767.98px) {
    .rv-ce-art { width: 72px; height: 72px; border-radius: 0 18px 0 18px; }
    .rv-ce-svg { width: 48px; height: 48px; }
    .rv-pg-hero { padding: 54px 0 66px; }
    .rv-cart-hero { padding-bottom: 112px; }
    .rv-pg-title { font-size: 33px; letter-spacing: -0.6px; }
    .rv-pg-lead { font-size: 15.5px; }
    .rv-cart-steps li { font-size: 12.5px; gap: 7px; }
    .rv-cart-steps li + li::before { width: 16px; margin: 0 8px; }
    .rv-cart { margin-top: -64px; }
    .rv-cart-sec { padding-bottom: 60px; }
    .rv-cart-sheet-head { display: flex; padding: 16px 18px; }
    .rv-cart-cols { display: none; }
    .rv-cart-row { padding: 20px 18px; }
    .rv-cart-row-grid, .rv-cart-row.is-child .rv-cart-row-grid { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 14px; }
    .rv-cart-ic { width: 44px; height: 44px; font-size: 19px; }
    .rv-cart-ctrl { grid-column: 2; align-self: start; }
    .rv-cart-ctrl:empty { display: none; }
    .rv-cart-ctrl-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
        text-transform: uppercase; color: var(--rvc-muted); }
    .rv-cart-select { width: auto; min-width: 140px; }
    .rv-cart-price { grid-column: 2; flex-direction: row; align-items: baseline; gap: 10px; justify-content: flex-start; }
    .rv-cart-price del { order: 2; }
    .rv-cart-row.is-child { padding-left: 46px; }
    .rv-cart-row.is-child::before { left: 39px; width: 7px; height: 42px; }
    .rv-cart-details { margin-left: 0; }
    .rv-cart-sheet-foot { padding: 16px 18px; }
    .rv-cart-receipt-body, .rv-cart-pay { padding-left: 20px; padding-right: 20px; }
    .rv-cart-empty-msg { padding: 34px 22px 38px; }
    .rv-cart-empty-msg h2 { font-size: 25px; }
    .rv-cart-empty-how { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .rv-cart-empty-how li { padding: 0 0 0 16px; border-top: 0; border-left: 2px solid var(--rvc-line); }
    .rv-cart-empty-how li:first-child { border-left-color: var(--btn-primary); }
    .rv-cart-empty-pop { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .rv-ce-cart, .rv-ce-slot, .rv-ce-zero::after { animation: none; }
    .rv-pg-title, .rv-pg-lead, .rv-cart-steps { animation: none; }
}
