.hm-cart-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

.hm-cart-items-wrapper h1 {
    margin-bottom: 2rem;
}

.hm-cart-items {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hm-cart-item {
    display: grid;
    grid-template-columns: auto 110px 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--border-red);
    border-radius: 10px;
    background: linear-gradient(145deg, #1a1a1adb, #0000008c);
}

.hm-cart-item .item-remove a {
    color: var(--brand-red);
    font-size: 1.5rem;
    font-weight: bold;
    transition: color .2s ease;
}

.hm-cart-item .item-remove a:hover {
    color: #fff;
}

.hm-cart-item .item-thumbnail img {
    border-radius: 6px;
    width: 110px;
    height: auto;
}

.hm-cart-item .item-name a {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.hm-cart-item .item-price {
    margin-top: .5rem;
    color: var(--text-secondary);
}

.hm-cart-item .item-subtotal {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}

/* Esconder os inputs originais de quantidade se estiverem desajeitados */
.hm-cart-item .quantity input {
    width: 60px;
    height: 40px;
    background: #00000057;
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    text-align: center;
    border-radius: 6px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cart-actions .coupon {
    display: flex;
    gap: .5rem;
}

.hm-cart-collaterals .cart_totals {
    padding: 2rem;
    border: 1px solid var(--border-red);
    border-radius: 10px;
    background: linear-gradient(145deg, #1a1a1adb, #0000008c);
}

.hm-cart-collaterals .cart_totals h2 {
    margin-bottom: 1.5rem;
}

.hm-cart-collaterals table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.hm-cart-collaterals th, .hm-cart-collaterals td {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.hm-cart-collaterals th {
    text-align: left;
    color: var(--text-secondary);
}

.hm-cart-collaterals td {
    text-align: right;
    font-weight: bold;
}

.wc-proceed-to-checkout .checkout-button {
    width: 100%;
}

@media(max-width: 1040px) {
    .hm-cart-layout {
        grid-template-columns: 1fr;
    }
    .hm-cart-item {
        grid-template-columns: auto 80px 1fr;
        grid-template-rows: auto auto;
    }
    .hm-cart-item .item-quantity, .hm-cart-item .item-subtotal {
        grid-column: 3;
    }
}
