* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    width: 70%;
    margin: 0 auto;
    padding: 50px 0 0;
    color: #2e2e2e;
    background: linear-gradient(135deg, #f5f7fa, #e4ecf7);
    transition: all 0.3s ease;
}

header {
    margin-bottom: 30px;
    text-align: center;
    animation: fadeIn 1s ease;
}

header > h3 {
    font-size: 30px;
    color: #2e2e2e;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

main {
    display: flex;
    column-gap: 80px;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease;
}

.checkout-form {
    width: 50%;
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.checkout-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.checkout-form form h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0d47a1;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.form-control {
    margin: 18px 0;
    position: relative;
}

.form-control label:not([for="checkout-checkbox"]) {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
}

.form-control input:not([type="checkbox"]) {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border-radius: 10px;
    border: 1px solid #cbd5e0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    background: #f9f9f9;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
}

.form-control input:not([type="checkbox"]):focus {
    border-color: #0d47a1;
    background: #fff;
    box-shadow: 0 0 10px rgba(13, 71, 161, 0.2);
}

.form-control input::placeholder {
    font-size: 12px;
    font-weight: 500;
    color: #aaa;
}

.form-control label[for="checkout-checkbox"] {
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
}

.form-control > div {
    position: relative;
}

.form-control > div span.fa {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(15px, -50%);
    color: #999;
    font-size: 15px;
}

.form-group {
    display: flex;
    column-gap: 25px;
}

.checkbox-control {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.form-control-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 30px;
}

.form-control-btn button {
    padding: 14px 35px;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, #0d47a1, #08306b);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.4);
    transition: all 0.3s;
}

.form-control-btn button:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #08306b, #061d49);
    box-shadow: 0 6px 20px rgba(8, 48, 107, 0.5);
}

.checkout-details {
    width: 40%;
}

.checkout-details-inner {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

/* Lista de produtos */
.checkout-lists {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    margin-bottom: 40px;
}

.card {
    display: flex;
    column-gap: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    background: #fafafa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 25%;
}

.card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.card-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.card-name {
    font-size: 17px;
    font-weight: 600;
    color: #2e2e2e;
}

.card-price {
    font-size: 16px;
    font-weight: 600;
    color: #0d47a1;
    margin-top: 5px;
}

.card-price span {
    color: #777;
    text-decoration: line-through;
    margin-left: 10px;
    font-weight: 400;
}

.card-wheel {
    margin-top: 10px;
    border: 1px solid #ccc;
    width: 85px;
    padding: 6px;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.card-wheel button {
    background: #0d47a1;
    color: #fff;
    width: 26px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    transition: background 0.3s;
}

.card-wheel button:hover {
    background: #08306b;
}

/* Frete */
.checkout-shipping {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    margin-top: 25px;
}

.checkout-shipping h6 {
    font-size: 13px;
    font-weight: 600;
}

.checkout-shipping select {
    padding: 12px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #cbd5e0;
    outline: none;
    width: 100%;
    background: #f9f9f9;
    transition: border 0.3s, box-shadow 0.3s;
}

.checkout-shipping select:focus {
    border-color: #0d47a1;
    box-shadow: 0 0 8px rgba(13, 71, 161, 0.2);
}

.checkout-shipping p {
    font-size: 11px;
    font-weight: 500;
    margin-top: 5px;
    color: #777;
}

/* Totais */
.checkout-total {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    margin-top: 25px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.checkout-total h6 {
    font-size: 13px;
    font-weight: 700;
    color: #0d47a1;
}

.checkout-total p {
    font-size: 12px;
    font-weight: 500;
}

/* Footer */
footer {
    color: #aaa;
    display: grid;
    place-items: center;
    font-size: 12px;
    margin-top: 30px;
    animation: fadeIn 1.2s ease;
}

footer a {
    text-decoration: none;
    color: inherit;
}

/* Responsivo */
@media screen and (max-width: 1024px) {
    body {
        width: 80%;
    }
    main {
        column-gap: 60px;
    }
}

@media screen and (max-width: 768px) {
    body {
        width: 92%;
        padding: 30px 0;
    }
    main {
        flex-direction: column-reverse;
        margin-bottom: 50px;
    }
    .checkout-form,
    .checkout-details {
        width: 100%;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
