.order-detail-section {
    padding: 3rem 0;
    background: #f8f9fa;
    min-height: 70vh;
}

.order-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 0.75rem;
}

.order-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.order-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.order-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-weight: 600;
    color: #212529;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-canceled {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.status-refunded {
    background: #d1ecf1;
    color: #0c5460;
}

.order-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.order-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: center;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.item-price-section {
    text-align: right;
}

.item-unit-price {
    font-size: 0.875rem;
    color: #6c757d;
}

.item-total-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #6c757d;
    font-weight: 500;
}

.info-value {
    color: #212529;
    font-weight: 600;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.summary-total {
    border-top: 2px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.summary-total .info-value {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.btn-repeat-order {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.btn-repeat-order:hover {
    background: #4a9428;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 172, 50, 0.3);
}

@media (max-width: 968px) {
    .order-content {
        grid-template-columns: 1fr;
    }
    
    .order-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .order-item {
        flex-direction: column;
        text-align: center;
    }
    
    .item-price-section {
        text-align: center;
    }
}