﻿.updateForm {
    display: flex;
    flex-wrap: wrap;
}

.cart-modern-cart {
    background: #f8fafc;
    min-height: 100vh;
    padding: 2rem 0;
}

.cart-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.cart-header .content .btn {
    min-width: 185px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
}

.cart-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0rem !important;
}

.cart-title h3 {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.cart-count {
    background: #4a5568;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-empty-cart {
    background: white;
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.cart-empty-cart-icon {
    font-size: 4rem;
    color: #a0aec0;
    margin-bottom: 1.5rem;
}

.cart-empty-cart h4 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cart-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.cart-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border: 1px solid #f1f5f9;
    width: 32.5%;
    margin-right: 11px;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.cart-product-info {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cart-product-details {
    flex: 1;
}

.cart-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.cart-product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.cart-product-name a:hover {
    color: #4a5568;
}

.cart-product-code {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.cart-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cart-price {
    font-size: 14px;
    text-align: center;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.cart-quantity-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    padding: 0.25rem;
    border: 1px solid #e2e8f0;
}

.cart-quantity-btn {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 0.8rem;
}

.cart-quantity-btn:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

.cart-quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.cart-checkout-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    text-align: end;
    width: 100%;
}

.cart-checkout-btn {
    background: #4a5568;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(74, 85, 104, 0.2);
}

.cart-checkout-btn:hover {
    background: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 85, 104, 0.3);
}

.cart-login-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.cart-login-btn {
    background: var(--site-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cart-login-btn:hover {
    background: var(--site-hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-modern-cart {
        padding: 1rem 0;
    }

    .cart-header,
    .cart-container,
    .cart-empty-cart,
    .cart-checkout-section,
    .cart-login-section {
        margin: 0 1rem 1rem 1rem;
        padding: 1.5rem;
    }

    .cart-title h3 {
        font-size: 1.5rem;
    }

    .cart-item {
        padding: 1rem;
        margin-right: 0px;
    }

    .cart-product-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cart-product-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .cart-price-section {
        align-items: center;
    }

    .cart-quantity-controls {
        justify-content: center;
    }

    .cart-checkout-btn,
    .cart-login-btn {
        width: 100%;
        padding: 1rem;
    }

    .cart-item {
        width: 100%;
    }

    #cart .cart-title {
        justify-content: left;
        align-items: flex-start;
        flex-wrap: wrap;
        flex-direction: unset;
    }
}

@media (max-width: 480px) {

    .cart-header,
    .cart-container,
    .cart-empty-cart,
    .cart-checkout-section,
    .cart-login-section {
        margin: 0 0.5rem 1rem 0.5rem;
        padding: 1rem;
    }

    .cart-title {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .cart-title h3 {
        font-size: 1.3rem;
    }

    .cart-header .content:nth-child(1) {
        margin-bottom: 10px;
        width: 100%;
    }
}

/* ==============================
   CHECKOUT PAGE – Modern UI
   ============================== */

.ck-page {
    background: #f8fafc;
    min-height: 100vh;
    padding: 2rem 0 3rem;
}

.ck-page .container {
    max-width: 90%;
}

/* Card Component */
.ck-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s ease;
}

.ck-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ck-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.ck-card-title i {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Info Banner (İskonto bilgisi vb.) */
.ck-info-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #166534;
    font-weight: 500;
    width: 49%;
}

.ck-info-banner i {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ck-info-banner.ck-info-secure {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

.ck-info-banner.ck-info-secure i {
    color: #22c55e;
}

/* Address Selection */
.ck-select-wrapper {
    width: 100%;
    min-height: 45px !important;
}

.ck-card .main-dropdownLive {
    max-width: none !important;
    width: 100% !important;
}

.ck-card .liveSearch {
    width: 100%;
    padding: 0.6rem 0.85rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 0.9rem;
    color: #374151;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.ck-card .dropdown-select.wide.liveSearch {
    display: flex !important;
    align-items: center !important;
}

.ck-card .liveSearch:focus {
    border-color: #4a5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
    outline: none;
}

.ck-card label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.4rem;
    display: block;
}

/* Radio Group (Vade + Kasa Paketi) */
.ck-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ck-radio-group .form-check {
    margin: 0;
    padding: 0;
    margin-bottom: 0px !important;
}

.ck-radio-group .form-check-input {
    display: none;
}

.ck-radio-group .form-check-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 48px;
    text-align: center;
    margin: 0;
}

.ck-radio-group .form-check-label:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.ck-radio-group .form-check-input:checked+.form-check-label {
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
}

/* Textarea */
.ck-textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #374151;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.ck-textarea:focus {
    border-color: #4a5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
    outline: none;
}

/* Box Count Input */
.ck-box-count {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.ck-box-count label {
    margin: 0;
    white-space: nowrap;
}

.ck-box-count input[type="number"] {
    width: 80px;
    padding: 0.4rem 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.ck-box-count input[type="number"]:focus {
    border-color: #4a5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
    outline: none;
}

/* ===== PRODUCT TABLE ===== */
.ck-table-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.ck-table-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.ck-table-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.ck-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ck-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.ck-table thead {
    background: #f9fafb;
}

.ck-table thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eaecf0;
    text-align: left;
}

.ck-table thead th:first-child {
    padding-left: 1.5rem;
}

.ck-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    color: #374151;
    font-size: 0.88rem;
    border-bottom: 1px solid #f3f4f6;
}

.ck-table tbody td:first-child {
    padding-left: 1.5rem;
}

.ck-table tbody tr:last-child td {
    border-bottom: none;
}

.ck-table tbody tr {
    transition: background 0.15s ease;
}

.ck-table tbody tr:hover {
    background: #fafbfc;
}

/* Product Cell */
.ck-product-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: normal;
    min-width: 200px;
}

.ck-product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-shrink: 0;
}

.ck-product-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.88rem;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.2s;
}

.ck-product-name:hover {
    color: #4a5568;
}

/* Price Cells */
.ck-price {
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
}

.ck-discount-price {
    font-weight: 600;
    color: #059669;
    white-space: nowrap;
}

.ck-badge-discount {
    display: inline-block;
    background: #ecfdf5;
    color: #059669;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-left: 0.35rem;
}

.ck-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 0.3rem 0.75rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: #1f2937;
    min-width: 36px;
}

/* Submit Section */
.ck-submit-wrapper {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.ck-submit-btn {
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(31, 41, 55, 0.2);
    letter-spacing: 0.2px;
}

.ck-submit-btn:hover {
    background: #111827;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(31, 41, 55, 0.3);
}

.ck-submit-btn:active {
    transform: translateY(0);
}

/* Add Address Button */
.ck-add-address-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ck-add-address-btn:hover {
    background: #111827;
    color: #fff;
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .ck-page .row>[class*="col-lg-3"] {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .ck-page {
        padding: 1rem 0 2rem;
    }

    .ck-card {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .ck-table thead th {
        padding: 0.75rem 0.85rem;
        font-size: 0.65rem;
    }

    .ck-table tbody td {
        padding: 0.75rem 0.85rem;
        font-size: 0.82rem;
    }

    .ck-product-cell {
        min-width: 160px;
    }

    .ck-product-thumb {
        width: 40px;
        height: 40px;
    }

    .ck-submit-btn {
        width: 100%;
        text-align: center;
    }

    .ck-submit-wrapper {
        justify-content: stretch;
    }
}

@media (max-width: 480px) {
    .ck-page {
        padding: 0.75rem 0 1.5rem;
    }

    .ck-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .ck-radio-group .form-check-label {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}