/* =====================================================
   SUNAN FASHION HOUSE
   CHECKOUT
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {

    --gold: #c9a227;
    --black: #111111;
    --cream: #f8f6f1;
    --white: #ffffff;
    --gray: #777777;
    --border: #dedede;

}


body {

    font-family: "Poppins", sans-serif;

    background: var(--cream);

    color: var(--black);

}


/* =====================================================
   HEADER
===================================================== */

.checkout-header {

    background: #111;

    color: white;

    padding: 18px 5%;

}


.checkout-header-inner {

    max-width: 1200px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    color: white;

    text-decoration: none;

}


.brand-logo {

    width: 45px;

    height: 45px;

    border: 1px solid var(--gold);

    color: var(--gold);

    display: flex;

    align-items: center;

    justify-content: center;

    font-family: "Playfair Display", serif;

    font-size: 16px;

}


.brand-text strong {

    display: block;

    letter-spacing: 3px;

    font-size: 18px;

}


.brand-text small {

    display: block;

    color: var(--gold);

    font-size: 8px;

    letter-spacing: 3px;

}


.checkout-secure {

    color: #aaa;

    font-size: 12px;

}


.checkout-secure i {

    color: var(--gold);

    margin-right: 7px;

}


/* =====================================================
   PAGE
===================================================== */

.checkout-page {

    padding: 65px 20px;

}


.checkout-container {

    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        370px;

    gap: 40px;

}


/* =====================================================
   TITLE
===================================================== */

.checkout-title {

    margin-bottom: 35px;

}


.checkout-title span {

    color: var(--gold);

    letter-spacing: 3px;

    font-size: 11px;

    font-weight: 600;

}


.checkout-title h1 {

    font-family: "Playfair Display", serif;

    font-size: 46px;

    margin: 7px 0;

}


.checkout-title p {

    color: var(--gray);

}


/* =====================================================
   FORM
===================================================== */

.shipping-form {

    background: white;

    padding: 35px;

    border: 1px solid var(--border);

}


.form-section-title {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 30px;

}


.form-section-title > i {

    width: 42px;

    height: 42px;

    background: #111;

    color: var(--gold);

    display: flex;

    align-items: center;

    justify-content: center;

}


.form-section-title h2 {

    font-family: "Playfair Display", serif;

    font-size: 24px;

}


.form-section-title p {

    color: var(--gray);

    font-size: 12px;

}


.form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

}


.form-group {

    margin-bottom: 20px;

}


.form-group label {

    display: block;

    font-size: 12px;

    font-weight: 500;

    margin-bottom: 8px;

}


.form-group label span {

    color: #999;

    font-weight: 400;

}


.form-group input,

.form-group select {

    width: 100%;

    height: 48px;

    border: 1px solid var(--border);

    background: white;

    padding: 0 14px;

    font-family: inherit;

    font-size: 13px;

    outline: none;

    transition: .2s;

}


.form-group input:focus,

.form-group select:focus {

    border-color: var(--gold);

    box-shadow:
        0 0 0 2px
        rgba(201, 162, 39, .08);

}


/* =====================================================
   SAVE ADDRESS
===================================================== */

.save-address {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 12px;

    margin: 8px 0 25px;

    color: #555;

}


.save-address input {

    accent-color: var(--gold);

}


/* =====================================================
   BUTTON
===================================================== */

.continue-button {

    width: 100%;

    height: 55px;

    background: #111;

    color: white;

    border: none;

    cursor: pointer;

    font-family: inherit;

    font-weight: 500;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    transition: .25s;

}


.continue-button:hover {

    background: var(--gold);

    color: #111;

}


.back-cart {

    display: block;

    text-align: center;

    margin-top: 20px;

    color: #777;

    font-size: 12px;

    text-decoration: none;

}


.back-cart:hover {

    color: var(--black);

}


/* =====================================================
   SUMMARY
===================================================== */

.checkout-summary {

    background: white;

    border: 1px solid var(--border);

    padding: 30px;

    height: fit-content;

    position: sticky;

    top: 25px;

}


.checkout-summary h2 {

    font-family: "Playfair Display", serif;

    font-size: 27px;

    margin-bottom: 25px;

}


.checkout-item {

    display: grid;

    grid-template-columns: 65px 1fr auto;

    gap: 12px;

    align-items: center;

    margin-bottom: 18px;

}


.checkout-item-image {

    width: 65px;

    height: 78px;

    background: #eee;

    overflow: hidden;

}


.checkout-item-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.checkout-item-name {

    font-size: 12px;

    line-height: 1.5;

}


.checkout-item-quantity {

    color: #888;

    font-size: 11px;

    margin-top: 4px;

}


.checkout-item-price {

    font-size: 13px;

    font-weight: 600;

}


.summary-divider {

    height: 1px;

    background: var(--border);

    margin: 20px 0;

}


.summary-row {

    display: flex;

    justify-content: space-between;

    font-size: 13px;

    margin-bottom: 16px;

}


.summary-row span {

    color: var(--gray);

}


.summary-total {

    display: flex;

    justify-content: space-between;

    font-size: 19px;

}


.summary-total strong {

    color: var(--gold);

}


.secure-message {

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid var(--border);

    text-align: center;

    color: #999;

    font-size: 11px;

}


.secure-message i {

    color: var(--gold);

    margin-right: 5px;

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 850px) {

    .checkout-container {

        grid-template-columns: 1fr;

    }


    .checkout-summary {

        position: static;

        grid-row: 1;

    }

}


@media (max-width: 600px) {

    .checkout-page {

        padding: 35px 15px;

    }


    .checkout-title h1 {

        font-size: 38px;

    }


    .shipping-form {

        padding: 22px;

    }


    .form-row {

        grid-template-columns: 1fr;

        gap: 0;

    }


    .checkout-header-inner {

        flex-direction: column;

        gap: 15px;

        align-items: flex-start;

    }

}