/* ============================================================
   CHECKOUT PAGE STYLES
   ============================================================ */

.checkout-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 80px;
    padding: 40px 0 100px;
}

/* --- Checkout Forms --- */
.checkout-steps {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.checkout-step {
    border-bottom: 1px solid var(--light-grey);
    padding-bottom: 40px;
}

.checkout-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.step-title {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 400;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Payment Options */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.payment-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid var(--light-grey);
    cursor: pointer;
    transition: var(--transition-fast);
}

.payment-method:hover,
.payment-method.active {
    border-color: var(--black);
}

.payment-method.active {
    background: var(--off-white);
}

.pm-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pm-radio {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--light-grey);
    border-radius: 50%;
    position: relative;
}

.payment-method.active .pm-radio {
    border-color: var(--black);
}

.payment-method.active .pm-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--black);
    border-radius: 50%;
}

.pm-name {
    font-size: 14px;
    font-weight: 700;
}

.pm-icons {
    display: flex;
    gap: 8px;
}

.pm-icons span {
    font-size: 11px;
    font-weight: 700;
    color: var(--grey);
    border: 1px solid var(--light-grey);
    padding: 2px 6px;
    background: var(--white);
}

/* Order Summary */
.checkout-summary {
    background: var(--off-white);
    padding: 40px;
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

.checkout-summary h3 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 32px;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--light-grey);
}

.summary-item {
    display: flex;
    gap: 16px;
}

.si-img {
    width: 64px;
    height: 85px;
    background: var(--white);
    position: relative;
}

.si-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.si-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--grey);
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.si-details {
    flex: 1;
}

.si-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.si-meta {
    font-size: 12px;
    color: var(--grey);
    margin-bottom: 8px;
}

.si-price {
    font-size: 13px;
    font-weight: 700;
}

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

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-row .form-group {
        margin-bottom: 20px;
    }
    .checkout-summary {
        padding: 24px;
    }
}
