/*
 * DataTR Premium Cart View Styles
 * console_cart — cart-configure.css ile birebir aynı değerler
 */

/* ── Reset & Base ── */
#order-standard_cart.dt-cart-premium {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    -webkit-font-smoothing: antialiased;
    padding: 0;
}

/* Sidebar gizle */
.cart-sidebar {
    display: none !important;
}

/* Cart body tam genişlik */
.dt-cart-premium .cart-body {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 !important;
    padding: 0 !important;
}

/* Bootstrap .row negatif margin kaymasını engelle */
.dt-cart-premium > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Boş gateway/hook div'lerini gizle */
.view-cart-gateway-checkout:empty {
    display: none !important;
}

/* Dev License banner gizle */
.dev-license-banner,
.alert.devMode,
section#main-body > .container > .alert:first-child,
#main-body > .container > .alert:first-child,
.development-license-banner {
    display: none !important;
}

.dt-cart-premium .sidebar-categories-collapsed,
.dt-cart-premium .cart-sidebar,
.cart-sidebar,
.sidebar-categories-collapsed {
    display: none !important;
}

.dt-cart-premium .header-lined {
    display: none !important;
}

/* ── Page Header (gizli) ── */
.dt-page-header {
    display: none !important;
}

/* ── Cart Layout — sipariş formuyla birebir aynı ── */
.dt-cart-layout {
    display: flex;
    gap: 32px;
    padding: 24px 24px 48px;
    max-width: 1280px;
    margin: 0 auto;
    align-items: flex-start;
}

.dt-cart-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dt-cart-summary {
    width: 380px;
    flex-shrink: 0;
}

.dt-summary-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Card Base — cart-configure.css ile birebir aynı ── */
.dt-cart-premium .dt-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    animation: dtFadeIn 0.4s ease-out both;
}

.dt-cart-premium .dt-card:hover {
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* Gradient border kaldırıldı */
.dt-card-gradient-border::before {
    display: none !important;
}

/* ── Card Header — birebir aynı ── */
.dt-cart-premium .dt-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.dt-cart-premium .dt-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.1));
    border-radius: 10px;
    color: #3b82f6;
    flex-shrink: 0;
}

.dt-cart-premium .dt-card-icon svg {
    width: 20px;
    height: 20px;
}

.dt-cart-premium .dt-card-header h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #f1f5f9;
    letter-spacing: -0.01em;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Card Body — birebir aynı ── */
.dt-cart-premium .dt-card-body {
    padding: 24px;
}

/* ── Cart Item Card ── */
.dt-card-cartitem {
    animation-delay: 0.05s;
}

.dt-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.dt-edit-link {
    font-size: 12px;
    font-weight: 500;
    color: #3b82f6 !important;
    text-decoration: none !important;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.08);
    transition: background 0.2s ease;
}

.dt-edit-link:hover {
    background: rgba(59, 130, 246, 0.15);
}

/* ── Cart Item Details ── */
.dt-item-group {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.dt-item-domain {
    font-size: 13px;
    color: #3b82f6;
    margin-bottom: 4px;
}

.dt-item-config {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.8;
    margin-top: 4px;
}

.dt-item-price {
    text-align: right;
    flex-shrink: 0;
}

.dt-item-price .price {
    font-weight: 700;
    font-size: 15px;
    color: #f1f5f9;
    white-space: nowrap;
}

.dt-item-price .cycle {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.dt-item-setup {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.dt-addon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 12px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    margin-top: 8px;
}

/* ── Remove Button ── */
.dt-btn-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dt-btn-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ── Cart Empty ── */
.dt-cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 1.1rem;
}

.dt-empty-actions {
    padding: 8px 0;
    display: flex;
    justify-content: flex-end;
}

.dt-btn-empty {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dt-btn-empty:hover {
    background: rgba(239, 68, 68, 0.08);
}

/* ── Promo Code ── */
.dt-promo-form {
    display: flex;
    gap: 8px;
}

.dt-promo-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.8);
    color: #f1f5f9;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dt-promo-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.dt-promo-btn {
    padding: 10px 18px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    color: #3b82f6;
    font-weight: 600;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dt-promo-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}

.dt-promo-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
}

.dt-promo-active span {
    font-weight: 600;
    color: #10b981;
}

.dt-promo-active a {
    color: #ef4444;
    font-size: 13px;
    text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════════
   SİPARİŞ ÖZETİ — cart-configure.css'ten BİREBİR kopyalandı
   ══════════════════════════════════════════════════════════════════ */

.dt-card-summary {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(59, 130, 246, 0.15) !important;
}

.dt-card-summary .summary-container {
    font-size: 13px;
    padding: 0 16px 12px !important;
}

.dt-card-summary .product-name {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    display: block;
    margin-bottom: 4px;
}

.dt-card-summary .product-group {
    font-size: 12px;
    color: #64748b;
    display: block;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.dt-card-summary .clearfix,
.dt-card-summary .subtotal {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start;
    float: none !important;
    padding: 3px 0;
    font-size: 13px;
}

.dt-card-summary .clearfix .float-left,
.dt-card-summary .clearfix .pull-left,
.dt-card-summary .subtotal .float-left,
.dt-card-summary .subtotal .pull-left {
    float: none !important;
    color: #94a3b8;
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}

.dt-card-summary .clearfix .float-right,
.dt-card-summary .clearfix .pull-right,
.dt-card-summary .subtotal .float-right,
.dt-card-summary .subtotal .pull-right {
    float: none !important;
    color: #f1f5f9;
    font-weight: 500;
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
}

.dt-card-summary .summary-totals {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    margin-top: 12px;
    padding-top: 12px;
}

.dt-card-summary .bordered-totals {
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    padding-top: 4px;
    margin-top: 4px;
}

.dt-card-summary .recurring-totals {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    margin-top: 12px;
    padding-top: 12px;
}

.dt-card-summary .recurring-charges {
    font-size: 12px;
    color: #64748b;
    text-align: right;
}

.dt-card-summary .total-due-today {
    text-align: center;
    padding: 20px 0 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    margin-top: 12px;
    margin-bottom: 0;
}

/* Sipariş Özeti alt ayraç çizgisi */
.dt-summary-bottom-rule {
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    margin: 0 0 0 0;
    padding: 0;
}

html:not(.dark) .dt-summary-bottom-rule {
    border-top-color: rgba(15, 23, 42, 0.1);
}

.dt-card-summary .total-due-today .amt {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #3b82f6;
    letter-spacing: -0.02em;
}

.dt-card-summary .total-due-today span:first-child {
    display: block;
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

/* ── Sipariş Özeti — Buton Ayraç Çizgisi ── */
.dt-summary-btn-wrap {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    margin-top: 8px;
    padding-top: 20px;
}

html:not(.dark) .dt-summary-btn-wrap {
    border-top-color: rgba(15, 23, 42, 0.15);
}

/* ── Checkout Button — cart-configure.css butonuyla birebir aynı ── */
.dt-btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    letter-spacing: -0.01em;
}

.dt-btn-checkout:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    color: white;
    text-decoration: none;
}

.dt-btn-checkout.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.dt-btn-continue-shopping {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dt-btn-continue-shopping:hover {
    color: #3b82f6;
    text-decoration: none;
}

/* ── Modal Overrides ── */
.dt-cart-premium .modal-content {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(15, 23, 42, 0.95);
    color: #f1f5f9;
}

.dt-cart-premium .modal-body {
    color: #f1f5f9;
}

.dt-cart-premium .modal-footer {
    border-top-color: rgba(148, 163, 184, 0.08);
}

.dt-cart-premium .modal .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 10px;
}

/* ── Animation ── */
@keyframes dtFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dt-cart-premium {
        overflow-x: hidden;
        max-width: 100%;
    }
    .dt-cart-layout {
        flex-direction: column;
        padding: 0 12px 32px;
    }
    .dt-cart-main {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .dt-card {
        box-sizing: border-box;
        max-width: 100%;
    }
    .dt-card-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    .dt-card-actions {
        flex-wrap: nowrap;
        min-width: 0;
    }
    .dt-cart-summary {
        width: 100%;
    }
    .dt-card-body {
        padding: 16px;
    }
    .dt-empty-actions {
        flex-wrap: wrap;
    }
    .dt-btn-empty {
        max-width: 100%;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   LIGHT MODE — cart-configure.css'ten birebir kopyalandı
   ══════════════════════════════════════════════════════════════════════ */

/* ── Light: Kartlar ── */
html:not(.dark) .dt-cart-premium .dt-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(148, 163, 184, 0.2);
}

html:not(.dark) .dt-cart-premium .dt-card:hover {
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

html:not(.dark) .dt-cart-premium .dt-card-header h2 {
    color: #0f172a;
}

html:not(.dark) .dt-cart-premium .dt-card-header {
    border-bottom-color: rgba(148, 163, 184, 0.15);
}

/* ── Light: Cart item content ── */
html:not(.dark) .dt-item-group {
    color: #64748b;
}

html:not(.dark) .dt-item-domain {
    color: #2563eb;
}

html:not(.dark) .dt-item-config {
    color: #475569;
}

html:not(.dark) .dt-item-price .price {
    color: #0f172a;
}

html:not(.dark) .dt-item-price .cycle {
    color: #64748b;
}

html:not(.dark) .dt-item-setup {
    color: #64748b;
}

html:not(.dark) .dt-addon-row {
    color: #64748b;
    border-top-color: rgba(148, 163, 184, 0.15);
}

html:not(.dark) .dt-btn-remove {
    color: #94a3b8;
}

html:not(.dark) .dt-btn-remove:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

/* ── Light: Sipariş Özeti ── */
html:not(.dark) .dt-card-summary {
    background: rgba(248, 250, 252, 0.95) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}

html:not(.dark) .dt-card-summary .product-name {
    color: #0f172a;
}

html:not(.dark) .dt-card-summary .clearfix .float-left,
html:not(.dark) .dt-card-summary .clearfix .pull-left,
html:not(.dark) .dt-card-summary .subtotal .float-left,
html:not(.dark) .dt-card-summary .subtotal .pull-left {
    color: #64748b !important;
}

html:not(.dark) .dt-card-summary .clearfix .float-right,
html:not(.dark) .dt-card-summary .clearfix .pull-right,
html:not(.dark) .dt-card-summary .subtotal .float-right,
html:not(.dark) .dt-card-summary .subtotal .pull-right {
    color: #0f172a !important;
}

html:not(.dark) .dt-card-summary .total-due-today .amt {
    color: #1e40af !important;
}

html:not(.dark) .dt-card-summary .total-due-today span:first-child {
    color: #64748b !important;
}

html:not(.dark) .dt-card-summary .bordered-totals {
    border-top-color: rgba(148, 163, 184, 0.2);
}

html:not(.dark) .dt-card-summary .recurring-totals {
    border-top-color: rgba(148, 163, 184, 0.2);
}

html:not(.dark) .dt-card-summary .summary-totals {
    border-top-color: rgba(148, 163, 184, 0.2);
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

html:not(.dark) .dt-card-summary .summary-container .subtotal {
    border-bottom-color: rgba(148, 163, 184, 0.2);
    color: #334155;
}

html:not(.dark) .dt-card-summary .summary-container .bordered-totals {
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

html:not(.dark) .dt-card-summary .summary-container .clearfix .pull-left,
html:not(.dark) .dt-card-summary .summary-container .clearfix .float-left {
    color: #64748b !important;
}

html:not(.dark) .dt-card-summary .summary-container .clearfix .pull-right,
html:not(.dark) .dt-card-summary .summary-container .clearfix .float-right {
    color: #0f172a !important;
}

html:not(.dark) .dt-card-summary .summary-container .total-due-today span {
    color: #64748b !important;
}

html:not(.dark) .dt-card-summary .summary-container .total-due-today .amt {
    color: #1e40af !important;
}

/* ── Light: Promo ── */
html:not(.dark) .dt-promo-input {
    background: #fff;
    border-color: rgba(148, 163, 184, 0.3);
    color: #0f172a;
}

/* ── Light: Modal ── */
html:not(.dark) .dt-cart-premium .modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(148, 163, 184, 0.2);
    color: #0f172a;
}

html:not(.dark) .dt-cart-premium .modal-body {
    color: #0f172a;
}

html:not(.dark) .dt-cart-premium .modal-footer {
    border-top-color: rgba(148, 163, 184, 0.15);
}

/* ── Light: Butonlar ── */
html:not(.dark) .dt-btn-empty {
    color: #ef4444;
}

html:not(.dark) .dt-btn-continue-shopping {
    color: #64748b;
}

html:not(.dark) .dt-edit-link {
    background: rgba(59, 130, 246, 0.06);
}
