/* Checkout Page Styles */
.checkout-section {
    padding: 40px 0;
    min-height: 60vh;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.checkout-form-container {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
}

.checkout-form h2 {
    font-size: 24px;
    margin: 30px 0 20px;
    color: var(--dark-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.checkout-form h2:first-child {
    margin-top: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.payment-option input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-option input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: #f0f4ff;
}

.checkout-summary {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.checkout-summary h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.checkout-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.checkout-item-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.checkout-item-image .image-placeholder {
    min-height: 80px;
    border-radius: 5px;
}

.checkout-item-image .image-placeholder i {
    font-size: 24px;
}

.checkout-item-image .image-placeholder span {
    font-size: 10px;
}

.checkout-item-details {
    flex: 1;
}

.checkout-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.checkout-item-info {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.checkout-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.summary-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.summary-row.total {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    border-top: 2px solid var(--primary-color);
    margin-top: 10px;
    padding-top: 15px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: slideDown 0.3s;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--dark-color);
}

.success-icon {
    margin: 0 auto 20px;
    display: block;
}

.success-icon i {
    font-size: 80px;
    color: #28a745;
}

.error-icon {
    margin: 0 auto 20px;
    display: block;
}

.error-icon i {
    font-size: 80px;
    color: #dc3545;
}

.modal-content h2 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.8;
}

#orderNumber {
    color: var(--primary-color);
    font-size: 20px;
}

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

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary {
        position: static;
    }
}

