/* Punto Kitap - Ödeme Sayfası (pk-payment.css) */

/* =============================================
   LAYOUT
   ============================================= */
.pk-payment-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    align-items: start;
}

.pk-payment-form,
.pk-order-summary {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}

.pk-order-summary {
    position: sticky;
    top: 20px;
}

/* =============================================
   SECTIONS
   ============================================= */
.pk-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #E5E7EB;
}

.pk-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pk-section-title {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pk-section-title i {
    color: #B91C1C;
}

/* =============================================
   FORM ELEMENTS
   ============================================= */
.pk-form-label {
    display: block;
    font-weight: 500;
    font-size: 0.82rem;
    color: #374151;
    margin-bottom: 0.4rem;
}

.pk-form-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
    background: #fff;
    color: #111827;
}

.pk-form-input:focus {
    border-color: #B91C1C;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.pk-form-input.input-error {
    border-color: #ef4444;
}

.pk-form-group {
    margin-bottom: 1rem;
}

.pk-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pk-val-error {
    color: #ef4444;
    font-size: 0.78rem;
    margin-top: 0.25rem;
    display: block;
}

/* =============================================
   AMOUNT INPUT
   ============================================= */
.pk-amount-group {
    display: flex;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
}

.pk-amount-group:focus-within {
    border-color: #B91C1C;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.pk-amount-input {
    flex: 1;
    padding: 0.65rem 0.9rem;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
    text-align: right;
    color: #111827;
}

.pk-amount-currency {
    padding: 0.65rem 1.25rem;
    background: #FEE2E2;
    color: #B91C1C;
    font-weight: 700;
    border-left: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
}

/* =============================================
   BANK CARDS
   ============================================= */
.pk-bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.pk-bank-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.65rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.pk-bank-card:hover,
.pk-bank-card.selected {
    border-color: #B91C1C;
    background: #FEE2E2;
}

.pk-bank-card.selected {
    box-shadow: 0 0 0 2px #B91C1C;
}

.pk-bank-icon {
    font-size: 1.4rem;
    color: #B91C1C;
    margin-bottom: 0.3rem;
}

.pk-bank-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #111827;
}

/* =============================================
   INSTALLMENT CARDS
   ============================================= */
.pk-inst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.6rem;
}

.pk-inst-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.6rem 0.4rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.pk-inst-card:hover,
.pk-inst-card.selected {
    border-color: #B91C1C;
    background: #FEE2E2;
}

.pk-inst-card.selected {
    box-shadow: 0 0 0 2px #B91C1C;
}

.pk-inst-count {
    font-size: 0.9rem;
    font-weight: 700;
    color: #B91C1C;
}

.pk-inst-rate {
    font-size: 0.7rem;
    color: #6B7280;
    margin-top: 0.15rem;
}

/* =============================================
   CARD LOGOS
   ============================================= */
.pk-card-logos {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pk-card-logo {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    width: 48px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* =============================================
   ORDER SUMMARY
   ============================================= */
.pk-summary-title {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pk-summary-title i {
    color: #B91C1C;
}

.pk-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    color: #374151;
}

.pk-summary-row.total {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    border-top: 1px solid #E5E7EB;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.pk-summary-row.total span:last-child {
    color: #B91C1C;
}

/* =============================================
   INSTALLMENT INFO BOX
   ============================================= */
.pk-inst-info {
    background: #FEE2E2;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin: 0.75rem 0;
    font-size: 0.82rem;
}

.pk-inst-info-title {
    font-weight: 700;
    color: #B91C1C;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pk-inst-info-row {
    display: flex;
    justify-content: space-between;
    color: #374151;
    margin-bottom: 0.2rem;
}

/* =============================================
   ORDER BADGE (OrderPayment versiyonu)
   ============================================= */
.pk-order-badge {
    background: #FEE2E2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.pk-order-badge strong {
    color: #B91C1C;
}

/* =============================================
   SUBMIT BUTTON
   ============================================= */
.pk-pay-btn {
    width: 100%;
    background: #B91C1C;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.85rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.pk-pay-btn:hover {
    background: #991B1B;
}

/* =============================================
   SECURE BADGES
   ============================================= */
.pk-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    color: #6B7280;
    font-size: 0.78rem;
}

.pk-secure i {
    color: #10b981;
}

/* =============================================
   BACK LINK (OrderPayment versiyonu)
   ============================================= */
.pk-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #6B7280;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.pk-back-link:hover {
    color: #B91C1C;
}

/* =============================================
   RESULT PAGE (Success / Failed)
   ============================================= */
.pk-result-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.pk-result-card {
    background: #fff;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
}

.pk-result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.pk-result-icon.success {
    background: #D1FAE5;
    color: #10b981;
}

.pk-result-icon.danger {
    background: #FEE2E2;
    color: #B91C1C;
}

.pk-result-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.pk-result-text {
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.pk-result-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #B91C1C;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}

.pk-result-btn:hover {
    background: #991B1B;
    color: #fff;
}

.pk-result-btn.outline {
    background: #fff;
    color: #B91C1C;
    border: 1px solid #B91C1C;
    margin-left: 0.75rem;
}

.pk-result-btn.outline:hover {
    background: #FEE2E2;
    color: #B91C1C;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .pk-payment-layout {
        grid-template-columns: 1fr;
    }
    .pk-order-summary {
        position: static;
    }
}

@media (max-width: 576px) {
    .pk-form-row {
        grid-template-columns: 1fr;
    }
    .pk-bank-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .pk-inst-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .pk-result-card {
        padding: 2rem 1.25rem;
    }
    .pk-result-btn.outline {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* =============================================
   SEPET SAYFASI (cart-page-body)
   ============================================= */
.cart-page-body .cart-page { padding: 2rem 0 3rem; }
.cart-page-body .cart-page .page-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.cart-page-body .cart-page .page-title {
    font-size: 2rem; font-weight: 700; color: #111827;
}
.cart-page-body .cart-page .page-subtitle {
    color: #6B7280; font-size: 1rem; margin-top: 0.25rem;
}
.cart-page-body .cart-page .breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; color: #6B7280;
}
.cart-page-body .cart-page .breadcrumb a {
    color: #B91C1C; text-decoration: none;
}
.cart-page-body .cart-page .breadcrumb a:hover { color: #991B1B; text-decoration: underline; }
.cart-page-body .cart-page .breadcrumb .separator { color: #E5E7EB; }
.cart-page-body .cart-layout {
    display: grid; grid-template-columns: 1fr 380px; gap: 2rem;
}
.cart-page-body .cart-items-section {
    background: #fff; border-radius: 12px; padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #E5E7EB;
}
.cart-page-body .section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #E5E7EB;
}
.cart-page-body .section-title { font-weight: 700; font-size: 1.2rem; color: #111827; }
.cart-page-body .clear-cart {
    color: #B91C1C; font-size: 0.85rem; font-weight: 500; text-decoration: none;
}
.cart-page-body .clear-cart:hover { color: #991B1B; text-decoration: underline; }

/* Hızlı ürün ekleme formu */
.cart-page-body .quick-add-form {
    background-color: #F9FAFB;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid #E5E7EB;
}
.cart-page-body .form-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cart-page-body .form-title i { color: #B91C1C; }
.cart-page-body .form-row {
    display: grid;
    grid-template-columns: 1fr 120px 150px;
    gap: 0.75rem;
    align-items: end;
}
.cart-page-body .form-group { display: flex; flex-direction: column; }
.cart-page-body .form-label {
    font-size: 0.8rem;
    color: #6B7280;
    margin-bottom: 0.25rem;
    font-weight: 500;
}
.cart-page-body .form-input {
    padding: 0.6rem 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
    background-color: #FFFFFF;
}
.cart-page-body .form-input:focus { border-color: #B91C1C; }
.cart-page-body .form-btn {
    background-color: #B91C1C;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 36px;
}
.cart-page-body .form-btn:hover { background-color: #991B1B; }

.cart-page-body .cart-items { margin-bottom: 1.5rem; }
.cart-page-body .cart-item {
    display: grid;
    grid-template-columns: 80px 1fr 100px 120px 100px 40px;
    gap: 1rem; padding: 1rem; border-bottom: 1px solid #E5E7EB; align-items: center;
}
.cart-page-body .cart-item:last-child { border-bottom: none; }
.cart-page-body .cart-item-image {
    width: 80px; height: 100px; border-radius: 6px; overflow: hidden;
}
.cart-page-body .cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-page-body .cart-item-info { display: flex; flex-direction: column; }
.cart-page-body .cart-item-title {
    font-weight: 600; font-size: 0.95rem; color: #111827;
    margin-bottom: 0.25rem; line-height: 1.3;
}
.cart-page-body .cart-item-title a { color: inherit; text-decoration: none; }
.cart-page-body .cart-item-title a:hover { color: #B91C1C; }
.cart-page-body .cart-item-author { color: #6B7280; font-size: 0.8rem; margin-bottom: 0.5rem; }
.cart-page-body .cart-item-sku {
    font-size: 0.75rem; color: #6B7280; background: #F9FAFB;
    padding: 0.25rem 0.5rem; border-radius: 4px; display: inline-block; width: fit-content;
}
.cart-page-body .cart-item-price { font-weight: 600; font-size: 1rem; color: #111827; text-align: center; }
.cart-page-body .cart-item-quantity { display: flex; align-items: center; justify-content: center; }
.cart-page-body .quantity-control {
    display: flex; align-items: center; border: 1px solid #E5E7EB;
    border-radius: 6px; overflow: hidden; width: 100px;
}
.cart-page-body .quantity-btn {
    background: #F9FAFB; border: none; width: 30px; height: 32px;
    display: flex; align-items: center; justify-content: center; cursor: pointer; color: #111827;
}
.cart-page-body .quantity-btn:hover { background: #E5E7EB; }
.cart-page-body .quantity-btn.decrease { border-right: 1px solid #E5E7EB; }
.cart-page-body .quantity-btn.increase { border-left: 1px solid #E5E7EB; }
.cart-page-body .quantity-input {
    width: 40px; height: 32px; border: none; text-align: center; font-size: 0.85rem; outline: none;
}
.cart-page-body .cart-item-total { font-weight: 700; font-size: 1.1rem; color: #B91C1C; text-align: center; }
.cart-page-body .cart-item-remove { display: flex; align-items: center; justify-content: center; }
.cart-page-body .remove-btn {
    background: none; border: none; color: #6B7280; cursor: pointer; font-size: 1rem;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px;
}
.cart-page-body .remove-btn:hover { color: #B91C1C; background: #FEE2E2; }
.cart-page-body .cart-actions {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 1.5rem; border-top: 1px solid #E5E7EB;
}
.cart-page-body .continue-shopping {
    color: #B91C1C; font-weight: 500; text-decoration: none;
    display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem;
}
.cart-page-body .continue-shopping:hover { color: #991B1B; text-decoration: underline; }
.cart-page-body .update-cart-btn {
    background: #F9FAFB; color: #111827; border: 1px solid #E5E7EB;
    border-radius: 6px; padding: 0.6rem 1.25rem; font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
.cart-page-body .update-cart-btn:hover { background: #E5E7EB; }
.cart-page-body .order-summary {
    background: #fff; border-radius: 12px; padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #E5E7EB;
    height: fit-content; position: sticky; top: 140px;
}
.cart-page-body .order-summary .summary-title {
    font-weight: 700; font-size: 1.2rem; color: #111827;
    margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #E5E7EB;
}
.cart-page-body .summary-row {
    display: flex; justify-content: space-between; margin-bottom: 0.75rem; font-size: 0.9rem;
}
.cart-page-body .summary-label { color: #6B7280; }
.cart-page-body .summary-value { font-weight: 500; color: #111827; }
.cart-page-body .summary-row.total {
    font-size: 1.1rem; font-weight: 700; margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}
.cart-page-body .summary-row.total .summary-value { color: #B91C1C; font-size: 1.2rem; }
.cart-page-body .cart-shipping-banner {
    text-align: center; background: linear-gradient(90deg, #ff6a00, #ff9a00);
    color: #fff; padding: 10px 16px; border-radius: 8px;
    box-shadow: 0 6px 14px rgba(255,106,0,.25); margin-bottom: 1.5rem;
    font-size: 18px; font-weight: 700; line-height: 1.3;
}
.cart-page-body .cart-empty {
    text-align: center; padding: 3rem 1rem; background: #fff; border-radius: 12px;
    border: 1px solid #E5E7EB;
}
.cart-page-body .cart-empty-icon { font-size: 3rem; color: #E5E7EB; margin-bottom: 1rem; }
.cart-page-body .cart-empty-title { font-weight: 600; font-size: 1.2rem; color: #111827; margin-bottom: 0.5rem; }
.cart-page-body .cart-empty-text { color: #6B7280; margin-bottom: 1.5rem; }
.cart-page-body .checkout-button { background: #B91C1C !important; border-color: #B91C1C !important; color: #fff !important; border-radius: 8px; padding: 1rem; font-weight: 700; width: 100%; }
.cart-page-body .checkout-button:hover { background: #991B1B !important; border-color: #991B1B !important; }
.cart-page-body .secure-checkout { text-align: center; margin-top: 1rem; font-size: 0.8rem; color: #6B7280; }
.cart-page-body .order-summary .table { border: none; background: transparent; }
.cart-page-body .order-summary .table tbody tr {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.75rem; font-size: 0.9rem; border: none;
}
.cart-page-body .order-summary .table td { border: none; padding: 0.25rem 0; background: transparent !important; }
.cart-page-body .order-summary .table .cart-total-left { color: #6B7280; }
.cart-page-body .order-summary .table .cart-total-right { font-weight: 500; color: #111827; text-align: right !important; }
.cart-page-body .order-summary .table tr.order-total { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #E5E7EB; font-size: 1.1rem; font-weight: 700; }
.cart-page-body .order-summary .table tr.order-total .cart-total-right { color: #B91C1C; font-size: 1.2rem; font-weight: 700; }

@media (max-width: 1024px) {
    .cart-page-body .cart-layout { grid-template-columns: 1fr 320px; gap: 1.5rem; }
    .cart-page-body .cart-item { grid-template-columns: 80px 1fr 100px 100px 80px 40px; gap: 0.75rem; }
}

@media (max-width: 768px) {
    .cart-page-body .cart-layout { grid-template-columns: 1fr; }
    .cart-page-body .form-row { grid-template-columns: 1fr 1fr; }
    .cart-page-body .form-row .form-group:first-child { grid-column: 1 / -1; }
    .cart-page-body .form-btn { width: 100%; }
    .cart-page-body .order-summary { position: static; }
    .cart-page-body .order-summary .secure-checkout { display: none !important; }
    .cart-page-body .cart-item {
        grid-template-columns: 60px 1fr; grid-template-rows: auto auto;
        gap: 0.75rem; padding: 1rem 0;
    }
    .cart-page-body .cart-item-image { grid-row: 1 / 3; width: 60px; height: 80px; }
    .cart-page-body .cart-item-info { grid-column: 2 / 6; }
    .cart-page-body .cart-item-price, .cart-page-body .cart-item-quantity,
    .cart-page-body .cart-item-total, .cart-page-body .cart-item-remove {
        grid-column: span 1; justify-self: center; margin-top: 0.5rem;
    }
}

@media (max-width: 640px) {
    .cart-page-body .cart-item { grid-template-columns: 1fr; text-align: center; }
    .cart-page-body .cart-item-image { grid-row: auto; width: 100px; height: 120px; margin: 0 auto; }
    .cart-page-body .cart-item-info { grid-column: 1 / 2; }
}

/* ===== Mobil Sepet Alt Barı ===== */
.cart-mobile-bar {
    display: none;
}

@media (max-width: 768px) {
    .cart-mobile-bar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 999;
        background: #fff;
        border-top: 1px solid #E5E7EB;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.10);
        padding: 0.75rem 1rem;
    }

    .cart-mobile-bar-shipping {
        flex: 1;
        font-size: 0.78rem;
        color: #555;
        line-height: 1.3;
    }
    .cart-mobile-bar-shipping strong { color: #B91C1C; }
    .cart-mobile-bar-shipping .fas { color: #B91C1C; margin-right: 3px; }

    .cart-mobile-bar-progress-wrap {
        height: 4px;
        background: #E5E7EB;
        border-radius: 2px;
        margin-top: 5px;
        overflow: hidden;
    }
    .cart-mobile-bar-progress {
        height: 100%;
        background: #B91C1C;
        border-radius: 2px;
        transition: width 0.3s;
    }

    .cart-mobile-bar-total {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .cart-mobile-bar-label {
        font-size: 0.72rem;
        color: #6B7280;
    }
    .cart-mobile-bar-amount {
        font-size: 1.05rem;
        font-weight: 700;
        color: #B91C1C;
    }

    .cart-mobile-bar-btn {
        flex-shrink: 0;
        background: #B91C1C;
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 0.6rem 1rem;
        font-size: 0.88rem;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
    }
    .cart-mobile-bar-btn:hover { background: #991B1B; }

    /* Barın yüksekliği kadar sayfa alt boşluğu bırak */
    .cart-page-body .cart-page { padding-bottom: 80px; }
}

/* =============================================
   ORDER DETAILS
   ============================================= */
.pk-od-page { padding: 2rem 0 3rem; }

.pk-od-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75rem;
}
.pk-od-title {
    font-size: 1.5rem; font-weight: 700; color: #111827;
}
.pk-od-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pk-od-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.55rem 1.1rem; border-radius: 8px; font-size: 0.85rem;
    font-weight: 600; text-decoration: none; border: none; cursor: pointer;
    transition: all 0.2s;
}
.pk-od-btn-red    { background: #B91C1C; color: #fff; }
.pk-od-btn-red:hover { background: #991B1B; color: #fff; }
.pk-od-btn-outline { background: #fff; color: #374151; border: 1px solid #E5E7EB; }
.pk-od-btn-outline:hover { background: #F9FAFB; color: #111827; }
.pk-od-btn-green  { background: #059669; color: #fff; }
.pk-od-btn-green:hover { background: #047857; color: #fff; }

.pk-od-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.pk-od-card {
    background: #fff; border: 1px solid #E5E7EB;
    border-radius: 12px; padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pk-od-card-title {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: #B91C1C; margin-bottom: 0.85rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.pk-od-card-row {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 0.85rem; color: #374151; margin-bottom: 0.4rem; gap: 0.5rem;
}
.pk-od-card-row .label { color: #6B7280; flex-shrink: 0; }
.pk-od-card-row .val { font-weight: 500; color: #111827; text-align: right; }
.pk-od-card-row .val.big { font-size: 1.15rem; font-weight: 700; color: #B91C1C; }

.pk-od-status-badge {
    display: inline-block; padding: 0.2rem 0.7rem;
    border-radius: 20px; font-size: 0.78rem; font-weight: 600;
    background: #FEF3C7; color: #92400E;
}
.pk-od-status-badge.paid { background: #D1FAE5; color: #065F46; }

.pk-od-products {
    background: #fff; border: 1px solid #E5E7EB;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 1.25rem;
}
.pk-od-products-header {
    padding: 1rem 1.5rem; border-bottom: 1px solid #E5E7EB;
    font-size: 0.85rem; font-weight: 700; color: #111827;
    display: flex; align-items: center; gap: 0.5rem;
}
.pk-od-products-header i { color: #B91C1C; }
.pk-od-table { width: 100%; border-collapse: collapse; }
.pk-od-table thead th {
    background: #F9FAFB; padding: 0.75rem 1rem;
    font-size: 0.78rem; font-weight: 600; color: #6B7280;
    text-transform: uppercase; letter-spacing: 0.04em;
    border-bottom: 1px solid #E5E7EB; text-align: left;
}
.pk-od-table thead th:last-child { text-align: right; }
.pk-od-table tbody tr { border-bottom: 1px solid #F3F4F6; }
.pk-od-table tbody tr:last-child { border-bottom: none; }
.pk-od-table tbody td { padding: 1rem; vertical-align: middle; }
.pk-od-item-img {
    width: 56px; height: 72px; object-fit: cover;
    border-radius: 6px; border: 1px solid #E5E7EB;
}
.pk-od-item-name {
    font-weight: 600; font-size: 0.9rem; color: #111827;
    text-decoration: none; line-height: 1.3;
}
.pk-od-item-name:hover { color: #B91C1C; }
.pk-od-item-sku {
    font-size: 0.75rem; color: #6B7280;
    background: #F3F4F6; padding: 0.15rem 0.5rem;
    border-radius: 4px; display: inline-block; margin-top: 0.25rem;
}
.pk-od-item-price { font-size: 0.9rem; color: #374151; white-space: nowrap; }
.pk-od-item-qty {
    font-weight: 600; font-size: 0.9rem; color: #374151;
    text-align: center;
}
.pk-od-item-total {
    font-weight: 700; font-size: 1rem; color: #B91C1C;
    text-align: right; white-space: nowrap;
}
.pk-od-item-discount { font-size: 0.78rem; color: #059669; margin-top: 0.2rem; }
.pk-od-old-price { font-size: 0.8rem; color: #9CA3AF; text-decoration: line-through; }

.pk-od-totals-wrap {
    display: flex; justify-content: flex-end;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid #E5E7EB;
}
.pk-od-totals { min-width: 280px; }
.pk-od-totals-row {
    display: flex; justify-content: space-between;
    font-size: 0.85rem; color: #374151; padding: 0.35rem 0;
}
.pk-od-totals-row.grand {
    font-size: 1.05rem; font-weight: 700; color: #111827;
    border-top: 2px solid #E5E7EB; margin-top: 0.5rem; padding-top: 0.75rem;
}
.pk-od-totals-row.grand span:last-child { color: #B91C1C; font-size: 1.2rem; }

.pk-od-reorder-wrap {
    padding: 0 1.5rem 1.25rem;
    display: flex; justify-content: flex-end; gap: 0.75rem;
}

.pk-od-section {
    background: #fff; border: 1px solid #E5E7EB;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 1.25rem;
}
.pk-od-section-header {
    padding: 1rem 1.5rem; border-bottom: 1px solid #E5E7EB;
    font-size: 0.85rem; font-weight: 700; color: #111827;
    display: flex; align-items: center; gap: 0.5rem;
}
.pk-od-section-header i { color: #B91C1C; }
.pk-od-shipment-item {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 1fr auto;
    gap: 1rem; align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #F3F4F6;
    font-size: 0.85rem;
}
.pk-od-shipment-item:last-child { border-bottom: none; }
.pk-od-shipment-label { font-size: 0.75rem; color: #6B7280; margin-bottom: 0.2rem; }
.pk-od-shipment-val { font-weight: 500; color: #111827; }
.pk-od-tracking-link { color: #B91C1C; text-decoration: none; font-weight: 600; }
.pk-od-tracking-link:hover { text-decoration: underline; }

.pk-od-note-item {
    display: grid; grid-template-columns: 160px 1fr;
    gap: 1rem; padding: 0.85rem 1.5rem;
    border-bottom: 1px solid #F3F4F6; font-size: 0.85rem;
}
.pk-od-note-item:last-child { border-bottom: none; }
.pk-od-note-date { color: #6B7280; font-size: 0.8rem; }

@media (max-width: 900px) {
    .pk-od-info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .pk-od-info-grid { grid-template-columns: 1fr; }
    .pk-od-title { font-size: 1.2rem; }
    .pk-od-table thead { display: none; }
    .pk-od-table tbody tr { display: block; padding: 1rem; }
    .pk-od-table tbody td { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0; }
    .pk-od-table tbody td::before { content: attr(data-label); font-size: 0.75rem; color: #6B7280; font-weight: 500; }
    .pk-od-item-total { text-align: left; }
    .pk-od-totals-wrap { padding: 1rem; }
    .pk-od-totals { min-width: 0; width: 100%; }
    .pk-od-reorder-wrap { padding: 0 1rem 1rem; flex-wrap: wrap; }
    .pk-od-shipment-item { grid-template-columns: 1fr 1fr; }
    .pk-od-note-item { grid-template-columns: 1fr; }
}
