/* ========================================
   ORDER MODAL STYLES - Aligned with Site Design
   ======================================== */

.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 50000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.order-modal.active {
    display: flex;
}

.order-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.order-modal__content {
    position: relative;
    background: #FFFFFF;
    border-radius: 16px;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    min-height: 200px;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

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

.order-modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.order-modal__close:hover {
    color: #4A4D50;
}

/* Progress Bar */
.order-progress {
    margin-bottom: 2.5rem;
}

.progress-bar {
    height: 3px;
    background: #E8E8E8;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4A4D50, #1a1a1a);
    width: 20%;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.progress-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F9F9F9;
    border: 2px solid #E8E8E8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #999;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #4A4D50;
    color: white;
    border-color: #4A4D50;
}

.progress-step.completed {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Step Styles */
.order-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.order-step.active {
    display: block;
}

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

.order-step h2 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Poppins', sans-serif;
}

.order-step h2 i {
    color: #4A4D50;
}

/* Form Styles */
.order-form {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

.form-group input {
    padding: 0.875rem;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background: #F9F9F9;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #4A4D50;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 77, 80, 0.1);
}

/* Delivery & Payment Options */
.delivery-options,
.payment-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.delivery-option,
.payment-option {
    display: flex;
    align-items: flex-start;
    padding: 1.2rem;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FFFFFF;
    box-sizing: border-box;
}

.delivery-option:hover,
.payment-option:hover {
    border-color: #4A4D50;
    background: white;
}

.delivery-option input,
.payment-option input {
    margin-right: 1rem;
    margin-top: 0.25rem;
    cursor: pointer;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #4A4D50;
}

.option-content {
    flex: 1;
}

.option-content h3 {
    color: #1a1a1a;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.option-content h3 i {
    color: #4A4D50;
}

.option-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Cart Items */
.order-cart-items {
    background: #F9F9F9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #4A4D50;
}

.order-cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.order-cart-item-info {
    flex: 1;
}

.order-cart-item-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    font-family: 'Poppins', sans-serif;
}

.order-cart-item-price {
    color: #4A4D50;
    font-weight: 600;
    font-size: 0.95rem;
}

.order-cart-item-qty {
    color: #666;
    font-size: 0.9rem;
}

/* Total */
.order-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 2px solid #E8E8E8;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
}

.total-price {
    color: #4A4D50;
    font-weight: 700;
}

/* Summary */
.order-summary {
    background: #F9F9F9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-section {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #4A4D50;
}

.summary-section h3 {
    color: #4A4D50;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.summary-section p {
    color: #333;
    line-height: 1.6;
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border-top: 3px solid #4A4D50;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
}

.summary-total span:last-child {
    color: #4A4D50;
}

/* Buttons */
.order-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #E8E8E8;
}

.btn-secondary,
.btn-primary,
.btn-success {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.btn-secondary {
    background: #E8E8E8;
    color: #4A4D50;
}

.btn-secondary:hover:not(:disabled) {
    background: #D0D0D0;
}

.btn-primary {
    background: #4A4D50;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #1a1a1a;
}

.btn-success {
    background: #4A4D50;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #1a1a1a;
}

.btn-secondary:disabled,
.btn-primary:disabled,
.btn-success:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .order-modal__content {
        width: 95%;
        max-height: 90vh;
        padding: 1.5rem;
        border-radius: 12px;
    }

    .progress-labels {
        font-size: 0.65rem;
    }

    .progress-step {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .order-step h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .order-buttons {
        flex-direction: column;
    }

    .btn-secondary,
    .btn-primary,
    .btn-success {
        width: 100%;
    }
    
    .form-group input,
    .form-group label {
        font-size: 16px;
    }
    
    .delivery-option,
    .payment-option {
        padding: 0.75rem;
    }
    
    .option-content h3 {
        font-size: 0.95rem;
    }
    
    .option-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .order-modal__content {
        width: 98%;
        padding: 1rem;
        max-height: 95vh;
    }
    
    .progress-bar {
        height: 2px;
        margin-bottom: 1rem;
    }
    
    .order-progress {
        margin-bottom: 1.5rem;
    }
    
    .progress-labels {
        font-size: 0.6rem;
        gap: 0.25rem;
    }
}
