html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.woocommerce {
  display: block;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 3rem;
}
.woocommerce-cart-form { 
    padding: 36px 0
}
.shop_table.cart {
  width: 100%;
}

.shop_table.cart th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.shop_table.cart tr {
    height: fit-content;
}

.shop_table.cart td {
  border-bottom: 1px solid #eee;
  padding: 1.25rem 0;
  vertical-align: middle;
}

.woocommerce-cart table.cart img, .woocommerce-checkout table.cart img {
  width: 160px;
  height: auto;
  border-radius: 6px;
}

.product-name a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.product-name a:hover {
  opacity: 0.7;
}

.product-price,
.product-subtotal {
  font-weight: 500;
}

.quantity input.qty {
  width: 64px;
  padding: 0.4rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  text-align: center;
}

.product-remove a.remove {
  font-size: 32px;
  color: #aaa;
}

.product-remove a.remove:hover {
  color: #000;
}


.cart .actions {
  text-align: center;
  padding-top: 2rem;
}

.cart .coupon {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.woocommerce-page table.cart td.actions .input-text {
  width: 120px;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.cart button.button,
.checkout-button {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  font-weight: 500;
  border: none;
}

.cart button.button:hover,
.checkout-button:hover {
  background: var(--accent-dark);
  opacity: 0.85;
}


.cart-collaterals {
  margin-top: 3rem;
}

.cart_totals {
  border-top: 1px solid #eee;
  padding-top: 2rem;
}

.cart_totals h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.cart_totals table {
  width: 100%;
}

.cart_totals th,
.cart_totals td {
  padding: 0.6rem 0;
}


.wc-proceed-to-checkout {
  margin-top: 2rem;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  border-radius: var(--radius);
  background: var(--accent);
  width: 100%;
  text-align: center;
  padding: 0.9rem;
  font-size: 1rem;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--accent-dark);
  opacity: 0.85;
}

@media (max-width: 768px) {
  .shop_table.cart thead {
    display: none;
  }

  .shop_table.cart tr {
    display: block;
    margin-bottom: 2rem;
  }

  .shop_table.cart td {
    display: flex;
    justify-content: space-between;
  }

  .product-thumbnail {
    justify-content: center;
  }
}