/* Sipariş sayfaları (onay, takip, hesabım) -------------------------------- */

.order-section {
    padding: 4rem 0 6rem;
    background: #fff;
}

.order-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Uyarılar (checkout ile aynı görünüm) */
.checkout-alert {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 0.95rem 1.15rem;
    border-radius: 3px;
    margin-bottom: 1.5rem;
}

.checkout-alert-error {
    background: #fdf3f2;
    color: #8f2018;
    border: 1px solid #f3d4d1;
}

.checkout-alert-success {
    background: #f0faf3;
    color: #0f5c31;
    border: 1px solid #cce9d6;
}

.checkout-alert ul {
    margin: 0.4rem 0 0 1.1rem;
    padding: 0;
}

.btn-outline-sm {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    padding: 0.7rem 1.4rem;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline-sm:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Başarı kutusu */
.order-success-box {
    text-align: center;
    border: 1px solid #d9ebdf;
    background: #f6faf7;
    border-radius: 4px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
}

.order-success-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: #1f7a4d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-success-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 0.6rem;
}

.order-success-box p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.75;
    margin: 0;
    max-width: 640px;
    margin-inline: auto;
}

.order-success-box a {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Havale bilgileri */
.order-bank-box {
    border: 1px solid #ece4d4;
    background: #fbf9f4;
    border-radius: 4px;
    padding: 1.75rem 1.9rem;
    margin-bottom: 2rem;
}

.order-bank-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 1rem;
}

.order-bank-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.order-bank-box li {
    display: flex;
    gap: 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.86rem;
}

.order-bank-box li span {
    color: #8a7c5e;
    min-width: 110px;
}

.order-bank-box li strong {
    color: #1a1a1a;
    font-weight: 500;
    word-break: break-all;
}

.order-bank-note {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    color: #8a7c5e;
    line-height: 1.6;
    margin: 1rem 0 0;
}

/* Sipariş detayı */
.order-detail {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.order-detail-head {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    padding: 1.4rem 1.75rem;
}

.order-detail-head > div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.order-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
}

.order-detail-head strong {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
}

.order-number {
    letter-spacing: 0.04em;
}

.order-badge {
    display: inline-block;
    align-self: flex-start;
    font-family: 'Poppins', sans-serif;
    font-size: 0.74rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #eee;
    color: #555;
}

.order-badge-pending { background: #fdf6e3; color: #8a6d1f; }
.order-badge-confirmed { background: #eef4fd; color: #2c5c9c; }
.order-badge-preparing { background: #eef4fd; color: #2c5c9c; }
.order-badge-shipped { background: #eef7f0; color: #1f7a4d; }
.order-badge-delivered { background: #1f7a4d; color: #fff; }
.order-badge-cancelled { background: #fdf3f2; color: #8f2018; }

.order-badge-pay-pending { background: #fdf6e3; color: #8a6d1f; }
.order-badge-pay-paid { background: #eef7f0; color: #1f7a4d; }
.order-badge-pay-failed { background: #fdf3f2; color: #8f2018; }
.order-badge-pay-refunded { background: #f0f0f0; color: #666; }

.order-tracking {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #1a1a1a;
    background: #f6faf7;
    border-bottom: 1px solid #eee;
    padding: 0.95rem 1.75rem;
}

.order-items {
    padding: 0.5rem 1.75rem;
}

.order-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 1.1rem;
    align-items: center;
    padding: 1.1rem 0;
    border-bottom: 1px solid #f2f2f2;
}

.order-item:last-child {
    border-bottom: 0;
}

.order-item-img {
    display: block;
    width: 64px;
    height: 76px;
    border: 1px solid #eee;
    border-radius: 3px;
    overflow: hidden;
    background: #fafafa;
}

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

.order-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    min-width: 0;
}

.order-item-info a,
.order-item-info strong {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
}

.order-item-info a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.order-item-info small {
    font-family: 'Poppins', sans-serif;
    font-size: 0.76rem;
    color: #999;
}

.order-item-total {
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    color: #1a1a1a;
    white-space: nowrap;
}

.order-totals {
    border-top: 1px solid #eee;
    padding: 1.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #fafafa;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    color: #555;
}

.order-total-grand {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    border-top: 1px solid #e5e5e5;
    padding-top: 0.7rem;
    margin-top: 0.3rem;
}

.order-addresses {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    padding: 1.75rem;
    border-top: 1px solid #eee;
}

.order-address h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    font-weight: 500;
    margin: 0 0 0.6rem;
}

.order-address-sub {
    margin-top: 1.1rem !important;
}

.order-address p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.84rem;
    color: #444;
    line-height: 1.75;
    margin: 0;
}

.order-address strong {
    color: #1a1a1a;
    font-weight: 500;
}

.order-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Takip formu */
.order-track-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 1.75rem;
    margin-bottom: 2.5rem;
}

.order-track-field {
    display: flex;
    flex-direction: column;
}

.order-track-field label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.45rem;
}

.order-track-field input {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 0.75rem 0.9rem;
}

.order-track-field input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.btn-track {
    font-family: 'Poppins', sans-serif;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    height: fit-content;
}

.btn-track:hover {
    background: #333;
}

/* Sipariş listesi (hesabım) */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 1.4rem 1.6rem;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
    border-color: #1a1a1a;
}

.order-card-main {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.order-card-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.order-card-number {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a1a;
}

.order-card-meta {
    font-family: 'Poppins', sans-serif;
    font-size: 0.79rem;
    color: #999;
}

.order-card-side {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-end;
}

.order-card-total {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.order-card-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    color: #777;
}

.order-empty {
    text-align: center;
    padding: 3.5rem 1rem 4rem;
}

.order-empty h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 0.7rem;
}

.order-empty p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    color: #777;
    margin: 0 0 1.75rem;
}

/* Responsive */
@media (max-width: 900px) {
    .order-container {
        padding: 0 1.5rem;
    }
    .order-detail-head {
        grid-template-columns: repeat(2, 1fr);
    }
    .order-addresses {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
    .order-track-form {
        grid-template-columns: 1fr;
    }
    .btn-track {
        width: 100%;
    }
    .order-card {
        grid-template-columns: 1fr;
    }
    .order-card-side {
        align-items: flex-start;
        text-align: left;
    }
}

/* Sayfalama (products.css ile aynı görünüm) -------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-top: 3rem;
}

.page-btn {
    font-family: 'Poppins', sans-serif;
    padding: 0.5rem 0.9rem;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
}

.page-btn:hover:not(:disabled) {
    color: #1a1a1a;
}

.page-btn.active {
    background: #1a1a1a;
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-prev,
.page-next {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}
