.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 60px;
    align-items: start;
}

.checkout-form {
    max-width: 600px;
}

.checkout-header h1 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 30px;
}

.checkout-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.checkout-section h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
}

.sign-in-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.sign-in-link:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

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

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.address-search {
    position: relative;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-help {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.form-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.form-checkbox label {
    font-size: 14px;
    color: #666;
}

.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.delivery-option {
    border: 2px solid #d1d1d1;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-option.selected {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.delivery-option input[type="radio"] {
    display: none;
}

.delivery-option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.delivery-icon {
    color: #666;
}

.shipping-form {
    margin-top: 20px;
}

.section-note {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    padding: 14px;
    display: flex;
    align-items: center;
}

.payment-option input[type="radio"] {
    margin-right: 10px;
}

.payment-option label {
    font-size: 14px;
    cursor: pointer;
}

.checkout-footer {
    margin-top: 30px;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-checkout:hover {
    background-color: #0056b3;
}

/* Order Summary */
.order-summary {
    background-color: #fafafa;
    padding: 30px;
    border-radius: 8px;
    position: sticky;
    top: 20px;
}

.order-summary h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

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

.order-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.item-image {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: visible;
    border: 1px solid #e5e5e5;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.item-quantity {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #000;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.item-details h3 {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 0px;
}

.item-variant {
    font-size: 10px;
    color: #666;
    margin: 0;
}

.item-price {
    font-size: 14px;
    font-weight: 500;
}

.discount-code {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.discount-code .form-input {
    flex: 1;
}

.btn-apply {
    padding: 12px 20px;
    background-color: #f0f0f0;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-apply:hover {
    background-color: #e5e5e5;
}

.order-totals {
    border-top: 1px solid #e5e5e5;
    padding-top: 20px;
}

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

.total-row span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.shipping-note {
    color: #999;
    font-size: 13px;
}

.total-final {
    font-size: 18px;
    font-weight: 500;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.total-final small {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.tax-note {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 8px;
}

.info-icon {
    color: #999;
}

/* Responsive */
@media (max-width: 992px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .delivery-options {
        grid-template-columns: 1fr;
    }
}
