/* =====================================================
   PAPA - Sepet Sayfası
   ===================================================== */

/* ===== Üst bar ===== */
.cart-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: -8px;
}

.cart-clear-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: transparent;
    border: 1px solid #3d3858;
    border-radius: 10px;
    color: #c5c0d6;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}

.cart-clear-link:hover {
    background: #3b2336;
    border-color: #ef4444;
    color: #fca5a5;
}

.cart-clear-link svg { width: 15px; height: 15px; stroke-width: 2; }

/* ===== Tablo ===== */
.cart-table-wrap {
    background: #262338;
    border: 1px solid #3d3858;
    border-radius: 16px;
    overflow: hidden;
    animation: cardIn .4s ease backwards;
}

.cart-table-scroll {
    overflow-x: auto;
}

.cart-table-scroll::-webkit-scrollbar { height: 8px; }
.cart-table-scroll::-webkit-scrollbar-thumb {
    background: #3d3858;
    border-radius: 4px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

.cart-table thead th {
    text-align: left;
    padding: 15px 18px;
    font-size: 10.5px;
    font-weight: 700;
    color: #8a84a8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: #221f34;
    border-bottom: 1px solid #3d3858;
    white-space: nowrap;
}

.cart-table tbody tr {
    border-bottom: 1px solid #322d47;
    transition: background .15s;
}

.cart-table tbody tr:last-child { border-bottom: none; }
.cart-table tbody tr:hover { background: #2e2b48; }

.cart-table tbody td {
    padding: 16px 18px;
    font-size: 13px;
    color: #f3f0ff;
    vertical-align: middle;
    white-space: nowrap;
}

.cart-td-action {
    width: 60px;
    text-align: right;
}

/* Hücreler */
.cart-bin {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #a78bfa;
    letter-spacing: 1px;
}

.cart-brand-text {
    font-size: 13px;
    color: #e7e2ff;
    font-weight: 500;
    text-transform: capitalize;
}

.cart-level {
    display: inline-flex;
    padding: 4px 11px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: #3d3858;
    color: #c4b5fd;
    border: 1px solid #4d4770;
    text-transform: capitalize;
}

.cart-level.gold {
    background: #f59e0b20;
    color: #fcd34d;
    border-color: #f59e0b45;
}

.cart-level.platinum {
    background: #94a3b820;
    color: #cbd5e1;
    border-color: #94a3b845;
}

.cart-level.personal {
    background: #8b5cf620;
    color: #c4b5fd;
    border-color: #8b5cf645;
}

.cart-type {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .6px;
    background: #8b5cf61f;
    color: #c4b5fd;
    border: 1px solid #8b5cf640;
}

.cart-type.debit {
    background: #3b82f61f;
    color: #93c5fd;
    border-color: #3b82f640;
}

.cart-bank {
    font-size: 13px;
    color: #e7e2ff;
}

.cart-country {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-country img {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
    display: block;
}

.cart-country span {
    font-size: 12px;
    font-weight: 700;
    color: #c5c0d6;
    letter-spacing: .5px;
}

.cart-exp {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #e7e2ff;
    letter-spacing: .5px;
}

.cart-owner {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.cart-live {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #86efac;
}

.cart-price {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 700;
    color: #a78bfa;
    letter-spacing: -.3px;
}

.cart-remove {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #3d3858;
    border-radius: 9px;
    color: #8a84a8;
    cursor: pointer;
    transition: all .2s;
}

.cart-remove:hover {
    background: #3b2336;
    border-color: #ef4444;
    color: #fca5a5;
    transform: scale(1.06);
}

.cart-remove svg { width: 15px; height: 15px; stroke-width: 2; }

/* Not */
.cart-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #3d3858;
    background: #221f34;
    font-size: 12.5px;
    color: #8a84a8;
}

.cart-note svg {
    width: 15px;
    height: 15px;
    color: #a78bfa;
    flex-shrink: 0;
    stroke-width: 2;
}

/* ===== Alt grid ===== */
.cart-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Özet kartı */
.cart-summary-card {
    background: #262338;
    border: 1px solid #3d3858;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: cardIn .45s ease .1s backwards;
}

.cart-summary-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -.2px;
}

.cart-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    color: #b8b3cc;
}

.cart-summary-row strong {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.cart-summary-discount strong {
    color: #86efac;
    font-weight: 700;
}

.cart-promo-tag {
    display: inline-flex;
    margin-left: 6px;
    padding: 2px 8px;
    background: #22c55e22;
    color: #86efac;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.cart-summary-sep {
    height: 1px;
    background: #3d3858;
    margin: 4px 0;
}

.cart-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
}

.cart-summary-total strong {
    font-family: 'Courier New', monospace;
    font-size: 26px;
    font-weight: 700;
    color: #a78bfa;
    letter-spacing: -1px;
}

.cart-summary-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #b8b3cc;
}

.cart-summary-balance strong {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
}

.cart-summary-balance strong.ok   { color: #86efac; }
.cart-summary-balance strong.warn { color: #fca5a5; }

/* Uyarı */
.cart-warn-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #ef44441a, #ef44440d);
    border: 1px solid #ef444445;
    border-radius: 12px;
    color: #fca5a5;
}

.cart-warn-box svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #f87171;
    margin-top: 1px;
}

.cart-warn-box > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-warn-box strong {
    font-size: 13.5px;
    font-weight: 700;
    color: #fca5a5;
}

.cart-warn-box span {
    font-size: 12px;
    color: #f0a5a5;
    line-height: 1.4;
}

/* Promo kartı */
.cart-promo-card {
    background: #262338;
    border: 1px solid #3d3858;
    border-radius: 16px;
    overflow: hidden;
    animation: cardIn .45s ease .15s backwards;
}

.cart-promo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #3d3858;
}

.cart-promo-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-promo-head h3 svg {
    width: 18px;
    height: 18px;
    color: #a78bfa;
    stroke-width: 1.8;
}

.cart-promo-caret {
    width: 16px;
    height: 16px;
    color: #8a84a8;
    stroke-width: 2;
}

.cart-promo-body {
    padding: 20px 24px 22px;
}

.cart-promo-input-wrap {
    display: flex;
    gap: 10px;
}

.cart-promo-input-wrap input {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    background: #2e2b48;
    border: 1.5px solid #3d3858;
    border-radius: 11px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    outline: none;
    text-transform: uppercase;
    transition: all .2s;
}

.cart-promo-input-wrap input::placeholder {
    color: #7a7494;
    letter-spacing: 2px;
    font-weight: 600;
}

.cart-promo-input-wrap input:focus {
    border-color: #8b5cf6;
    background: #332f52;
    box-shadow: 0 0 0 3px #8b5cf622;
}

.cart-promo-hint {
    margin: 12px 0 0;
    font-size: 11.5px;
    color: #7a7494;
}

.cart-promo-active {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #22c55e1a, #22c55e0d);
    border: 1px solid #22c55e45;
    border-radius: 12px;
}

.cart-promo-active-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #22c55e28;
    color: #86efac;
    border-radius: 10px;
    flex-shrink: 0;
}

.cart-promo-active-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }

.cart-promo-active-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cart-promo-active-info strong {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.cart-promo-active-info small {
    font-size: 11.5px;
    color: #86efac;
    font-weight: 500;
}

.cart-promo-active-remove {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #8a84a8;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
}

.cart-promo-active-remove:hover {
    background: #3b2336;
    color: #fca5a5;
}

.cart-promo-active-remove svg { width: 14px; height: 14px; stroke-width: 2.5; }

/* Butonlar */
.cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #fff;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .22s;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    width: fit-content;
}

.cart-btn svg { width: 16px; height: 16px; stroke-width: 2; }

.cart-btn-sm {
    height: 46px;
    padding: 0 20px;
    font-size: 13px;
}

.cart-btn-full {
    width: 100%;
}

.cart-btn-primary {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    box-shadow: 0 8px 22px #8b5cf640;
}

.cart-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    box-shadow: 0 12px 30px #8b5cf655;
    transform: translateY(-2px);
}

.cart-btn-ghost {
    background: #2e2b48;
    border-color: #3d3858;
    color: #c5c0d6;
}

.cart-btn-ghost:hover {
    background: #332f52;
    border-color: #524a7a;
    color: #fff;
}

.cart-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none !important;
}

.cart-btn-content,
.cart-btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.cart-btn-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.cart-btn.loading .cart-btn-content { opacity: 0; }
.cart-btn.loading .cart-btn-loader  { display: inline-flex; }

/* Boş */
.cart-empty {
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    background: #262338;
    border: 1px solid #3d3858;
    border-radius: 20px;
    animation: cardIn .4s ease backwards;
}

.cart-empty-icon {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2e2b48, #221f34);
    border: 1px solid #3d3858;
    border-radius: 26px;
    color: #5c577a;
    margin-bottom: 6px;
}

.cart-empty-icon svg { width: 44px; height: 44px; stroke-width: 1.5; }

.cart-empty h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -.3px;
}

.cart-empty p {
    margin: 0 0 10px;
    font-size: 13.5px;
    color: #8a84a8;
}

/* Responsive */
@media (max-width: 1000px) {
    .cart-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .cart-summary-card { padding: 20px; }
    .cart-promo-body { padding: 18px 20px; }
    .cart-promo-head { padding: 18px 20px; }
    .cart-summary-total strong { font-size: 22px; }
    .cart-promo-input-wrap { flex-direction: column; }
    .cart-btn-sm { width: 100%; }
}

/* =====================================================
   LIGHT TEMA — CART
   ===================================================== */

[data-theme="light"] .cart-clear-link {
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
}

[data-theme="light"] .cart-clear-link:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #dc2626;
}

/* Tablo kartı */
[data-theme="light"] .cart-table-wrap {
    background: var(--bg-panel);
    border-color: var(--border);
}

/* Tablo başlıkları */
[data-theme="light"] .cart-table thead th {
    background: #f8f6fd;
    border-bottom-color: var(--border);
    color: var(--text-dim);
}

[data-theme="light"] .cart-table tbody tr {
    border-bottom-color: var(--border);
}

[data-theme="light"] .cart-table tbody tr:hover {
    background: var(--bg-hover);
}

[data-theme="light"] .cart-table tbody td {
    color: var(--text);
}

/* Hücreler */
[data-theme="light"] .cart-bin {
    color: #7c3aed;
}

[data-theme="light"] .cart-brand-text {
    color: var(--text);
}

[data-theme="light"] .cart-level {
    background: #ede9fe;
    color: #6d28d9;
    border-color: #c4b5fd;
}

[data-theme="light"] .cart-level.gold {
    background: #fef3c7;
    color: #b45309;
    border-color: #fcd34d;
}

[data-theme="light"] .cart-level.platinum {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

[data-theme="light"] .cart-level.personal {
    background: #ede9fe;
    color: #6d28d9;
    border-color: #c4b5fd;
}

[data-theme="light"] .cart-type {
    background: #ede9fe;
    color: #6d28d9;
    border-color: #c4b5fd;
}

[data-theme="light"] .cart-type.debit {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

[data-theme="light"] .cart-bank {
    color: var(--text);
}

[data-theme="light"] .cart-country span {
    color: var(--text-muted);
}

[data-theme="light"] .cart-exp {
    color: var(--text);
}

[data-theme="light"] .cart-owner {
    color: var(--text-strong);
}

[data-theme="light"] .cart-live {
    color: #16a34a;
}

[data-theme="light"] .cart-price {
    color: #7c3aed;
}

[data-theme="light"] .cart-remove {
    background: transparent;
    border-color: var(--border);
    color: var(--text-dim);
}

[data-theme="light"] .cart-remove:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #dc2626;
}

/* Alt not */
[data-theme="light"] .cart-note {
    background: #f8f6fd;
    border-top-color: var(--border);
    color: var(--text-muted);
}

[data-theme="light"] .cart-note svg {
    color: #7c3aed;
}

/* Özet kartı */
[data-theme="light"] .cart-summary-card {
    background: var(--bg-panel);
    border-color: var(--border);
}

[data-theme="light"] .cart-summary-head h3 {
    color: var(--text-strong);
}

[data-theme="light"] .cart-summary-row {
    color: var(--text-muted);
}

[data-theme="light"] .cart-summary-row strong {
    color: var(--text-strong);
}

[data-theme="light"] .cart-summary-discount strong {
    color: #16a34a;
}

[data-theme="light"] .cart-summary-sep {
    background: var(--border);
}

[data-theme="light"] .cart-summary-total {
    color: var(--text-strong);
}

[data-theme="light"] .cart-summary-total strong {
    color: #7c3aed;
}

[data-theme="light"] .cart-summary-balance {
    color: var(--text-muted);
}

[data-theme="light"] .cart-summary-balance strong.ok {
    color: #16a34a;
}

[data-theme="light"] .cart-summary-balance strong.warn {
    color: #dc2626;
}

/* Promo */
[data-theme="light"] .cart-promo-card {
    background: var(--bg-panel);
    border-color: var(--border);
}

[data-theme="light"] .cart-promo-head {
    border-bottom-color: var(--border);
}

[data-theme="light"] .cart-promo-head h3 {
    color: var(--text-strong);
}

[data-theme="light"] .cart-promo-head h3 svg {
    color: #7c3aed;
}

[data-theme="light"] .cart-promo-caret {
    color: var(--text-dim);
}

[data-theme="light"] .cart-promo-input-wrap input {
    background: var(--bg-input);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="light"] .cart-promo-input-wrap input::placeholder {
    color: var(--text-dim);
}

[data-theme="light"] .cart-promo-input-wrap input:focus {
    background: #fff;
    border-color: var(--accent);
}

[data-theme="light"] .cart-promo-hint {
    color: var(--text-dim);
}

/* Boş sepet */
[data-theme="light"] .cart-empty {
    background: var(--bg-panel);
    border-color: var(--border);
}

[data-theme="light"] .cart-empty-icon {
    background: #f8f6fd;
    border-color: var(--border);
    color: #b8b3cc;
}

[data-theme="light"] .cart-empty h2 {
    color: var(--text-strong);
}

[data-theme="light"] .cart-empty p {
    color: var(--text-muted);
}

/* Uyarı kutusu */
[data-theme="light"] .cart-warn-box {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

[data-theme="light"] .cart-warn-box strong {
    color: #b91c1c;
}

[data-theme="light"] .cart-warn-box span {
    color: #dc2626;
}