/* =========================
   GoldVault - Cart (User View) Fix
   ========================= */

/* Hide duplicated theme page title on Cart */
body.woocommerce-cart .entry-title { 
  display: none !important; 
}

/* Center and widen cart container */
body.woocommerce-cart .site-content,
body.woocommerce-cart .content-area,
body.woocommerce-cart .woocommerce {
  max-width: 980px !important;
  margin: 0 auto !important;
}

/* Clean cart form box */
body.woocommerce-cart .woocommerce-cart-form {
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

/* Clean table */
body.woocommerce-cart table.shop_table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  border: 0 !important;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td {
  padding: 14px 12px !important;
  border-bottom: 1px solid rgba(0,0,0,.08) !important;
  vertical-align: middle !important;
}

body.woocommerce-cart table.shop_table thead th {
  font-weight: 700 !important;
  font-size: 14px !important;
}

/* Numbers align */
body.woocommerce-cart td.product-price,
body.woocommerce-cart td.product-subtotal,
body.woocommerce-cart td.product-quantity {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Product name */
body.woocommerce-cart td.product-name a {
  font-weight: 700;
  text-decoration: none;
}

/* Quantity */
body.woocommerce-cart .quantity .qty {
  width: 90px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(0,0,0,.18) !important;
}

/* Buttons */
body.woocommerce-cart .button,
body.woocommerce-cart button.button,
body.woocommerce-cart a.button {
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-weight: 700 !important;
}

/* Totals box */
body.woocommerce-cart .cart-collaterals { margin-top: 16px; }
body.woocommerce-cart .cart-collaterals .cart_totals {
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.04);
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  width: 100% !important;
  text-align: center !important;
  padding: 14px 18px !important;
  font-size: 16px !important;
}

/* Mobile: stack rows as cards */
@media (max-width: 768px) {
  body.woocommerce-cart table.shop_table thead { display: none !important; }

  body.woocommerce-cart table.shop_table,
  body.woocommerce-cart table.shop_table tbody,
  body.woocommerce-cart table.shop_table tr,
  body.woocommerce-cart table.shop_table td {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-cart table.shop_table tr {
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 16px;
    padding: 12px;
    margin: 12px 0;
    background: #fff;
  }

  body.woocommerce-cart table.shop_table td {
    border: 0 !important;
    padding: 10px 0 !important;
  }

  body.woocommerce-cart td.product-price,
  body.woocommerce-cart td.product-quantity,
  body.woocommerce-cart td.product-subtotal {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  body.woocommerce-cart td.product-price:before { content: "Price"; font-weight: 700; opacity: .75; }
  body.woocommerce-cart td.product-quantity:before { content: "Qty"; font-weight: 700; opacity: .75; }
  body.woocommerce-cart td.product-subtotal:before { content: "Total"; font-weight: 700; opacity: .75; }
}
