/* Ödeme Sayfası Stil Dosyası */

/* Genel Stiller ve Değişkenler */
:root {
    --primary-color: #0066cc;
    --primary-light: #e6f2ff;
    --primary-dark: #004c99;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --text-light: #777;
    --border-color: #eee;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
}

/* Checkout Header Stili */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #ddd;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 5px;
}

.step.active .step-icon {
    background-color: var(--primary-color);
    color: white;
}

.step.completed .step-icon {
    background-color: var(--success-color);
    color: white;
}

.step-name {
    font-size: 14px;
    color: var(--text-light);
}

.step.active .step-name,
.step.completed .step-name {
    color: var(--text-color);
    font-weight: 500;
}

.step-line {
    width: 100px;
    height: 2px;
    background-color: #ddd;
    margin: 0 10px;
}

.step-line.completed {
    background-color: var(--success-color);
}

.checkout-secure {
    display: flex;
    align-items: center;
    color: var(--success-color);
    font-size: 14px;
    font-weight: 500;
}

.checkout-secure i {
    margin-right: 5px;
}

/* Ödeme Sayfası Ana İçerik */
.checkout-content {
    padding: 40px 0;
    background-color: var(--secondary-color);
}

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Sol Taraf - Formlar */
.checkout-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.checkout-section {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    padding: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.section-header h2 {
    font-size: 20px;
    color: var(--text-color);
    margin: 0;
}

.btn-link {
    color: var(--primary-color);
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.btn-link i {
    margin-right: 5px;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Adres Seçimi */
.address-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.address-card {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 15px;
    transition: all 0.3s ease;
}

.address-card:hover {
    box-shadow: var(--shadow-sm);
}

.address-card.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.address-radio {
    margin-right: 15px;
    display: flex;
    align-items: flex-start;
    padding-top: 5px;
}

.address-radio input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    outline: none;
    box-shadow: none;
    position: relative;
    cursor: pointer;
}

.address-radio input[type="radio"]:checked {
    border-color: var(--primary-color);
}

.address-radio input[type="radio"]:checked:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.address-content {
    flex: 1;
}

.address-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.address-name {
    margin-bottom: 5px;
    color: var(--text-color);
}

.address-details {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-light);
}

.address-phone {
    font-size: 14px;
    color: var(--text-light);
}

.address-actions {
    align-self: flex-start;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 5px 10px;
}

.btn-text:hover {
    text-decoration: underline;
    background-color: var(--primary-light);
    border-radius: var(--border-radius-sm);
}

.billing-checkbox {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.billing-checkbox input[type="checkbox"] {
    margin-right: 10px;
}

.billing-checkbox label {
    font-size: 14px;
    color: var(--text-color);
}

.billing-address h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Teslimat Seçenekleri */
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.delivery-option {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 15px;
    transition: all 0.3s ease;
}

.delivery-option:hover {
    box-shadow: var(--shadow-sm);
}

.delivery-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.option-radio {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.option-radio input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    outline: none;
    box-shadow: none;
    position: relative;
    cursor: pointer;
}

.option-radio input[type="radio"]:checked {
    border-color: var(--primary-color);
}

.option-radio input[type="radio"]:checked:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.option-content {
    flex: 1;
}

.option-title {
    font-weight: 600;
    color: var(--text-color);
}

.option-description {
    font-size: 14px;
    color: var(--text-light);
}

.option-price {
    font-weight: 600;
    color: var(--primary-color);
}

/* Ödeme Yöntemleri */
.payment-methods {
    margin-bottom: 20px;
}

.payment-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.payment-tab {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 15px;
}

.payment-tab i {
    margin-right: 5px;
    font-size: 16px;
}

.payment-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.payment-tab:not(.active):hover {
    background-color: var(--secondary-color);
}

.payment-content {
    display: none;
}

.payment-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Kredi Kartı Formu */
.card-container {
    margin-bottom: 25px;
    perspective: 1000px;
}

.card-front {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-logo {
    display: flex;
    justify-content: flex-end;
}

.card-logo span {
    margin-left: 10px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

.visa {
    color: white;
    letter-spacing: 2px;
}

.mastercard {
    color: white;
    letter-spacing: 1px;
}

.card-number {
    font-size: 20px;
    letter-spacing: 2px;
    text-align: center;
    margin: 20px 0;
}

.card-info {
    display: flex;
    justify-content: space-between;
}

.card-holder, .card-expiry {
    font-size: 14px;
}

.label {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    font-size: 12px;
}

.value {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-form {
    max-width: 100%;
}

.payment-form .form-group {
    margin-bottom: 20px;
}

.payment-form label {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 30px;
}

.input-with-icon .card-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-with-icon .cvv-help {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    cursor: help;
}

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

.payment-form input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
}

/* Taksit Seçenekleri */
.installment-options {
    margin-top: 20px;
}

.installment-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.installment-option {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.installment-option input[type="radio"] {
    display: none;
}

.installment-option label {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.installment-option input[type="radio"]:checked + label {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
}

.installment-option:hover label {
    background-color: var(--secondary-color);
}

.installment-option label .option-name {
    font-weight: 500;
    color: var(--text-color);
}

.installment-option label .option-price {
    color: var(--primary-color);
    font-weight: 600;
}

.save-card-checkbox {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.save-card-checkbox input[type="checkbox"] {
    margin-right: 10px;
}

.save-card-checkbox label {
    font-size: 14px;
    color: var(--text-color);
}

/* Havale/EFT Seçeneği */
.bank-transfer-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--primary-light);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

.bank-transfer-info strong {
    color: var(--primary-color);
}

.bank-accounts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bank-account {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    transition: all 0.3s ease;
}

.bank-account:hover {
    box-shadow: var(--shadow-sm);
}

.bank-logo {
    width: 70px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.bank-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bank-info {
    flex: 1;
}

.bank-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 3px;
}

.account-holder {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.account-details {
    font-size: 14px;
    color: var(--text-light);
}

.iban {
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.copy-button {
    margin-left: 10px;
}

.copy-iban {
    display: flex;
    align-items: center;
}

.copy-iban i {
    margin-right: 5px;
}

/* Kapıda Ödeme Seçeneği */
.door-payment-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--primary-light);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

.door-payment-info strong {
    color: var(--primary-color);
}

.door-payment-options {
    display: flex;
    gap: 15px;
}

.payment-option {
    flex: 1;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option label i {
    font-size: 25px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.payment-option label span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
}

.payment-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.payment-option input[type="radio"]:checked + label i {
    color: var(--primary-color);
}

/* Koşullar ve Sözleşme */
.checkout-terms {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
}

.terms-checkbox input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.terms-checkbox label {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Sağ Taraf - Sipariş Özeti */
.checkout-right {
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.order-summary {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    padding: 25px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.summary-header h2 {
    font-size: 20px;
    color: var(--text-color);
    margin: 0;
}

.edit-cart {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
}

.edit-cart:hover {
    text-decoration: underline;
}

.summary-products {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.summary-product {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-product:last-child {
    border-bottom: none;
}

.summary-product .product-image {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-right: 15px;
    border: 1px solid var(--border-color);
}

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

.summary-product .product-details {
    flex: 1;
}

.summary-product .product-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 3px;
}

.summary-product .product-variant, 
.summary-product .product-quantity {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.summary-product .product-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    min-width: 80px;
}

.coupon-section {
    margin-bottom: 20px;
}

.coupon-form {
    display: flex;
}

.coupon-form input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    padding: 10px 15px;
    font-size: 14px;
}

.btn-coupon {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    padding: 0 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-coupon:hover {
    background-color: var(--primary-dark);
}

.price-details {
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-color);
}

.price-row.discount {
    color: var(--success-color);
}

.price-row.total {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
    padding-top: 15px;
}

.price-row.total span:last-child {
    color: var(--primary-color);
}

.checkout-button {
    margin-bottom: 20px;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background-color: #218838;
}

.secure-checkout {
    text-align: center;
}

.secure-info {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.secure-info i {
    margin-right: 5px;
    color: var(--success-color);
}

.payment-icons img {
    max-width: 100%;
    height: 24px;
}

/* Modal Stiller */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 30px 0;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 600px;
    margin: auto;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 20px;
    color: var(--text-color);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
}

.form-group.checkbox label {
    font-weight: normal;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.btn-outline {
    padding: 10px 20px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-light);
}

.btn-primary {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Ödeme Başarılı Modal */
.success-modal {
    max-width: 500px;
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 70px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.success-message p {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
}

.success-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Bildirim Sistemi */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.notification {
    background-color: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    min-width: 300px;
    max-width: 350px;
    transform: translateX(400px);
    animation: slideIn 0.3s forwards, fadeOut 0.3s 5s forwards;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.notification.success::before {
    background-color: var(--success-color);
}

.notification.error::before {
    background-color: var(--danger-color);
}

.notification.warning::before {
    background-color: var(--warning-color);
}

.notification.info::before {
    background-color: var(--info-color);
}

.notification-icon {
    margin-right: 15px;
    font-size: 20px;
}

.notification.success .notification-icon {
    color: var(--success-color);
}

.notification.error .notification-icon {
    color: var(--danger-color);
}

.notification.warning .notification-icon {
    color: var(--warning-color);
}

.notification.info .notification-icon {
    color: var(--info-color);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-color);
}

.notification-message {
    font-size: 14px;
    color: var(--text-light);
}

.notification-close {
    margin-left: 10px;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

/* Responsive Stiller */
@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-right {
        position: static;
    }
    
    .step-line {
        width: 50px;
    }
    
    .installment-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .checkout-steps {
        margin: 20px 0;
    }
    
    .step-name {
        font-size: 12px;
    }
    
    .checkout-secure {
        display: none;
    }
    
    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .card-front {
        height: 180px;
    }
    
    .door-payment-options {
        flex-direction: column;
    }
    
    .payment-option label {
        height: 70px;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-modal {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .checkout-content {
        padding: 20px 0;
    }
    
    .checkout-section {
        padding: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .step-line {
        width: 30px;
    }
    
    .card-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .bank-account {
        flex-direction: column;
        text-align: center;
    }
    
    .bank-logo {
        margin: 0 auto 10px;
    }
    
    .copy-button {
        margin: 10px 0 0 0;
    }
}