.checkout-page {
    min-height: 100vh;
    padding: 70px 24px 100px;
    background: #f7f5f1;
    color: #171717;
}

.checkout-container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
    gap: 70px;
    align-items: start;
}

.checkout-form-column {
    padding: 52px;
    background: #ffffff;
    border: 1px solid #e5e0d8;
}

.checkout-heading {
    margin-bottom: 48px;
}

.checkout-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #9a7448;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.checkout-heading h1 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.checkout-heading p {
    margin: 0;
    color: #77716a;
    font-size: 15px;
    line-height: 1.7;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.checkout-section {
    padding-bottom: 42px;
    border-bottom: 1px solid #e8e3dc;
}

.checkout-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.checkout-step {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #b89668;
    border-radius: 50%;
    color: #8a673e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.checkout-section-header h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    color: #302d29;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 56px;
    padding: 0 17px;
    border: 1px solid #dcd6cd;
    border-radius: 0;
    outline: none;
    background: #ffffff;
    color: #191919;
    font: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input::placeholder {
    color: #aaa49d;
}

.form-group input:hover,
.form-group select:hover {
    border-color: #b9ac9c;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #987044;
    box-shadow: 0 0 0 3px rgba(152, 112, 68, 0.1);
    background: #fffdfa;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.payment-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.payment-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-card-content {
    min-height: 84px;
    padding: 18px 20px;
    border: 1px solid #dcd6cd;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.payment-card:hover .payment-card-content {
    border-color: #a88457;
    transform: translateY(-2px);
}

.payment-card input:checked + .payment-card-content {
    border-color: #987044;
    box-shadow: inset 0 0 0 1px #987044;
    background: #fbf7f1;
}

.payment-card-title {
    color: #1c1c1c;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.payment-badge {
    padding: 7px 10px;
    border: 1px solid #c8b69c;
    background: #ffffff;
    color: #84633d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.place-order-btn {
    width: 100%;
    min-height: 62px;
    padding: 18px 28px;
    border: 1px solid #171717;
    background: #171717;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease;
}

.place-order-btn:hover {
    background: #a47b49;
    border-color: #a47b49;
    transform: translateY(-2px);
}

.checkout-security {
    margin-top: -22px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    color: #817b73;
    font-size: 12px;
}

.checkout-security i {
    color: #987044;
}

.order-summary {
    position: sticky;
    top: 120px;
}

.order-summary-inner {
    padding: 38px;
    border: 1px solid #ddd7cf;
    background: #ede8e0;
}

.order-summary h2 {
    margin: 0 0 30px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
}

.checkout-products {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout-product {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 17px;
    align-items: center;
}

.checkout-product-image {
    position: relative;
    width: 82px;
    height: 96px;
    background: #ffffff;
    border: 1px solid #ded8cf;
}

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

.checkout-product-quantity {
    position: absolute;
    top: -9px;
    right: -9px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #171717;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.checkout-product-info h3 {
    margin: 0 0 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.checkout-product-info p {
    margin: 0;
    color: #8a847d;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.checkout-product-price {
    color: #25221f;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.summary-divider {
    height: 1px;
    margin: 30px 0;
    background: #d4ccc1;
}

.summary-line {
    margin-bottom: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #676159;
    font-size: 14px;
}

.summary-line strong {
    color: #24211e;
    font-weight: 600;
}

.summary-total {
    margin-top: 24px;
    margin-bottom: 0;
    padding-top: 25px;
    border-top: 1px solid #d4ccc1;
    color: #171717;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.summary-total strong {
    font-size: 25px;
    font-weight: 400;
}

.checkout-empty {
    padding: 36px 0 10px;
    text-align: center;
}

.checkout-empty p {
    margin: 0 0 22px;
    color: #6f6962;
}

.checkout-empty a {
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 1px solid #171717;
    color: #171717;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

@media (max-width: 1050px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .order-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 700px) {
    .checkout-page {
        padding: 30px 14px 70px;
    }

    .checkout-form-column,
    .order-summary-inner {
        padding: 25px 19px;
    }

    .checkout-heading {
        margin-bottom: 36px;
    }

    .checkout-heading h1 {
        font-size: 38px;
    }

    .checkout-section-header {
        align-items: flex-start;
    }

    .checkout-section-header h2 {
        padding-top: 5px;
        font-size: 22px;
    }

    .form-grid,
    .payment-options {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: auto;
    }

    .checkout-product {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .checkout-product-image {
        width: 70px;
        height: 84px;
    }

    .checkout-product-price {
        grid-column: 2;
    }
}
@media (max-width:700px){

    .cart-info h3{
        font-size:20px;
        line-height:1.3;
    }

    .cart-price{
        font-size:18px;
    }

    .cart-quantity{
        gap:10px;
    }

    .cart-quantity button{
        width:34px;
        height:34px;
    }

}
