/* =============================================
   ORDER SUCCESS PAGE STYLES
   ============================================= */

.success-section {
    padding: 80px 0;
    background: #fafafa;
    min-height: calc(100vh - 400px);
}

.success-card {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 60px 40px;
    border: 2px solid #e5e5e5;
    text-align: center;
}

/* Success Icon */
.success-icon {
    margin-bottom: 30px;
}

.success-icon i {
    font-size: 5rem;
    color: #00b96b;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0a0a0a;
}

.order-number {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 25px;
    font-weight: 500;
}

.success-message {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Order Details */
.order-details {
    text-align: left;
    padding: 30px;
    background: #f9f9f9;
    border: 2px solid #e5e5e5;
    margin-bottom: 30px;
}

.order-details h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #0a0a0a;
    text-align: center;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.95rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row.total {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px solid #e5e5e5;
    font-size: 1.1rem;
    color: #0a0a0a;
}

.detail-row span {
    color: #666;
}

.detail-row strong {
    color: #0a0a0a;
    font-weight: 600;
}

/* Order Items */
.order-items {
    text-align: left;
    margin-bottom: 40px;
    padding: 30px;
    border: 2px solid #e5e5e5;
}

.order-items h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #0a0a0a;
    text-align: center;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border: 2px solid #e5e5e5;
    margin-bottom: 15px;
}

.item-row:last-child {
    margin-bottom: 0;
}

.item-row img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #e5e5e5;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-name {
    font-weight: 500;
    color: #0a0a0a;
}

.item-qty {
    font-size: 0.85rem;
    color: #666;
}

.item-price {
    font-weight: 600;
    color: #0a0a0a;
}

/* Success Actions */
.success-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #00b96b;
    color: #ffffff;
}

.btn-primary:hover {
    background: #009959;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 185, 107, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: #0a0a0a;
    border-color: #e5e5e5;
}

.btn-secondary:hover {
    border-color: #00b96b;
    color: #00b96b;
    transform: translateY(-2px);
}

/* Delivery Info */
.delivery-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #f0f9f5;
    border: 2px solid #c2e9d4;
    margin-top: 30px;
}

.delivery-info i {
    font-size: 1.5rem;
    color: #00b96b;
}

.delivery-info p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .success-card {
        padding: 40px 25px;
    }
    
    .success-card h1 {
        font-size: 1.5rem;
    }
    
    .order-number {
        font-size: 1rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .order-details,
    .order-items {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .success-section {
        padding: 40px 0;
    }
    
    .success-icon i {
        font-size: 3.5rem;
    }
    
    .item-row {
        flex-wrap: wrap;
    }
    
    .item-row img {
        width: 50px;
        height: 50px;
    }
}
