/* Order Modal Styles */
.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.order-modal {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.order-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: var(--transition-base);
}

.modal-close:hover {
    background: var(--bg-light);
    color: #111827;
}

.order-modal-body {
    padding: 1.5rem;
}

.order-product-summary {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
}

.product-summary-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--bg-white);
    flex-shrink: 0;
}

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

.product-summary-info {
    flex: 1;
}

.product-summary-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.product-summary-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.product-summary-stock {
    font-size: 0.875rem;
    font-weight: 500;
}

.product-summary-stock.in-stock {
    color: #059669;
}

.product-summary-stock.out-of-stock {
    color: #dc2626;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.order-summary {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    margin-top: 0.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: #374151;
}

.summary-row.total {
    border-top: 2px solid var(--border-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.summary-row.total span:last-child {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .order-modal {
        max-height: 95vh;
    }

    .order-product-summary {
        flex-direction: column;
    }

    .product-summary-image {
        width: 100%;
        height: 200px;
    }
}
