@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700&display=swap');

:root {
    --green: #a955d3;
    --dark-color: #591661;
    --black: #130f14;
    --light-color: #5f5266;
    --border: .1rem solid rgba(0, 0, 0, .08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 20%, #f8f1ff 100%);
    color: var(--black);
}

a {
    text-decoration: none;
}

.checkout-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .95);
    border-bottom: var(--border);
    backdrop-filter: blur(10px);
}

.checkout-header__inner {
    width: min(1120px, 92vw);
    margin: 0 auto;
    padding: 1rem 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.checkout-header__left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.icon-link,
.icon-link2 {
    color: #2e2633;
    font-size: 2.4rem;
    line-height: 1;
}

.icon-link:hover,
.icon-link2:hover {
    color: var(--dark-color);
}

.icon-link {
    font-size: 2.6rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-self: center;
    color: var(--black);
    font-weight: 700;
    font-size: 2rem;
}

.logo img {
    width: 56px;
    height: auto;
    margin-right: .5rem;
}

.home-pill {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .8rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(169, 85, 211, .12), rgba(89, 22, 97, .18));
    border: 1px solid rgba(169, 85, 211, .18);
    box-shadow: 0 .7rem 1.4rem rgba(89, 22, 97, .1);
    color: var(--dark-color);
    font-size: .95rem;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.home-pill i {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--dark-color));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
}

.home-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 .95rem 1.8rem rgba(89, 22, 97, .14);
}

.checkout-hero {
    padding: 1.4rem 1.2rem .7rem;
}

.checkout-hero__content {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 1.15rem 1.5rem;
    text-align: center;
    border-radius: 2rem;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(169, 85, 211, .16);
    box-shadow: 0 1rem 2.4rem rgba(89, 22, 97, .08);
}

.checkout-hero__eyebrow,
.section-heading__eyebrow {
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .16rem;
    text-transform: uppercase;
    color: #ae5dd6;
    margin-bottom: .55rem;
}

.checkout-hero__content .checkout-hero__eyebrow {
    color: #ae5dd6 !important;
}

.checkout-hero__content h1,
.section-heading h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.2;
}

.checkout-hero__content h1 {
    color: var(--green);
}

.checkout-hero__content p:last-child {
    margin-top: .45rem;
    color: var(--light-color);
    font-size: 1rem;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
    padding: .2rem 0 3rem;
}

.checkoutLayout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 1.5rem;
    align-items: start;
}

.returnCart,
.checkoutLayout .right {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 1.2rem 2.4rem rgba(89, 22, 97, .1);
}

.returnCart {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(169, 85, 211, .12);
    padding: 1.6rem;
}

.checkoutLayout .right {
    background: linear-gradient(180deg, #faf5ff 0%, #f0dcff 100%);
    border: 1px solid rgba(169, 85, 211, .14);
    padding: 1.8rem;
    color: var(--black);
}

.section-heading {
    margin-bottom: 1rem;
}

.section-heading h1 {
    font-size: 2rem;
}

.section-heading--light h1 {
    font-size: 2.1rem;
}

.summary-note {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1rem;
    border-radius: 999px;
    background: rgba(169, 85, 211, .08);
    color: #51385d;
    font-size: .92rem;
    margin-bottom: 1.2rem;
}

.summary-note i {
    color: var(--green);
}

.returnCart .list {
    display: grid;
    gap: .95rem;
}

.returnCart .list .item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 72px 110px;
    align-items: center;
    gap: 1rem;
    padding: .95rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 240, 255, .94));
    border: 1px solid rgba(169, 85, 211, .1);
    box-shadow: 0 .8rem 1.6rem rgba(89, 22, 97, .07);
}

.returnCart .list .item img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid rgba(89, 22, 97, .1);
}

.returnCart .list .item .info {
    min-width: 0;
}

.returnCart .list .item .name,
.returnCart .list .item .returnPrice {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
}

.returnCart .list .item .name {
    text-transform: none;
    line-height: 1.35;
    margin-bottom: .3rem;
}

.returnCart .list .item .price {
    color: var(--light-color);
    font-size: .9rem;
    text-transform: none;
}

.returnCart .list .item .quantity {
    justify-self: center;
    min-width: 3.2rem;
    padding: .45rem .7rem;
    border-radius: .9rem;
    background: rgba(169, 85, 211, .12);
    text-align: center;
    font-weight: 700;
    color: #4d3956;
}

.returnCart .list .item .returnPrice {
    justify-self: end;
}

.empty-cart {
    padding: 1.6rem;
    border-radius: 1.4rem;
    text-align: center;
    background: rgba(169, 85, 211, .06);
    color: var(--light-color);
}

.checkoutLayout .right .form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 0 0 1.35rem;
    margin-bottom: 1.35rem;
    border-bottom: 1px solid rgba(89, 22, 97, .12);
}

.checkoutLayout .form .group:nth-child(-n+3) {
    grid-column: 1 / -1;
}

.checkoutLayout .form .group {
    display: flex;
    flex-direction: column;
}

.checkoutLayout .form label {
    font-size: .92rem;
    font-weight: 600;
    color: #3e2e49;
}

.checkoutLayout .form input,
.checkoutLayout .form select {
    width: 100%;
    padding: .95rem 1rem;
    border-radius: 1rem;
    margin-top: .5rem;
    border: 1px solid rgba(169, 85, 211, .16);
    background: rgba(255, 255, 255, .84);
    color: var(--black);
    outline: none;
}

.checkoutLayout .form input::placeholder {
    color: #8b7e92;
}

.checkoutLayout .form input:focus,
.checkoutLayout .form select:focus {
    border-color: rgba(89, 22, 97, .38);
    box-shadow: 0 0 0 .25rem rgba(169, 85, 211, .12);
}

.checkoutLayout .right .return {
    display: grid;
    gap: .8rem;
}

.checkoutLayout .right .return .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .9rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .72);
    color: #422f4b;
}

.checkoutLayout .right .return .row div:first-child {
    font-size: .95rem;
}

.checkoutLayout .right .return .row div:nth-child(2) {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark-color);
}

.buttonCheckout {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green), var(--dark-color));
    margin-top: 1.4rem;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 .9rem 1.8rem rgba(89, 22, 97, .2);
}

.buttonCheckout:hover {
    transform: translateY(-2px);
    box-shadow: 0 1.1rem 2.2rem rgba(89, 22, 97, .24);
}

@media only screen and (max-width: 920px) {
    .checkoutLayout {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 640px) {
    .checkout-header__inner {
        padding: .9rem 0;
        grid-template-columns: auto 1fr;
    }

    .logo {
        font-size: 1.7rem;
    }

    .logo img {
        width: 46px;
    }

    .home-pill {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .checkout-hero__content,
    .returnCart,
    .checkoutLayout .right {
        padding: 1.25rem;
    }

    .checkoutLayout .right .form {
        grid-template-columns: 1fr;
    }

    .checkoutLayout .form .group:nth-child(-n+3) {
        grid-column: auto;
    }

    .returnCart .list .item {
        grid-template-columns: 72px 1fr;
    }

    .returnCart .list .item .quantity {
        justify-self: start;
    }

    .returnCart .list .item .returnPrice {
        justify-self: start;
    }
}
