/* Order Page - Using Shared Styles */
/* Uses shared CSS: .hero-title, .feature-title, .feature-desc, .cta-button */

.order-page {
    padding: 80px 0 40px 0;
    background: white;
}

.order-page .section-title {
    margin-bottom: 1.5rem;
}

.order-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

/* Left Side - Product Selection & Cart */
.order-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.add-product-section {
    background: white;
    padding: 15px;
    border: 1px solid #E5E5E5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-dropdown {
    padding: 12px;
    border: 1px solid #E5E5E5;
    border-radius: 0;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    width: 100%;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    gap: 12px;
    background: white;
    padding: 12px;
    border: 1px solid #E5E5E5;
    position: relative;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-details h4 {
    margin: 0;
}

.item-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 1.2rem;
    font-weight: 600;
    color: #F88C44;
}

.price-original {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    border: 1px solid #E5E5E5;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.quantity-controls button:hover {
    background: #F88C44;
    color: white;
}

.quantity-controls span {
    font-weight: 600;
    margin: 0 5px;
}

.item-info {
    margin-top: 10px;
}

.item-info p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-icon {
    font-size: 14px;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    font-size: 20px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.remove-btn:hover {
    color: #ff4757;
}

/* Right Side - Order Summary */
.order-right {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.order-summary {
    background: white;
    padding: 20px;
    border: 1px solid #E5E5E5;
}

/* Order Summary title removed to save space */

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 8px 0;
}

.summary-row span:first-child {
    font-weight: 400;
    color: #666;
}

.summary-row span:last-child {
    font-weight: 600;
    color: #2B2B2B;
}

.total-row {
    border-top: 2px solid #E5E5E5;
    margin-top: 15px;
    padding-top: 15px;
    font-weight: 700;
    color: #2B2B2B;
}

.free-text {
    color: #2ECC40;
    font-weight: 600;
}

/* Customer Information Form */
.customer-info {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #E5E5E5;
    border-bottom: 1px solid #E5E5E5;
}

/* Customer Details title removed to save space */

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2B2B2B;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E5E5E5;
    border-radius: 0;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F88C44;
}

.discount-row {
    display: flex;
    gap: 10px;
}

.discount-row input {
    flex: 1;
}

.apply-btn {
    background: #F88C44;
    color: white;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.checkout-btn {
    width: 100%;
    margin-top: 15px;
    padding: 15px 40px;
    font-size: 1rem;
}

/* Message for discount code */
.discount-message {
    color: #2ECC40;
    font-size: 0.85rem;
    margin-top: 8px;
    display: none;
}

.discount-message.error {
    color: #ff4757;
}

.discount-message.show {
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .order-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .order-right {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
    }
    
    .cart-item img {
        width: 80px;
        height: 80px;
    }
    
    .remove-btn {
        position: static;
        margin-top: 15px;
        align-self: center;
    }
    
    .discount-row {
        flex-direction: column;
    }
    
    .order-summary {
        padding: 25px;
    }
    
    .add-product-section {
        padding: 20px;
    }
}