.select2-danger .select2-selection {
    border: 1px solid #dc3545 !important;
}

.select2-danger .select2-selection__rendered {
    color: #dc3545 !important;
}

.select2-danger .select2-results__option--highlighted {
    background-color: #dc3545 !important;
    color: white !important;
}

.select2-container--bootstrap4.select2-container--focus .select2-selection {
    box-shadow: none !important;
    border-color: #ced4da !important;
}

@media (min-width: 576px) {
}

@media (min-width: 768px) {
    .table-wrapper {
        margin-top: 39px;
    }
}

@media (min-width: 992px) {
}

@media (min-width: 1366px) {
}

@media (min-width: 1920px) {
}

.gap-5 {
    gap: 5px;
}

.header {
    background: white;
    border-radius: 12px;
    padding: 15px 15px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
}

.discount-area {
    max-width: 175px;
}

.discount-area .form-control.is-invalid {
    width: 1px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    color: #dc3545;
    font-weight: 700;
    font-size: 28px;
}

.header h1 {
    color: var(--color-heading);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.export-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-btn.pdf {
    background: #e74c3c;
    color: white;
}

.export-btn.pdf:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.export-btn.excel {
    background: #27ae60;
    color: white;
}

.export-btn.excel:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info .welcome {
    color: var(--color-heading);
    font-size: 15px;
}

.customer-select {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 14px;
    color: var(--color-heading);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    outline: none;
}

.customer-select:hover {
    background: #e3e4e6;
}

/* Sepet Bölümü - Tam Genişlik */
.cart-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
    margin-bottom: 25px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f5f5f5;
}

.cart-header h2 {
    color: var(--color-heading);
    font-size: 22px;
    font-weight: 700;
}

.select-all {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-heading);
    cursor: pointer;
    font-weight: 500;
    padding: 5px;
}

.select-all:hover {
    color: #dc3545;
}

.select-all input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #dc3545;
}

.cart-item {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
    border: 2px solid #f0f0f0;
}

.cart-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-color: #dc3545;
}

.cart-item-content {
    display: grid;
    grid-template-columns: auto 100px 1fr;
    gap: 20px;
    align-items: start;
}

.item-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #dc3545;
    margin-top: 40px;
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid #e5e5e5;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 6px;
    line-height: 1.4;
}

.item-code {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.item-stock {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f5e9;
    color: #27ae60;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.item-pricing {
    text-align: right;
}

.item-price {
    font-size: 13px;
    color: #95a5a6;
    text-decoration: line-through;
}

.item-discounted-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 5px 0;
}

.discount-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #dc3545;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-controls label {
    font-size: 13px;
    color: #7f8c8d;
    margin-right: 8px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 16px;
    color: var(--color-heading);
}

.quantity-btn:hover {
    background: #2c3e50;
    color: white;
    border-color: var(--color-heading);
}

.quantity-input {
    width: 45px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 3px 3px 3px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-heading);
    /* padding-top: 2px; */
}

.remove-btn {
    padding: 8px 16px;
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 600;
}

.remove-btn:hover {
    background: #dc3545;
    color: white;
}

.action-buttons2 {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: end;
}

.action-btn2 {
    padding: 6px 12px;
    background: #e30615;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.action-btn2:hover {
    background: #34495e;
    transform: translateY(-2px);
}

/* Alt Bölüm - Tab ve Özet */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 25px;
}

/* Tab Sistemi */
.tab-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
    overflow: hidden;
}

.order-form-tabs-wrapper {
    padding: 30px;
}

.tab-content.customer-type-tabs {
    padding: 0;
    min-height: unset;
}

.tab-progress {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 2px solid #e5e5e5;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #e5e5e5;
    z-index: 1;
}

.progress-line-active {
    position: absolute;
    top: 20px;
    left: 15%;
    height: 2px;
    background: #dc3545;
    z-index: 2;
    transition: width 0.3s;
    width: 0%;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 3;
    cursor: pointer;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #7f8c8d;
    transition: all 0.3s;
}

.progress-step.active .step-circle {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.progress-step.completed .step-circle {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
    max-width: 100px;
}

.progress-step.active .step-label {
    color: #dc3545;
    font-weight: 600;
}

.tab-content .tab-pane h3.tab-title {
    border: none;
    color: var(--color-heading);
    font-size: 1.5rem;
}

.tab-content {
    padding: 30px;
    min-height: 500px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Form Stilleri */
.form-group {
    margin-bottom: 20px;
}

.form-group label:not(.shipping-checkbox-wrapper) {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-heading);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    height: 42px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.submit-btn.secondary {
    background: #2c3e50;
}

.submit-btn.secondary:hover {
    background: #34495e;
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* Adres Kartları */
.address-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
}

.address-card {
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.address-card:hover {
    border-color: #dc3545;
    background: #fff5f5;
}

.address-card.selected {
    border-color: #dc3545;
    background: #fff5f5;
}

.address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-card-title {
    font-weight: 600;
    color: var(--color-heading);
    font-size: 14px;
    white-space: nowrap;
}

.address-card-body {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
}

.radio-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-wrapper input[type="radio"] {
    accent-color: #dc3545;
}

.radio-wrapper input[type="radio"] {
    flex-shrink: 0;
    /* radio sabit boyutta kalsın */
    width: 16px;
    /* istersen burada boyutunu sabitleyebilirsin */
    height: 16px;
}

.section-divider {
    margin: 25px 0;
    padding: 15px 0;
    border-top: 2px solid #f5f5f5;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Kargo Seçimi */
.cargo-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cargo-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.cargo-option:hover {
    border-color: #dc3545;
}

.cargo-option.selected {
    border-color: #dc3545;
    background: #fff5f5;
}

.cargo-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cargo-logo {
    width: 50px;
    height: 35px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: #7f8c8d;
}

/* Kredi Kartı Formu */
.card-input-group {
    position: relative;
}

.card-number-input {
    padding-left: 45px !important;
}

.card-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

/* Özet Bölümü */
.summary-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.summary-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f5f5;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.summary-row .label {
    color: #7f8c8d;
}

.summary-row .value {
    color: var(--color-heading);
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f5f5f5;
    font-size: 18px;
    font-weight: 700;
}

.summary-total .value {
    color: #dc3545;
    font-size: 26px;
    line-height: 1.2;
}

.summary-total .value span {
    color: #000;
    font-weight: 200;
    font-size: 18px;
    float: right;
}

.security-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.security-info small {
    color: #7f8c8d;
    display: block;
    line-height: 1.6;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: none;
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
    border: 1px solid #e5e5e5;
}

.notification.show {
    display: block;
}

.notification.success {
    border-left: 4px solid #27ae60;
}

.notification.error {
    border-left: 4px solid #dc3545;
}

.manage-buttons {
    display: flex;
    margin-bottom: 5px;
    gap: 5px;
    justify-content: end;
}

/* Custom checkbox styling - Same as shipping */
.shipping-checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
    position: relative;
}

.shipping-checkbox-wrapper.payment-checkbox-wrapper {
    background: #e4ffe4;
}

.shipping-checkbox-wrapper.payment-checkbox-wrapper .shipping-checkbox-label {
    font-weight: 600;
    font-size: 1rem;
}

.shipping-checkbox-wrapper:hover {
    background-color: #e9ecef;
    border-color: #da0215;
}

.shipping-checkbox-wrapper:has(.shipping-checkbox-input:disabled) {
    cursor: not-allowed;
    opacity: 0.55;
    background-color: #f0f0f0;
    border-color: #dee2e6;
}

.shipping-checkbox-wrapper:has(.shipping-checkbox-input:disabled):hover {
    background-color: #f0f0f0;
    border-color: #dee2e6;
}

.shipping-checkbox-wrapper:has(.shipping-checkbox-input:disabled) .shipping-checkbox-box {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.shipping-checkbox-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shipping-checkbox-box {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #6c757d;
    border-radius: 0.25rem;
    background-color: white;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.shipping-checkbox-box::after {
    content: "";
    width: 0.5rem;
    height: 0.75rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.shipping-checkbox-input:checked ~ .shipping-checkbox-box {
    background-color: #da0215;
    border-color: #da0215;
}

.shipping-checkbox-input:checked ~ .shipping-checkbox-box::after {
    transform: rotate(45deg) scale(1);
}

.shipping-checkbox-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #343a40;
    user-select: none;
}

.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
}

.nav-tabs .nav-link {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: -2px;
}

.nav-tabs .nav-link:hover:not(.active) {
    background-color: #ecf0f1;
}

.nav-tabs .nav-link.active {
    color: #da0215;
    background-color: #fff;
    border-bottom-color: #da0215;
    font-weight: 600;
}

.tab-content h3 {
    color: #343a40;
    font-size: 1.1rem;
    font-weight: 600;
    /* border-bottom: 2px solid #f0f0f0; */
    padding-bottom: 0.5rem;
}

/* Form labels */
.tab-content label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Form groups spacing */
.tab-content .form-group {
    margin-bottom: 0.75rem;
}

/* Customer type toggle */
.btn-group .customer-type-toggle {
    transition: all 0.3s ease;
    border-color: #da0215 !important;
    color: #da0215 !important;
    font-weight: 500;
    background-color: transparent !important;
}

.btn-group .customer-type-toggle:hover:not(.active) {
    background-color: rgba(218, 2, 21, 0.1) !important;
    border-color: #da0215 !important;
    color: #da0215 !important;
}

.btn-group .customer-type-toggle.active {
    background-color: #da0215 !important;
    border-color: #da0215 !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(218, 2, 21, 0.3) !important;
}

.btn-group .customer-type-toggle:focus,
.btn-group .customer-type-toggle:active:focus {
    box-shadow: 0 0 0 0.2rem rgba(218, 2, 21, 0.25) !important;
}

.customer-type-tabs {
    padding: 0;
    min-height: 0;
}

/* Grid responsive adjustments */
@media (max-width: 768px) {
    .tab-content .row [class*="col-"] {
        margin-bottom: 0.5rem;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .summary-section {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .cart-section {
        padding: 10px;
    }

    .cart-section .cart-header {
        margin-bottom: 15px;
    }

    .cart-section .cart-item-content .item-image {
        display: none;
    }

    .address-grid {
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(1, 1fr);
    }

    .shipping-checkbox-wrapper {
        position: relative;
    }
}

@media (max-width: 768px) {
    .cart-item-content {
        display: flex;
    }

    .item-image {
        display: block;
        max-width: 150px;
        margin: 0 auto;
    }

    .item-details {
        width: 100%;
    }

    .item-header {
        align-items: stretch;
        width: 100%;
        gap: 5px;
    }

    .item-info {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
    }

    .item-pricing {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
    }

    .checkout-container .nav-tabs {
        flex-direction: column;
    }

    .manage-buttons {
        flex-direction: column;
    }

    .discount-text {
        flex-direction: column;
        gap: 0;
    }

    .export-btn {
        padding: 5px;
        font-weight: 500;
    }

    .cart-item-content {
        position: relative;
    }

    .cart-item-content .item-checkbox {
        position: absolute;
        top: -15px;
        right: -15px;
        margin-top: 0;
    }

    .header-actions {
        flex-direction: column;
    }

    .item-pricing .item-discounted-price .unit-price {
        display: block;
    }
}

@media (max-width: 380px) {
    .item-header {
        flex-direction: column;
    }

    .item-pricing {
        flex-wrap: wrap;
        flex-direction: row;
    }

    .item-pricing .item-discounted-price,
    .item-pricing .manage-buttons {
        flex: 1;
        /* yan yana eşit genişlikte */
        /* taşmasın diye bir alt limit */
    }

    .item-pricing .discount-text {
        flex-basis: 100%;
        flex-direction: row;
        gap: 10px;
        /* alt satırda tam genişlik kapla */
    }

    .item-pricing .item-discounted-price {
        flex: 0 0 50%;
        max-width: 50%;
        text-align: left;
    }

    .item-pricing .item-discounted-price .unit-price {
        display: block;
    }

    .item-pricing .manage-buttons {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.quantity-save-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #27ae60;
    background: white;
    color: #27ae60;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 13px;
}

.quantity-save-btn:hover {
    background: #27ae60;
    color: white;
}