/* Order Details Styles */
.order-header {
    text-align: center;
    margin: 2rem 0;
}

.order-title {
    font-size: 2.5rem;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.order-number {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.order-status {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.status-badge.pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.processing {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-badge.shipped {
    background-color: #f3e8ff;
    color: #6b21a8;
}

.status-badge.delivered {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.order-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    padding: 0 1rem;
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.details-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.details-section h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item label {
    display: block;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.info-item p {
    color: #1e293b;
    font-size: 1rem;
}

.payment-method-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-method-name {
    font-weight: 600;
    color: #1e293b;
}

.payment-status {
    margin-top: 0.5rem;
}

.shipping-address p {
    color: #1e293b;
    line-height: 1.6;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
}

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

.item-details {
    flex: 1;
}

.item-details h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.item-quantity {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.item-price {
    font-weight: 600;
    color: var(--theme-color);
}

.order-summary {
    position: sticky;
    top: 2rem;
}

.summary-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.summary-section h2 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #64748b;
}

.summary-row.total {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.25rem;
}

.summary-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.order-date {
    color: #64748b;
    font-size: 0.875rem;
}

.back-to-store {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--theme-color);
    color: white;
    text-align: center;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.2s;
}

.back-to-store:hover {
    filter: brightness(110%);
}

@media (max-width: 768px) {
    .order-content {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

[dir="rtl"] .item-image {
    margin-right: 0;
    margin-left: 1rem;
}

[dir="rtl"] .info-item label {
    text-align: right;
}

[dir="rtl"] .shipping-address {
    text-align: right;
}