/* Checkout Page Styles */

.checkout-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step.active .step-number {
    background: #274433;
    color: white;
}

.step-label {
    font-weight: 500;
    color: #333;
}

.checkout-content {
    flex: 1;
}

.checkout-step {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkout-step.hidden {
    display: none;
}

.checkout-step h2 {
    color: #274433;
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
}

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

.shipping-options,
.payment-methods {
    margin: 20px 0;
}

.shipping-option,
.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.shipping-option:hover,
.payment-option:hover {
    border-color: #274433;
    background: #f9f9f9;
}

.shipping-option input[type="radio"],
.payment-option input[type="radio"] {
    width: auto;
}

.shipping-option div {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shipping-price {
    color: #274433;
    font-weight: 600;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: 'DM Sans', sans-serif;
}

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

.btn-primary:hover {
    background: #1e3326;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.order-summary-sidebar {
    width: 400px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

.order-summary-sidebar h3 {
    color: #274433;
    margin-bottom: 20px;
}

.summary-items {
    margin-bottom: 20px;
}

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

.summary-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

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

.summary-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.summary-item-qty {
    font-size: 14px;
    color: #666;
}

.summary-item-price {
    font-weight: 600;
    color: #274433;
}

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

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #274433;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

@media (max-width: 1024px) {
    .checkout-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }

    .order-summary-sidebar {
        width: 100%;
        position: static;
        padding: 20px;
    }

    .checkout-content {
        padding: 20px;
    }

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

    .shipping-option div, .payment-option div {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .summary-item img {
        max-width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
}