/* Global Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; background-color: #f3f4f6; color: #374151; }

.container { max-width: 1500px; margin: 0 auto; padding: 0 15px; }

/* 🎯 GÜNCELLEME: KASA SAYFASI DAHA GENİŞ VE FERAH */
.checkout-container { max-width: 1500px; padding: 0 20px; }

/* LAYOUT */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
@media (max-width: 1100px) { .checkout-layout { grid-template-columns: 1fr 360px; gap: 25px; } }
@media (max-width: 1000px) { .checkout-layout { grid-template-columns: 1fr; } }

/* STEP CARDS */
.step-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); border: 1px solid #e5e7eb; overflow: hidden; margin-bottom: 20px; }
.step-title { background: #f9fafb; padding: 15px 20px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; gap: 15px; }
.step-title span { width: 28px; height: 28px; background: var(--theme-color); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step-title h3 { font-size: 1.1rem; color: #111827; }
.step-body { padding: 25px; }

/* FORM ELEMENTS */
.form-row { display: flex; gap: 20px; margin-bottom: 15px; }
.form-group { flex: 1; }
@media (max-width: 600px) { .form-row { flex-direction: column; gap: 15px; } }

.form-group label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 600; color: #4b5563; }
.form-group input, .form-group textarea, .form-select-kasa { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.95rem; outline: none; transition: .2s; }
.form-group input:focus, .form-group textarea:focus, .form-select-kasa:focus { border-color: var(--theme-color); box-shadow: 0 0 0 3px rgba(var(--theme-color-rgb), 0.1); }

.input-note { display: block; font-size: 0.75rem; color: #ef4444; margin-top: 6px; font-weight: 600; }
.form-select-kasa { background-color: #fff; cursor: pointer; }

/* KURUMSAL BİLGİ KUTUSU */
.billing-info-box { background: #f8fafc; border: 1px solid #e2e8f0; padding: 15px; border-radius: 10px; margin-top: 15px; }
.billing-info-box h4 { font-size: 0.9rem; color: #1e293b; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.billing-info-box p { font-size: 0.8rem; color: #64748b; margin: 2px 0; }
.billing-notice-box { background: #fffbeb; border: 1px solid #fde68a; padding: 15px; border-radius: 10px; color: #92400e; font-size: 0.85rem; margin-top: 15px; line-height: 1.5; font-weight: 500; }
.billing-notice-box i { margin-right: 6px; color: #d90606; }
.update-link { color: var(--theme-color); text-decoration: none; font-weight: 700; font-size: 0.85rem; display: inline-block; margin-top: 10px; }
.update-link:hover { text-decoration: underline; }

/* SELECTION CARDS */
.selection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; margin-top: 20px; }
@media (max-width: 850px) { .selection-grid { grid-template-columns: 1fr; } }
.selection-group { display: flex; flex-direction: column; gap: 10px; }
.selection-card { border: 2px solid #e5e7eb; border-radius: 10px; padding: 12px 15px; cursor: pointer; transition: .2s; display: flex; align-items: center; gap: 12px; background: #fff; }
.selection-card:hover { border-color: #d1d5db; }
.selection-card input { width: 18px; height: 18px; accent-color: var(--theme-color); }
.selection-card.active { border-color: var(--theme-color); background: #fffaf5; }
.selection-info strong { display: block; font-size: 0.9rem; color: #111827; }
.selection-info span { font-size: 0.75rem; color: #6b7280; }
.price-tag { font-weight: 700; color: var(--theme-color); margin-left: auto; font-size: 0.9rem; }
.havale-box { margin-top: 10px; padding: 12px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; font-size: 0.8rem; color: #475569; }

/* SIDEBAR SUMMARY */
.summary-card { background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; padding: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.summary-card h3 { font-size: 1.2rem; margin-bottom: 20px; border-bottom: 1px solid #f3f4f6; padding-bottom: 10px; }
.sticky-summary { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }

.min-order-alert { background: #fff4f2; border: 2px solid #ef4444; padding: 20px; border-radius: 12px; margin-bottom: 25px; animation: pulseAlert 2s infinite; }
@keyframes pulseAlert { 0% { border-color: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); } 70% { border-color: #ef4444; box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { border-color: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.alert-head { color: #b91c1c; font-weight: 800; font-size: 0.95rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.alert-content { font-size: 0.85rem; color: #7f1d1d; line-height: 1.5; font-weight: 500; }

/* 🎯 RESİMLİ ÜRÜN LİSTESİ STİLLERİ */
.summary-items { max-height: 280px; overflow-y: auto; margin-bottom: 20px; padding-right: 5px; }
.summary-items::-webkit-scrollbar { width: 5px; }
.summary-items::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.s-item-with-img { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #e2e8f0; }
.s-item-with-img img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; border: 1px solid #e2e8f0; }
.s-item-info { flex: 1; display: flex; flex-direction: column; }
.s-item-name { font-size: 0.85rem; color: #1e293b; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-item-qty { font-size: 0.75rem; color: #64748b; margin-top: 4px; }
.s-item-price { font-size: 0.9rem; color: #111827; font-weight: 800; }

/* 🎯 KUPON ALANI STİLLERİ */
.coupon-wrapper { background: #f8fafc; padding: 15px; border-radius: 10px; border: 1px dashed #cbd5e1; margin-bottom: 20px; }
.coupon-input-group { display: flex; gap: 10px; }
.coupon-input-group input { flex: 1; padding: 10px 15px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.9rem; outline: none; text-transform: uppercase; font-weight: 600; }
.coupon-input-group input:focus { border-color: var(--theme-color); }
.btn-apply-coupon { background: var(--theme-color); color: #fff; border: none; padding: 0 15px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-apply-coupon:hover { filter: brightness(0.9); }
.applied-coupon-box { display: flex; justify-content: space-between; align-items: center; background: #ecfdf5; border: 1px solid #10b981; padding: 10px 15px; border-radius: 6px; }
.coupon-code-text { color: #047857; font-weight: 800; letter-spacing: 1px; font-size: 0.95rem; }
.btn-remove-coupon { background: none; border: none; color: #ef4444; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.btn-remove-coupon:hover { text-decoration: underline; }
.coupon-msg { font-size: 0.8rem; margin-top: 8px; font-weight: 600; }
.coupon-msg.error { color: #dc2626; }
.coupon-msg.success { color: #059669; }

/* TOPLAMLAR */
.summary-totals { border-top: 2px solid #f3f4f6; padding-top: 15px; }
.s-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.9rem; color: #4b5563; }
.text-green { color: #10b981 !important; font-weight: 700; }
.grand-total { font-size: 1.3rem; font-weight: 800; color: #111827; margin-top: 15px; border-top: 2px solid #eee; padding-top: 15px; display: flex; justify-content: space-between; }
.grand-total span:last-child { color: var(--theme-color); }

/* BUTTONS VE SÖZLEŞMELER */
.checkout-agreements { margin-top: 20px; margin-bottom: 15px; display: flex; flex-direction: column; gap: 12px; padding-top: 15px; border-top: 1px solid #e5e7eb; }
.agreement-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.85rem; color: #4b5563; line-height: 1.4; }
.agreement-label input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--theme-color); cursor: pointer; flex-shrink: 0; }
.agreement-text a { color: var(--theme-color); font-weight: 700; text-decoration: underline; }
.btn-complete { width: 100%; padding: 18px; background: var(--theme-color); color: #fff; border: none; border-radius: 10px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: 0.3s; margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-complete:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-complete:disabled { background: #e5e7eb !important; color: #94a3b8 !important; cursor: not-allowed; transform: none !important; }
.mt-15 { margin-top: 15px; }

/* SÖZLEŞME MODALI */
.contract-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.contract-modal.show { opacity: 1; visibility: visible; }
.contract-modal-content { background: #fff; width: 90%; max-width: 650px; border-radius: 12px; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transform: translateY(20px); transition: all 0.3s ease; }
.contract-modal.show .contract-modal-content { transform: translateY(0); }
.contract-modal-header { padding: 15px 20px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; background-color: #f8fafc; border-radius: 12px 12px 0 0; }
.contract-modal-header h3 { margin: 0; font-size: 1.1rem; color: #111827; }
.close-modal-btn { background: #e2e8f0; border: none; width: 32px; height: 32px; border-radius: 50%; color: #475569; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.close-modal-btn:hover { background: #ff0000; color: #ef4444; }
.contract-modal-body { padding: 20px; overflow-y: auto; font-size: 0.9rem; color: #475569; line-height: 1.6; }