/* =============================================
   CHECKOUT PAGE STYLES
   ============================================= */

.checkout-section {
    padding: 60px 0;
    background: #fafafa;
}

.checkout-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #0a0a0a;
}

/* Checkout Grid */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Billing Form */
.checkout-form {
    background: #ffffff;
    padding: 40px;
    border: 2px solid #e5e5e5;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #0a0a0a;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    border: 2px solid #e5e5e5;
    background: #ffffff;
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00b96b;
}

.form-group textarea {
    resize: vertical;
}

/* Payment Section */
.payment-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e5e5;
}

.payment-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #0a0a0a;
}

.payment-method {
    padding: 20px;
    border: 2px solid #e5e5e5;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
}

.payment-method:hover:not(.disabled) {
    border-color: #00b96b;
}

.payment-method input[type="radio"] {
    margin-right: 12px;
    width: auto;
}

.payment-method label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.payment-method label i {
    font-size: 1.25rem;
    color: #00b96b;
}

.payment-method.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9f9f9;
}

.payment-method.disabled label {
    cursor: not-allowed;
}

.coming-soon {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 4px 10px;
    background: #ffeaa7;
    color: #333;
    font-weight: 500;
}

.payment-description {
    margin: 10px 0 0 35px;
    font-size: 0.8rem;
    color: #666;
}

/* Order Summary */
.order-summary {
    background: #ffffff;
    padding: 30px;
    border: 2px solid #e5e5e5;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #0a0a0a;
}

.summary-items {
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 20px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #e5e5e5;
}

.summary-item-details {
    flex: 1;
}

.summary-item-details h4 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.summary-item-details .quantity {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
}

.summary-item-price {
    font-weight: 600;
    color: #0a0a0a;
}

/* Summary Totals */
.summary-totals {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #333;
}

.summary-row.total-row {
    padding-top: 15px;
    border-top: 2px solid #e5e5e5;
    margin-top: 15px;
    font-size: 1.1rem;
    color: #0a0a0a;
}

.select-city-text {
    color: #999;
    font-style: italic;
}

.free-shipping {
    color: #00b96b;
    font-weight: 600;
}

/* Place Order Button */
.btn-place-order {
    width: 100%;
    padding: 16px;
    background: #00b96b;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-place-order:hover {
    background: #009959;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 185, 107, 0.3);
}

.btn-place-order:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #666;
}

.secure-checkout i {
    color: #00b96b;
}

/* Responsive Design */
@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .checkout-section {
        padding: 40px 0;
    }
    
    .checkout-form,
    .order-summary {
        padding: 25px;
    }
    
    .checkout-section .section-title {
        font-size: 1.5rem;
    }
    
    .form-title,
    .summary-title {
        font-size: 1.25rem;
    }
}
